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, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 13, 13, 41, 13, 18, 13, 17, 41, 13, 18, 13, 17, 41, 13, 18, 13, 17, 41, 13, 18, 13, 17, 41, 13, 2, 2, 13, 17, 2, 17, 13, 41, 13, 2, 13, 17, 41, 13, 2, 13, 13, 41, 13, 4, 18, 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, 12, 13, 30, 29, 4, 18, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 29, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 170, 17 ], [ 170, 18 ], [ 18, 19 ], [ 18, 20 ], [ 170, 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 ], [ 32, 34 ], [ 23, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 37, 39 ], [ 23, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 42, 44 ], [ 23, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 47, 49 ], [ 23, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 23, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 61, 63 ], [ 23, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 23, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 23, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 23, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 87, 88 ], [ 87, 89 ], [ 82, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 90, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 23, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 21, 109 ], [ 109, 110 ], [ 170, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 118, 119 ], [ 119, 120 ], [ 111, 121 ], [ 121, 122 ], [ 170, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 128, 133 ], [ 125, 134 ], [ 134, 135 ], [ 134, 136 ], [ 137, 138 ], [ 137, 139 ], [ 125, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 140, 145 ], [ 145, 146 ], [ 145, 147 ], [ 147, 148 ], [ 147, 149 ], [ 140, 150 ], [ 150, 151 ], [ 151, 152 ], [ 140, 153 ], [ 154, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 155, 159 ], [ 159, 160 ], [ 160, 161 ], [ 159, 162 ], [ 162, 163 ], [ 162, 164 ], [ 125, 165 ], [ 165, 166 ], [ 123, 167 ], [ 167, 168 ], [ 0, 169 ], [ 169, 170 ], [ 169, 171 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.math.BigDecimal;\n\nimport static java.math.BigDecimal.ROUND_HALF_UP;\n\n\npublic class Main {\n private static int MOD = 1000000007;\n\n\n public static void main(String[] args) throws IOException {\n InputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n int[] abhm = readIntegers(br);\n int a = abhm[0];\n int b = abhm[1];\n int h = abhm[2];\n int m = abhm[3];\n\n // 0ๆ™‚ใจ12ๆ™‚0ๅˆ†ใ ใ‘ใฏ0\n // 1ๆ™‚้–“ใ”ใจใซ30ๅบฆ\n double tan = (h * 30) + (0.5 * m); // ็Ÿญ้‡ใŒ0ๆ™‚ใ‹ใ‚‰ไฝ•ๅบฆใฎไฝ็ฝฎใซใ‚ใ‚‹ใ‹\n double tyou = m * 6; // ้•ท้‡ใ‚‚ๅŒๆง˜\n\n double kakudo = tyou - tan; // ้•ท้‡ใจ็Ÿญ้‡ใฎไฝ็ฝฎใฎๅทฎใŒ่ง’ๅบฆใจใชใ‚‹\n// kakudo = Math.abs(kakudo); // ใ‚ใ‹ใ‚Šใ‚„ใ™ใ\n// if (kakudo == 0d || kakudo == 360d) { // ้•ท้‡ใจ็Ÿญ้‡ใŒ้‡ใชใฃใฆใ„ใ‚‹ๅ ดๅˆ\n// System.out.println(0); //่ท้›ขใฏ0\n// return;\n// }\n// if (kakudo == 180d) { // 180ๅบฆ็œŸ้€†ใฎๅ ดๅˆใฏ้•ท้‡ใจ็Ÿญ้‡ใฎ้•ทใ•ใซใชใ‚‹ใ ใ‚ใ†\n// System.out.println(a + b);\n// return;\n// }\n\n double rad = Math.toRadians(kakudo);\n // ไฝ™ๅผฆๅฎš็†\n double a_sq = (a * a) + (b * b) - (2 * a * b * Math.cos(rad));\n System.out.println(Math.sqrt(a_sq));\n }\n\n private static int readInteger(BufferedReader br) throws IOException {\n return Integer.parseInt(br.readLine());\n }\n\n private static int[] readIntegers(BufferedReader br) throws IOException {\n String[] s = br.readLine().split(\" \");\n int[] ret = new int[s.length];\n for (int i = 0; i < s.length; i++) {\n ret[i] = Integer.parseInt(s[i]);\n }\n return ret;\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.math.BigDecimal;", "BigDecimal", "java.math", "import static java.math.BigDecimal.ROUND_HALF_UP;", "import static java.math.BigDecimal.ROUND_HALF_UP;", "import static java.math.BigDecimal.ROUND_HALF_UP;", "public class Main {\n private static int MOD = 1000000007;\n\n\n public static void main(String[] args) throws IOException {\n InputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n int[] abhm = readIntegers(br);\n int a = abhm[0];\n int b = abhm[1];\n int h = abhm[2];\n int m = abhm[3];\n\n // 0ๆ™‚ใจ12ๆ™‚0ๅˆ†ใ ใ‘ใฏ0\n // 1ๆ™‚้–“ใ”ใจใซ30ๅบฆ\n double tan = (h * 30) + (0.5 * m); // ็Ÿญ้‡ใŒ0ๆ™‚ใ‹ใ‚‰ไฝ•ๅบฆใฎไฝ็ฝฎใซใ‚ใ‚‹ใ‹\n double tyou = m * 6; // ้•ท้‡ใ‚‚ๅŒๆง˜\n\n double kakudo = tyou - tan; // ้•ท้‡ใจ็Ÿญ้‡ใฎไฝ็ฝฎใฎๅทฎใŒ่ง’ๅบฆใจใชใ‚‹\n// kakudo = Math.abs(kakudo); // ใ‚ใ‹ใ‚Šใ‚„ใ™ใ\n// if (kakudo == 0d || kakudo == 360d) { // ้•ท้‡ใจ็Ÿญ้‡ใŒ้‡ใชใฃใฆใ„ใ‚‹ๅ ดๅˆ\n// System.out.println(0); //่ท้›ขใฏ0\n// return;\n// }\n// if (kakudo == 180d) { // 180ๅบฆ็œŸ้€†ใฎๅ ดๅˆใฏ้•ท้‡ใจ็Ÿญ้‡ใฎ้•ทใ•ใซใชใ‚‹ใ ใ‚ใ†\n// System.out.println(a + b);\n// return;\n// }\n\n double rad = Math.toRadians(kakudo);\n // ไฝ™ๅผฆๅฎš็†\n double a_sq = (a * a) + (b * b) - (2 * a * b * Math.cos(rad));\n System.out.println(Math.sqrt(a_sq));\n }\n\n private static int readInteger(BufferedReader br) throws IOException {\n return Integer.parseInt(br.readLine());\n }\n\n private static int[] readIntegers(BufferedReader br) throws IOException {\n String[] s = br.readLine().split(\" \");\n int[] ret = new int[s.length];\n for (int i = 0; i < s.length; i++) {\n ret[i] = Integer.parseInt(s[i]);\n }\n return ret;\n }\n\n}", "Main", "private static int MOD = 1000000007;", "MOD", "1000000007", "public static void main(String[] args) throws IOException {\n InputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n int[] abhm = readIntegers(br);\n int a = abhm[0];\n int b = abhm[1];\n int h = abhm[2];\n int m = abhm[3];\n\n // 0ๆ™‚ใจ12ๆ™‚0ๅˆ†ใ ใ‘ใฏ0\n // 1ๆ™‚้–“ใ”ใจใซ30ๅบฆ\n double tan = (h * 30) + (0.5 * m); // ็Ÿญ้‡ใŒ0ๆ™‚ใ‹ใ‚‰ไฝ•ๅบฆใฎไฝ็ฝฎใซใ‚ใ‚‹ใ‹\n double tyou = m * 6; // ้•ท้‡ใ‚‚ๅŒๆง˜\n\n double kakudo = tyou - tan; // ้•ท้‡ใจ็Ÿญ้‡ใฎไฝ็ฝฎใฎๅทฎใŒ่ง’ๅบฆใจใชใ‚‹\n// kakudo = Math.abs(kakudo); // ใ‚ใ‹ใ‚Šใ‚„ใ™ใ\n// if (kakudo == 0d || kakudo == 360d) { // ้•ท้‡ใจ็Ÿญ้‡ใŒ้‡ใชใฃใฆใ„ใ‚‹ๅ ดๅˆ\n// System.out.println(0); //่ท้›ขใฏ0\n// return;\n// }\n// if (kakudo == 180d) { // 180ๅบฆ็œŸ้€†ใฎๅ ดๅˆใฏ้•ท้‡ใจ็Ÿญ้‡ใฎ้•ทใ•ใซใชใ‚‹ใ ใ‚ใ†\n// System.out.println(a + b);\n// return;\n// }\n\n double rad = Math.toRadians(kakudo);\n // ไฝ™ๅผฆๅฎš็†\n double a_sq = (a * a) + (b * b) - (2 * a * b * Math.cos(rad));\n System.out.println(Math.sqrt(a_sq));\n }", "main", "{\n InputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n int[] abhm = readIntegers(br);\n int a = abhm[0];\n int b = abhm[1];\n int h = abhm[2];\n int m = abhm[3];\n\n // 0ๆ™‚ใจ12ๆ™‚0ๅˆ†ใ ใ‘ใฏ0\n // 1ๆ™‚้–“ใ”ใจใซ30ๅบฆ\n double tan = (h * 30) + (0.5 * m); // ็Ÿญ้‡ใŒ0ๆ™‚ใ‹ใ‚‰ไฝ•ๅบฆใฎไฝ็ฝฎใซใ‚ใ‚‹ใ‹\n double tyou = m * 6; // ้•ท้‡ใ‚‚ๅŒๆง˜\n\n double kakudo = tyou - tan; // ้•ท้‡ใจ็Ÿญ้‡ใฎไฝ็ฝฎใฎๅทฎใŒ่ง’ๅบฆใจใชใ‚‹\n// kakudo = Math.abs(kakudo); // ใ‚ใ‹ใ‚Šใ‚„ใ™ใ\n// if (kakudo == 0d || kakudo == 360d) { // ้•ท้‡ใจ็Ÿญ้‡ใŒ้‡ใชใฃใฆใ„ใ‚‹ๅ ดๅˆ\n// System.out.println(0); //่ท้›ขใฏ0\n// return;\n// }\n// if (kakudo == 180d) { // 180ๅบฆ็œŸ้€†ใฎๅ ดๅˆใฏ้•ท้‡ใจ็Ÿญ้‡ใฎ้•ทใ•ใซใชใ‚‹ใ ใ‚ใ†\n// System.out.println(a + b);\n// return;\n// }\n\n double rad = Math.toRadians(kakudo);\n // ไฝ™ๅผฆๅฎš็†\n double a_sq = (a * a) + (b * b) - (2 * a * b * Math.cos(rad));\n System.out.println(Math.sqrt(a_sq));\n }", "InputStreamReader isr = new InputStreamReader(System.in);", "isr", "new InputStreamReader(System.in)", "BufferedReader br = new BufferedReader(isr);", "br", "new BufferedReader(isr)", "int[] abhm = readIntegers(br);", "abhm", "readIntegers(br)", "readIntegers", "br", "int a = abhm[0];", "a", "abhm[0]", "abhm", "0", "int b = abhm[1];", "b", "abhm[1]", "abhm", "1", "int h = abhm[2];", "h", "abhm[2]", "abhm", "2", "int m = abhm[3];", "m", "abhm[3]", "abhm", "3", "double tan = (h * 30) + (0.5 * m);", "tan", "(h * 30) + (0.5 * m)", "(h * 30)", "h", "30", "(0.5 * m)", "0.5", "m", "double tyou = m * 6;", "tyou", "m * 6", "m", "6", "double kakudo = tyou - tan;", "kakudo", "tyou - tan", "tyou", "tan", "double rad = Math.toRadians(kakudo);", "rad", "Math.toRadians(kakudo)", "Math.toRadians", "Math", "kakudo", "double a_sq = (a * a) + (b * b) - (2 * a * b * Math.cos(rad));", "a_sq", "(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(a_sq))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(a_sq)", "Math.sqrt", "Math", "a_sq", "String[] args", "args", "private static int readInteger(BufferedReader br) throws IOException {\n return Integer.parseInt(br.readLine());\n }", "readInteger", "{\n return Integer.parseInt(br.readLine());\n }", "return Integer.parseInt(br.readLine());", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "BufferedReader br", "br", "private static int[] readIntegers(BufferedReader br) throws IOException {\n String[] s = br.readLine().split(\" \");\n int[] ret = new int[s.length];\n for (int i = 0; i < s.length; i++) {\n ret[i] = Integer.parseInt(s[i]);\n }\n return ret;\n }", "readIntegers", "{\n String[] s = br.readLine().split(\" \");\n int[] ret = new int[s.length];\n for (int i = 0; i < s.length; i++) {\n ret[i] = Integer.parseInt(s[i]);\n }\n return ret;\n }", "String[] s = br.readLine().split(\" \");", "s", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int[] ret = new int[s.length];", "ret", "new int[s.length]", "s.length", "s", "s.length", "for (int i = 0; i < s.length; i++) {\n ret[i] = Integer.parseInt(s[i]);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < s.length", "i", "s.length", "s", "s.length", "i++", "i++", "i", "{\n ret[i] = Integer.parseInt(s[i]);\n }", "{\n ret[i] = Integer.parseInt(s[i]);\n }", "ret[i] = Integer.parseInt(s[i])", "ret[i]", "ret", "i", "Integer.parseInt(s[i])", "Integer.parseInt", "Integer", "s[i]", "s", "i", "return ret;", "ret", "BufferedReader br", "br", "public class Main {\n private static int MOD = 1000000007;\n\n\n public static void main(String[] args) throws IOException {\n InputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n int[] abhm = readIntegers(br);\n int a = abhm[0];\n int b = abhm[1];\n int h = abhm[2];\n int m = abhm[3];\n\n // 0ๆ™‚ใจ12ๆ™‚0ๅˆ†ใ ใ‘ใฏ0\n // 1ๆ™‚้–“ใ”ใจใซ30ๅบฆ\n double tan = (h * 30) + (0.5 * m); // ็Ÿญ้‡ใŒ0ๆ™‚ใ‹ใ‚‰ไฝ•ๅบฆใฎไฝ็ฝฎใซใ‚ใ‚‹ใ‹\n double tyou = m * 6; // ้•ท้‡ใ‚‚ๅŒๆง˜\n\n double kakudo = tyou - tan; // ้•ท้‡ใจ็Ÿญ้‡ใฎไฝ็ฝฎใฎๅทฎใŒ่ง’ๅบฆใจใชใ‚‹\n// kakudo = Math.abs(kakudo); // ใ‚ใ‹ใ‚Šใ‚„ใ™ใ\n// if (kakudo == 0d || kakudo == 360d) { // ้•ท้‡ใจ็Ÿญ้‡ใŒ้‡ใชใฃใฆใ„ใ‚‹ๅ ดๅˆ\n// System.out.println(0); //่ท้›ขใฏ0\n// return;\n// }\n// if (kakudo == 180d) { // 180ๅบฆ็œŸ้€†ใฎๅ ดๅˆใฏ้•ท้‡ใจ็Ÿญ้‡ใฎ้•ทใ•ใซใชใ‚‹ใ ใ‚ใ†\n// System.out.println(a + b);\n// return;\n// }\n\n double rad = Math.toRadians(kakudo);\n // ไฝ™ๅผฆๅฎš็†\n double a_sq = (a * a) + (b * b) - (2 * a * b * Math.cos(rad));\n System.out.println(Math.sqrt(a_sq));\n }\n\n private static int readInteger(BufferedReader br) throws IOException {\n return Integer.parseInt(br.readLine());\n }\n\n private static int[] readIntegers(BufferedReader br) throws IOException {\n String[] s = br.readLine().split(\" \");\n int[] ret = new int[s.length];\n for (int i = 0; i < s.length; i++) {\n ret[i] = Integer.parseInt(s[i]);\n }\n return ret;\n }\n\n}", "public class Main {\n private static int MOD = 1000000007;\n\n\n public static void main(String[] args) throws IOException {\n InputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n int[] abhm = readIntegers(br);\n int a = abhm[0];\n int b = abhm[1];\n int h = abhm[2];\n int m = abhm[3];\n\n // 0ๆ™‚ใจ12ๆ™‚0ๅˆ†ใ ใ‘ใฏ0\n // 1ๆ™‚้–“ใ”ใจใซ30ๅบฆ\n double tan = (h * 30) + (0.5 * m); // ็Ÿญ้‡ใŒ0ๆ™‚ใ‹ใ‚‰ไฝ•ๅบฆใฎไฝ็ฝฎใซใ‚ใ‚‹ใ‹\n double tyou = m * 6; // ้•ท้‡ใ‚‚ๅŒๆง˜\n\n double kakudo = tyou - tan; // ้•ท้‡ใจ็Ÿญ้‡ใฎไฝ็ฝฎใฎๅทฎใŒ่ง’ๅบฆใจใชใ‚‹\n// kakudo = Math.abs(kakudo); // ใ‚ใ‹ใ‚Šใ‚„ใ™ใ\n// if (kakudo == 0d || kakudo == 360d) { // ้•ท้‡ใจ็Ÿญ้‡ใŒ้‡ใชใฃใฆใ„ใ‚‹ๅ ดๅˆ\n// System.out.println(0); //่ท้›ขใฏ0\n// return;\n// }\n// if (kakudo == 180d) { // 180ๅบฆ็œŸ้€†ใฎๅ ดๅˆใฏ้•ท้‡ใจ็Ÿญ้‡ใฎ้•ทใ•ใซใชใ‚‹ใ ใ‚ใ†\n// System.out.println(a + b);\n// return;\n// }\n\n double rad = Math.toRadians(kakudo);\n // ไฝ™ๅผฆๅฎš็†\n double a_sq = (a * a) + (b * b) - (2 * a * b * Math.cos(rad));\n System.out.println(Math.sqrt(a_sq));\n }\n\n private static int readInteger(BufferedReader br) throws IOException {\n return Integer.parseInt(br.readLine());\n }\n\n private static int[] readIntegers(BufferedReader br) throws IOException {\n String[] s = br.readLine().split(\" \");\n int[] ret = new int[s.length];\n for (int i = 0; i < s.length; i++) {\n ret[i] = Integer.parseInt(s[i]);\n }\n return ret;\n }\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.math.BigDecimal; import static java.math.BigDecimal.ROUND_HALF_UP; public class Main { private static int MOD = 1000000007; public static void main(String[] args) throws IOException { InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); int[] abhm = readIntegers(br); int a = abhm[0]; int b = abhm[1]; int h = abhm[2]; int m = abhm[3]; // 0ๆ™‚ใจ12ๆ™‚0ๅˆ†ใ ใ‘ใฏ0 // 1ๆ™‚้–“ใ”ใจใซ30ๅบฆ double tan = (h * 30) + (0.5 * m); // ็Ÿญ้‡ใŒ0ๆ™‚ใ‹ใ‚‰ไฝ•ๅบฆใฎไฝ็ฝฎใซใ‚ใ‚‹ใ‹ double tyou = m * 6; // ้•ท้‡ใ‚‚ๅŒๆง˜ double kakudo = tyou - tan; // ้•ท้‡ใจ็Ÿญ้‡ใฎไฝ็ฝฎใฎๅทฎใŒ่ง’ๅบฆใจใชใ‚‹ // kakudo = Math.abs(kakudo); // ใ‚ใ‹ใ‚Šใ‚„ใ™ใ // if (kakudo == 0d || kakudo == 360d) { // ้•ท้‡ใจ็Ÿญ้‡ใŒ้‡ใชใฃใฆใ„ใ‚‹ๅ ดๅˆ // System.out.println(0); //่ท้›ขใฏ0 // return; // } // if (kakudo == 180d) { // 180ๅบฆ็œŸ้€†ใฎๅ ดๅˆใฏ้•ท้‡ใจ็Ÿญ้‡ใฎ้•ทใ•ใซใชใ‚‹ใ ใ‚ใ† // System.out.println(a + b); // return; // } double rad = Math.toRadians(kakudo); // ไฝ™ๅผฆๅฎš็† double a_sq = (a * a) + (b * b) - (2 * a * b * Math.cos(rad)); System.out.println(Math.sqrt(a_sq)); } private static int readInteger(BufferedReader br) throws IOException { return Integer.parseInt(br.readLine()); } private static int[] readIntegers(BufferedReader br) throws IOException { String[] s = br.readLine().split(" "); int[] ret = new int[s.length]; for (int i = 0; i < s.length; i++) { ret[i] = Integer.parseInt(s[i]); } return ret; } }
[ 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, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 14, 2, 13, 17, 30, 0, 13, 2, 17, 13, 41, 13, 17, 0, 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, 4, 18, 13, 13, 17, 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 ], [ 38, 39 ], [ 37, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 45, 47 ], [ 40, 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 ], [ 11, 61 ], [ 61, 62 ], [ 61, 63 ], [ 11, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 68, 72 ], [ 67, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 73, 77 ], [ 66, 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 ], [ 11, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 96, 100 ], [ 9, 101 ], [ 101, 102 ], [ 0, 103 ], [ 103, 104 ], [ 103, 105 ] ]
[ "import java.util.Scanner;\nimport java.lang.Math;\n \npublic class Main {\n \n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\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 rad = Math.abs(H*30 + M*0.5 - M*6);\n \t\tif(rad >= 180){\n rad = 360 - rad;\n }\n \t\tdouble C = 0;\n \t\t\n \t\tC = Math.pow(A,2)+Math.pow(B,2) - 2*A*B*Math.cos(Math.toRadians(rad));\n \n\t\tSystem.out.println(Math.pow(C,0.5));\n\t}\n \n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.lang.Math;", "Math", "java.lang", "public class Main {\n \n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\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 rad = Math.abs(H*30 + M*0.5 - M*6);\n \t\tif(rad >= 180){\n rad = 360 - rad;\n }\n \t\tdouble C = 0;\n \t\t\n \t\tC = Math.pow(A,2)+Math.pow(B,2) - 2*A*B*Math.cos(Math.toRadians(rad));\n \n\t\tSystem.out.println(Math.pow(C,0.5));\n\t}\n \n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\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 rad = Math.abs(H*30 + M*0.5 - M*6);\n \t\tif(rad >= 180){\n rad = 360 - rad;\n }\n \t\tdouble C = 0;\n \t\t\n \t\tC = Math.pow(A,2)+Math.pow(B,2) - 2*A*B*Math.cos(Math.toRadians(rad));\n \n\t\tSystem.out.println(Math.pow(C,0.5));\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\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 rad = Math.abs(H*30 + M*0.5 - M*6);\n \t\tif(rad >= 180){\n rad = 360 - rad;\n }\n \t\tdouble C = 0;\n \t\t\n \t\tC = Math.pow(A,2)+Math.pow(B,2) - 2*A*B*Math.cos(Math.toRadians(rad));\n \n\t\tSystem.out.println(Math.pow(C,0.5));\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 rad = Math.abs(H*30 + M*0.5 - M*6);", "rad", "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", "if(rad >= 180){\n rad = 360 - rad;\n }", "rad >= 180", "rad", "180", "{\n rad = 360 - rad;\n }", "rad = 360 - rad", "rad", "360 - rad", "360", "rad", "double C = 0;", "C", "0", "C = Math.pow(A,2)+Math.pow(B,2) - 2*A*B*Math.cos(Math.toRadians(rad))", "C", "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(Math.pow(C,0.5))", "System.out.println", "System.out", "System", "System.out", "Math.pow(C,0.5)", "Math.pow", "Math", "C", "0.5", "String[] args", "args", "public class Main {\n \n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\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 rad = Math.abs(H*30 + M*0.5 - M*6);\n \t\tif(rad >= 180){\n rad = 360 - rad;\n }\n \t\tdouble C = 0;\n \t\t\n \t\tC = Math.pow(A,2)+Math.pow(B,2) - 2*A*B*Math.cos(Math.toRadians(rad));\n \n\t\tSystem.out.println(Math.pow(C,0.5));\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\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 rad = Math.abs(H*30 + M*0.5 - M*6);\n \t\tif(rad >= 180){\n rad = 360 - rad;\n }\n \t\tdouble C = 0;\n \t\t\n \t\tC = Math.pow(A,2)+Math.pow(B,2) - 2*A*B*Math.cos(Math.toRadians(rad));\n \n\t\tSystem.out.println(Math.pow(C,0.5));\n\t}\n \n}", "Main" ]
import java.util.Scanner; 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 rad = Math.abs(H*30 + M*0.5 - M*6); if(rad >= 180){ rad = 360 - rad; } double C = 0; C = Math.pow(A,2)+Math.pow(B,2) - 2*A*B*Math.cos(Math.toRadians(rad)); System.out.println(Math.pow(C,0.5)); } }
[ 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, 2, 13, 17, 13, 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, 41, 13, 13, 41, 13, 13, 41, 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 ], [ 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 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 37, 43 ], [ 11, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 11, 49 ], [ 49, 50 ], [ 49, 51 ], [ 11, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 52, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 11, 68 ], [ 68, 69 ], [ 68, 70 ], [ 11, 71 ], [ 71, 72 ], [ 71, 73 ], [ 11, 74 ], [ 74, 75 ], [ 74, 76 ], [ 11, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 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 ], [ 11, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 9, 113 ], [ 113, 114 ], [ 0, 115 ], [ 115, 116 ], [ 115, 117 ] ]
[ "import java.text.DecimalFormat;\nimport java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\t\t\tScanner sc = new Scanner(System.in);\n\t\t// ๆ•ดๆ•ฐใฎๅ…ฅๅŠ›\n\t\tint jisin_nagasa = sc.nextInt();\n\t\tint hunsin_nagasa = sc.nextInt();\n\t\tint jikan = sc.nextInt();\n\t\tint hun = sc.nextInt();\n\n\t\tdouble jisin_kakudo = (jikan * 60 + hun) * 0.5;\n\t\tdouble hunsin_kakudo = hun * 6;\n\n\t\tdouble kakudo_sa = 0;\n\n\t\tif (jisin_kakudo > hunsin_kakudo) {\n\t\t\tkakudo_sa = jisin_kakudo - hunsin_kakudo;\n\t\t} else {\n\t\t\tkakudo_sa = hunsin_kakudo - jisin_kakudo;\n\t\t}\n\n\t\tdouble b = jisin_nagasa;\t//1่พบ็›ฎ\n\t\tdouble c = hunsin_nagasa;\t//2่พบ็›ฎ\n\n\t\tdouble e = kakudo_sa;\t\t\t//้–“ใฎ่ง’ๅบฆ\n\n\t\tdouble r = Math.sqrt(Math.pow(b,2)+Math.pow(c,2) - 2 * b * c * Math.cos(Math.toRadians(e)));\n\n\t\t//ใ“ใฎๆ™‚็‚นใงoใซๆ•ฐๅ€คใŒๅ…ฅใฃใฆใ„ใ‚‹\n\t\tSystem.out.println(r);\n\t}\n}", "import java.text.DecimalFormat;", "DecimalFormat", "java.text", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args){\n\t\t\t\tScanner sc = new Scanner(System.in);\n\t\t// ๆ•ดๆ•ฐใฎๅ…ฅๅŠ›\n\t\tint jisin_nagasa = sc.nextInt();\n\t\tint hunsin_nagasa = sc.nextInt();\n\t\tint jikan = sc.nextInt();\n\t\tint hun = sc.nextInt();\n\n\t\tdouble jisin_kakudo = (jikan * 60 + hun) * 0.5;\n\t\tdouble hunsin_kakudo = hun * 6;\n\n\t\tdouble kakudo_sa = 0;\n\n\t\tif (jisin_kakudo > hunsin_kakudo) {\n\t\t\tkakudo_sa = jisin_kakudo - hunsin_kakudo;\n\t\t} else {\n\t\t\tkakudo_sa = hunsin_kakudo - jisin_kakudo;\n\t\t}\n\n\t\tdouble b = jisin_nagasa;\t//1่พบ็›ฎ\n\t\tdouble c = hunsin_nagasa;\t//2่พบ็›ฎ\n\n\t\tdouble e = kakudo_sa;\t\t\t//้–“ใฎ่ง’ๅบฆ\n\n\t\tdouble r = Math.sqrt(Math.pow(b,2)+Math.pow(c,2) - 2 * b * c * Math.cos(Math.toRadians(e)));\n\n\t\t//ใ“ใฎๆ™‚็‚นใงoใซๆ•ฐๅ€คใŒๅ…ฅใฃใฆใ„ใ‚‹\n\t\tSystem.out.println(r);\n\t}\n}", "Main", "public static void main(String[] args){\n\t\t\t\tScanner sc = new Scanner(System.in);\n\t\t// ๆ•ดๆ•ฐใฎๅ…ฅๅŠ›\n\t\tint jisin_nagasa = sc.nextInt();\n\t\tint hunsin_nagasa = sc.nextInt();\n\t\tint jikan = sc.nextInt();\n\t\tint hun = sc.nextInt();\n\n\t\tdouble jisin_kakudo = (jikan * 60 + hun) * 0.5;\n\t\tdouble hunsin_kakudo = hun * 6;\n\n\t\tdouble kakudo_sa = 0;\n\n\t\tif (jisin_kakudo > hunsin_kakudo) {\n\t\t\tkakudo_sa = jisin_kakudo - hunsin_kakudo;\n\t\t} else {\n\t\t\tkakudo_sa = hunsin_kakudo - jisin_kakudo;\n\t\t}\n\n\t\tdouble b = jisin_nagasa;\t//1่พบ็›ฎ\n\t\tdouble c = hunsin_nagasa;\t//2่พบ็›ฎ\n\n\t\tdouble e = kakudo_sa;\t\t\t//้–“ใฎ่ง’ๅบฆ\n\n\t\tdouble r = Math.sqrt(Math.pow(b,2)+Math.pow(c,2) - 2 * b * c * Math.cos(Math.toRadians(e)));\n\n\t\t//ใ“ใฎๆ™‚็‚นใงoใซๆ•ฐๅ€คใŒๅ…ฅใฃใฆใ„ใ‚‹\n\t\tSystem.out.println(r);\n\t}", "main", "{\n\t\t\t\tScanner sc = new Scanner(System.in);\n\t\t// ๆ•ดๆ•ฐใฎๅ…ฅๅŠ›\n\t\tint jisin_nagasa = sc.nextInt();\n\t\tint hunsin_nagasa = sc.nextInt();\n\t\tint jikan = sc.nextInt();\n\t\tint hun = sc.nextInt();\n\n\t\tdouble jisin_kakudo = (jikan * 60 + hun) * 0.5;\n\t\tdouble hunsin_kakudo = hun * 6;\n\n\t\tdouble kakudo_sa = 0;\n\n\t\tif (jisin_kakudo > hunsin_kakudo) {\n\t\t\tkakudo_sa = jisin_kakudo - hunsin_kakudo;\n\t\t} else {\n\t\t\tkakudo_sa = hunsin_kakudo - jisin_kakudo;\n\t\t}\n\n\t\tdouble b = jisin_nagasa;\t//1่พบ็›ฎ\n\t\tdouble c = hunsin_nagasa;\t//2่พบ็›ฎ\n\n\t\tdouble e = kakudo_sa;\t\t\t//้–“ใฎ่ง’ๅบฆ\n\n\t\tdouble r = Math.sqrt(Math.pow(b,2)+Math.pow(c,2) - 2 * b * c * Math.cos(Math.toRadians(e)));\n\n\t\t//ใ“ใฎๆ™‚็‚นใงoใซๆ•ฐๅ€คใŒๅ…ฅใฃใฆใ„ใ‚‹\n\t\tSystem.out.println(r);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int jisin_nagasa = sc.nextInt();", "jisin_nagasa", "sc.nextInt()", "sc.nextInt", "sc", "int hunsin_nagasa = sc.nextInt();", "hunsin_nagasa", "sc.nextInt()", "sc.nextInt", "sc", "int jikan = sc.nextInt();", "jikan", "sc.nextInt()", "sc.nextInt", "sc", "int hun = sc.nextInt();", "hun", "sc.nextInt()", "sc.nextInt", "sc", "double jisin_kakudo = (jikan * 60 + hun) * 0.5;", "jisin_kakudo", "(jikan * 60 + hun) * 0.5", "(jikan * 60 + hun)", "jikan * 60", "jikan", "60", "hun", "0.5", "double hunsin_kakudo = hun * 6;", "hunsin_kakudo", "hun * 6", "hun", "6", "double kakudo_sa = 0;", "kakudo_sa", "0", "if (jisin_kakudo > hunsin_kakudo) {\n\t\t\tkakudo_sa = jisin_kakudo - hunsin_kakudo;\n\t\t} else {\n\t\t\tkakudo_sa = hunsin_kakudo - jisin_kakudo;\n\t\t}", "jisin_kakudo > hunsin_kakudo", "jisin_kakudo", "hunsin_kakudo", "{\n\t\t\tkakudo_sa = jisin_kakudo - hunsin_kakudo;\n\t\t}", "kakudo_sa = jisin_kakudo - hunsin_kakudo", "kakudo_sa", "jisin_kakudo - hunsin_kakudo", "jisin_kakudo", "hunsin_kakudo", "{\n\t\t\tkakudo_sa = hunsin_kakudo - jisin_kakudo;\n\t\t}", "kakudo_sa = hunsin_kakudo - jisin_kakudo", "kakudo_sa", "hunsin_kakudo - jisin_kakudo", "hunsin_kakudo", "jisin_kakudo", "double b = jisin_nagasa;", "b", "jisin_nagasa", "double c = hunsin_nagasa;", "c", "hunsin_nagasa", "double e = kakudo_sa;", "e", "kakudo_sa", "double r = Math.sqrt(Math.pow(b,2)+Math.pow(c,2) - 2 * b * c * Math.cos(Math.toRadians(e)));", "r", "Math.sqrt(Math.pow(b,2)+Math.pow(c,2) - 2 * b * c * Math.cos(Math.toRadians(e)))", "Math.sqrt", "Math", "Math.pow(b,2)+Math.pow(c,2) - 2 * b * c * Math.cos(Math.toRadians(e))", "Math.pow(b,2)+Math.pow(c,2)", "Math.pow(b,2)", "Math.pow", "Math", "b", "2", "Math.pow(c,2)", "Math.pow", "Math", "c", "2", "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", "public class Main {\n\tpublic static void main(String[] args){\n\t\t\t\tScanner sc = new Scanner(System.in);\n\t\t// ๆ•ดๆ•ฐใฎๅ…ฅๅŠ›\n\t\tint jisin_nagasa = sc.nextInt();\n\t\tint hunsin_nagasa = sc.nextInt();\n\t\tint jikan = sc.nextInt();\n\t\tint hun = sc.nextInt();\n\n\t\tdouble jisin_kakudo = (jikan * 60 + hun) * 0.5;\n\t\tdouble hunsin_kakudo = hun * 6;\n\n\t\tdouble kakudo_sa = 0;\n\n\t\tif (jisin_kakudo > hunsin_kakudo) {\n\t\t\tkakudo_sa = jisin_kakudo - hunsin_kakudo;\n\t\t} else {\n\t\t\tkakudo_sa = hunsin_kakudo - jisin_kakudo;\n\t\t}\n\n\t\tdouble b = jisin_nagasa;\t//1่พบ็›ฎ\n\t\tdouble c = hunsin_nagasa;\t//2่พบ็›ฎ\n\n\t\tdouble e = kakudo_sa;\t\t\t//้–“ใฎ่ง’ๅบฆ\n\n\t\tdouble r = Math.sqrt(Math.pow(b,2)+Math.pow(c,2) - 2 * b * c * Math.cos(Math.toRadians(e)));\n\n\t\t//ใ“ใฎๆ™‚็‚นใงoใซๆ•ฐๅ€คใŒๅ…ฅใฃใฆใ„ใ‚‹\n\t\tSystem.out.println(r);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\t\t\tScanner sc = new Scanner(System.in);\n\t\t// ๆ•ดๆ•ฐใฎๅ…ฅๅŠ›\n\t\tint jisin_nagasa = sc.nextInt();\n\t\tint hunsin_nagasa = sc.nextInt();\n\t\tint jikan = sc.nextInt();\n\t\tint hun = sc.nextInt();\n\n\t\tdouble jisin_kakudo = (jikan * 60 + hun) * 0.5;\n\t\tdouble hunsin_kakudo = hun * 6;\n\n\t\tdouble kakudo_sa = 0;\n\n\t\tif (jisin_kakudo > hunsin_kakudo) {\n\t\t\tkakudo_sa = jisin_kakudo - hunsin_kakudo;\n\t\t} else {\n\t\t\tkakudo_sa = hunsin_kakudo - jisin_kakudo;\n\t\t}\n\n\t\tdouble b = jisin_nagasa;\t//1่พบ็›ฎ\n\t\tdouble c = hunsin_nagasa;\t//2่พบ็›ฎ\n\n\t\tdouble e = kakudo_sa;\t\t\t//้–“ใฎ่ง’ๅบฆ\n\n\t\tdouble r = Math.sqrt(Math.pow(b,2)+Math.pow(c,2) - 2 * b * c * Math.cos(Math.toRadians(e)));\n\n\t\t//ใ“ใฎๆ™‚็‚นใงoใซๆ•ฐๅ€คใŒๅ…ฅใฃใฆใ„ใ‚‹\n\t\tSystem.out.println(r);\n\t}\n}", "Main" ]
import java.text.DecimalFormat; import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // ๆ•ดๆ•ฐใฎๅ…ฅๅŠ› int jisin_nagasa = sc.nextInt(); int hunsin_nagasa = sc.nextInt(); int jikan = sc.nextInt(); int hun = sc.nextInt(); double jisin_kakudo = (jikan * 60 + hun) * 0.5; double hunsin_kakudo = hun * 6; double kakudo_sa = 0; if (jisin_kakudo > hunsin_kakudo) { kakudo_sa = jisin_kakudo - hunsin_kakudo; } else { kakudo_sa = hunsin_kakudo - jisin_kakudo; } double b = jisin_nagasa; //1่พบ็›ฎ double c = hunsin_nagasa; //2่พบ็›ฎ double e = kakudo_sa; //้–“ใฎ่ง’ๅบฆ double r = Math.sqrt(Math.pow(b,2)+Math.pow(c,2) - 2 * b * c * Math.cos(Math.toRadians(e))); //ใ“ใฎๆ™‚็‚นใงoใซๆ•ฐๅ€คใŒๅ…ฅใฃใฆใ„ใ‚‹ System.out.println(r); } }
[ 7, 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, 2, 2, 17, 13, 13, 41, 13, 2, 2, 17, 17, 13, 41, 13, 2, 2, 17, 17, 13, 41, 13, 17, 14, 2, 13, 13, 30, 0, 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, 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, 4, 18, 13, 13, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 13, 41, 13, 13, 42, 17, 30, 40, 13, 0, 13, 17, 40, 13, 14, 2, 13, 18, 13, 13, 30, 29, 40, 17, 14, 2, 18, 13, 13, 18, 13, 13, 30, 3, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 42, 17, 30, 0, 13, 17, 40, 13, 14, 2, 13, 18, 13, 13, 30, 29, 40, 17, 14, 2, 18, 13, 13, 18, 13, 13, 30, 3, 0, 13, 17, 42, 17, 30, 40, 13, 40, 13, 14, 2, 13, 18, 13, 13, 30, 29, 40, 17, 14, 2, 18, 13, 13, 18, 13, 13, 30, 3, 29, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 18, 13, 13, 2, 4, 18, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 2, 13, 13, 4, 18, 13, 4, 18, 13, 13, 13, 14, 2, 13, 17, 30, 29, 17, 29, 17, 23, 13, 23, 13, 23, 13, 6, 13, 41, 13, 17, 41, 13, 17, 12, 13, 30, 0, 13, 20, 0, 13, 17, 23, 13, 12, 13, 30, 14, 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, 14, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 37, 20, 30, 29, 4, 18, 13, 29, 4, 18, 13, 17, 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, 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, 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 ], [ 531, 17 ], [ 531, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 20, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 20, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 20, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 20, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 20, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 20, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 20, 65 ], [ 65, 66 ], [ 65, 67 ], [ 20, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 68, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 76, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 20, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 103, 105 ], [ 20, 106 ], [ 106, 107 ], [ 106, 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 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 129, 130 ], [ 130, 131 ], [ 129, 132 ], [ 20, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 133, 138 ], [ 138, 139 ], [ 139, 140 ], [ 138, 141 ], [ 18, 142 ], [ 142, 143 ], [ 531, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 146, 150 ], [ 150, 151 ], [ 150, 152 ], [ 146, 153 ], [ 153, 154 ], [ 153, 155 ], [ 146, 156 ], [ 156, 157 ], [ 156, 158 ], [ 158, 159 ], [ 159, 160 ], [ 158, 161 ], [ 161, 162 ], [ 161, 163 ], [ 158, 164 ], [ 164, 165 ], [ 158, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 169, 170 ], [ 169, 171 ], [ 166, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 158, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 177, 181 ], [ 181, 182 ], [ 181, 183 ], [ 176, 184 ], [ 184, 185 ], [ 146, 186 ], [ 186, 187 ], [ 144, 188 ], [ 188, 189 ], [ 144, 190 ], [ 190, 191 ], [ 531, 192 ], [ 192, 193 ], [ 192, 194 ], [ 194, 195 ], [ 195, 196 ], [ 195, 197 ], [ 194, 198 ], [ 198, 199 ], [ 198, 200 ], [ 194, 201 ], [ 201, 202 ], [ 201, 203 ], [ 203, 204 ], [ 204, 205 ], [ 204, 206 ], [ 203, 207 ], [ 207, 208 ], [ 203, 209 ], [ 209, 210 ], [ 210, 211 ], [ 210, 212 ], [ 212, 213 ], [ 212, 214 ], [ 209, 215 ], [ 215, 216 ], [ 216, 217 ], [ 217, 218 ], [ 203, 219 ], [ 219, 220 ], [ 220, 221 ], [ 221, 222 ], [ 221, 223 ], [ 220, 224 ], [ 224, 225 ], [ 224, 226 ], [ 219, 227 ], [ 227, 228 ], [ 194, 229 ], [ 229, 230 ], [ 229, 231 ], [ 194, 232 ], [ 232, 233 ], [ 232, 234 ], [ 234, 235 ], [ 235, 236 ], [ 234, 237 ], [ 237, 238 ], [ 234, 239 ], [ 239, 240 ], [ 240, 241 ], [ 240, 242 ], [ 242, 243 ], [ 242, 244 ], [ 239, 245 ], [ 245, 246 ], [ 246, 247 ], [ 247, 248 ], [ 234, 249 ], [ 249, 250 ], [ 250, 251 ], [ 251, 252 ], [ 251, 253 ], [ 250, 254 ], [ 254, 255 ], [ 254, 256 ], [ 249, 257 ], [ 257, 258 ], [ 194, 259 ], [ 259, 260 ], [ 192, 261 ], [ 261, 262 ], [ 531, 263 ], [ 263, 264 ], [ 263, 265 ], [ 265, 266 ], [ 266, 267 ], [ 267, 268 ], [ 268, 269 ], [ 267, 270 ], [ 270, 271 ], [ 270, 272 ], [ 267, 273 ], [ 273, 274 ], [ 274, 275 ], [ 275, 276 ], [ 274, 277 ], [ 273, 278 ], [ 263, 279 ], [ 279, 280 ], [ 263, 281 ], [ 281, 282 ], [ 531, 283 ], [ 283, 284 ], [ 283, 285 ], [ 285, 286 ], [ 286, 287 ], [ 286, 288 ], [ 289, 290 ], [ 290, 291 ], [ 285, 292 ], [ 292, 293 ], [ 293, 294 ], [ 294, 295 ], [ 294, 296 ], [ 292, 297 ], [ 297, 298 ], [ 297, 299 ], [ 299, 300 ], [ 299, 301 ], [ 292, 302 ], [ 302, 303 ], [ 303, 304 ], [ 292, 305 ], [ 306, 306 ], [ 306, 307 ], [ 307, 308 ], [ 308, 309 ], [ 308, 310 ], [ 307, 311 ], [ 311, 312 ], [ 312, 313 ], [ 311, 314 ], [ 285, 315 ], [ 315, 316 ], [ 283, 317 ], [ 317, 318 ], [ 531, 319 ], [ 319, 320 ], [ 319, 321 ], [ 321, 322 ], [ 322, 323 ], [ 322, 324 ], [ 321, 325 ], [ 325, 326 ], [ 326, 327 ], [ 327, 328 ], [ 327, 329 ], [ 325, 330 ], [ 330, 331 ], [ 330, 332 ], [ 332, 333 ], [ 333, 334 ], [ 325, 335 ], [ 335, 336 ], [ 336, 337 ], [ 325, 338 ], [ 339, 339 ], [ 339, 340 ], [ 340, 341 ], [ 340, 342 ], [ 342, 343 ], [ 343, 344 ], [ 344, 345 ], [ 344, 346 ], [ 343, 347 ], [ 347, 348 ], [ 348, 349 ], [ 347, 350 ], [ 350, 351 ], [ 351, 352 ], [ 350, 353 ], [ 342, 354 ], [ 321, 355 ], [ 355, 356 ], [ 356, 357 ], [ 356, 358 ], [ 355, 359 ], [ 359, 360 ], [ 360, 361 ], [ 321, 362 ], [ 362, 363 ], [ 319, 364 ], [ 364, 365 ], [ 319, 366 ], [ 366, 367 ], [ 319, 368 ], [ 368, 369 ], [ 531, 370 ], [ 370, 371 ], [ 370, 372 ], [ 372, 373 ], [ 372, 374 ], [ 370, 375 ], [ 375, 376 ], [ 375, 377 ], [ 370, 378 ], [ 378, 379 ], [ 378, 380 ], [ 380, 381 ], [ 381, 382 ], [ 381, 383 ], [ 380, 384 ], [ 384, 385 ], [ 384, 386 ], [ 378, 387 ], [ 387, 388 ], [ 370, 389 ], [ 389, 390 ], [ 389, 391 ], [ 391, 392 ], [ 392, 393 ], [ 393, 394 ], [ 394, 395 ], [ 394, 396 ], [ 393, 397 ], [ 397, 398 ], [ 398, 399 ], [ 399, 400 ], [ 392, 401 ], [ 401, 402 ], [ 402, 403 ], [ 403, 404 ], [ 403, 405 ], [ 405, 406 ], [ 406, 407 ], [ 402, 408 ], [ 408, 409 ], [ 409, 410 ], [ 409, 411 ], [ 391, 412 ], [ 412, 413 ], [ 413, 414 ], [ 414, 415 ], [ 370, 416 ], [ 416, 417 ], [ 416, 418 ], [ 418, 419 ], [ 419, 420 ], [ 420, 421 ], [ 421, 422 ], [ 421, 423 ], [ 420, 424 ], [ 424, 425 ], [ 425, 426 ], [ 426, 427 ], [ 419, 428 ], [ 428, 429 ], [ 429, 430 ], [ 430, 431 ], [ 430, 432 ], [ 432, 433 ], [ 433, 434 ], [ 429, 435 ], [ 435, 436 ], [ 436, 437 ], [ 437, 438 ], [ 438, 439 ], [ 418, 440 ], [ 440, 441 ], [ 441, 442 ], [ 442, 443 ], [ 441, 444 ], [ 370, 445 ], [ 445, 446 ], [ 445, 447 ], [ 447, 448 ], [ 448, 449 ], [ 449, 450 ], [ 450, 451 ], [ 449, 452 ], [ 452, 453 ], [ 370, 454 ], [ 454, 455 ], [ 454, 456 ], [ 456, 457 ], [ 457, 458 ], [ 458, 459 ], [ 459, 460 ], [ 458, 461 ], [ 461, 462 ], [ 370, 463 ], [ 463, 464 ], [ 463, 465 ], [ 465, 466 ], [ 466, 467 ], [ 467, 468 ], [ 468, 469 ], [ 467, 470 ], [ 470, 471 ], [ 370, 472 ], [ 472, 473 ], [ 472, 474 ], [ 474, 475 ], [ 475, 476 ], [ 475, 477 ], [ 474, 479 ], [ 479, 480 ], [ 480, 481 ], [ 481, 482 ], [ 481, 483 ], [ 479, 484 ], [ 484, 485 ], [ 484, 486 ], [ 479, 487 ], [ 487, 488 ], [ 488, 489 ], [ 479, 490 ], [ 490, 491 ], [ 491, 492 ], [ 492, 493 ], [ 492, 494 ], [ 491, 495 ], [ 495, 496 ], [ 474, 497 ], [ 497, 498 ], [ 472, 499 ], [ 499, 500 ], [ 370, 501 ], [ 501, 502 ], [ 501, 503 ], [ 503, 504 ], [ 504, 505 ], [ 504, 506 ], [ 503, 508 ], [ 508, 509 ], [ 509, 510 ], [ 510, 511 ], [ 510, 512 ], [ 508, 513 ], [ 513, 514 ], [ 513, 515 ], [ 508, 516 ], [ 516, 517 ], [ 517, 518 ], [ 508, 519 ], [ 519, 520 ], [ 520, 521 ], [ 521, 522 ], [ 521, 523 ], [ 520, 524 ], [ 524, 525 ], [ 503, 526 ], [ 526, 527 ], [ 501, 528 ], [ 528, 529 ], [ 0, 530 ], [ 530, 531 ], [ 530, 532 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.util.*;\n\n\npublic class Main {\n\n public static void main(String[] args) {\n FastScanner sc = new FastScanner(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 currentMin = 60 * h + m;\n double hariH = (360d / 720d) * currentMin;\n double hariM = (360d / 60d) * m;\n\n double kakudo = 0d;\n\n if(hariH == hariM){\n kakudo = 0d;\n }else if(hariM > hariH){\n kakudo = hariM - hariH;\n }else if(hariH > hariM){\n kakudo = hariH - hariM;\n }\n if(kakudo > 180d){\n kakudo = 360d - kakudo;\n }\n\n double taikaku = Math.pow(a,2) + Math.pow(b , 2) - 2*a*b*Math.cos(Math.toRadians(kakudo));\n System.out.println(Math.sqrt(taikaku));\n\n\n\n }\n /**\n\t * ๅพช็’ฐใฎ้•ทใ•ใ‚’่ฟ”ใ—ใพใ™ใ€‚\n\t *\n\t * @param arr\n\t * ๆ•ฐๅˆ—\n\t * @param startPos\n\t * ๅพช็’ฐใฎ้–‹ๅง‹ไฝ็ฝฎ\n\t *\n\t * @return ๅพช็’ฐใฎ้•ทใ•ใ‚’่ฟ”ใ—ใพใ™ใ€‚ๅพช็’ฐใ‚’ๆคœๅ‡บใงใใชใ‹ใฃใŸๅ ดๅˆใฏ-1ใ‚’่ฟ”ใ—ใพใ™ใ€‚\n\t */\n\tprivate static int getCycle(int[] arr, int startPos) {\n\t\tint cycle = 0;\n\t\tint a = startPos;\n\t\tint b = startPos;\n\t\twhile (true) {\n\t\t\tcycle++;\n\t\t\ta += 2;\n\t\t\tb++;\n\t\t\tif (a >= arr.length) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (arr[a] == arr[b]) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn cycle;\n\t}\n /**\n\t * ๅพช็’ฐใฎ้–‹ๅง‹ไฝ็ฝฎใ‚’่ฟ”ใ—ใพใ™ใ€‚\n\t *\n\t * @param arr\n\t * ๆ•ฐๅˆ—\n\t *\n\t * @return ๅพช็’ฐ้–‹ๅง‹ไฝ็ฝฎใ€‚ๅพช็’ฐใ‚’ๆคœๅ‡บใงใใชใ„ๅ ดๅˆใฏ-1ใ‚’่ฟ”ใ—ใพใ™ใ€‚\n\t */\n\tprivate static int getStartPosition(int[] arr) {\n\t\tint a = 0;\n\t\tint b = 0;\n\t\twhile (true) {\n\t\t\ta += 2;\n\t\t\tb++;\n\t\t\tif (a >= arr.length) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (arr[a] == arr[b]) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\ta = 0;\n\t\twhile (true) {\n\t\t\ta++;\n\t\t\tb++;\n\t\t\tif (b >= arr.length) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (arr[a] == arr[b]) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}\n public static Double calculate(Double base, Double n) {\n return Math.pow(Math.E, Math.log(base)/n);\n }\n\n public static int[] toArray(List<Integer> target) {\n\n final int[] result = new int[target.size()];\n for (int i = 0; i < result.length; i++) {\n result[i] = target.get(i);\n }\n\n return result;\n }\n public static boolean isMultiple (String s, int base, int m) {\n\tint temp = 0;\n\tfor (int i=0; i<s.length(); i++) {\n\t\ttemp = (temp*base+Character.getNumericValue(s.charAt(i)))%m;\n\t}\n\tif (temp==0) {return true;}\n\treturn false;\n}\nstatic class FastScanner {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public FastScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n tokenizer = null;\n }\n\n public String next() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public String nextLine() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public long[] nextLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.*;", "util.*", "java", "public class Main {\n\n public static void main(String[] args) {\n FastScanner sc = new FastScanner(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 currentMin = 60 * h + m;\n double hariH = (360d / 720d) * currentMin;\n double hariM = (360d / 60d) * m;\n\n double kakudo = 0d;\n\n if(hariH == hariM){\n kakudo = 0d;\n }else if(hariM > hariH){\n kakudo = hariM - hariH;\n }else if(hariH > hariM){\n kakudo = hariH - hariM;\n }\n if(kakudo > 180d){\n kakudo = 360d - kakudo;\n }\n\n double taikaku = Math.pow(a,2) + Math.pow(b , 2) - 2*a*b*Math.cos(Math.toRadians(kakudo));\n System.out.println(Math.sqrt(taikaku));\n\n\n\n }\n /**\n\t * ๅพช็’ฐใฎ้•ทใ•ใ‚’่ฟ”ใ—ใพใ™ใ€‚\n\t *\n\t * @param arr\n\t * ๆ•ฐๅˆ—\n\t * @param startPos\n\t * ๅพช็’ฐใฎ้–‹ๅง‹ไฝ็ฝฎ\n\t *\n\t * @return ๅพช็’ฐใฎ้•ทใ•ใ‚’่ฟ”ใ—ใพใ™ใ€‚ๅพช็’ฐใ‚’ๆคœๅ‡บใงใใชใ‹ใฃใŸๅ ดๅˆใฏ-1ใ‚’่ฟ”ใ—ใพใ™ใ€‚\n\t */\n\tprivate static int getCycle(int[] arr, int startPos) {\n\t\tint cycle = 0;\n\t\tint a = startPos;\n\t\tint b = startPos;\n\t\twhile (true) {\n\t\t\tcycle++;\n\t\t\ta += 2;\n\t\t\tb++;\n\t\t\tif (a >= arr.length) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (arr[a] == arr[b]) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn cycle;\n\t}\n /**\n\t * ๅพช็’ฐใฎ้–‹ๅง‹ไฝ็ฝฎใ‚’่ฟ”ใ—ใพใ™ใ€‚\n\t *\n\t * @param arr\n\t * ๆ•ฐๅˆ—\n\t *\n\t * @return ๅพช็’ฐ้–‹ๅง‹ไฝ็ฝฎใ€‚ๅพช็’ฐใ‚’ๆคœๅ‡บใงใใชใ„ๅ ดๅˆใฏ-1ใ‚’่ฟ”ใ—ใพใ™ใ€‚\n\t */\n\tprivate static int getStartPosition(int[] arr) {\n\t\tint a = 0;\n\t\tint b = 0;\n\t\twhile (true) {\n\t\t\ta += 2;\n\t\t\tb++;\n\t\t\tif (a >= arr.length) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (arr[a] == arr[b]) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\ta = 0;\n\t\twhile (true) {\n\t\t\ta++;\n\t\t\tb++;\n\t\t\tif (b >= arr.length) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (arr[a] == arr[b]) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}\n public static Double calculate(Double base, Double n) {\n return Math.pow(Math.E, Math.log(base)/n);\n }\n\n public static int[] toArray(List<Integer> target) {\n\n final int[] result = new int[target.size()];\n for (int i = 0; i < result.length; i++) {\n result[i] = target.get(i);\n }\n\n return result;\n }\n public static boolean isMultiple (String s, int base, int m) {\n\tint temp = 0;\n\tfor (int i=0; i<s.length(); i++) {\n\t\ttemp = (temp*base+Character.getNumericValue(s.charAt(i)))%m;\n\t}\n\tif (temp==0) {return true;}\n\treturn false;\n}\nstatic class FastScanner {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public FastScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n tokenizer = null;\n }\n\n public String next() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public String nextLine() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public long[] nextLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n }\n}", "Main", "public static void main(String[] args) {\n FastScanner sc = new FastScanner(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 currentMin = 60 * h + m;\n double hariH = (360d / 720d) * currentMin;\n double hariM = (360d / 60d) * m;\n\n double kakudo = 0d;\n\n if(hariH == hariM){\n kakudo = 0d;\n }else if(hariM > hariH){\n kakudo = hariM - hariH;\n }else if(hariH > hariM){\n kakudo = hariH - hariM;\n }\n if(kakudo > 180d){\n kakudo = 360d - kakudo;\n }\n\n double taikaku = Math.pow(a,2) + Math.pow(b , 2) - 2*a*b*Math.cos(Math.toRadians(kakudo));\n System.out.println(Math.sqrt(taikaku));\n\n\n\n }", "main", "{\n FastScanner sc = new FastScanner(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 currentMin = 60 * h + m;\n double hariH = (360d / 720d) * currentMin;\n double hariM = (360d / 60d) * m;\n\n double kakudo = 0d;\n\n if(hariH == hariM){\n kakudo = 0d;\n }else if(hariM > hariH){\n kakudo = hariM - hariH;\n }else if(hariH > hariM){\n kakudo = hariH - hariM;\n }\n if(kakudo > 180d){\n kakudo = 360d - kakudo;\n }\n\n double taikaku = Math.pow(a,2) + Math.pow(b , 2) - 2*a*b*Math.cos(Math.toRadians(kakudo));\n System.out.println(Math.sqrt(taikaku));\n\n\n\n }", "FastScanner sc = new FastScanner(System.in);", "sc", "new FastScanner(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 currentMin = 60 * h + m;", "currentMin", "60 * h + m", "60 * h", "60", "h", "m", "double hariH = (360d / 720d) * currentMin;", "hariH", "(360d / 720d) * currentMin", "(360d / 720d)", "360d", "720d", "currentMin", "double hariM = (360d / 60d) * m;", "hariM", "(360d / 60d) * m", "(360d / 60d)", "360d", "60d", "m", "double kakudo = 0d;", "kakudo", "0d", "if(hariH == hariM){\n kakudo = 0d;\n }else if(hariM > hariH){\n kakudo = hariM - hariH;\n }else if(hariH > hariM){\n kakudo = hariH - hariM;\n }", "hariH == hariM", "hariH", "hariM", "{\n kakudo = 0d;\n }", "kakudo = 0d", "kakudo", "0d", "if(hariM > hariH){\n kakudo = hariM - hariH;\n }else if(hariH > hariM){\n kakudo = hariH - hariM;\n }", "hariM > hariH", "hariM", "hariH", "{\n kakudo = hariM - hariH;\n }", "kakudo = hariM - hariH", "kakudo", "hariM - hariH", "hariM", "hariH", "if(hariH > hariM){\n kakudo = hariH - hariM;\n }", "hariH > hariM", "hariH", "hariM", "{\n kakudo = hariH - hariM;\n }", "kakudo = hariH - hariM", "kakudo", "hariH - hariM", "hariH", "hariM", "if(kakudo > 180d){\n kakudo = 360d - kakudo;\n }", "kakudo > 180d", "kakudo", "180d", "{\n kakudo = 360d - kakudo;\n }", "kakudo = 360d - kakudo", "kakudo", "360d - kakudo", "360d", "kakudo", "double taikaku = Math.pow(a,2) + Math.pow(b , 2) - 2*a*b*Math.cos(Math.toRadians(kakudo));", "taikaku", "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", "System.out.println(Math.sqrt(taikaku))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(taikaku)", "Math.sqrt", "Math", "taikaku", "String[] args", "args", "/**\n\t * ๅพช็’ฐใฎ้•ทใ•ใ‚’่ฟ”ใ—ใพใ™ใ€‚\n\t *\n\t * @param arr\n\t * ๆ•ฐๅˆ—\n\t * @param startPos\n\t * ๅพช็’ฐใฎ้–‹ๅง‹ไฝ็ฝฎ\n\t *\n\t * @return ๅพช็’ฐใฎ้•ทใ•ใ‚’่ฟ”ใ—ใพใ™ใ€‚ๅพช็’ฐใ‚’ๆคœๅ‡บใงใใชใ‹ใฃใŸๅ ดๅˆใฏ-1ใ‚’่ฟ”ใ—ใพใ™ใ€‚\n\t */\n\tprivate static int getCycle(int[] arr, int startPos) {\n\t\tint cycle = 0;\n\t\tint a = startPos;\n\t\tint b = startPos;\n\t\twhile (true) {\n\t\t\tcycle++;\n\t\t\ta += 2;\n\t\t\tb++;\n\t\t\tif (a >= arr.length) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (arr[a] == arr[b]) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn cycle;\n\t}", "getCycle", "{\n\t\tint cycle = 0;\n\t\tint a = startPos;\n\t\tint b = startPos;\n\t\twhile (true) {\n\t\t\tcycle++;\n\t\t\ta += 2;\n\t\t\tb++;\n\t\t\tif (a >= arr.length) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (arr[a] == arr[b]) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn cycle;\n\t}", "int cycle = 0;", "cycle", "0", "int a = startPos;", "a", "startPos", "int b = startPos;", "b", "startPos", "while (true) {\n\t\t\tcycle++;\n\t\t\ta += 2;\n\t\t\tb++;\n\t\t\tif (a >= arr.length) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (arr[a] == arr[b]) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tcycle++;\n\t\t\ta += 2;\n\t\t\tb++;\n\t\t\tif (a >= arr.length) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (arr[a] == arr[b]) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "cycle++", "cycle", "a += 2", "a", "2", "b++", "b", "if (a >= arr.length) {\n\t\t\t\treturn -1;\n\t\t\t}", "a >= arr.length", "a", "arr.length", "arr", "arr.length", "{\n\t\t\t\treturn -1;\n\t\t\t}", "return -1;", "-1", "1", "if (arr[a] == arr[b]) {\n\t\t\t\tbreak;\n\t\t\t}", "arr[a] == arr[b]", "arr[a]", "arr", "a", "arr[b]", "arr", "b", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "return cycle;", "cycle", "int[] arr", "arr", "int startPos", "startPos", "/**\n\t * ๅพช็’ฐใฎ้–‹ๅง‹ไฝ็ฝฎใ‚’่ฟ”ใ—ใพใ™ใ€‚\n\t *\n\t * @param arr\n\t * ๆ•ฐๅˆ—\n\t *\n\t * @return ๅพช็’ฐ้–‹ๅง‹ไฝ็ฝฎใ€‚ๅพช็’ฐใ‚’ๆคœๅ‡บใงใใชใ„ๅ ดๅˆใฏ-1ใ‚’่ฟ”ใ—ใพใ™ใ€‚\n\t */\n\tprivate static int getStartPosition(int[] arr) {\n\t\tint a = 0;\n\t\tint b = 0;\n\t\twhile (true) {\n\t\t\ta += 2;\n\t\t\tb++;\n\t\t\tif (a >= arr.length) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (arr[a] == arr[b]) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\ta = 0;\n\t\twhile (true) {\n\t\t\ta++;\n\t\t\tb++;\n\t\t\tif (b >= arr.length) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (arr[a] == arr[b]) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}", "getStartPosition", "{\n\t\tint a = 0;\n\t\tint b = 0;\n\t\twhile (true) {\n\t\t\ta += 2;\n\t\t\tb++;\n\t\t\tif (a >= arr.length) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (arr[a] == arr[b]) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\ta = 0;\n\t\twhile (true) {\n\t\t\ta++;\n\t\t\tb++;\n\t\t\tif (b >= arr.length) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (arr[a] == arr[b]) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}", "int a = 0;", "a", "0", "int b = 0;", "b", "0", "while (true) {\n\t\t\ta += 2;\n\t\t\tb++;\n\t\t\tif (a >= arr.length) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (arr[a] == arr[b]) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "true", "{\n\t\t\ta += 2;\n\t\t\tb++;\n\t\t\tif (a >= arr.length) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (arr[a] == arr[b]) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "a += 2", "a", "2", "b++", "b", "if (a >= arr.length) {\n\t\t\t\treturn -1;\n\t\t\t}", "a >= arr.length", "a", "arr.length", "arr", "arr.length", "{\n\t\t\t\treturn -1;\n\t\t\t}", "return -1;", "-1", "1", "if (arr[a] == arr[b]) {\n\t\t\t\tbreak;\n\t\t\t}", "arr[a] == arr[b]", "arr[a]", "arr", "a", "arr[b]", "arr", "b", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "a = 0", "a", "0", "while (true) {\n\t\t\ta++;\n\t\t\tb++;\n\t\t\tif (b >= arr.length) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (arr[a] == arr[b]) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "true", "{\n\t\t\ta++;\n\t\t\tb++;\n\t\t\tif (b >= arr.length) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (arr[a] == arr[b]) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "a++", "a", "b++", "b", "if (b >= arr.length) {\n\t\t\t\treturn -1;\n\t\t\t}", "b >= arr.length", "b", "arr.length", "arr", "arr.length", "{\n\t\t\t\treturn -1;\n\t\t\t}", "return -1;", "-1", "1", "if (arr[a] == arr[b]) {\n\t\t\t\tbreak;\n\t\t\t}", "arr[a] == arr[b]", "arr[a]", "arr", "a", "arr[b]", "arr", "b", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "return a;", "a", "int[] arr", "arr", "public static Double calculate(Double base, Double n) {\n return Math.pow(Math.E, Math.log(base)/n);\n }", "calculate", "{\n return Math.pow(Math.E, Math.log(base)/n);\n }", "return Math.pow(Math.E, Math.log(base)/n);", "Math.pow(Math.E, Math.log(base)/n)", "Math.pow", "Math", "Math.E", "Math", "Math.E", "Math.log(base)/n", "Math.log(base)", "Math.log", "Math", "base", "n", "Double base", "base", "Double n", "n", "public static int[] toArray(List<Integer> target) {\n\n final int[] result = new int[target.size()];\n for (int i = 0; i < result.length; i++) {\n result[i] = target.get(i);\n }\n\n return result;\n }", "toArray", "{\n\n final int[] result = new int[target.size()];\n for (int i = 0; i < result.length; i++) {\n result[i] = target.get(i);\n }\n\n return result;\n }", "final int[] result = new int[target.size()];", "result", "new int[target.size()]", "target.size()", "target.size", "target", "for (int i = 0; i < result.length; i++) {\n result[i] = target.get(i);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < result.length", "i", "result.length", "result", "result.length", "i++", "i++", "i", "{\n result[i] = target.get(i);\n }", "{\n result[i] = target.get(i);\n }", "result[i] = target.get(i)", "result[i]", "result", "i", "target.get(i)", "target.get", "target", "i", "return result;", "result", "List<Integer> target", "target", "public static boolean isMultiple (String s, int base, int m) {\n\tint temp = 0;\n\tfor (int i=0; i<s.length(); i++) {\n\t\ttemp = (temp*base+Character.getNumericValue(s.charAt(i)))%m;\n\t}\n\tif (temp==0) {return true;}\n\treturn false;\n}", "isMultiple", "{\n\tint temp = 0;\n\tfor (int i=0; i<s.length(); i++) {\n\t\ttemp = (temp*base+Character.getNumericValue(s.charAt(i)))%m;\n\t}\n\tif (temp==0) {return true;}\n\treturn false;\n}", "int temp = 0;", "temp", "0", "for (int i=0; i<s.length(); i++) {\n\t\ttemp = (temp*base+Character.getNumericValue(s.charAt(i)))%m;\n\t}", "int i=0;", "int i=0;", "i", "0", "i<s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n\t\ttemp = (temp*base+Character.getNumericValue(s.charAt(i)))%m;\n\t}", "{\n\t\ttemp = (temp*base+Character.getNumericValue(s.charAt(i)))%m;\n\t}", "temp = (temp*base+Character.getNumericValue(s.charAt(i)))%m", "temp", "(temp*base+Character.getNumericValue(s.charAt(i)))%m", "(temp*base+Character.getNumericValue(s.charAt(i)))", "temp*base", "temp", "base", "Character.getNumericValue(s.charAt(i))", "Character.getNumericValue", "Character", "s.charAt(i)", "s.charAt", "s", "i", "m", "if (temp==0) {return true;}", "temp==0", "temp", "0", "{return true;}", "return true;", "true", "return false;", "false", "String s", "s", "int base", "base", "int m", "m", "static class FastScanner {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public FastScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n tokenizer = null;\n }\n\n public String next() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public String nextLine() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public long[] nextLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n }", "FastScanner", "private BufferedReader reader = null;", "reader", "null", "private StringTokenizer tokenizer = null;", "tokenizer", "null", "public FastScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n tokenizer = null;\n }", "FastScanner", "{\n reader = new BufferedReader(new InputStreamReader(in));\n tokenizer = null;\n }", "reader = new BufferedReader(new InputStreamReader(in))", "reader", "new BufferedReader(new InputStreamReader(in))", "tokenizer = null", "tokenizer", "null", "InputStream in", "in", "public String next() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }", "next", "{\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }", "if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "tokenizer == null || !tokenizer.hasMoreTokens()", "tokenizer == null", "tokenizer", "null", "!tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens", "tokenizer", "{\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }", "catch (IOException e) {\n throw new RuntimeException(e);\n }", "IOException e", "{\n throw new RuntimeException(e);\n }", "throw new RuntimeException(e);", "new RuntimeException(e)", "{\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", "public String nextLine() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }", "nextLine", "{\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }", "if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "tokenizer == null || !tokenizer.hasMoreTokens()", "tokenizer == null", "tokenizer", "null", "!tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens", "tokenizer", "{\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }", "catch (IOException e) {\n throw new RuntimeException(e);\n }", "IOException e", "{\n throw new RuntimeException(e);\n }", "throw new RuntimeException(e);", "new RuntimeException(e)", "{\n return reader.readLine();\n }", "return reader.readLine();", "reader.readLine()", "reader.readLine", "reader", "return tokenizer.nextToken(\"\\n\");", "tokenizer.nextToken(\"\\n\")", "tokenizer.nextToken", "tokenizer", "\"\\n\"", "public 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 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", "public 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", "public int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }", "nextIntArray", "{\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }", "int[] a = new int[n];", "a", "new int[n]", "n", "for (int i = 0; i < n; i++)\n 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", "public long[] nextLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }", "nextLongArray", "{\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }", "long[] a = new long[n];", "a", "new long[n]", "n", "for (int i = 0; i < n; i++)\n a[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 class Main {\n\n public static void main(String[] args) {\n FastScanner sc = new FastScanner(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 currentMin = 60 * h + m;\n double hariH = (360d / 720d) * currentMin;\n double hariM = (360d / 60d) * m;\n\n double kakudo = 0d;\n\n if(hariH == hariM){\n kakudo = 0d;\n }else if(hariM > hariH){\n kakudo = hariM - hariH;\n }else if(hariH > hariM){\n kakudo = hariH - hariM;\n }\n if(kakudo > 180d){\n kakudo = 360d - kakudo;\n }\n\n double taikaku = Math.pow(a,2) + Math.pow(b , 2) - 2*a*b*Math.cos(Math.toRadians(kakudo));\n System.out.println(Math.sqrt(taikaku));\n\n\n\n }\n /**\n\t * ๅพช็’ฐใฎ้•ทใ•ใ‚’่ฟ”ใ—ใพใ™ใ€‚\n\t *\n\t * @param arr\n\t * ๆ•ฐๅˆ—\n\t * @param startPos\n\t * ๅพช็’ฐใฎ้–‹ๅง‹ไฝ็ฝฎ\n\t *\n\t * @return ๅพช็’ฐใฎ้•ทใ•ใ‚’่ฟ”ใ—ใพใ™ใ€‚ๅพช็’ฐใ‚’ๆคœๅ‡บใงใใชใ‹ใฃใŸๅ ดๅˆใฏ-1ใ‚’่ฟ”ใ—ใพใ™ใ€‚\n\t */\n\tprivate static int getCycle(int[] arr, int startPos) {\n\t\tint cycle = 0;\n\t\tint a = startPos;\n\t\tint b = startPos;\n\t\twhile (true) {\n\t\t\tcycle++;\n\t\t\ta += 2;\n\t\t\tb++;\n\t\t\tif (a >= arr.length) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (arr[a] == arr[b]) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn cycle;\n\t}\n /**\n\t * ๅพช็’ฐใฎ้–‹ๅง‹ไฝ็ฝฎใ‚’่ฟ”ใ—ใพใ™ใ€‚\n\t *\n\t * @param arr\n\t * ๆ•ฐๅˆ—\n\t *\n\t * @return ๅพช็’ฐ้–‹ๅง‹ไฝ็ฝฎใ€‚ๅพช็’ฐใ‚’ๆคœๅ‡บใงใใชใ„ๅ ดๅˆใฏ-1ใ‚’่ฟ”ใ—ใพใ™ใ€‚\n\t */\n\tprivate static int getStartPosition(int[] arr) {\n\t\tint a = 0;\n\t\tint b = 0;\n\t\twhile (true) {\n\t\t\ta += 2;\n\t\t\tb++;\n\t\t\tif (a >= arr.length) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (arr[a] == arr[b]) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\ta = 0;\n\t\twhile (true) {\n\t\t\ta++;\n\t\t\tb++;\n\t\t\tif (b >= arr.length) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (arr[a] == arr[b]) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}\n public static Double calculate(Double base, Double n) {\n return Math.pow(Math.E, Math.log(base)/n);\n }\n\n public static int[] toArray(List<Integer> target) {\n\n final int[] result = new int[target.size()];\n for (int i = 0; i < result.length; i++) {\n result[i] = target.get(i);\n }\n\n return result;\n }\n public static boolean isMultiple (String s, int base, int m) {\n\tint temp = 0;\n\tfor (int i=0; i<s.length(); i++) {\n\t\ttemp = (temp*base+Character.getNumericValue(s.charAt(i)))%m;\n\t}\n\tif (temp==0) {return true;}\n\treturn false;\n}\nstatic class FastScanner {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public FastScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n tokenizer = null;\n }\n\n public String next() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public String nextLine() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public long[] nextLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n FastScanner sc = new FastScanner(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 currentMin = 60 * h + m;\n double hariH = (360d / 720d) * currentMin;\n double hariM = (360d / 60d) * m;\n\n double kakudo = 0d;\n\n if(hariH == hariM){\n kakudo = 0d;\n }else if(hariM > hariH){\n kakudo = hariM - hariH;\n }else if(hariH > hariM){\n kakudo = hariH - hariM;\n }\n if(kakudo > 180d){\n kakudo = 360d - kakudo;\n }\n\n double taikaku = Math.pow(a,2) + Math.pow(b , 2) - 2*a*b*Math.cos(Math.toRadians(kakudo));\n System.out.println(Math.sqrt(taikaku));\n\n\n\n }\n /**\n\t * ๅพช็’ฐใฎ้•ทใ•ใ‚’่ฟ”ใ—ใพใ™ใ€‚\n\t *\n\t * @param arr\n\t * ๆ•ฐๅˆ—\n\t * @param startPos\n\t * ๅพช็’ฐใฎ้–‹ๅง‹ไฝ็ฝฎ\n\t *\n\t * @return ๅพช็’ฐใฎ้•ทใ•ใ‚’่ฟ”ใ—ใพใ™ใ€‚ๅพช็’ฐใ‚’ๆคœๅ‡บใงใใชใ‹ใฃใŸๅ ดๅˆใฏ-1ใ‚’่ฟ”ใ—ใพใ™ใ€‚\n\t */\n\tprivate static int getCycle(int[] arr, int startPos) {\n\t\tint cycle = 0;\n\t\tint a = startPos;\n\t\tint b = startPos;\n\t\twhile (true) {\n\t\t\tcycle++;\n\t\t\ta += 2;\n\t\t\tb++;\n\t\t\tif (a >= arr.length) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (arr[a] == arr[b]) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn cycle;\n\t}\n /**\n\t * ๅพช็’ฐใฎ้–‹ๅง‹ไฝ็ฝฎใ‚’่ฟ”ใ—ใพใ™ใ€‚\n\t *\n\t * @param arr\n\t * ๆ•ฐๅˆ—\n\t *\n\t * @return ๅพช็’ฐ้–‹ๅง‹ไฝ็ฝฎใ€‚ๅพช็’ฐใ‚’ๆคœๅ‡บใงใใชใ„ๅ ดๅˆใฏ-1ใ‚’่ฟ”ใ—ใพใ™ใ€‚\n\t */\n\tprivate static int getStartPosition(int[] arr) {\n\t\tint a = 0;\n\t\tint b = 0;\n\t\twhile (true) {\n\t\t\ta += 2;\n\t\t\tb++;\n\t\t\tif (a >= arr.length) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (arr[a] == arr[b]) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\ta = 0;\n\t\twhile (true) {\n\t\t\ta++;\n\t\t\tb++;\n\t\t\tif (b >= arr.length) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (arr[a] == arr[b]) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}\n public static Double calculate(Double base, Double n) {\n return Math.pow(Math.E, Math.log(base)/n);\n }\n\n public static int[] toArray(List<Integer> target) {\n\n final int[] result = new int[target.size()];\n for (int i = 0; i < result.length; i++) {\n result[i] = target.get(i);\n }\n\n return result;\n }\n public static boolean isMultiple (String s, int base, int m) {\n\tint temp = 0;\n\tfor (int i=0; i<s.length(); i++) {\n\t\ttemp = (temp*base+Character.getNumericValue(s.charAt(i)))%m;\n\t}\n\tif (temp==0) {return true;}\n\treturn false;\n}\nstatic class FastScanner {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public FastScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n tokenizer = null;\n }\n\n public String next() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public String nextLine() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public long[] nextLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.*; public class Main { public static void main(String[] args) { FastScanner sc = new FastScanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int h = sc.nextInt(); int m = sc.nextInt(); double currentMin = 60 * h + m; double hariH = (360d / 720d) * currentMin; double hariM = (360d / 60d) * m; double kakudo = 0d; if(hariH == hariM){ kakudo = 0d; }else if(hariM > hariH){ kakudo = hariM - hariH; }else if(hariH > hariM){ kakudo = hariH - hariM; } if(kakudo > 180d){ kakudo = 360d - kakudo; } double taikaku = Math.pow(a,2) + Math.pow(b , 2) - 2*a*b*Math.cos(Math.toRadians(kakudo)); System.out.println(Math.sqrt(taikaku)); } /** * ๅพช็’ฐใฎ้•ทใ•ใ‚’่ฟ”ใ—ใพใ™ใ€‚ * * @param arr * ๆ•ฐๅˆ— * @param startPos * ๅพช็’ฐใฎ้–‹ๅง‹ไฝ็ฝฎ * * @return ๅพช็’ฐใฎ้•ทใ•ใ‚’่ฟ”ใ—ใพใ™ใ€‚ๅพช็’ฐใ‚’ๆคœๅ‡บใงใใชใ‹ใฃใŸๅ ดๅˆใฏ-1ใ‚’่ฟ”ใ—ใพใ™ใ€‚ */ private static int getCycle(int[] arr, int startPos) { int cycle = 0; int a = startPos; int b = startPos; while (true) { cycle++; a += 2; b++; if (a >= arr.length) { return -1; } if (arr[a] == arr[b]) { break; } } return cycle; } /** * ๅพช็’ฐใฎ้–‹ๅง‹ไฝ็ฝฎใ‚’่ฟ”ใ—ใพใ™ใ€‚ * * @param arr * ๆ•ฐๅˆ— * * @return ๅพช็’ฐ้–‹ๅง‹ไฝ็ฝฎใ€‚ๅพช็’ฐใ‚’ๆคœๅ‡บใงใใชใ„ๅ ดๅˆใฏ-1ใ‚’่ฟ”ใ—ใพใ™ใ€‚ */ private static int getStartPosition(int[] arr) { int a = 0; int b = 0; while (true) { a += 2; b++; if (a >= arr.length) { return -1; } if (arr[a] == arr[b]) { break; } } a = 0; while (true) { a++; b++; if (b >= arr.length) { return -1; } if (arr[a] == arr[b]) { break; } } return a; } public static Double calculate(Double base, Double n) { return Math.pow(Math.E, Math.log(base)/n); } public static int[] toArray(List<Integer> target) { final int[] result = new int[target.size()]; for (int i = 0; i < result.length; i++) { result[i] = target.get(i); } return result; } public static boolean isMultiple (String s, int base, int m) { int temp = 0; for (int i=0; i<s.length(); i++) { temp = (temp*base+Character.getNumericValue(s.charAt(i)))%m; } if (temp==0) {return true;} return false; } static class FastScanner { private BufferedReader reader = null; private StringTokenizer tokenizer = null; public FastScanner(InputStream in) { reader = new BufferedReader(new InputStreamReader(in)); tokenizer = null; } public String next() { if (tokenizer == null || !tokenizer.hasMoreTokens()) { try { tokenizer = new StringTokenizer(reader.readLine()); } catch (IOException e) { throw new RuntimeException(e); } } return tokenizer.nextToken(); } public String nextLine() { if (tokenizer == null || !tokenizer.hasMoreTokens()) { try { return reader.readLine(); } catch (IOException e) { throw new RuntimeException(e); } } return tokenizer.nextToken("\n"); } public long nextLong() { return Long.parseLong(next()); } public int nextInt() { return Integer.parseInt(next()); } 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; } } }
[ 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, 2, 13, 17, 2, 17, 17, 17, 41, 13, 2, 13, 17, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 2, 17, 13, 14, 2, 13, 17, 30, 0, 13, 2, 17, 13, 30, 0, 13, 8, 2, 13, 13, 2, 13, 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, 4, 18, 18, 13, 13, 4, 18, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 130, 5 ], [ 130, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 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 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 43, 45 ], [ 38, 46 ], [ 8, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 8, 52 ], [ 52, 53 ], [ 52, 54 ], [ 8, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 55, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 65, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 82, 84 ], [ 78, 85 ], [ 85, 86 ], [ 85, 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 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 8, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 8, 124 ], [ 124, 125 ], [ 125, 126 ], [ 6, 127 ], [ 127, 128 ], [ 0, 129 ], [ 129, 130 ], [ 129, 131 ] ]
[ "import java.util.Scanner;\n\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\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\tdouble hour = h / 12 + m / 60 * (360 / 12) / 360;\n\t\tdouble minutes = m / 60;\n\t\t\n\t\tdouble angle = 360;\n\t\tif(hour == 0) {\n\t\t\tangle *= 1 - minutes;\n\t\t}else if(minutes == 0) {\n\t\t\tangle *= 1 - hour;\n\t\t}else {\n\t\t\tangle *= hour < minutes ? minutes - hour : hour - minutes;\n\t\t}\n\t\tdouble ansSquare = Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * Math.cos(Math.toRadians(angle));\n\t\t\n\t\tSystem.out.println(Math.sqrt(ansSquare));\n\t\tsc.close();\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 sc = new Scanner(System.in);\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\tdouble hour = h / 12 + m / 60 * (360 / 12) / 360;\n\t\tdouble minutes = m / 60;\n\t\t\n\t\tdouble angle = 360;\n\t\tif(hour == 0) {\n\t\t\tangle *= 1 - minutes;\n\t\t}else if(minutes == 0) {\n\t\t\tangle *= 1 - hour;\n\t\t}else {\n\t\t\tangle *= hour < minutes ? minutes - hour : hour - minutes;\n\t\t}\n\t\tdouble ansSquare = Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * Math.cos(Math.toRadians(angle));\n\t\t\n\t\tSystem.out.println(Math.sqrt(ansSquare));\n\t\tsc.close();\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\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\tdouble hour = h / 12 + m / 60 * (360 / 12) / 360;\n\t\tdouble minutes = m / 60;\n\t\t\n\t\tdouble angle = 360;\n\t\tif(hour == 0) {\n\t\t\tangle *= 1 - minutes;\n\t\t}else if(minutes == 0) {\n\t\t\tangle *= 1 - hour;\n\t\t}else {\n\t\t\tangle *= hour < minutes ? minutes - hour : hour - minutes;\n\t\t}\n\t\tdouble ansSquare = Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * Math.cos(Math.toRadians(angle));\n\t\t\n\t\tSystem.out.println(Math.sqrt(ansSquare));\n\t\tsc.close();\n\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\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\tdouble hour = h / 12 + m / 60 * (360 / 12) / 360;\n\t\tdouble minutes = m / 60;\n\t\t\n\t\tdouble angle = 360;\n\t\tif(hour == 0) {\n\t\t\tangle *= 1 - minutes;\n\t\t}else if(minutes == 0) {\n\t\t\tangle *= 1 - hour;\n\t\t}else {\n\t\t\tangle *= hour < minutes ? minutes - hour : hour - minutes;\n\t\t}\n\t\tdouble ansSquare = Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * Math.cos(Math.toRadians(angle));\n\t\t\n\t\tSystem.out.println(Math.sqrt(ansSquare));\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 hour = h / 12 + m / 60 * (360 / 12) / 360;", "hour", "h / 12 + m / 60 * (360 / 12) / 360", "h / 12", "h", "12", "m / 60 * (360 / 12) / 360", "m / 60 * (360 / 12)", "m / 60", "m", "60", "(360 / 12)", "360", "12", "360", "double minutes = m / 60;", "minutes", "m / 60", "m", "60", "double angle = 360;", "angle", "360", "if(hour == 0) {\n\t\t\tangle *= 1 - minutes;\n\t\t}else if(minutes == 0) {\n\t\t\tangle *= 1 - hour;\n\t\t}else {\n\t\t\tangle *= hour < minutes ? minutes - hour : hour - minutes;\n\t\t}", "hour == 0", "hour", "0", "{\n\t\t\tangle *= 1 - minutes;\n\t\t}", "angle *= 1 - minutes", "angle", "1 - minutes", "1", "minutes", "if(minutes == 0) {\n\t\t\tangle *= 1 - hour;\n\t\t}else {\n\t\t\tangle *= hour < minutes ? minutes - hour : hour - minutes;\n\t\t}", "minutes == 0", "minutes", "0", "{\n\t\t\tangle *= 1 - hour;\n\t\t}", "angle *= 1 - hour", "angle", "1 - hour", "1", "hour", "{\n\t\t\tangle *= hour < minutes ? minutes - hour : hour - minutes;\n\t\t}", "angle *= hour < minutes ? minutes - hour : hour - minutes", "angle", "hour < minutes ? minutes - hour : hour - minutes", "hour < minutes", "hour", "minutes", "minutes - hour", "minutes", "hour", "hour - minutes", "hour", "minutes", "double ansSquare = Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * Math.cos(Math.toRadians(angle));", "ansSquare", "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(Math.sqrt(ansSquare))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(ansSquare)", "Math.sqrt", "Math", "ansSquare", "sc.close()", "sc.close", "sc", "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\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\tdouble hour = h / 12 + m / 60 * (360 / 12) / 360;\n\t\tdouble minutes = m / 60;\n\t\t\n\t\tdouble angle = 360;\n\t\tif(hour == 0) {\n\t\t\tangle *= 1 - minutes;\n\t\t}else if(minutes == 0) {\n\t\t\tangle *= 1 - hour;\n\t\t}else {\n\t\t\tangle *= hour < minutes ? minutes - hour : hour - minutes;\n\t\t}\n\t\tdouble ansSquare = Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * Math.cos(Math.toRadians(angle));\n\t\t\n\t\tSystem.out.println(Math.sqrt(ansSquare));\n\t\tsc.close();\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\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\tdouble hour = h / 12 + m / 60 * (360 / 12) / 360;\n\t\tdouble minutes = m / 60;\n\t\t\n\t\tdouble angle = 360;\n\t\tif(hour == 0) {\n\t\t\tangle *= 1 - minutes;\n\t\t}else if(minutes == 0) {\n\t\t\tangle *= 1 - hour;\n\t\t}else {\n\t\t\tangle *= hour < minutes ? minutes - hour : hour - minutes;\n\t\t}\n\t\tdouble ansSquare = Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * Math.cos(Math.toRadians(angle));\n\t\t\n\t\tSystem.out.println(Math.sqrt(ansSquare));\n\t\tsc.close();\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.nextDouble(); double b = sc.nextDouble(); double h = sc.nextDouble(); double m = sc.nextDouble(); double hour = h / 12 + m / 60 * (360 / 12) / 360; double minutes = m / 60; double angle = 360; if(hour == 0) { angle *= 1 - minutes; }else if(minutes == 0) { angle *= 1 - hour; }else { angle *= hour < minutes ? minutes - hour : hour - minutes; } double ansSquare = Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * Math.cos(Math.toRadians(angle)); System.out.println(Math.sqrt(ansSquare)); 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, 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, 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, 13, 41, 13, 2, 13, 13, 41, 13, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 41, 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 ], [ 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 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 8, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 8, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 8, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 8, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 8, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 8, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 105, 109 ], [ 104, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 110, 114 ], [ 8, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 118, 119 ], [ 117, 120 ], [ 8, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 6, 127 ], [ 127, 128 ] ]
[ "\nimport java.util.*;\n\nclass Main {\n\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\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 radH = 2*Math.PI*(H/12 + M/60/12);\n\t\tdouble radM = 2*Math.PI* M/60;\n\t\tdouble x1 = (double)A*Math.cos(radH), y1 = A*Math.sin(radH);\n\t\tdouble x2 = (double)B*Math.cos(radM), y2 = B*Math.sin(radM);\n\t\tdouble dx = x1 - x2, dy = y1- y2;\n\t\tdouble ansans = Math.pow(dx, 2) + Math.pow(dy,2);\n\t\tdouble ans = Math.sqrt(ansans);\n\t\tSystem.out.print(ans);\n\t\t\n\t}\n\n}\n\n", "import java.util.*;", "util.*", "java", "class Main {\n\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\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 radH = 2*Math.PI*(H/12 + M/60/12);\n\t\tdouble radM = 2*Math.PI* M/60;\n\t\tdouble x1 = (double)A*Math.cos(radH), y1 = A*Math.sin(radH);\n\t\tdouble x2 = (double)B*Math.cos(radM), y2 = B*Math.sin(radM);\n\t\tdouble dx = x1 - x2, dy = y1- y2;\n\t\tdouble ansans = Math.pow(dx, 2) + Math.pow(dy,2);\n\t\tdouble ans = Math.sqrt(ansans);\n\t\tSystem.out.print(ans);\n\t\t\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\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 radH = 2*Math.PI*(H/12 + M/60/12);\n\t\tdouble radM = 2*Math.PI* M/60;\n\t\tdouble x1 = (double)A*Math.cos(radH), y1 = A*Math.sin(radH);\n\t\tdouble x2 = (double)B*Math.cos(radM), y2 = B*Math.sin(radM);\n\t\tdouble dx = x1 - x2, dy = y1- y2;\n\t\tdouble ansans = Math.pow(dx, 2) + Math.pow(dy,2);\n\t\tdouble ans = Math.sqrt(ansans);\n\t\tSystem.out.print(ans);\n\t\t\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\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 radH = 2*Math.PI*(H/12 + M/60/12);\n\t\tdouble radM = 2*Math.PI* M/60;\n\t\tdouble x1 = (double)A*Math.cos(radH), y1 = A*Math.sin(radH);\n\t\tdouble x2 = (double)B*Math.cos(radM), y2 = B*Math.sin(radM);\n\t\tdouble dx = x1 - x2, dy = y1- y2;\n\t\tdouble ansans = Math.pow(dx, 2) + Math.pow(dy,2);\n\t\tdouble ans = Math.sqrt(ansans);\n\t\tSystem.out.print(ans);\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 radH = 2*Math.PI*(H/12 + M/60/12);", "radH", "2*Math.PI*(H/12 + M/60/12)", "2*Math.PI*(H/12 + M/60/12)", "2", "Math.PI", "Math", "Math.PI", "(H/12 + M/60/12)", "H/12", "H", "12", "M/60/12", "M/60/12", "M", "60", "12", "double radM = 2*Math.PI* M/60;", "radM", "2*Math.PI* M/60", "2*Math.PI* M", "2*Math.PI* M", "2", "Math.PI", "Math", "Math.PI", "M", "60", "double x1 = (double)A*Math.cos(radH)", "x1", "(double)A*Math.cos(radH)", "(double)A", "Math.cos(radH)", "Math.cos", "Math", "radH", "y1 = A*Math.sin(radH);", "y1", "A*Math.sin(radH)", "A", "Math.sin(radH)", "Math.sin", "Math", "radH", "double x2 = (double)B*Math.cos(radM)", "x2", "(double)B*Math.cos(radM)", "(double)B", "Math.cos(radM)", "Math.cos", "Math", "radM", "y2 = B*Math.sin(radM);", "y2", "B*Math.sin(radM)", "B", "Math.sin(radM)", "Math.sin", "Math", "radM", "double dx = x1 - x2", "dx", "x1 - x2", "x1", "x2", "dy = y1- y2;", "dy", "y1- y2", "y1", "y2", "double ansans = Math.pow(dx, 2) + Math.pow(dy,2);", "ansans", "Math.pow(dx, 2) + Math.pow(dy,2)", "Math.pow(dx, 2)", "Math.pow", "Math", "dx", "2", "Math.pow(dy,2)", "Math.pow", "Math", "dy", "2", "double ans = Math.sqrt(ansans);", "ans", "Math.sqrt(ansans)", "Math.sqrt", "Math", "ansans", "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); double A = sc.nextInt(); double B = sc.nextInt(); double H = sc.nextInt(); double M = sc.nextInt(); double radH = 2*Math.PI*(H/12 + M/60/12); double radM = 2*Math.PI* M/60; double x1 = (double)A*Math.cos(radH), y1 = A*Math.sin(radH); double x2 = (double)B*Math.cos(radM), y2 = B*Math.sin(radM); double dx = x1 - x2, dy = y1- y2; double ansans = Math.pow(dx, 2) + Math.pow(dy,2); double ans = Math.sqrt(ansans); 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, 2, 13, 4, 18, 13, 2, 2, 2, 2, 13, 2, 13, 17, 17, 17, 18, 13, 13, 41, 13, 2, 13, 4, 18, 13, 2, 2, 2, 2, 13, 2, 13, 17, 17, 17, 18, 13, 13, 41, 13, 2, 13, 4, 18, 13, 2, 2, 2, 13, 17, 17, 18, 13, 13, 41, 13, 2, 13, 4, 18, 13, 2, 2, 2, 13, 17, 17, 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, 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 ], [ 33, 34 ], [ 8, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 47, 49 ], [ 44, 50 ], [ 43, 51 ], [ 43, 52 ], [ 52, 53 ], [ 52, 54 ], [ 8, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 64, 70 ], [ 63, 71 ], [ 63, 72 ], [ 72, 73 ], [ 72, 74 ], [ 8, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 83, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 83, 88 ], [ 88, 89 ], [ 88, 90 ], [ 8, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 99, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 99, 104 ], [ 104, 105 ], [ 104, 106 ], [ 8, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 116, 117 ], [ 116, 118 ], [ 113, 119 ], [ 112, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 123, 124 ], [ 123, 125 ], [ 120, 126 ], [ 8, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 127, 132 ], [ 6, 133 ], [ 133, 134 ], [ 0, 135 ], [ 135, 136 ], [ 135, 137 ] ]
[ "import java.util.Scanner;\n\n/**\n * Main\n */\npublic class Main {\n\n public static void main(String[] args) {\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 sc.close();\n\n double positionAx = A*Math.sin(((double)H+(double)M/60)/12*2*Math.PI);\n double positionAy = A*Math.cos(((double)H+(double)M/60)/12*2*Math.PI);\n\n double positionBx = B*Math.sin(((double)M/60)*2*Math.PI);\n double positionBy = B*Math.cos(((double)M/60)*2*Math.PI);\n\n\n double ans = Math.sqrt(Math.pow((positionAx-positionBx),2) + Math.pow((positionAy-positionBy), 2));\n\n System.out.println(ans);\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\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 positionAx = A*Math.sin(((double)H+(double)M/60)/12*2*Math.PI);\n double positionAy = A*Math.cos(((double)H+(double)M/60)/12*2*Math.PI);\n\n double positionBx = B*Math.sin(((double)M/60)*2*Math.PI);\n double positionBy = B*Math.cos(((double)M/60)*2*Math.PI);\n\n\n double ans = Math.sqrt(Math.pow((positionAx-positionBx),2) + Math.pow((positionAy-positionBy), 2));\n\n System.out.println(ans);\n }\n}", "Main", "public static void main(String[] args) {\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 sc.close();\n\n double positionAx = A*Math.sin(((double)H+(double)M/60)/12*2*Math.PI);\n double positionAy = A*Math.cos(((double)H+(double)M/60)/12*2*Math.PI);\n\n double positionBx = B*Math.sin(((double)M/60)*2*Math.PI);\n double positionBy = B*Math.cos(((double)M/60)*2*Math.PI);\n\n\n double ans = Math.sqrt(Math.pow((positionAx-positionBx),2) + Math.pow((positionAy-positionBy), 2));\n\n System.out.println(ans);\n }", "main", "{\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 sc.close();\n\n double positionAx = A*Math.sin(((double)H+(double)M/60)/12*2*Math.PI);\n double positionAy = A*Math.cos(((double)H+(double)M/60)/12*2*Math.PI);\n\n double positionBx = B*Math.sin(((double)M/60)*2*Math.PI);\n double positionBy = B*Math.cos(((double)M/60)*2*Math.PI);\n\n\n double ans = Math.sqrt(Math.pow((positionAx-positionBx),2) + Math.pow((positionAy-positionBy), 2));\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", "sc.close()", "sc.close", "sc", "double positionAx = A*Math.sin(((double)H+(double)M/60)/12*2*Math.PI);", "positionAx", "A*Math.sin(((double)H+(double)M/60)/12*2*Math.PI)", "A", "Math.sin(((double)H+(double)M/60)/12*2*Math.PI)", "Math.sin", "Math", "((double)H+(double)M/60)/12*2*Math.PI", "((double)H+(double)M/60)/12*2*Math.PI", "((double)H+(double)M/60)/12", "((double)H+(double)M/60)", "(double)H", "(double)M/60", "(double)M", "60", "12", "2", "Math.PI", "Math", "Math.PI", "double positionAy = A*Math.cos(((double)H+(double)M/60)/12*2*Math.PI);", "positionAy", "A*Math.cos(((double)H+(double)M/60)/12*2*Math.PI)", "A", "Math.cos(((double)H+(double)M/60)/12*2*Math.PI)", "Math.cos", "Math", "((double)H+(double)M/60)/12*2*Math.PI", "((double)H+(double)M/60)/12*2*Math.PI", "((double)H+(double)M/60)/12", "((double)H+(double)M/60)", "(double)H", "(double)M/60", "(double)M", "60", "12", "2", "Math.PI", "Math", "Math.PI", "double positionBx = B*Math.sin(((double)M/60)*2*Math.PI);", "positionBx", "B*Math.sin(((double)M/60)*2*Math.PI)", "B", "Math.sin(((double)M/60)*2*Math.PI)", "Math.sin", "Math", "((double)M/60)*2*Math.PI", "((double)M/60)*2*Math.PI", "((double)M/60)", "(double)M", "60", "2", "Math.PI", "Math", "Math.PI", "double positionBy = B*Math.cos(((double)M/60)*2*Math.PI);", "positionBy", "B*Math.cos(((double)M/60)*2*Math.PI)", "B", "Math.cos(((double)M/60)*2*Math.PI)", "Math.cos", "Math", "((double)M/60)*2*Math.PI", "((double)M/60)*2*Math.PI", "((double)M/60)", "(double)M", "60", "2", "Math.PI", "Math", "Math.PI", "double ans = Math.sqrt(Math.pow((positionAx-positionBx),2) + Math.pow((positionAy-positionBy), 2));", "ans", "Math.sqrt(Math.pow((positionAx-positionBx),2) + Math.pow((positionAy-positionBy), 2))", "Math.sqrt", "Math", "Math.pow((positionAx-positionBx),2) + Math.pow((positionAy-positionBy), 2)", "Math.pow((positionAx-positionBx),2)", "Math.pow", "Math", "(positionAx-positionBx)", "positionAx", "positionBx", "2", "Math.pow((positionAy-positionBy), 2)", "Math.pow", "Math", "(positionAy-positionBy)", "positionAy", "positionBy", "2", "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 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 sc.close();\n\n double positionAx = A*Math.sin(((double)H+(double)M/60)/12*2*Math.PI);\n double positionAy = A*Math.cos(((double)H+(double)M/60)/12*2*Math.PI);\n\n double positionBx = B*Math.sin(((double)M/60)*2*Math.PI);\n double positionBy = B*Math.cos(((double)M/60)*2*Math.PI);\n\n\n double ans = Math.sqrt(Math.pow((positionAx-positionBx),2) + Math.pow((positionAy-positionBy), 2));\n\n System.out.println(ans);\n }\n}", "public class Main {\n\n public static void main(String[] args) {\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 sc.close();\n\n double positionAx = A*Math.sin(((double)H+(double)M/60)/12*2*Math.PI);\n double positionAy = A*Math.cos(((double)H+(double)M/60)/12*2*Math.PI);\n\n double positionBx = B*Math.sin(((double)M/60)*2*Math.PI);\n double positionBy = B*Math.cos(((double)M/60)*2*Math.PI);\n\n\n double ans = Math.sqrt(Math.pow((positionAx-positionBx),2) + Math.pow((positionAy-positionBy), 2));\n\n System.out.println(ans);\n }\n}", "Main" ]
import java.util.Scanner; /** * Main */ 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 positionAx = A*Math.sin(((double)H+(double)M/60)/12*2*Math.PI); double positionAy = A*Math.cos(((double)H+(double)M/60)/12*2*Math.PI); double positionBx = B*Math.sin(((double)M/60)*2*Math.PI); double positionBy = B*Math.cos(((double)M/60)*2*Math.PI); double ans = Math.sqrt(Math.pow((positionAx-positionBx),2) + Math.pow((positionAy-positionBy), 2)); System.out.println(ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 17, 0, 13, 4, 18, 13, 17, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 41, 13, 18, 13, 17, 41, 13, 18, 13, 17, 41, 13, 18, 13, 17, 41, 13, 18, 13, 17, 0, 13, 2, 13, 17, 41, 13, 2, 2, 13, 17, 2, 17, 13, 41, 13, 2, 13, 17, 41, 13, 4, 18, 13, 2, 13, 13, 41, 13, 4, 18, 13, 13, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 148, 11 ], [ 148, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 14, 33 ], [ 33, 34 ], [ 33, 35 ], [ 14, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 37, 45 ], [ 45, 46 ], [ 46, 47 ], [ 37, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 57, 58 ], [ 57, 59 ], [ 14, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 14, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 14, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 14, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 14, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 82, 84 ], [ 14, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 91, 92 ], [ 91, 93 ], [ 14, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 14, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 104, 105 ], [ 104, 106 ], [ 14, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 14, 113 ], [ 113, 114 ], [ 113, 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 ], [ 14, 133 ], [ 133, 134 ], [ 133, 135 ], [ 135, 136 ], [ 136, 137 ], [ 135, 138 ], [ 14, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 139, 144 ], [ 12, 145 ], [ 145, 146 ], [ 0, 147 ], [ 147, 148 ], [ 147, 149 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String line = reader.readLine();\n String[] strings = new String[4];\n strings = line.split(\" \");\n int[] ints = new int[4];\n for (int i = 0; i < 4; i++) {\n ints[i] = Integer.parseInt(strings[i]);\n }\n int A = ints[0];\n\n int B = ints[1];\n\n int H = ints[2];\n\n int M = ints[3];\n\n H = H % 12;\n double Hr = H * 30 + 0.5 * M;\n double Mr = M * 6.0;\n\n double cha = Math.abs(Hr - Mr);\n\n\n double jiaoducha = Math.toRadians(cha);\n double cq = A*A + B*B - 2 * A * B * Math.cos(jiaoducha);\n\n double c = Math.sqrt(cq);\n System.out.println(c);\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) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String line = reader.readLine();\n String[] strings = new String[4];\n strings = line.split(\" \");\n int[] ints = new int[4];\n for (int i = 0; i < 4; i++) {\n ints[i] = Integer.parseInt(strings[i]);\n }\n int A = ints[0];\n\n int B = ints[1];\n\n int H = ints[2];\n\n int M = ints[3];\n\n H = H % 12;\n double Hr = H * 30 + 0.5 * M;\n double Mr = M * 6.0;\n\n double cha = Math.abs(Hr - Mr);\n\n\n double jiaoducha = Math.toRadians(cha);\n double cq = A*A + B*B - 2 * A * B * Math.cos(jiaoducha);\n\n double c = Math.sqrt(cq);\n System.out.println(c);\n\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String line = reader.readLine();\n String[] strings = new String[4];\n strings = line.split(\" \");\n int[] ints = new int[4];\n for (int i = 0; i < 4; i++) {\n ints[i] = Integer.parseInt(strings[i]);\n }\n int A = ints[0];\n\n int B = ints[1];\n\n int H = ints[2];\n\n int M = ints[3];\n\n H = H % 12;\n double Hr = H * 30 + 0.5 * M;\n double Mr = M * 6.0;\n\n double cha = Math.abs(Hr - Mr);\n\n\n double jiaoducha = Math.toRadians(cha);\n double cq = A*A + B*B - 2 * A * B * Math.cos(jiaoducha);\n\n double c = Math.sqrt(cq);\n System.out.println(c);\n\n }", "main", "{\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String line = reader.readLine();\n String[] strings = new String[4];\n strings = line.split(\" \");\n int[] ints = new int[4];\n for (int i = 0; i < 4; i++) {\n ints[i] = Integer.parseInt(strings[i]);\n }\n int A = ints[0];\n\n int B = ints[1];\n\n int H = ints[2];\n\n int M = ints[3];\n\n H = H % 12;\n double Hr = H * 30 + 0.5 * M;\n double Mr = M * 6.0;\n\n double cha = Math.abs(Hr - Mr);\n\n\n double jiaoducha = Math.toRadians(cha);\n double cq = A*A + B*B - 2 * A * B * Math.cos(jiaoducha);\n\n double c = Math.sqrt(cq);\n System.out.println(c);\n\n }", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "String line = reader.readLine();", "line", "reader.readLine()", "reader.readLine", "reader", "String[] strings = new String[4];", "strings", "new String[4]", "4", "strings = line.split(\" \")", "strings", "line.split(\" \")", "line.split", "line", "\" \"", "int[] ints = new int[4];", "ints", "new int[4]", "4", "for (int i = 0; i < 4; i++) {\n ints[i] = Integer.parseInt(strings[i]);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < 4", "i", "4", "i++", "i++", "i", "{\n ints[i] = Integer.parseInt(strings[i]);\n }", "{\n ints[i] = Integer.parseInt(strings[i]);\n }", "ints[i] = Integer.parseInt(strings[i])", "ints[i]", "ints", "i", "Integer.parseInt(strings[i])", "Integer.parseInt", "Integer", "strings[i]", "strings", "i", "int A = ints[0];", "A", "ints[0]", "ints", "0", "int B = ints[1];", "B", "ints[1]", "ints", "1", "int H = ints[2];", "H", "ints[2]", "ints", "2", "int M = ints[3];", "M", "ints[3]", "ints", "3", "H = H % 12", "H", "H % 12", "H", "12", "double Hr = H * 30 + 0.5 * M;", "Hr", "H * 30 + 0.5 * M", "H * 30", "H", "30", "0.5 * M", "0.5", "M", "double Mr = M * 6.0;", "Mr", "M * 6.0", "M", "6.0", "double cha = Math.abs(Hr - Mr);", "cha", "Math.abs(Hr - Mr)", "Math.abs", "Math", "Hr - Mr", "Hr", "Mr", "double jiaoducha = Math.toRadians(cha);", "jiaoducha", "Math.toRadians(cha)", "Math.toRadians", "Math", "cha", "double cq = A*A + B*B - 2 * A * B * Math.cos(jiaoducha);", "cq", "A*A + B*B - 2 * A * B * Math.cos(jiaoducha)", "A*A + B*B", "A*A", "A", "A", "B*B", "B", "B", "2 * A * B * Math.cos(jiaoducha)", "B", "2 * A * B * Math.cos(jiaoducha)", "2", "A", "B", "Math.cos(jiaoducha)", "Math.cos", "Math", "jiaoducha", "double c = Math.sqrt(cq);", "c", "Math.sqrt(cq)", "Math.sqrt", "Math", "cq", "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 IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String line = reader.readLine();\n String[] strings = new String[4];\n strings = line.split(\" \");\n int[] ints = new int[4];\n for (int i = 0; i < 4; i++) {\n ints[i] = Integer.parseInt(strings[i]);\n }\n int A = ints[0];\n\n int B = ints[1];\n\n int H = ints[2];\n\n int M = ints[3];\n\n H = H % 12;\n double Hr = H * 30 + 0.5 * M;\n double Mr = M * 6.0;\n\n double cha = Math.abs(Hr - Mr);\n\n\n double jiaoducha = Math.toRadians(cha);\n double cq = A*A + B*B - 2 * A * B * Math.cos(jiaoducha);\n\n double c = Math.sqrt(cq);\n System.out.println(c);\n\n }\n}", "public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String line = reader.readLine();\n String[] strings = new String[4];\n strings = line.split(\" \");\n int[] ints = new int[4];\n for (int i = 0; i < 4; i++) {\n ints[i] = Integer.parseInt(strings[i]);\n }\n int A = ints[0];\n\n int B = ints[1];\n\n int H = ints[2];\n\n int M = ints[3];\n\n H = H % 12;\n double Hr = H * 30 + 0.5 * M;\n double Mr = M * 6.0;\n\n double cha = Math.abs(Hr - Mr);\n\n\n double jiaoducha = Math.toRadians(cha);\n double cq = A*A + B*B - 2 * A * B * Math.cos(jiaoducha);\n\n double c = Math.sqrt(cq);\n System.out.println(c);\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) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String line = reader.readLine(); String[] strings = new String[4]; strings = line.split(" "); int[] ints = new int[4]; for (int i = 0; i < 4; i++) { ints[i] = Integer.parseInt(strings[i]); } int A = ints[0]; int B = ints[1]; int H = ints[2]; int M = ints[3]; H = H % 12; double Hr = H * 30 + 0.5 * M; double Mr = M * 6.0; double cha = Math.abs(Hr - Mr); double jiaoducha = Math.toRadians(cha); double cq = A*A + B*B - 2 * A * B * Math.cos(jiaoducha); double c = Math.sqrt(cq); 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, 2, 18, 13, 13, 17, 2, 2, 2, 13, 17, 2, 2, 13, 17, 17, 2, 13, 17, 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, 17, 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 ], [ 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 ], [ 55, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 63, 65 ], [ 58, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 66, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 8, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 76, 82 ], [ 6, 83 ], [ 83, 84 ], [ 0, 85 ], [ 85, 86 ], [ 85, 87 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ่‡ชๅ‹•็”Ÿๆˆใ•ใ‚ŒใŸใƒกใ‚ฝใƒƒใƒ‰ใƒปใ‚นใ‚ฟใƒ–\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t//ๅ…ฅๅŠ›่กจ็คบ\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 rad = Math.PI * 2 * (h / 12.0 + (m / 60.0) / 12.0 - m / 60.0);\n\n\t\tdouble rsq = Math.sqrt((a * a + b * b) - (2 * a *\n\t\t\t\tb) * Math.cos(rad));\n\n\t\tSystem.out.printf(\"%.20f\", rsq);\n\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ่‡ชๅ‹•็”Ÿๆˆใ•ใ‚ŒใŸใƒกใ‚ฝใƒƒใƒ‰ใƒปใ‚นใ‚ฟใƒ–\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t//ๅ…ฅๅŠ›่กจ็คบ\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 rad = Math.PI * 2 * (h / 12.0 + (m / 60.0) / 12.0 - m / 60.0);\n\n\t\tdouble rsq = Math.sqrt((a * a + b * b) - (2 * a *\n\t\t\t\tb) * Math.cos(rad));\n\n\t\tSystem.out.printf(\"%.20f\", rsq);\n\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO ่‡ชๅ‹•็”Ÿๆˆใ•ใ‚ŒใŸใƒกใ‚ฝใƒƒใƒ‰ใƒปใ‚นใ‚ฟใƒ–\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t//ๅ…ฅๅŠ›่กจ็คบ\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 rad = Math.PI * 2 * (h / 12.0 + (m / 60.0) / 12.0 - m / 60.0);\n\n\t\tdouble rsq = Math.sqrt((a * a + b * b) - (2 * a *\n\t\t\t\tb) * Math.cos(rad));\n\n\t\tSystem.out.printf(\"%.20f\", rsq);\n\n\t}", "main", "{\n\t\t// TODO ่‡ชๅ‹•็”Ÿๆˆใ•ใ‚ŒใŸใƒกใ‚ฝใƒƒใƒ‰ใƒปใ‚นใ‚ฟใƒ–\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t//ๅ…ฅๅŠ›่กจ็คบ\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 rad = Math.PI * 2 * (h / 12.0 + (m / 60.0) / 12.0 - m / 60.0);\n\n\t\tdouble rsq = Math.sqrt((a * a + b * b) - (2 * a *\n\t\t\t\tb) * Math.cos(rad));\n\n\t\tSystem.out.printf(\"%.20f\", rsq);\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 rad = Math.PI * 2 * (h / 12.0 + (m / 60.0) / 12.0 - m / 60.0);", "rad", "Math.PI * 2 * (h / 12.0 + (m / 60.0) / 12.0 - m / 60.0)", "Math.PI * 2 * (h / 12.0 + (m / 60.0) / 12.0 - m / 60.0)", "Math.PI", "Math", "Math.PI", "2", "(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 rsq = Math.sqrt((a * a + b * b) - (2 * a *\n\t\t\t\tb) * Math.cos(rad));", "rsq", "Math.sqrt((a * a + b * b) - (2 * a *\n\t\t\t\tb) * Math.cos(rad))", "Math.sqrt", "Math", "(a * a + b * b) - (2 * a *\n\t\t\t\tb) * Math.cos(rad)", "(a * a + b * b)", "a * a", "a", "a", "b * b", "b", "b", "(2 * a *\n\t\t\t\tb) * Math.cos(rad)", "(2 * a *\n\t\t\t\tb)", "2 * a *\n\t\t\t\tb", "2", "a", "b", "Math.cos(rad)", "Math.cos", "Math", "rad", "System.out.printf(\"%.20f\", rsq)", "System.out.printf", "System.out", "System", "System.out", "\"%.20f\"", "rsq", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ่‡ชๅ‹•็”Ÿๆˆใ•ใ‚ŒใŸใƒกใ‚ฝใƒƒใƒ‰ใƒปใ‚นใ‚ฟใƒ–\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t//ๅ…ฅๅŠ›่กจ็คบ\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 rad = Math.PI * 2 * (h / 12.0 + (m / 60.0) / 12.0 - m / 60.0);\n\n\t\tdouble rsq = Math.sqrt((a * a + b * b) - (2 * a *\n\t\t\t\tb) * Math.cos(rad));\n\n\t\tSystem.out.printf(\"%.20f\", rsq);\n\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ่‡ชๅ‹•็”Ÿๆˆใ•ใ‚ŒใŸใƒกใ‚ฝใƒƒใƒ‰ใƒปใ‚นใ‚ฟใƒ–\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t//ๅ…ฅๅŠ›่กจ็คบ\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 rad = Math.PI * 2 * (h / 12.0 + (m / 60.0) / 12.0 - m / 60.0);\n\n\t\tdouble rsq = Math.sqrt((a * a + b * b) - (2 * a *\n\t\t\t\tb) * Math.cos(rad));\n\n\t\tSystem.out.printf(\"%.20f\", rsq);\n\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ่‡ชๅ‹•็”Ÿๆˆใ•ใ‚ŒใŸใƒกใ‚ฝใƒƒใƒ‰ใƒปใ‚นใ‚ฟใƒ– Scanner sc = new Scanner(System.in); //ๅ…ฅๅŠ›่กจ็คบ double a = sc.nextInt(); double b = sc.nextInt(); double h = sc.nextInt(); double m = sc.nextInt(); double rad = Math.PI * 2 * (h / 12.0 + (m / 60.0) / 12.0 - m / 60.0); double rsq = Math.sqrt((a * a + b * b) - (2 * a * b) * Math.cos(rad)); System.out.printf("%.20f", rsq); } }
[ 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, 2, 2, 2, 17, 18, 13, 13, 2, 13, 2, 13, 17, 17, 41, 13, 2, 13, 4, 18, 13, 2, 2, 2, 17, 18, 13, 13, 2, 13, 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 ], [ 130, 5 ], [ 130, 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 ], [ 41, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 48, 50 ], [ 39, 51 ], [ 8, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 61, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 59, 71 ], [ 8, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 81, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 79, 87 ], [ 8, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 95, 96 ], [ 97, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 95, 103 ], [ 8, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 117, 118 ], [ 117, 119 ], [ 112, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 124, 125 ], [ 124, 126 ], [ 6, 127 ], [ 127, 128 ], [ 0, 129 ], [ 129, 130 ], [ 129, 131 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n\n double A = sc.nextInt();\n double B = sc.nextInt();\n\n double Hour = sc.nextInt();\n double Minute = sc.nextInt();\n\n double x1 = A * Math.cos(2 * Math.PI * (Hour + Minute / 60) / 12);\n double y1 = A * Math.sin(2 * Math.PI * (Hour + Minute / 60) / 12);\n double x2 = B * Math.cos(2 * Math.PI * Minute / 60);\n double y2 = B * Math.sin(2 * Math.PI * Minute / 60);\n \n System.out.println(Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)));\n\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\n double A = sc.nextInt();\n double B = sc.nextInt();\n\n double Hour = sc.nextInt();\n double Minute = sc.nextInt();\n\n double x1 = A * Math.cos(2 * Math.PI * (Hour + Minute / 60) / 12);\n double y1 = A * Math.sin(2 * Math.PI * (Hour + Minute / 60) / 12);\n double x2 = B * Math.cos(2 * Math.PI * Minute / 60);\n double y2 = B * Math.sin(2 * Math.PI * Minute / 60);\n \n System.out.println(Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)));\n\n }\n}", "Main", "public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n\n double A = sc.nextInt();\n double B = sc.nextInt();\n\n double Hour = sc.nextInt();\n double Minute = sc.nextInt();\n\n double x1 = A * Math.cos(2 * Math.PI * (Hour + Minute / 60) / 12);\n double y1 = A * Math.sin(2 * Math.PI * (Hour + Minute / 60) / 12);\n double x2 = B * Math.cos(2 * Math.PI * Minute / 60);\n double y2 = B * Math.sin(2 * Math.PI * Minute / 60);\n \n System.out.println(Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)));\n\n }", "main", "{\n\n Scanner sc = new Scanner(System.in);\n\n double A = sc.nextInt();\n double B = sc.nextInt();\n\n double Hour = sc.nextInt();\n double Minute = sc.nextInt();\n\n double x1 = A * Math.cos(2 * Math.PI * (Hour + Minute / 60) / 12);\n double y1 = A * Math.sin(2 * Math.PI * (Hour + Minute / 60) / 12);\n double x2 = B * Math.cos(2 * Math.PI * Minute / 60);\n double y2 = B * Math.sin(2 * Math.PI * Minute / 60);\n \n System.out.println(Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)));\n\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 Hour = sc.nextInt();", "Hour", "sc.nextInt()", "sc.nextInt", "sc", "double Minute = sc.nextInt();", "Minute", "sc.nextInt()", "sc.nextInt", "sc", "double x1 = A * Math.cos(2 * Math.PI * (Hour + Minute / 60) / 12);", "x1", "A * Math.cos(2 * Math.PI * (Hour + Minute / 60) / 12)", "A", "Math.cos(2 * Math.PI * (Hour + Minute / 60) / 12)", "Math.cos", "Math", "2 * Math.PI * (Hour + Minute / 60) / 12", "2 * Math.PI * (Hour + Minute / 60)", "2 * Math.PI * (Hour + Minute / 60)", "2", "Math.PI", "Math", "Math.PI", "(Hour + Minute / 60)", "Hour", "Minute / 60", "Minute", "60", "12", "double y1 = A * Math.sin(2 * Math.PI * (Hour + Minute / 60) / 12);", "y1", "A * Math.sin(2 * Math.PI * (Hour + Minute / 60) / 12)", "A", "Math.sin(2 * Math.PI * (Hour + Minute / 60) / 12)", "Math.sin", "Math", "2 * Math.PI * (Hour + Minute / 60) / 12", "2 * Math.PI * (Hour + Minute / 60)", "2 * Math.PI * (Hour + Minute / 60)", "2", "Math.PI", "Math", "Math.PI", "(Hour + Minute / 60)", "Hour", "Minute / 60", "Minute", "60", "12", "double x2 = B * Math.cos(2 * Math.PI * Minute / 60);", "x2", "B * Math.cos(2 * Math.PI * Minute / 60)", "B", "Math.cos(2 * Math.PI * Minute / 60)", "Math.cos", "Math", "2 * Math.PI * Minute / 60", "2 * Math.PI * Minute", "2 * Math.PI * Minute", "2", "Math.PI", "Math", "Math.PI", "Minute", "60", "double y2 = B * Math.sin(2 * Math.PI * Minute / 60);", "y2", "B * Math.sin(2 * Math.PI * Minute / 60)", "B", "Math.sin(2 * Math.PI * Minute / 60)", "Math.sin", "Math", "2 * Math.PI * Minute / 60", "2 * Math.PI * Minute", "2 * Math.PI * Minute", "2", "Math.PI", "Math", "Math.PI", "Minute", "60", "System.out.println(Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2))", "Math.sqrt", "Math", "(x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)", "(x1 - x2) * (x1 - x2)", "(x1 - x2)", "x1", "x2", "(x1 - x2)", "x1", "x2", "(y1 - y2) * (y1 - y2)", "(y1 - y2)", "y1", "y2", "(y1 - y2)", "y1", "y2", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n\n double A = sc.nextInt();\n double B = sc.nextInt();\n\n double Hour = sc.nextInt();\n double Minute = sc.nextInt();\n\n double x1 = A * Math.cos(2 * Math.PI * (Hour + Minute / 60) / 12);\n double y1 = A * Math.sin(2 * Math.PI * (Hour + Minute / 60) / 12);\n double x2 = B * Math.cos(2 * Math.PI * Minute / 60);\n double y2 = B * Math.sin(2 * Math.PI * Minute / 60);\n \n System.out.println(Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)));\n\n }\n}", "public class Main{\n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n\n double A = sc.nextInt();\n double B = sc.nextInt();\n\n double Hour = sc.nextInt();\n double Minute = sc.nextInt();\n\n double x1 = A * Math.cos(2 * Math.PI * (Hour + Minute / 60) / 12);\n double y1 = A * Math.sin(2 * Math.PI * (Hour + Minute / 60) / 12);\n double x2 = B * Math.cos(2 * Math.PI * Minute / 60);\n double y2 = B * Math.sin(2 * Math.PI * Minute / 60);\n \n System.out.println(Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)));\n\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 Hour = sc.nextInt(); double Minute = sc.nextInt(); double x1 = A * Math.cos(2 * Math.PI * (Hour + Minute / 60) / 12); double y1 = A * Math.sin(2 * Math.PI * (Hour + Minute / 60) / 12); double x2 = B * Math.cos(2 * Math.PI * Minute / 60); double y2 = B * Math.sin(2 * Math.PI * Minute / 60); System.out.println(Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2))); } }
[ 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, 17, 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, 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 ], [ 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 ], [ 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 ], [ 8, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 61, 65 ], [ 60, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 66, 70 ], [ 59, 71 ], [ 73, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 73, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 8, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 8, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 6, 96 ], [ 96, 97 ], [ 0, 98 ], [ 98, 99 ], [ 98, 100 ] ]
[ "\n\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\t\tint hLong = sc.nextInt();\n\t\tint mLong = sc.nextInt();\n\t\tint hour = sc.nextInt();\n\t\tint minute = sc.nextInt();\n\t\tint mAngle = 6 * minute;\n\t\tdouble hAngle = 30 * hour + 0.5 * minute;\n\t\tdouble angleDiff = Math.abs(hAngle - mAngle);\n\t\tdouble result = 0;\n\n\t\t\tdouble aSq = Math.pow(hLong, 2) + Math.pow(mLong, 2) - 2 * hLong * mLong * Math.cos(Math.toRadians(angleDiff));\n\t\t\tresult = Math.sqrt(aSq);\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\tScanner sc = new Scanner(System.in);\n\t\tint hLong = sc.nextInt();\n\t\tint mLong = sc.nextInt();\n\t\tint hour = sc.nextInt();\n\t\tint minute = sc.nextInt();\n\t\tint mAngle = 6 * minute;\n\t\tdouble hAngle = 30 * hour + 0.5 * minute;\n\t\tdouble angleDiff = Math.abs(hAngle - mAngle);\n\t\tdouble result = 0;\n\n\t\t\tdouble aSq = Math.pow(hLong, 2) + Math.pow(mLong, 2) - 2 * hLong * mLong * Math.cos(Math.toRadians(angleDiff));\n\t\t\tresult = Math.sqrt(aSq);\n\n\t\tSystem.out.println(result);\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint hLong = sc.nextInt();\n\t\tint mLong = sc.nextInt();\n\t\tint hour = sc.nextInt();\n\t\tint minute = sc.nextInt();\n\t\tint mAngle = 6 * minute;\n\t\tdouble hAngle = 30 * hour + 0.5 * minute;\n\t\tdouble angleDiff = Math.abs(hAngle - mAngle);\n\t\tdouble result = 0;\n\n\t\t\tdouble aSq = Math.pow(hLong, 2) + Math.pow(mLong, 2) - 2 * hLong * mLong * Math.cos(Math.toRadians(angleDiff));\n\t\t\tresult = Math.sqrt(aSq);\n\n\t\tSystem.out.println(result);\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint hLong = sc.nextInt();\n\t\tint mLong = sc.nextInt();\n\t\tint hour = sc.nextInt();\n\t\tint minute = sc.nextInt();\n\t\tint mAngle = 6 * minute;\n\t\tdouble hAngle = 30 * hour + 0.5 * minute;\n\t\tdouble angleDiff = Math.abs(hAngle - mAngle);\n\t\tdouble result = 0;\n\n\t\t\tdouble aSq = Math.pow(hLong, 2) + Math.pow(mLong, 2) - 2 * hLong * mLong * Math.cos(Math.toRadians(angleDiff));\n\t\t\tresult = Math.sqrt(aSq);\n\n\t\tSystem.out.println(result);\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int hLong = sc.nextInt();", "hLong", "sc.nextInt()", "sc.nextInt", "sc", "int mLong = sc.nextInt();", "mLong", "sc.nextInt()", "sc.nextInt", "sc", "int hour = sc.nextInt();", "hour", "sc.nextInt()", "sc.nextInt", "sc", "int minute = sc.nextInt();", "minute", "sc.nextInt()", "sc.nextInt", "sc", "int mAngle = 6 * minute;", "mAngle", "6 * minute", "6", "minute", "double hAngle = 30 * hour + 0.5 * minute;", "hAngle", "30 * hour + 0.5 * minute", "30 * hour", "30", "hour", "0.5 * minute", "0.5", "minute", "double angleDiff = Math.abs(hAngle - mAngle);", "angleDiff", "Math.abs(hAngle - mAngle)", "Math.abs", "Math", "hAngle - mAngle", "hAngle", "mAngle", "double result = 0;", "result", "0", "double aSq = Math.pow(hLong, 2) + Math.pow(mLong, 2) - 2 * hLong * mLong * Math.cos(Math.toRadians(angleDiff));", "aSq", "Math.pow(hLong, 2) + Math.pow(mLong, 2) - 2 * hLong * mLong * Math.cos(Math.toRadians(angleDiff))", "Math.pow(hLong, 2) + Math.pow(mLong, 2)", "Math.pow(hLong, 2)", "Math.pow", "Math", "hLong", "2", "Math.pow(mLong, 2)", "Math.pow", "Math", "mLong", "2", "2 * hLong * mLong * Math.cos(Math.toRadians(angleDiff))", "mLong", "2 * hLong * mLong * Math.cos(Math.toRadians(angleDiff))", "2", "hLong", "mLong", "Math.cos(Math.toRadians(angleDiff))", "Math.cos", "Math", "Math.toRadians(angleDiff)", "Math.toRadians", "Math", "angleDiff", "result = Math.sqrt(aSq)", "result", "Math.sqrt(aSq)", "Math.sqrt", "Math", "aSq", "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\tScanner sc = new Scanner(System.in);\n\t\tint hLong = sc.nextInt();\n\t\tint mLong = sc.nextInt();\n\t\tint hour = sc.nextInt();\n\t\tint minute = sc.nextInt();\n\t\tint mAngle = 6 * minute;\n\t\tdouble hAngle = 30 * hour + 0.5 * minute;\n\t\tdouble angleDiff = Math.abs(hAngle - mAngle);\n\t\tdouble result = 0;\n\n\t\t\tdouble aSq = Math.pow(hLong, 2) + Math.pow(mLong, 2) - 2 * hLong * mLong * Math.cos(Math.toRadians(angleDiff));\n\t\t\tresult = Math.sqrt(aSq);\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\tScanner sc = new Scanner(System.in);\n\t\tint hLong = sc.nextInt();\n\t\tint mLong = sc.nextInt();\n\t\tint hour = sc.nextInt();\n\t\tint minute = sc.nextInt();\n\t\tint mAngle = 6 * minute;\n\t\tdouble hAngle = 30 * hour + 0.5 * minute;\n\t\tdouble angleDiff = Math.abs(hAngle - mAngle);\n\t\tdouble result = 0;\n\n\t\t\tdouble aSq = Math.pow(hLong, 2) + Math.pow(mLong, 2) - 2 * hLong * mLong * Math.cos(Math.toRadians(angleDiff));\n\t\t\tresult = Math.sqrt(aSq);\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) { Scanner sc = new Scanner(System.in); int hLong = sc.nextInt(); int mLong = sc.nextInt(); int hour = sc.nextInt(); int minute = sc.nextInt(); int mAngle = 6 * minute; double hAngle = 30 * hour + 0.5 * minute; double angleDiff = Math.abs(hAngle - mAngle); double result = 0; double aSq = Math.pow(hLong, 2) + Math.pow(mLong, 2) - 2 * hLong * mLong * Math.cos(Math.toRadians(angleDiff)); result = Math.sqrt(aSq); 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, 4, 18, 13, 2, 2, 2, 13, 17, 17, 2, 2, 2, 13, 2, 13, 17, 17, 17, 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, 4, 18, 18, 13, 13, 4, 18, 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 ], [ 34, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 37, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 47, 49 ], [ 44, 50 ], [ 43, 51 ], [ 8, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 56, 60 ], [ 55, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 61, 65 ], [ 54, 66 ], [ 68, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 68, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 8, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 6, 88 ], [ 88, 89 ], [ 0, 90 ], [ 90, 91 ], [ 90, 92 ] ]
[ "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 kakudo = Math.abs((m * 360 / 60) - ((h + (double)m / 60) * 360 / 12));\n\t\tdouble x = Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * Math.cos(Math.toRadians(kakudo)); \n\t\tSystem.out.println(Math.sqrt(x));\n\t}\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 kakudo = Math.abs((m * 360 / 60) - ((h + (double)m / 60) * 360 / 12));\n\t\tdouble x = Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * Math.cos(Math.toRadians(kakudo)); \n\t\tSystem.out.println(Math.sqrt(x));\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 kakudo = Math.abs((m * 360 / 60) - ((h + (double)m / 60) * 360 / 12));\n\t\tdouble x = Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * Math.cos(Math.toRadians(kakudo)); \n\t\tSystem.out.println(Math.sqrt(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 kakudo = Math.abs((m * 360 / 60) - ((h + (double)m / 60) * 360 / 12));\n\t\tdouble x = Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * Math.cos(Math.toRadians(kakudo)); \n\t\tSystem.out.println(Math.sqrt(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 kakudo = Math.abs((m * 360 / 60) - ((h + (double)m / 60) * 360 / 12));", "kakudo", "Math.abs((m * 360 / 60) - ((h + (double)m / 60) * 360 / 12))", "Math.abs", "Math", "(m * 360 / 60) - ((h + (double)m / 60) * 360 / 12)", "(m * 360 / 60)", "m * 360", "m", "360", "60", "((h + (double)m / 60) * 360 / 12)", "(h + (double)m / 60) * 360", "(h + (double)m / 60)", "h", "(double)m / 60", "(double)m", "60", "360", "12", "double x = Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * Math.cos(Math.toRadians(kakudo));", "x", "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", "System.out.println(Math.sqrt(x))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(x)", "Math.sqrt", "Math", "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 kakudo = Math.abs((m * 360 / 60) - ((h + (double)m / 60) * 360 / 12));\n\t\tdouble x = Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * Math.cos(Math.toRadians(kakudo)); \n\t\tSystem.out.println(Math.sqrt(x));\n\t}\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 kakudo = Math.abs((m * 360 / 60) - ((h + (double)m / 60) * 360 / 12));\n\t\tdouble x = Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * Math.cos(Math.toRadians(kakudo)); \n\t\tSystem.out.println(Math.sqrt(x));\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 kakudo = Math.abs((m * 360 / 60) - ((h + (double)m / 60) * 360 / 12)); double x = Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * Math.cos(Math.toRadians(kakudo)); System.out.println(Math.sqrt(x)); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 12, 13, 30, 41, 13, 2, 2, 13, 2, 13, 17, 17, 41, 13, 2, 13, 17, 41, 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, 20, 41, 13, 20, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 111, 14 ], [ 111, 15 ], [ 15, 16 ], [ 15, 17 ], [ 111, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 111, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 111, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 111, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 111, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 43, 49 ], [ 40, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 40, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 60, 61 ], [ 60, 62 ], [ 40, 63 ], [ 63, 64 ], [ 63, 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 ], [ 40, 90 ], [ 90, 91 ], [ 90, 92 ], [ 40, 93 ], [ 93, 94 ], [ 93, 95 ], [ 40, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 40, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 38, 108 ], [ 108, 109 ], [ 0, 110 ], [ 110, 111 ], [ 110, 112 ] ]
[ "import java.math.BigDecimal;\nimport java.math.MathContext;\nimport java.math.RoundingMode;\nimport java.util.Scanner;\n\npublic class Main {\n static Scanner sc = new Scanner(System.in);\n static double A = sc.nextDouble();\n static double B = sc.nextDouble();\n static double H = sc.nextDouble();\n static double M = sc.nextDouble();\n\n public static void main(String[] args) {\n //่ง’ๅบฆใ‚’ๆฑ‚ใ‚ใ‚‹\n double kHour = (H + (M / 60)) * 30;\n double kMin = M * 6;\n double kakudo = Math.abs(kHour - kMin);\n double dC = Math.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * Math.cos(Math.toRadians(kakudo));\n BigDecimal x = new BigDecimal(Math.sqrt(dC));\n MathContext mc = new MathContext(50, RoundingMode.UP);\n BigDecimal result = x.round(mc);\n System.out.print(result);\n\n\n\n }\n\n}", "import java.math.BigDecimal;", "BigDecimal", "java.math", "import java.math.MathContext;", "MathContext", "java.math", "import java.math.RoundingMode;", "RoundingMode", "java.math", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n static Scanner sc = new Scanner(System.in);\n static double A = sc.nextDouble();\n static double B = sc.nextDouble();\n static double H = sc.nextDouble();\n static double M = sc.nextDouble();\n\n public static void main(String[] args) {\n //่ง’ๅบฆใ‚’ๆฑ‚ใ‚ใ‚‹\n double kHour = (H + (M / 60)) * 30;\n double kMin = M * 6;\n double kakudo = Math.abs(kHour - kMin);\n double dC = Math.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * Math.cos(Math.toRadians(kakudo));\n BigDecimal x = new BigDecimal(Math.sqrt(dC));\n MathContext mc = new MathContext(50, RoundingMode.UP);\n BigDecimal result = x.round(mc);\n System.out.print(result);\n\n\n\n }\n\n}", "Main", "static Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "static double A = sc.nextDouble();", "A", "sc.nextDouble()", "sc.nextDouble", "sc", "static double B = sc.nextDouble();", "B", "sc.nextDouble()", "sc.nextDouble", "sc", "static double H = sc.nextDouble();", "H", "sc.nextDouble()", "sc.nextDouble", "sc", "static double M = sc.nextDouble();", "M", "sc.nextDouble()", "sc.nextDouble", "sc", "public static void main(String[] args) {\n //่ง’ๅบฆใ‚’ๆฑ‚ใ‚ใ‚‹\n double kHour = (H + (M / 60)) * 30;\n double kMin = M * 6;\n double kakudo = Math.abs(kHour - kMin);\n double dC = Math.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * Math.cos(Math.toRadians(kakudo));\n BigDecimal x = new BigDecimal(Math.sqrt(dC));\n MathContext mc = new MathContext(50, RoundingMode.UP);\n BigDecimal result = x.round(mc);\n System.out.print(result);\n\n\n\n }", "main", "{\n //่ง’ๅบฆใ‚’ๆฑ‚ใ‚ใ‚‹\n double kHour = (H + (M / 60)) * 30;\n double kMin = M * 6;\n double kakudo = Math.abs(kHour - kMin);\n double dC = Math.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * Math.cos(Math.toRadians(kakudo));\n BigDecimal x = new BigDecimal(Math.sqrt(dC));\n MathContext mc = new MathContext(50, RoundingMode.UP);\n BigDecimal result = x.round(mc);\n System.out.print(result);\n\n\n\n }", "double kHour = (H + (M / 60)) * 30;", "kHour", "(H + (M / 60)) * 30", "(H + (M / 60))", "H", "(M / 60)", "M", "60", "30", "double kMin = M * 6;", "kMin", "M * 6", "M", "6", "double kakudo = Math.abs(kHour - kMin);", "kakudo", "Math.abs(kHour - kMin)", "Math.abs", "Math", "kHour - kMin", "kHour", "kMin", "double dC = Math.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * Math.cos(Math.toRadians(kakudo));", "dC", "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", "BigDecimal x = new BigDecimal(Math.sqrt(dC));", "x", "new BigDecimal(Math.sqrt(dC))", "MathContext mc = new MathContext(50, RoundingMode.UP);", "mc", "new MathContext(50, RoundingMode.UP)", "BigDecimal result = x.round(mc);", "result", "x.round(mc)", "x.round", "x", "mc", "System.out.print(result)", "System.out.print", "System.out", "System", "System.out", "result", "String[] args", "args", "public class Main {\n static Scanner sc = new Scanner(System.in);\n static double A = sc.nextDouble();\n static double B = sc.nextDouble();\n static double H = sc.nextDouble();\n static double M = sc.nextDouble();\n\n public static void main(String[] args) {\n //่ง’ๅบฆใ‚’ๆฑ‚ใ‚ใ‚‹\n double kHour = (H + (M / 60)) * 30;\n double kMin = M * 6;\n double kakudo = Math.abs(kHour - kMin);\n double dC = Math.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * Math.cos(Math.toRadians(kakudo));\n BigDecimal x = new BigDecimal(Math.sqrt(dC));\n MathContext mc = new MathContext(50, RoundingMode.UP);\n BigDecimal result = x.round(mc);\n System.out.print(result);\n\n\n\n }\n\n}", "public class Main {\n static Scanner sc = new Scanner(System.in);\n static double A = sc.nextDouble();\n static double B = sc.nextDouble();\n static double H = sc.nextDouble();\n static double M = sc.nextDouble();\n\n public static void main(String[] args) {\n //่ง’ๅบฆใ‚’ๆฑ‚ใ‚ใ‚‹\n double kHour = (H + (M / 60)) * 30;\n double kMin = M * 6;\n double kakudo = Math.abs(kHour - kMin);\n double dC = Math.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * Math.cos(Math.toRadians(kakudo));\n BigDecimal x = new BigDecimal(Math.sqrt(dC));\n MathContext mc = new MathContext(50, RoundingMode.UP);\n BigDecimal result = x.round(mc);\n System.out.print(result);\n\n\n\n }\n\n}", "Main" ]
import java.math.BigDecimal; import java.math.MathContext; import java.math.RoundingMode; import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); static double A = sc.nextDouble(); static double B = sc.nextDouble(); static double H = sc.nextDouble(); static double M = sc.nextDouble(); public static void main(String[] args) { //่ง’ๅบฆใ‚’ๆฑ‚ใ‚ใ‚‹ double kHour = (H + (M / 60)) * 30; double kMin = M * 6; double kakudo = Math.abs(kHour - kMin); double dC = Math.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * Math.cos(Math.toRadians(kakudo)); BigDecimal x = new BigDecimal(Math.sqrt(dC)); MathContext mc = new MathContext(50, RoundingMode.UP); BigDecimal result = x.round(mc); System.out.print(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, 13, 17, 41, 13, 2, 2, 2, 13, 17, 13, 17, 41, 13, 4, 18, 13, 2, 13, 13, 0, 13, 8, 2, 13, 17, 2, 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, 2, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 17, 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 ], [ 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 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 39, 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 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 60, 62 ], [ 56, 63 ], [ 8, 64 ], [ 64, 65 ], [ 64, 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 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 8, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 98, 102 ], [ 6, 103 ], [ 103, 104 ], [ 0, 105 ], [ 105, 106 ], [ 105, 107 ] ]
[ "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 angleMinute = ((double)m) * 6;\n double angleHours = (((double)h) * 60 + m) / 2;\n double diff = Math.abs(angleHours - angleMinute);\n diff = diff > 180 ? 360 - diff : diff;\n\n double result = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(diff * (Math.PI / 180)));\n\n System.out.println(String.format(\"%.16f\", result));\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 int a = scanner.nextInt();\n int b = scanner.nextInt();\n int h = scanner.nextInt();\n int m = scanner.nextInt();\n\n double angleMinute = ((double)m) * 6;\n double angleHours = (((double)h) * 60 + m) / 2;\n double diff = Math.abs(angleHours - angleMinute);\n diff = diff > 180 ? 360 - diff : diff;\n\n double result = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(diff * (Math.PI / 180)));\n\n System.out.println(String.format(\"%.16f\", result));\n }\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 angleMinute = ((double)m) * 6;\n double angleHours = (((double)h) * 60 + m) / 2;\n double diff = Math.abs(angleHours - angleMinute);\n diff = diff > 180 ? 360 - diff : diff;\n\n double result = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(diff * (Math.PI / 180)));\n\n System.out.println(String.format(\"%.16f\", result));\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 angleMinute = ((double)m) * 6;\n double angleHours = (((double)h) * 60 + m) / 2;\n double diff = Math.abs(angleHours - angleMinute);\n diff = diff > 180 ? 360 - diff : diff;\n\n double result = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(diff * (Math.PI / 180)));\n\n System.out.println(String.format(\"%.16f\", result));\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 angleMinute = ((double)m) * 6;", "angleMinute", "((double)m) * 6", "((double)m)", "6", "double angleHours = (((double)h) * 60 + m) / 2;", "angleHours", "(((double)h) * 60 + m) / 2", "(((double)h) * 60 + m)", "((double)h) * 60", "((double)h)", "60", "m", "2", "double diff = Math.abs(angleHours - angleMinute);", "diff", "Math.abs(angleHours - angleMinute)", "Math.abs", "Math", "angleHours - angleMinute", "angleHours", "angleMinute", "diff = diff > 180 ? 360 - diff : diff", "diff", "diff > 180 ? 360 - diff : diff", "diff > 180", "diff", "180", "360 - diff", "360", "diff", "diff", "double result = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(diff * (Math.PI / 180)));", "result", "Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(diff * (Math.PI / 180)))", "Math.sqrt", "Math", "a * a + b * b - 2 * a * b * Math.cos(diff * (Math.PI / 180))", "a * a + b * b", "a * a", "a", "a", "b * b", "b", "b", "2 * a * b * Math.cos(diff * (Math.PI / 180))", "b", "2 * a * b * Math.cos(diff * (Math.PI / 180))", "2", "a", "b", "Math.cos(diff * (Math.PI / 180))", "Math.cos", "Math", "diff * (Math.PI / 180)", "diff", "(Math.PI / 180)", "Math.PI", "Math", "Math.PI", "180", "System.out.println(String.format(\"%.16f\", result))", "System.out.println", "System.out", "System", "System.out", "String.format(\"%.16f\", result)", "String.format", "String", "\"%.16f\"", "result", "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 angleMinute = ((double)m) * 6;\n double angleHours = (((double)h) * 60 + m) / 2;\n double diff = Math.abs(angleHours - angleMinute);\n diff = diff > 180 ? 360 - diff : diff;\n\n double result = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(diff * (Math.PI / 180)));\n\n System.out.println(String.format(\"%.16f\", result));\n }\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 angleMinute = ((double)m) * 6;\n double angleHours = (((double)h) * 60 + m) / 2;\n double diff = Math.abs(angleHours - angleMinute);\n diff = diff > 180 ? 360 - diff : diff;\n\n double result = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(diff * (Math.PI / 180)));\n\n System.out.println(String.format(\"%.16f\", result));\n }\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 angleMinute = ((double)m) * 6; double angleHours = (((double)h) * 60 + m) / 2; double diff = Math.abs(angleHours - angleMinute); diff = diff > 180 ? 360 - diff : diff; double result = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(diff * (Math.PI / 180))); System.out.println(String.format("%.16f", 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, 2, 13, 17, 17, 2, 2, 2, 13, 17, 17, 17, 41, 13, 2, 2, 13, 17, 17, 41, 13, 4, 18, 13, 2, 13, 13, 41, 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, 4, 18, 13, 13, 4, 18, 18, 13, 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 ], [ 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 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 59, 61 ], [ 8, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 64, 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 ], [ 8, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 6, 103 ], [ 103, 104 ], [ 0, 105 ], [ 105, 106 ], [ 105, 107 ] ]
[ "import java.util.*;\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 hour = H * 360 / 12.0 + M * 360 / 60.0 / 12.0;\n double min = M * 360 / 60.0;\n double diff = Math.abs(hour - min);\n// System.out.println(diff);\n double degree = Math.min(diff, 360 - diff);\n// System.out.println(degree);\n double ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(degree)));\n System.out.println(ans);\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 double hour = H * 360 / 12.0 + M * 360 / 60.0 / 12.0;\n double min = M * 360 / 60.0;\n double diff = Math.abs(hour - min);\n// System.out.println(diff);\n double degree = Math.min(diff, 360 - diff);\n// System.out.println(degree);\n double ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(degree)));\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 int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n double hour = H * 360 / 12.0 + M * 360 / 60.0 / 12.0;\n double min = M * 360 / 60.0;\n double diff = Math.abs(hour - min);\n// System.out.println(diff);\n double degree = Math.min(diff, 360 - diff);\n// System.out.println(degree);\n double ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(degree)));\n System.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 int M = sc.nextInt();\n double hour = H * 360 / 12.0 + M * 360 / 60.0 / 12.0;\n double min = M * 360 / 60.0;\n double diff = Math.abs(hour - min);\n// System.out.println(diff);\n double degree = Math.min(diff, 360 - diff);\n// System.out.println(degree);\n double ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(degree)));\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 hour = H * 360 / 12.0 + M * 360 / 60.0 / 12.0;", "hour", "H * 360 / 12.0 + M * 360 / 60.0 / 12.0", "H * 360 / 12.0", "H * 360", "H", "360", "12.0", "M * 360 / 60.0 / 12.0", "M * 360 / 60.0 / 12.0", "M * 360", "M", "360", "60.0", "12.0", "double min = M * 360 / 60.0;", "min", "M * 360 / 60.0", "M * 360", "M", "360", "60.0", "double diff = Math.abs(hour - min);", "diff", "Math.abs(hour - min)", "Math.abs", "Math", "hour - min", "hour", "min", "double degree = Math.min(diff, 360 - diff);", "degree", "Math.min(diff, 360 - diff)", "Math.min", "Math", "diff", "360 - diff", "360", "diff", "double ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(degree)));", "ans", "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(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 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 hour = H * 360 / 12.0 + M * 360 / 60.0 / 12.0;\n double min = M * 360 / 60.0;\n double diff = Math.abs(hour - min);\n// System.out.println(diff);\n double degree = Math.min(diff, 360 - diff);\n// System.out.println(degree);\n double ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(degree)));\n System.out.println(ans);\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 hour = H * 360 / 12.0 + M * 360 / 60.0 / 12.0;\n double min = M * 360 / 60.0;\n double diff = Math.abs(hour - min);\n// System.out.println(diff);\n double degree = Math.min(diff, 360 - diff);\n// System.out.println(degree);\n double ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(degree)));\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); int A = sc.nextInt(); int B = sc.nextInt(); int H = sc.nextInt(); int M = sc.nextInt(); double hour = H * 360 / 12.0 + M * 360 / 60.0 / 12.0; double min = M * 360 / 60.0; double diff = Math.abs(hour - min); // System.out.println(diff); double degree = Math.min(diff, 360 - diff); // System.out.println(degree); double ans = Math.sqrt(A * A + B * B - 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, 4, 18, 13, 41, 13, 2, 2, 2, 2, 2, 13, 17, 17, 2, 13, 17, 2, 17, 17, 18, 13, 13, 41, 13, 2, 2, 2, 13, 17, 2, 17, 17, 18, 13, 13, 41, 13, 2, 4, 18, 13, 2, 2, 13, 4, 18, 13, 13, 2, 13, 4, 18, 13, 13, 17, 4, 18, 13, 2, 2, 13, 4, 18, 13, 13, 2, 13, 4, 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 ], [ 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 ], [ 33, 34 ], [ 8, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 39, 45 ], [ 45, 46 ], [ 45, 47 ], [ 38, 48 ], [ 48, 49 ], [ 48, 50 ], [ 37, 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 ], [ 64, 65 ], [ 64, 66 ], [ 8, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 73, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 70, 86 ], [ 69, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 90, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 87, 103 ], [ 8, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 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\t\tint int1 = sc.nextInt();\n\t\tint int2 = sc.nextInt();\n\t\tdouble hour = sc.nextInt();\n\t\tdouble minit = sc.nextInt();\n\t\tsc.close();\n\n\t\tdouble rad1 = (hour % 12 * 60 + minit * 1) / (6 * 60) * Math.PI;\n\t\tdouble rad2 = ((minit * 12) / (6 * 60)) * Math.PI;\n\n\n\n\t\t// ไฝ™ๅผฆๅฎš็†\n\t\tdouble tmp = Math.pow(int1*Math.sin(rad1)-int2*Math.sin(rad2),2) + Math.pow(int1*Math.cos(rad1)-int2*Math.cos(rad2),2);\n\t\tSystem.out.println(Math.sqrt(tmp));\n\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint int1 = sc.nextInt();\n\t\tint int2 = sc.nextInt();\n\t\tdouble hour = sc.nextInt();\n\t\tdouble minit = sc.nextInt();\n\t\tsc.close();\n\n\t\tdouble rad1 = (hour % 12 * 60 + minit * 1) / (6 * 60) * Math.PI;\n\t\tdouble rad2 = ((minit * 12) / (6 * 60)) * Math.PI;\n\n\n\n\t\t// ไฝ™ๅผฆๅฎš็†\n\t\tdouble tmp = Math.pow(int1*Math.sin(rad1)-int2*Math.sin(rad2),2) + Math.pow(int1*Math.cos(rad1)-int2*Math.cos(rad2),2);\n\t\tSystem.out.println(Math.sqrt(tmp));\n\n\t}\n\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint int1 = sc.nextInt();\n\t\tint int2 = sc.nextInt();\n\t\tdouble hour = sc.nextInt();\n\t\tdouble minit = sc.nextInt();\n\t\tsc.close();\n\n\t\tdouble rad1 = (hour % 12 * 60 + minit * 1) / (6 * 60) * Math.PI;\n\t\tdouble rad2 = ((minit * 12) / (6 * 60)) * Math.PI;\n\n\n\n\t\t// ไฝ™ๅผฆๅฎš็†\n\t\tdouble tmp = Math.pow(int1*Math.sin(rad1)-int2*Math.sin(rad2),2) + Math.pow(int1*Math.cos(rad1)-int2*Math.cos(rad2),2);\n\t\tSystem.out.println(Math.sqrt(tmp));\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint int1 = sc.nextInt();\n\t\tint int2 = sc.nextInt();\n\t\tdouble hour = sc.nextInt();\n\t\tdouble minit = sc.nextInt();\n\t\tsc.close();\n\n\t\tdouble rad1 = (hour % 12 * 60 + minit * 1) / (6 * 60) * Math.PI;\n\t\tdouble rad2 = ((minit * 12) / (6 * 60)) * Math.PI;\n\n\n\n\t\t// ไฝ™ๅผฆๅฎš็†\n\t\tdouble tmp = Math.pow(int1*Math.sin(rad1)-int2*Math.sin(rad2),2) + Math.pow(int1*Math.cos(rad1)-int2*Math.cos(rad2),2);\n\t\tSystem.out.println(Math.sqrt(tmp));\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int int1 = sc.nextInt();", "int1", "sc.nextInt()", "sc.nextInt", "sc", "int int2 = sc.nextInt();", "int2", "sc.nextInt()", "sc.nextInt", "sc", "double hour = sc.nextInt();", "hour", "sc.nextInt()", "sc.nextInt", "sc", "double minit = sc.nextInt();", "minit", "sc.nextInt()", "sc.nextInt", "sc", "sc.close()", "sc.close", "sc", "double rad1 = (hour % 12 * 60 + minit * 1) / (6 * 60) * Math.PI;", "rad1", "(hour % 12 * 60 + minit * 1) / (6 * 60) * Math.PI", "(hour % 12 * 60 + minit * 1) / (6 * 60)", "(hour % 12 * 60 + minit * 1)", "hour % 12 * 60", "hour % 12", "hour", "12", "60", "minit * 1", "minit", "1", "(6 * 60)", "6", "60", "Math.PI", "Math", "Math.PI", "double rad2 = ((minit * 12) / (6 * 60)) * Math.PI;", "rad2", "((minit * 12) / (6 * 60)) * Math.PI", "((minit * 12) / (6 * 60))", "(minit * 12)", "minit", "12", "(6 * 60)", "6", "60", "Math.PI", "Math", "Math.PI", "double tmp = Math.pow(int1*Math.sin(rad1)-int2*Math.sin(rad2),2) + Math.pow(int1*Math.cos(rad1)-int2*Math.cos(rad2),2);", "tmp", "Math.pow(int1*Math.sin(rad1)-int2*Math.sin(rad2),2) + Math.pow(int1*Math.cos(rad1)-int2*Math.cos(rad2),2)", "Math.pow(int1*Math.sin(rad1)-int2*Math.sin(rad2),2)", "Math.pow", "Math", "int1*Math.sin(rad1)-int2*Math.sin(rad2)", "int1*Math.sin(rad1)", "int1", "Math.sin(rad1)", "Math.sin", "Math", "rad1", "int2*Math.sin(rad2)", "int2", "Math.sin(rad2)", "Math.sin", "Math", "rad2", "2", "Math.pow(int1*Math.cos(rad1)-int2*Math.cos(rad2),2)", "Math.pow", "Math", "int1*Math.cos(rad1)-int2*Math.cos(rad2)", "int1*Math.cos(rad1)", "int1", "Math.cos(rad1)", "Math.cos", "Math", "rad1", "int2*Math.cos(rad2)", "int2", "Math.cos(rad2)", "Math.cos", "Math", "rad2", "2", "System.out.println(Math.sqrt(tmp))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(tmp)", "Math.sqrt", "Math", "tmp", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint int1 = sc.nextInt();\n\t\tint int2 = sc.nextInt();\n\t\tdouble hour = sc.nextInt();\n\t\tdouble minit = sc.nextInt();\n\t\tsc.close();\n\n\t\tdouble rad1 = (hour % 12 * 60 + minit * 1) / (6 * 60) * Math.PI;\n\t\tdouble rad2 = ((minit * 12) / (6 * 60)) * Math.PI;\n\n\n\n\t\t// ไฝ™ๅผฆๅฎš็†\n\t\tdouble tmp = Math.pow(int1*Math.sin(rad1)-int2*Math.sin(rad2),2) + Math.pow(int1*Math.cos(rad1)-int2*Math.cos(rad2),2);\n\t\tSystem.out.println(Math.sqrt(tmp));\n\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint int1 = sc.nextInt();\n\t\tint int2 = sc.nextInt();\n\t\tdouble hour = sc.nextInt();\n\t\tdouble minit = sc.nextInt();\n\t\tsc.close();\n\n\t\tdouble rad1 = (hour % 12 * 60 + minit * 1) / (6 * 60) * Math.PI;\n\t\tdouble rad2 = ((minit * 12) / (6 * 60)) * Math.PI;\n\n\n\n\t\t// ไฝ™ๅผฆๅฎš็†\n\t\tdouble tmp = Math.pow(int1*Math.sin(rad1)-int2*Math.sin(rad2),2) + Math.pow(int1*Math.cos(rad1)-int2*Math.cos(rad2),2);\n\t\tSystem.out.println(Math.sqrt(tmp));\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); int int1 = sc.nextInt(); int int2 = sc.nextInt(); double hour = sc.nextInt(); double minit = sc.nextInt(); sc.close(); double rad1 = (hour % 12 * 60 + minit * 1) / (6 * 60) * Math.PI; double rad2 = ((minit * 12) / (6 * 60)) * Math.PI; // ไฝ™ๅผฆๅฎš็† double tmp = Math.pow(int1*Math.sin(rad1)-int2*Math.sin(rad2),2) + Math.pow(int1*Math.cos(rad1)-int2*Math.cos(rad2),2); System.out.println(Math.sqrt(tmp)); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 17, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 2, 13, 2, 13, 17, 41, 13, 4, 18, 13, 2, 2, 13, 13, 17, 41, 13, 4, 18, 13, 13, 41, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 13, 0, 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 ], [ 4, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 11, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 11, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 11, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 38, 40 ], [ 11, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 11, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 11, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 64, 66 ], [ 59, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 67, 73 ], [ 11, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 11, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 9, 86 ], [ 86, 87 ] ]
[ "import java.util.Scanner;\nclass Main{\n static Scanner sc=new Scanner(System.in);\n public static void main(String[] args){\n int A = sc.nextInt();\n int B = sc.nextInt();\n double H = 5*sc.nextDouble();\n double M = sc.nextDouble();\n H = H+M/12;\n \tdouble RAD =Math.toRadians((M-H)*6);\n double COS = Math.cos(RAD);\n double ans = (A*A)+(B*B)-(2*A*B*COS);\n ans = Math.sqrt(ans);\n \tSystem.out.println(ans);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n static Scanner sc=new Scanner(System.in);\n public static void main(String[] args){\n int A = sc.nextInt();\n int B = sc.nextInt();\n double H = 5*sc.nextDouble();\n double M = sc.nextDouble();\n H = H+M/12;\n \tdouble RAD =Math.toRadians((M-H)*6);\n double COS = Math.cos(RAD);\n double ans = (A*A)+(B*B)-(2*A*B*COS);\n ans = Math.sqrt(ans);\n \tSystem.out.println(ans);\n }\n}", "Main", "static Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main(String[] args){\n int A = sc.nextInt();\n int B = sc.nextInt();\n double H = 5*sc.nextDouble();\n double M = sc.nextDouble();\n H = H+M/12;\n \tdouble RAD =Math.toRadians((M-H)*6);\n double COS = Math.cos(RAD);\n double ans = (A*A)+(B*B)-(2*A*B*COS);\n ans = Math.sqrt(ans);\n \tSystem.out.println(ans);\n }", "main", "{\n int A = sc.nextInt();\n int B = sc.nextInt();\n double H = 5*sc.nextDouble();\n double M = sc.nextDouble();\n H = H+M/12;\n \tdouble RAD =Math.toRadians((M-H)*6);\n double COS = Math.cos(RAD);\n double ans = (A*A)+(B*B)-(2*A*B*COS);\n ans = Math.sqrt(ans);\n \tSystem.out.println(ans);\n }", "int A = sc.nextInt();", "A", "sc.nextInt()", "sc.nextInt", "sc", "int B = sc.nextInt();", "B", "sc.nextInt()", "sc.nextInt", "sc", "double H = 5*sc.nextDouble();", "H", "5*sc.nextDouble()", "5", "sc.nextDouble()", "sc.nextDouble", "sc", "double M = sc.nextDouble();", "M", "sc.nextDouble()", "sc.nextDouble", "sc", "H = H+M/12", "H", "H+M/12", "H", "M/12", "M", "12", "double RAD =Math.toRadians((M-H)*6);", "RAD", "Math.toRadians((M-H)*6)", "Math.toRadians", "Math", "(M-H)*6", "(M-H)", "M", "H", "6", "double COS = Math.cos(RAD);", "COS", "Math.cos(RAD)", "Math.cos", "Math", "RAD", "double ans = (A*A)+(B*B)-(2*A*B*COS);", "ans", "(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", "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" ]
import java.util.Scanner; class Main{ static Scanner sc=new Scanner(System.in); public static void main(String[] args){ int A = sc.nextInt(); int B = sc.nextInt(); double H = 5*sc.nextDouble(); double M = sc.nextDouble(); H = H+M/12; double RAD =Math.toRadians((M-H)*6); double COS = Math.cos(RAD); double ans = (A*A)+(B*B)-(2*A*B*COS); 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, 17, 13, 41, 13, 2, 17, 13, 41, 13, 2, 2, 13, 17, 2, 17, 13, 41, 13, 17, 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, 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 ], [ 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 ], [ 32, 34 ], [ 34, 35 ], [ 34, 36 ], [ 8, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 39, 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 ], [ 8, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 54, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 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 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 8, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 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 in = new Scanner(System.in);\n\t\t\n\t\tdouble A = in.nextDouble();\n\t\tdouble B = in.nextDouble();\n\t\tdouble ho = in.nextDouble();\n\t\tdouble mi = in.nextDouble();\n\t\t\n\t\tdouble rad = 60/mi;\n\t\tdouble radMi = 360/rad;\n\t\tdouble radiHo = (ho*30) + (30/rad);\n\t\t\n\t\tdouble radian = 0;\n\t\tif(radiHo > radMi){radian = radiHo - radMi;}\n\t\telse{radian = radMi - radiHo;}\n\t\t\n\t\tdouble result = (A*A) + (B*B) - 2*A*B* Math.cos(Math.toRadians(radian));\n\t\tdouble ans = Math.sqrt(result);\n\t\tSystem.out.println(ans);\n\t\t\n\t\t\n \n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main (String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tdouble A = in.nextDouble();\n\t\tdouble B = in.nextDouble();\n\t\tdouble ho = in.nextDouble();\n\t\tdouble mi = in.nextDouble();\n\t\t\n\t\tdouble rad = 60/mi;\n\t\tdouble radMi = 360/rad;\n\t\tdouble radiHo = (ho*30) + (30/rad);\n\t\t\n\t\tdouble radian = 0;\n\t\tif(radiHo > radMi){radian = radiHo - radMi;}\n\t\telse{radian = radMi - radiHo;}\n\t\t\n\t\tdouble result = (A*A) + (B*B) - 2*A*B* Math.cos(Math.toRadians(radian));\n\t\tdouble ans = Math.sqrt(result);\n\t\tSystem.out.println(ans);\n\t\t\n\t\t\n \n\t}\n}", "Main", "public static void main (String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tdouble A = in.nextDouble();\n\t\tdouble B = in.nextDouble();\n\t\tdouble ho = in.nextDouble();\n\t\tdouble mi = in.nextDouble();\n\t\t\n\t\tdouble rad = 60/mi;\n\t\tdouble radMi = 360/rad;\n\t\tdouble radiHo = (ho*30) + (30/rad);\n\t\t\n\t\tdouble radian = 0;\n\t\tif(radiHo > radMi){radian = radiHo - radMi;}\n\t\telse{radian = radMi - radiHo;}\n\t\t\n\t\tdouble result = (A*A) + (B*B) - 2*A*B* Math.cos(Math.toRadians(radian));\n\t\tdouble ans = Math.sqrt(result);\n\t\tSystem.out.println(ans);\n\t\t\n\t\t\n \n\t}", "main", "{\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tdouble A = in.nextDouble();\n\t\tdouble B = in.nextDouble();\n\t\tdouble ho = in.nextDouble();\n\t\tdouble mi = in.nextDouble();\n\t\t\n\t\tdouble rad = 60/mi;\n\t\tdouble radMi = 360/rad;\n\t\tdouble radiHo = (ho*30) + (30/rad);\n\t\t\n\t\tdouble radian = 0;\n\t\tif(radiHo > radMi){radian = radiHo - radMi;}\n\t\telse{radian = radMi - radiHo;}\n\t\t\n\t\tdouble result = (A*A) + (B*B) - 2*A*B* Math.cos(Math.toRadians(radian));\n\t\tdouble ans = Math.sqrt(result);\n\t\tSystem.out.println(ans);\n\t\t\n\t\t\n \n\t}", "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 ho = in.nextDouble();", "ho", "in.nextDouble()", "in.nextDouble", "in", "double mi = in.nextDouble();", "mi", "in.nextDouble()", "in.nextDouble", "in", "double rad = 60/mi;", "rad", "60/mi", "60", "mi", "double radMi = 360/rad;", "radMi", "360/rad", "360", "rad", "double radiHo = (ho*30) + (30/rad);", "radiHo", "(ho*30) + (30/rad)", "(ho*30)", "ho", "30", "(30/rad)", "30", "rad", "double radian = 0;", "radian", "0", "if(radiHo > radMi){radian = radiHo - radMi;}\n\t\telse{radian = radMi - radiHo;}", "radiHo > radMi", "radiHo", "radMi", "{radian = radiHo - radMi;}", "radian = radiHo - radMi", "radian", "radiHo - radMi", "radiHo", "radMi", "{radian = radMi - radiHo;}", "radian = radMi - radiHo", "radian", "radMi - radiHo", "radMi", "radiHo", "double result = (A*A) + (B*B) - 2*A*B* Math.cos(Math.toRadians(radian));", "result", "(A*A) + (B*B) - 2*A*B* Math.cos(Math.toRadians(radian))", "(A*A) + (B*B)", "(A*A)", "A", "A", "(B*B)", "B", "B", "2*A*B* Math.cos(Math.toRadians(radian))", "B", "2*A*B* Math.cos(Math.toRadians(radian))", "2", "A", "B", "Math.cos(Math.toRadians(radian))", "Math.cos", "Math", "Math.toRadians(radian)", "Math.toRadians", "Math", "radian", "double ans = Math.sqrt(result);", "ans", "Math.sqrt(result)", "Math.sqrt", "Math", "result", "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 in = new Scanner(System.in);\n\t\t\n\t\tdouble A = in.nextDouble();\n\t\tdouble B = in.nextDouble();\n\t\tdouble ho = in.nextDouble();\n\t\tdouble mi = in.nextDouble();\n\t\t\n\t\tdouble rad = 60/mi;\n\t\tdouble radMi = 360/rad;\n\t\tdouble radiHo = (ho*30) + (30/rad);\n\t\t\n\t\tdouble radian = 0;\n\t\tif(radiHo > radMi){radian = radiHo - radMi;}\n\t\telse{radian = radMi - radiHo;}\n\t\t\n\t\tdouble result = (A*A) + (B*B) - 2*A*B* Math.cos(Math.toRadians(radian));\n\t\tdouble ans = Math.sqrt(result);\n\t\tSystem.out.println(ans);\n\t\t\n\t\t\n \n\t}\n}", "public class Main {\n\tpublic static void main (String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tdouble A = in.nextDouble();\n\t\tdouble B = in.nextDouble();\n\t\tdouble ho = in.nextDouble();\n\t\tdouble mi = in.nextDouble();\n\t\t\n\t\tdouble rad = 60/mi;\n\t\tdouble radMi = 360/rad;\n\t\tdouble radiHo = (ho*30) + (30/rad);\n\t\t\n\t\tdouble radian = 0;\n\t\tif(radiHo > radMi){radian = radiHo - radMi;}\n\t\telse{radian = radMi - radiHo;}\n\t\t\n\t\tdouble result = (A*A) + (B*B) - 2*A*B* Math.cos(Math.toRadians(radian));\n\t\tdouble ans = Math.sqrt(result);\n\t\tSystem.out.println(ans);\n\t\t\n\t\t\n \n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main (String[] args) { Scanner in = new Scanner(System.in); double A = in.nextDouble(); double B = in.nextDouble(); double ho = in.nextDouble(); double mi = in.nextDouble(); double rad = 60/mi; double radMi = 360/rad; double radiHo = (ho*30) + (30/rad); double radian = 0; if(radiHo > radMi){radian = radiHo - radMi;} else{radian = radMi - radiHo;} double result = (A*A) + (B*B) - 2*A*B* Math.cos(Math.toRadians(radian)); double ans = Math.sqrt(result); 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, 13, 17, 17, 2, 2, 13, 17, 17, 41, 13, 2, 17, 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, 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 ]
[ [ 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 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 8, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 8, 52 ], [ 52, 53 ], [ 52, 54 ], [ 8, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 55, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 8, 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 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 100, 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.*;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \tint a = sc.nextInt();\n \tint b = sc.nextInt();\n \tdouble h = sc.nextDouble();\n \tdouble m = sc.nextDouble();\n \tdouble hk = ((h / 12) * 360) + ((m / 60) * 30);\n \t//System.out.println(hk);\n \tdouble mk = 360 * (m / 60);\n \t//System.out.println(mk);\n \tdouble k = 0;\n \tif(mk >= hk){\n k = mk -hk;\n }else{\n k = hk - mk; \n }\n \tif (k>=180){\n k = 360 - k;\n }\n \t//System.out.println(k); \n \tdouble cosk = Math.cos(Math.toRadians(k));\n \t//System.out.println(cosk); \n \tdouble c = (a*a) + (b*b) - (2*a*b*cosk);\n System.out.println(Math.sqrt(c));\n }\n}", "import java.util.*;", "util.*", "java", "class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \tint a = sc.nextInt();\n \tint b = sc.nextInt();\n \tdouble h = sc.nextDouble();\n \tdouble m = sc.nextDouble();\n \tdouble hk = ((h / 12) * 360) + ((m / 60) * 30);\n \t//System.out.println(hk);\n \tdouble mk = 360 * (m / 60);\n \t//System.out.println(mk);\n \tdouble k = 0;\n \tif(mk >= hk){\n k = mk -hk;\n }else{\n k = hk - mk; \n }\n \tif (k>=180){\n k = 360 - k;\n }\n \t//System.out.println(k); \n \tdouble cosk = Math.cos(Math.toRadians(k));\n \t//System.out.println(cosk); \n \tdouble c = (a*a) + (b*b) - (2*a*b*cosk);\n System.out.println(Math.sqrt(c));\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \tint a = sc.nextInt();\n \tint b = sc.nextInt();\n \tdouble h = sc.nextDouble();\n \tdouble m = sc.nextDouble();\n \tdouble hk = ((h / 12) * 360) + ((m / 60) * 30);\n \t//System.out.println(hk);\n \tdouble mk = 360 * (m / 60);\n \t//System.out.println(mk);\n \tdouble k = 0;\n \tif(mk >= hk){\n k = mk -hk;\n }else{\n k = hk - mk; \n }\n \tif (k>=180){\n k = 360 - k;\n }\n \t//System.out.println(k); \n \tdouble cosk = Math.cos(Math.toRadians(k));\n \t//System.out.println(cosk); \n \tdouble c = (a*a) + (b*b) - (2*a*b*cosk);\n System.out.println(Math.sqrt(c));\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n \tint a = sc.nextInt();\n \tint b = sc.nextInt();\n \tdouble h = sc.nextDouble();\n \tdouble m = sc.nextDouble();\n \tdouble hk = ((h / 12) * 360) + ((m / 60) * 30);\n \t//System.out.println(hk);\n \tdouble mk = 360 * (m / 60);\n \t//System.out.println(mk);\n \tdouble k = 0;\n \tif(mk >= hk){\n k = mk -hk;\n }else{\n k = hk - mk; \n }\n \tif (k>=180){\n k = 360 - k;\n }\n \t//System.out.println(k); \n \tdouble cosk = Math.cos(Math.toRadians(k));\n \t//System.out.println(cosk); \n \tdouble c = (a*a) + (b*b) - (2*a*b*cosk);\n System.out.println(Math.sqrt(c));\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.nextDouble();", "h", "sc.nextDouble()", "sc.nextDouble", "sc", "double m = sc.nextDouble();", "m", "sc.nextDouble()", "sc.nextDouble", "sc", "double hk = ((h / 12) * 360) + ((m / 60) * 30);", "hk", "((h / 12) * 360) + ((m / 60) * 30)", "((h / 12) * 360)", "(h / 12)", "h", "12", "360", "((m / 60) * 30)", "(m / 60)", "m", "60", "30", "double mk = 360 * (m / 60);", "mk", "360 * (m / 60)", "360", "(m / 60)", "m", "60", "double k = 0;", "k", "0", "if(mk >= hk){\n k = mk -hk;\n }else{\n k = hk - mk; \n }", "mk >= hk", "mk", "hk", "{\n k = mk -hk;\n }", "k = mk -hk", "k", "mk -hk", "mk", "hk", "{\n k = hk - mk; \n }", "k = hk - mk", "k", "hk - mk", "hk", "mk", "if (k>=180){\n k = 360 - k;\n }", "k>=180", "k", "180", "{\n k = 360 - k;\n }", "k = 360 - k", "k", "360 - k", "360", "k", "double cosk = Math.cos(Math.toRadians(k));", "cosk", "Math.cos(Math.toRadians(k))", "Math.cos", "Math", "Math.toRadians(k)", "Math.toRadians", "Math", "k", "double c = (a*a) + (b*b) - (2*a*b*cosk);", "c", "(a*a) + (b*b) - (2*a*b*cosk)", "(a*a) + (b*b)", "(a*a)", "a", "a", "(b*b)", "b", "b", "(2*a*b*cosk)", "b", "2*a*b*cosk", "2", "a", "b", "cosk", "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.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); double h = sc.nextDouble(); double m = sc.nextDouble(); double hk = ((h / 12) * 360) + ((m / 60) * 30); //System.out.println(hk); double mk = 360 * (m / 60); //System.out.println(mk); double k = 0; if(mk >= hk){ k = mk -hk; }else{ k = hk - mk; } if (k>=180){ k = 360 - k; } //System.out.println(k); double cosk = Math.cos(Math.toRadians(k)); //System.out.println(cosk); double c = (a*a) + (b*b) - (2*a*b*cosk); System.out.println(Math.sqrt(c)); } }
[ 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, 4, 18, 13, 0, 13, 4, 18, 13, 4, 18, 13, 0, 13, 4, 18, 13, 4, 18, 13, 0, 13, 4, 18, 13, 4, 18, 13, 41, 13, 18, 13, 13, 41, 13, 2, 2, 2, 2, 17, 13, 13, 17, 2, 2, 2, 17, 13, 13, 17, 41, 13, 2, 2, 2, 17, 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, 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 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 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 ], [ 47, 48 ], [ 46, 49 ], [ 49, 50 ], [ 50, 51 ], [ 8, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 54, 56 ], [ 8, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 62, 62 ], [ 62, 63 ], [ 62, 64 ], [ 62, 65 ], [ 60, 66 ], [ 59, 67 ], [ 67, 68 ], [ 69, 69 ], [ 69, 70 ], [ 69, 71 ], [ 69, 72 ], [ 67, 73 ], [ 8, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 78, 78 ], [ 78, 79 ], [ 78, 80 ], [ 78, 81 ], [ 76, 82 ], [ 8, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 90, 94 ], [ 89, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 95, 99 ], [ 88, 100 ], [ 102, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 102, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 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.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint A, B, H, M;\n\n\t\tA = Integer.parseInt(in.next());\n\t\tB = Integer.parseInt(in.next());\n\t\tH = Integer.parseInt(in.next());\n\t\tM = Integer.parseInt(in.next());\n\t\tdouble pi = Math.PI;\n\n\t\tdouble alpha = 2 * pi * H / 12 + 2 * pi * M / 720;\n\t\tdouble beta = 2 * pi * M / 60;\n\n\t\tdouble ans = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * Math.cos(alpha - beta));\n\t\tSystem.out.println(ans);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint A, B, H, M;\n\n\t\tA = Integer.parseInt(in.next());\n\t\tB = Integer.parseInt(in.next());\n\t\tH = Integer.parseInt(in.next());\n\t\tM = Integer.parseInt(in.next());\n\t\tdouble pi = Math.PI;\n\n\t\tdouble alpha = 2 * pi * H / 12 + 2 * pi * M / 720;\n\t\tdouble beta = 2 * pi * M / 60;\n\n\t\tdouble ans = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * Math.cos(alpha - beta));\n\t\tSystem.out.println(ans);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint A, B, H, M;\n\n\t\tA = Integer.parseInt(in.next());\n\t\tB = Integer.parseInt(in.next());\n\t\tH = Integer.parseInt(in.next());\n\t\tM = Integer.parseInt(in.next());\n\t\tdouble pi = Math.PI;\n\n\t\tdouble alpha = 2 * pi * H / 12 + 2 * pi * M / 720;\n\t\tdouble beta = 2 * pi * M / 60;\n\n\t\tdouble ans = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * Math.cos(alpha - beta));\n\t\tSystem.out.println(ans);\n\t}", "main", "{\n\t\tScanner in = new Scanner(System.in);\n\t\tint A, B, H, M;\n\n\t\tA = Integer.parseInt(in.next());\n\t\tB = Integer.parseInt(in.next());\n\t\tH = Integer.parseInt(in.next());\n\t\tM = Integer.parseInt(in.next());\n\t\tdouble pi = Math.PI;\n\n\t\tdouble alpha = 2 * pi * H / 12 + 2 * pi * M / 720;\n\t\tdouble beta = 2 * pi * M / 60;\n\n\t\tdouble ans = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * Math.cos(alpha - beta));\n\t\tSystem.out.println(ans);\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "int A", "A", "B", "B", "H", "H", "M;", "M", "A = Integer.parseInt(in.next())", "A", "Integer.parseInt(in.next())", "Integer.parseInt", "Integer", "in.next()", "in.next", "in", "B = Integer.parseInt(in.next())", "B", "Integer.parseInt(in.next())", "Integer.parseInt", "Integer", "in.next()", "in.next", "in", "H = Integer.parseInt(in.next())", "H", "Integer.parseInt(in.next())", "Integer.parseInt", "Integer", "in.next()", "in.next", "in", "M = Integer.parseInt(in.next())", "M", "Integer.parseInt(in.next())", "Integer.parseInt", "Integer", "in.next()", "in.next", "in", "double pi = Math.PI;", "pi", "Math.PI", "Math", "Math.PI", "double alpha = 2 * pi * H / 12 + 2 * pi * M / 720;", "alpha", "2 * pi * H / 12 + 2 * pi * M / 720", "2 * pi * H / 12", "2 * pi * H", "2 * pi * H", "2", "pi", "H", "12", "2 * pi * M / 720", "2 * pi * M", "2 * pi * M", "2", "pi", "M", "720", "double beta = 2 * pi * M / 60;", "beta", "2 * pi * M / 60", "2 * pi * M", "2 * pi * M", "2", "pi", "M", "60", "double ans = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * Math.cos(alpha - beta));", "ans", "Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * Math.cos(alpha - beta))", "Math.sqrt", "Math", "Math.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * Math.cos(alpha - beta)", "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(alpha - beta)", "B", "2 * A * B * Math.cos(alpha - beta)", "2", "A", "B", "Math.cos(alpha - beta)", "Math.cos", "Math", "alpha - beta", "alpha", "beta", "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 in = new Scanner(System.in);\n\t\tint A, B, H, M;\n\n\t\tA = Integer.parseInt(in.next());\n\t\tB = Integer.parseInt(in.next());\n\t\tH = Integer.parseInt(in.next());\n\t\tM = Integer.parseInt(in.next());\n\t\tdouble pi = Math.PI;\n\n\t\tdouble alpha = 2 * pi * H / 12 + 2 * pi * M / 720;\n\t\tdouble beta = 2 * pi * M / 60;\n\n\t\tdouble ans = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * Math.cos(alpha - beta));\n\t\tSystem.out.println(ans);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint A, B, H, M;\n\n\t\tA = Integer.parseInt(in.next());\n\t\tB = Integer.parseInt(in.next());\n\t\tH = Integer.parseInt(in.next());\n\t\tM = Integer.parseInt(in.next());\n\t\tdouble pi = Math.PI;\n\n\t\tdouble alpha = 2 * pi * H / 12 + 2 * pi * M / 720;\n\t\tdouble beta = 2 * pi * M / 60;\n\n\t\tdouble ans = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * Math.cos(alpha - beta));\n\t\tSystem.out.println(ans);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int A, B, H, M; A = Integer.parseInt(in.next()); B = Integer.parseInt(in.next()); H = Integer.parseInt(in.next()); M = Integer.parseInt(in.next()); double pi = Math.PI; double alpha = 2 * pi * H / 12 + 2 * pi * M / 720; double beta = 2 * pi * M / 60; double ans = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * Math.cos(alpha - beta)); 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, 18, 13, 13, 13, 17, 2, 2, 2, 18, 13, 13, 13, 17, 17, 41, 13, 2, 2, 2, 18, 13, 13, 17, 13, 17, 41, 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, 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 ], [ 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 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 35, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 43, 49 ], [ 42, 50 ], [ 8, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 55, 60 ], [ 53, 61 ], [ 8, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 67, 68 ], [ 67, 69 ], [ 8, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 74, 78 ], [ 73, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 79, 83 ], [ 72, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 84, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 8, 94 ], [ 94, 95 ], [ 94, 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 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tdouble a = scan.nextDouble();\n\t\tdouble b = scan.nextDouble();\n\t\t//\t0<=h<=11\n\t\tdouble h = scan.nextDouble();\n\t\t//\t0<=m<=59\n\t\tdouble m = scan.nextDouble();\n\n\t\tdouble zishinKakudo = (Math.PI * h / 6.0) + (Math.PI * m / 6.0 / 60.0);\n\t\tdouble hunshinKakudo = Math.PI * 2.0 * m / 60.0;\n\n\t\tdouble diffOfKakudo = Math.abs(zishinKakudo - hunshinKakudo);\n\n//\t\tif (diffOfKakudo > Math.PI) {\n//\t\t\tdiffOfKakudo = diffOfKakudo - Math.PI;\n//\t\t}\n\n\t\tdouble L = Math.pow(a, 2) + Math.pow(b, 2) - (2.0 * a * b * Math.cos(diffOfKakudo));\n\t\tdouble l = Math.sqrt(L);\n\t\tSystem.out.println(l);\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 Auto-generated method stub\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tdouble a = scan.nextDouble();\n\t\tdouble b = scan.nextDouble();\n\t\t//\t0<=h<=11\n\t\tdouble h = scan.nextDouble();\n\t\t//\t0<=m<=59\n\t\tdouble m = scan.nextDouble();\n\n\t\tdouble zishinKakudo = (Math.PI * h / 6.0) + (Math.PI * m / 6.0 / 60.0);\n\t\tdouble hunshinKakudo = Math.PI * 2.0 * m / 60.0;\n\n\t\tdouble diffOfKakudo = Math.abs(zishinKakudo - hunshinKakudo);\n\n//\t\tif (diffOfKakudo > Math.PI) {\n//\t\t\tdiffOfKakudo = diffOfKakudo - Math.PI;\n//\t\t}\n\n\t\tdouble L = Math.pow(a, 2) + Math.pow(b, 2) - (2.0 * a * b * Math.cos(diffOfKakudo));\n\t\tdouble l = Math.sqrt(L);\n\t\tSystem.out.println(l);\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tdouble a = scan.nextDouble();\n\t\tdouble b = scan.nextDouble();\n\t\t//\t0<=h<=11\n\t\tdouble h = scan.nextDouble();\n\t\t//\t0<=m<=59\n\t\tdouble m = scan.nextDouble();\n\n\t\tdouble zishinKakudo = (Math.PI * h / 6.0) + (Math.PI * m / 6.0 / 60.0);\n\t\tdouble hunshinKakudo = Math.PI * 2.0 * m / 60.0;\n\n\t\tdouble diffOfKakudo = Math.abs(zishinKakudo - hunshinKakudo);\n\n//\t\tif (diffOfKakudo > Math.PI) {\n//\t\t\tdiffOfKakudo = diffOfKakudo - Math.PI;\n//\t\t}\n\n\t\tdouble L = Math.pow(a, 2) + Math.pow(b, 2) - (2.0 * a * b * Math.cos(diffOfKakudo));\n\t\tdouble l = Math.sqrt(L);\n\t\tSystem.out.println(l);\n\n\t}", "main", "{\n\t\t// TODO Auto-generated method stub\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tdouble a = scan.nextDouble();\n\t\tdouble b = scan.nextDouble();\n\t\t//\t0<=h<=11\n\t\tdouble h = scan.nextDouble();\n\t\t//\t0<=m<=59\n\t\tdouble m = scan.nextDouble();\n\n\t\tdouble zishinKakudo = (Math.PI * h / 6.0) + (Math.PI * m / 6.0 / 60.0);\n\t\tdouble hunshinKakudo = Math.PI * 2.0 * m / 60.0;\n\n\t\tdouble diffOfKakudo = Math.abs(zishinKakudo - hunshinKakudo);\n\n//\t\tif (diffOfKakudo > Math.PI) {\n//\t\t\tdiffOfKakudo = diffOfKakudo - Math.PI;\n//\t\t}\n\n\t\tdouble L = Math.pow(a, 2) + Math.pow(b, 2) - (2.0 * a * b * Math.cos(diffOfKakudo));\n\t\tdouble l = Math.sqrt(L);\n\t\tSystem.out.println(l);\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 zishinKakudo = (Math.PI * h / 6.0) + (Math.PI * m / 6.0 / 60.0);", "zishinKakudo", "(Math.PI * h / 6.0) + (Math.PI * m / 6.0 / 60.0)", "(Math.PI * h / 6.0)", "Math.PI * h", "Math.PI", "Math", "Math.PI", "h", "6.0", "(Math.PI * m / 6.0 / 60.0)", "Math.PI * m / 6.0 / 60.0", "Math.PI * m", "Math.PI", "Math", "Math.PI", "m", "6.0", "60.0", "double hunshinKakudo = Math.PI * 2.0 * m / 60.0;", "hunshinKakudo", "Math.PI * 2.0 * m / 60.0", "Math.PI * 2.0 * m", "Math.PI * 2.0 * m", "Math.PI", "Math", "Math.PI", "2.0", "m", "60.0", "double diffOfKakudo = Math.abs(zishinKakudo - hunshinKakudo);", "diffOfKakudo", "Math.abs(zishinKakudo - hunshinKakudo)", "Math.abs", "Math", "zishinKakudo - hunshinKakudo", "zishinKakudo", "hunshinKakudo", "double L = Math.pow(a, 2) + Math.pow(b, 2) - (2.0 * a * b * Math.cos(diffOfKakudo));", "L", "Math.pow(a, 2) + Math.pow(b, 2) - (2.0 * a * b * Math.cos(diffOfKakudo))", "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(diffOfKakudo))", "b", "2.0 * a * b * Math.cos(diffOfKakudo)", "2.0", "a", "b", "Math.cos(diffOfKakudo)", "Math.cos", "Math", "diffOfKakudo", "double l = Math.sqrt(L);", "l", "Math.sqrt(L)", "Math.sqrt", "Math", "L", "System.out.println(l)", "System.out.println", "System.out", "System", "System.out", "l", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tdouble a = scan.nextDouble();\n\t\tdouble b = scan.nextDouble();\n\t\t//\t0<=h<=11\n\t\tdouble h = scan.nextDouble();\n\t\t//\t0<=m<=59\n\t\tdouble m = scan.nextDouble();\n\n\t\tdouble zishinKakudo = (Math.PI * h / 6.0) + (Math.PI * m / 6.0 / 60.0);\n\t\tdouble hunshinKakudo = Math.PI * 2.0 * m / 60.0;\n\n\t\tdouble diffOfKakudo = Math.abs(zishinKakudo - hunshinKakudo);\n\n//\t\tif (diffOfKakudo > Math.PI) {\n//\t\t\tdiffOfKakudo = diffOfKakudo - Math.PI;\n//\t\t}\n\n\t\tdouble L = Math.pow(a, 2) + Math.pow(b, 2) - (2.0 * a * b * Math.cos(diffOfKakudo));\n\t\tdouble l = Math.sqrt(L);\n\t\tSystem.out.println(l);\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tdouble a = scan.nextDouble();\n\t\tdouble b = scan.nextDouble();\n\t\t//\t0<=h<=11\n\t\tdouble h = scan.nextDouble();\n\t\t//\t0<=m<=59\n\t\tdouble m = scan.nextDouble();\n\n\t\tdouble zishinKakudo = (Math.PI * h / 6.0) + (Math.PI * m / 6.0 / 60.0);\n\t\tdouble hunshinKakudo = Math.PI * 2.0 * m / 60.0;\n\n\t\tdouble diffOfKakudo = Math.abs(zishinKakudo - hunshinKakudo);\n\n//\t\tif (diffOfKakudo > Math.PI) {\n//\t\t\tdiffOfKakudo = diffOfKakudo - Math.PI;\n//\t\t}\n\n\t\tdouble L = Math.pow(a, 2) + Math.pow(b, 2) - (2.0 * a * b * Math.cos(diffOfKakudo));\n\t\tdouble l = Math.sqrt(L);\n\t\tSystem.out.println(l);\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner scan = new Scanner(System.in); double a = scan.nextDouble(); double b = scan.nextDouble(); // 0<=h<=11 double h = scan.nextDouble(); // 0<=m<=59 double m = scan.nextDouble(); double zishinKakudo = (Math.PI * h / 6.0) + (Math.PI * m / 6.0 / 60.0); double hunshinKakudo = Math.PI * 2.0 * m / 60.0; double diffOfKakudo = Math.abs(zishinKakudo - hunshinKakudo); // if (diffOfKakudo > Math.PI) { // diffOfKakudo = diffOfKakudo - Math.PI; // } double L = Math.pow(a, 2) + Math.pow(b, 2) - (2.0 * a * b * Math.cos(diffOfKakudo)); double l = Math.sqrt(L); System.out.println(l); } }
[ 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, 2, 2, 13, 17, 2, 13, 17, 41, 13, 2, 13, 17, 14, 2, 13, 13, 30, 0, 13, 2, 13, 13, 14, 2, 13, 17, 0, 13, 2, 17, 13, 14, 2, 13, 13, 0, 13, 17, 30, 0, 13, 2, 13, 13, 14, 2, 13, 17, 0, 13, 2, 17, 13, 0, 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, 0, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 140, 5 ], [ 140, 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 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 42, 44 ], [ 8, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 47, 49 ], [ 8, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 54, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 50, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 73, 75 ], [ 69, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 79, 81 ], [ 76, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 8, 91 ], [ 91, 92 ], [ 91, 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 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 8, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 126, 130 ], [ 8, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 131, 136 ], [ 6, 137 ], [ 137, 138 ], [ 0, 139 ], [ 139, 140 ], [ 139, 141 ] ]
[ "import java.util.Scanner;\n\npublic 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 ang;\n\t\tdouble c;\n\t\tdouble angA = h * 30 + m * 0.5;\n\t\tdouble angB = m * 6;\n\t\tif(angA > angB) {\n\t\t\tang = angA - angB;\n\t\t\tif(ang >= 180) ang = 360 - ang;\n\t\t}\n\t\telse if ( angA == angB) ang = 0;\n\t\telse {\n\t\t\tang = angB -angA ;\n\t\t\tif(ang >= 180) ang = 360 - ang;\n\t\t}\n\t\tc = Math.pow(a, 2) + Math.pow(b, 2)\n\t\t\t\t\t- 2 * a * b * Math.cos(Math.toRadians(ang));\n\t\tc = Math.sqrt(c);\n\t\tString s = String.format(\"%.11f\", c);\n\t\tSystem.out.println(s);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\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 ang;\n\t\tdouble c;\n\t\tdouble angA = h * 30 + m * 0.5;\n\t\tdouble angB = m * 6;\n\t\tif(angA > angB) {\n\t\t\tang = angA - angB;\n\t\t\tif(ang >= 180) ang = 360 - ang;\n\t\t}\n\t\telse if ( angA == angB) ang = 0;\n\t\telse {\n\t\t\tang = angB -angA ;\n\t\t\tif(ang >= 180) ang = 360 - ang;\n\t\t}\n\t\tc = Math.pow(a, 2) + Math.pow(b, 2)\n\t\t\t\t\t- 2 * a * b * Math.cos(Math.toRadians(ang));\n\t\tc = Math.sqrt(c);\n\t\tString s = String.format(\"%.11f\", c);\n\t\tSystem.out.println(s);\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 ang;\n\t\tdouble c;\n\t\tdouble angA = h * 30 + m * 0.5;\n\t\tdouble angB = m * 6;\n\t\tif(angA > angB) {\n\t\t\tang = angA - angB;\n\t\t\tif(ang >= 180) ang = 360 - ang;\n\t\t}\n\t\telse if ( angA == angB) ang = 0;\n\t\telse {\n\t\t\tang = angB -angA ;\n\t\t\tif(ang >= 180) ang = 360 - ang;\n\t\t}\n\t\tc = Math.pow(a, 2) + Math.pow(b, 2)\n\t\t\t\t\t- 2 * a * b * Math.cos(Math.toRadians(ang));\n\t\tc = Math.sqrt(c);\n\t\tString s = String.format(\"%.11f\", c);\n\t\tSystem.out.println(s);\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 ang;\n\t\tdouble c;\n\t\tdouble angA = h * 30 + m * 0.5;\n\t\tdouble angB = m * 6;\n\t\tif(angA > angB) {\n\t\t\tang = angA - angB;\n\t\t\tif(ang >= 180) ang = 360 - ang;\n\t\t}\n\t\telse if ( angA == angB) ang = 0;\n\t\telse {\n\t\t\tang = angB -angA ;\n\t\t\tif(ang >= 180) ang = 360 - ang;\n\t\t}\n\t\tc = Math.pow(a, 2) + Math.pow(b, 2)\n\t\t\t\t\t- 2 * a * b * Math.cos(Math.toRadians(ang));\n\t\tc = Math.sqrt(c);\n\t\tString s = String.format(\"%.11f\", c);\n\t\tSystem.out.println(s);\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 ang;", "ang", "double c;", "c", "double angA = h * 30 + m * 0.5;", "angA", "h * 30 + m * 0.5", "h * 30", "h", "30", "m * 0.5", "m", "0.5", "double angB = m * 6;", "angB", "m * 6", "m", "6", "if(angA > angB) {\n\t\t\tang = angA - angB;\n\t\t\tif(ang >= 180) ang = 360 - ang;\n\t\t}\n\t\telse if ( angA == angB) ang = 0;\n\t\telse {\n\t\t\tang = angB -angA ;\n\t\t\tif(ang >= 180) ang = 360 - ang;\n\t\t}", "angA > angB", "angA", "angB", "{\n\t\t\tang = angA - angB;\n\t\t\tif(ang >= 180) ang = 360 - ang;\n\t\t}", "ang = angA - angB", "ang", "angA - angB", "angA", "angB", "if(ang >= 180) ang = 360 - ang;", "ang >= 180", "ang", "180", "ang = 360 - ang", "ang", "360 - ang", "360", "ang", "if ( angA == angB) ang = 0;\n\t\telse {\n\t\t\tang = angB -angA ;\n\t\t\tif(ang >= 180) ang = 360 - ang;\n\t\t}", "angA == angB", "angA", "angB", "ang = 0", "ang", "0", "{\n\t\t\tang = angB -angA ;\n\t\t\tif(ang >= 180) ang = 360 - ang;\n\t\t}", "ang = angB -angA", "ang", "angB -angA", "angB", "angA", "if(ang >= 180) ang = 360 - ang;", "ang >= 180", "ang", "180", "ang = 360 - ang", "ang", "360 - ang", "360", "ang", "c = Math.pow(a, 2) + Math.pow(b, 2)\n\t\t\t\t\t- 2 * a * b * Math.cos(Math.toRadians(ang))", "c", "Math.pow(a, 2) + Math.pow(b, 2)\n\t\t\t\t\t- 2 * a * b * Math.cos(Math.toRadians(ang))", "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(ang))", "b", "2 * a * b * Math.cos(Math.toRadians(ang))", "2", "a", "b", "Math.cos(Math.toRadians(ang))", "Math.cos", "Math", "Math.toRadians(ang)", "Math.toRadians", "Math", "ang", "c = Math.sqrt(c)", "c", "Math.sqrt(c)", "Math.sqrt", "Math", "c", "String s = String.format(\"%.11f\", c);", "s", "String.format(\"%.11f\", c)", "String.format", "String", "\"%.11f\"", "c", "System.out.println(s)", "System.out.println", "System.out", "System", "System.out", "s", "String[] args", "args", "public 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 ang;\n\t\tdouble c;\n\t\tdouble angA = h * 30 + m * 0.5;\n\t\tdouble angB = m * 6;\n\t\tif(angA > angB) {\n\t\t\tang = angA - angB;\n\t\t\tif(ang >= 180) ang = 360 - ang;\n\t\t}\n\t\telse if ( angA == angB) ang = 0;\n\t\telse {\n\t\t\tang = angB -angA ;\n\t\t\tif(ang >= 180) ang = 360 - ang;\n\t\t}\n\t\tc = Math.pow(a, 2) + Math.pow(b, 2)\n\t\t\t\t\t- 2 * a * b * Math.cos(Math.toRadians(ang));\n\t\tc = Math.sqrt(c);\n\t\tString s = String.format(\"%.11f\", c);\n\t\tSystem.out.println(s);\n\t}\n}", "public 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 ang;\n\t\tdouble c;\n\t\tdouble angA = h * 30 + m * 0.5;\n\t\tdouble angB = m * 6;\n\t\tif(angA > angB) {\n\t\t\tang = angA - angB;\n\t\t\tif(ang >= 180) ang = 360 - ang;\n\t\t}\n\t\telse if ( angA == angB) ang = 0;\n\t\telse {\n\t\t\tang = angB -angA ;\n\t\t\tif(ang >= 180) ang = 360 - ang;\n\t\t}\n\t\tc = Math.pow(a, 2) + Math.pow(b, 2)\n\t\t\t\t\t- 2 * a * b * Math.cos(Math.toRadians(ang));\n\t\tc = Math.sqrt(c);\n\t\tString s = String.format(\"%.11f\", c);\n\t\tSystem.out.println(s);\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 ang; double c; double angA = h * 30 + m * 0.5; double angB = m * 6; if(angA > angB) { ang = angA - angB; if(ang >= 180) ang = 360 - ang; } else if ( angA == angB) ang = 0; else { ang = angB -angA ; if(ang >= 180) ang = 360 - ang; } c = Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * Math.cos(Math.toRadians(ang)); c = Math.sqrt(c); String s = String.format("%.11f", c); System.out.println(s); } }
[ 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, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 85, 5 ], [ 85, 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 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 6, 82 ], [ 82, 83 ], [ 0, 84 ], [ 84, 85 ], [ 84, 86 ] ]
[ "import java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n double a = input.nextDouble();\n double b = input.nextDouble();\n double h = input.nextDouble();\n double m = input.nextDouble();\n\n double radian = Math.PI*2*(h/12.0 + (m/60.0)/12.0 - m / 60.0);\n\n double rsq = (a*a+b*b) - (2*a*b)*Math.cos(radian);\n\n System.out.println(Math.sqrt(rsq));\n\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 double a = input.nextDouble();\n double b = input.nextDouble();\n double h = input.nextDouble();\n double m = input.nextDouble();\n\n double radian = Math.PI*2*(h/12.0 + (m/60.0)/12.0 - m / 60.0);\n\n double rsq = (a*a+b*b) - (2*a*b)*Math.cos(radian);\n\n System.out.println(Math.sqrt(rsq));\n\n }\n}", "Main", "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n double a = input.nextDouble();\n double b = input.nextDouble();\n double h = input.nextDouble();\n double m = input.nextDouble();\n\n double radian = Math.PI*2*(h/12.0 + (m/60.0)/12.0 - m / 60.0);\n\n double rsq = (a*a+b*b) - (2*a*b)*Math.cos(radian);\n\n System.out.println(Math.sqrt(rsq));\n\n }", "main", "{\n Scanner input = new Scanner(System.in);\n double a = input.nextDouble();\n double b = input.nextDouble();\n double h = input.nextDouble();\n double m = input.nextDouble();\n\n double radian = Math.PI*2*(h/12.0 + (m/60.0)/12.0 - m / 60.0);\n\n double rsq = (a*a+b*b) - (2*a*b)*Math.cos(radian);\n\n System.out.println(Math.sqrt(rsq));\n\n }", "Scanner input = new Scanner(System.in);", "input", "new Scanner(System.in)", "double a = input.nextDouble();", "a", "input.nextDouble()", "input.nextDouble", "input", "double b = input.nextDouble();", "b", "input.nextDouble()", "input.nextDouble", "input", "double h = input.nextDouble();", "h", "input.nextDouble()", "input.nextDouble", "input", "double m = input.nextDouble();", "m", "input.nextDouble()", "input.nextDouble", "input", "double radian = Math.PI*2*(h/12.0 + (m/60.0)/12.0 - m / 60.0);", "radian", "Math.PI*2*(h/12.0 + (m/60.0)/12.0 - m / 60.0)", "Math.PI*2*(h/12.0 + (m/60.0)/12.0 - m / 60.0)", "Math.PI", "Math", "Math.PI", "2", "(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 rsq = (a*a+b*b) - (2*a*b)*Math.cos(radian);", "rsq", "(a*a+b*b) - (2*a*b)*Math.cos(radian)", "(a*a+b*b)", "a*a", "a", "a", "b*b", "b", "b", "(2*a*b)*Math.cos(radian)", "(2*a*b)", "2*a*b", "2", "a", "b", "Math.cos(radian)", "Math.cos", "Math", "radian", "System.out.println(Math.sqrt(rsq))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(rsq)", "Math.sqrt", "Math", "rsq", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n double a = input.nextDouble();\n double b = input.nextDouble();\n double h = input.nextDouble();\n double m = input.nextDouble();\n\n double radian = Math.PI*2*(h/12.0 + (m/60.0)/12.0 - m / 60.0);\n\n double rsq = (a*a+b*b) - (2*a*b)*Math.cos(radian);\n\n System.out.println(Math.sqrt(rsq));\n\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n double a = input.nextDouble();\n double b = input.nextDouble();\n double h = input.nextDouble();\n double m = input.nextDouble();\n\n double radian = Math.PI*2*(h/12.0 + (m/60.0)/12.0 - m / 60.0);\n\n double rsq = (a*a+b*b) - (2*a*b)*Math.cos(radian);\n\n System.out.println(Math.sqrt(rsq));\n\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); double a = input.nextDouble(); double b = input.nextDouble(); double h = input.nextDouble(); double m = input.nextDouble(); double radian = Math.PI*2*(h/12.0 + (m/60.0)/12.0 - m / 60.0); double rsq = (a*a+b*b) - (2*a*b)*Math.cos(radian); System.out.println(Math.sqrt(rsq)); } }
[ 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, 13, 17, 41, 13, 2, 13, 17, 41, 13, 4, 18, 13, 2, 13, 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, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 98, 5 ], [ 98, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 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 ], [ 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 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 73, 75 ], [ 68, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 76, 82 ], [ 8, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 8, 92 ], [ 92, 93 ], [ 93, 94 ], [ 6, 95 ], [ 95, 96 ], [ 0, 97 ], [ 97, 98 ], [ 97, 99 ] ]
[ "\nimport java.util.Scanner;\n\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 min = h * 60 + m;\n double ar = min * 0.5;\n double br = m * 6;\n double rad = Math.abs(ar - br);\n double cos = Math.cos(Math.toRadians(rad));\n// System.out.println(ar + \"ar\");\n// System.out.println(br + \"br\");\n// System.out.println(rad + \"rad\");\n// System.out.println(cos + \"cos\");\n double ans = a * a + b * b - (2 * a * b * cos); \n System.out.println(Math.sqrt(ans));\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 min = h * 60 + m;\n double ar = min * 0.5;\n double br = m * 6;\n double rad = Math.abs(ar - br);\n double cos = Math.cos(Math.toRadians(rad));\n// System.out.println(ar + \"ar\");\n// System.out.println(br + \"br\");\n// System.out.println(rad + \"rad\");\n// System.out.println(cos + \"cos\");\n double ans = a * a + b * b - (2 * a * b * cos); \n System.out.println(Math.sqrt(ans));\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 min = h * 60 + m;\n double ar = min * 0.5;\n double br = m * 6;\n double rad = Math.abs(ar - br);\n double cos = Math.cos(Math.toRadians(rad));\n// System.out.println(ar + \"ar\");\n// System.out.println(br + \"br\");\n// System.out.println(rad + \"rad\");\n// System.out.println(cos + \"cos\");\n double ans = a * a + b * b - (2 * a * b * cos); \n System.out.println(Math.sqrt(ans));\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 min = h * 60 + m;\n double ar = min * 0.5;\n double br = m * 6;\n double rad = Math.abs(ar - br);\n double cos = Math.cos(Math.toRadians(rad));\n// System.out.println(ar + \"ar\");\n// System.out.println(br + \"br\");\n// System.out.println(rad + \"rad\");\n// System.out.println(cos + \"cos\");\n double ans = a * a + b * b - (2 * a * b * cos); \n System.out.println(Math.sqrt(ans));\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 min = h * 60 + m;", "min", "h * 60 + m", "h * 60", "h", "60", "m", "double ar = min * 0.5;", "ar", "min * 0.5", "min", "0.5", "double br = m * 6;", "br", "m * 6", "m", "6", "double rad = Math.abs(ar - br);", "rad", "Math.abs(ar - br)", "Math.abs", "Math", "ar - br", "ar", "br", "double cos = Math.cos(Math.toRadians(rad));", "cos", "Math.cos(Math.toRadians(rad))", "Math.cos", "Math", "Math.toRadians(rad)", "Math.toRadians", "Math", "rad", "double ans = a * a + b * b - (2 * a * b * cos);", "ans", "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(Math.sqrt(ans))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(ans)", "Math.sqrt", "Math", "ans", "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 min = h * 60 + m;\n double ar = min * 0.5;\n double br = m * 6;\n double rad = Math.abs(ar - br);\n double cos = Math.cos(Math.toRadians(rad));\n// System.out.println(ar + \"ar\");\n// System.out.println(br + \"br\");\n// System.out.println(rad + \"rad\");\n// System.out.println(cos + \"cos\");\n double ans = a * a + b * b - (2 * a * b * cos); \n System.out.println(Math.sqrt(ans));\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 min = h * 60 + m;\n double ar = min * 0.5;\n double br = m * 6;\n double rad = Math.abs(ar - br);\n double cos = Math.cos(Math.toRadians(rad));\n// System.out.println(ar + \"ar\");\n// System.out.println(br + \"br\");\n// System.out.println(rad + \"rad\");\n// System.out.println(cos + \"cos\");\n double ans = a * a + b * b - (2 * a * b * cos); \n System.out.println(Math.sqrt(ans));\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 min = h * 60 + m; double ar = min * 0.5; double br = m * 6; double rad = Math.abs(ar - br); double cos = Math.cos(Math.toRadians(rad)); // System.out.println(ar + "ar"); // System.out.println(br + "br"); // System.out.println(rad + "rad"); // System.out.println(cos + "cos"); double ans = a * a + b * b - (2 * a * b * cos); System.out.println(Math.sqrt(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, 41, 13, 2, 2, 2, 2, 17, 17, 13, 17, 2, 2, 2, 17, 17, 13, 2, 17, 17, 41, 13, 2, 2, 2, 17, 17, 13, 17, 41, 13, 4, 18, 13, 2, 13, 13, 41, 13, 4, 18, 13, 13, 41, 13, 2, 2, 2, 2, 2, 2, 13, 17, 13, 13, 2, 13, 13, 2, 13, 13, 40, 17, 41, 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 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 35, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 42, 48 ], [ 48, 49 ], [ 48, 50 ], [ 8, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 53, 59 ], [ 8, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 65, 66 ], [ 65, 67 ], [ 8, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 8, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 79, 85 ], [ 78, 86 ], [ 86, 87 ], [ 86, 88 ], [ 77, 89 ], [ 89, 90 ], [ 89, 91 ], [ 76, 92 ], [ 92, 93 ], [ 8, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 8, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 6, 106 ], [ 106, 107 ] ]
[ "import java.util.*;\nclass Main\n{\n public static void main(String args[])\n {\n Scanner in=new Scanner(System.in);\n int A=in.nextInt();\n int B=in.nextInt();\n int H=in.nextInt();\n int M=in.nextInt();\n \n double t=(2*3.141592654*H)/12+(2*3.141592654*M)/(12*60);\n \n double t1=(2*3.141592654*M)/60;\n \n double p=Math.abs(t-t1);\n double y=Math.cos(p);\n double k=((y*2*A*B)-(A*A)-(B*B))*-1;\n double h=Math.sqrt(k);\n System.out.println(h);\n }\n}\n \n\n\n \n \n ", "import java.util.*;", "util.*", "java", "class Main\n{\n public static void main(String args[])\n {\n Scanner in=new Scanner(System.in);\n int A=in.nextInt();\n int B=in.nextInt();\n int H=in.nextInt();\n int M=in.nextInt();\n \n double t=(2*3.141592654*H)/12+(2*3.141592654*M)/(12*60);\n \n double t1=(2*3.141592654*M)/60;\n \n double p=Math.abs(t-t1);\n double y=Math.cos(p);\n double k=((y*2*A*B)-(A*A)-(B*B))*-1;\n double h=Math.sqrt(k);\n System.out.println(h);\n }\n}", "Main", "public static void main(String args[])\n {\n Scanner in=new Scanner(System.in);\n int A=in.nextInt();\n int B=in.nextInt();\n int H=in.nextInt();\n int M=in.nextInt();\n \n double t=(2*3.141592654*H)/12+(2*3.141592654*M)/(12*60);\n \n double t1=(2*3.141592654*M)/60;\n \n double p=Math.abs(t-t1);\n double y=Math.cos(p);\n double k=((y*2*A*B)-(A*A)-(B*B))*-1;\n double h=Math.sqrt(k);\n System.out.println(h);\n }", "main", "{\n Scanner in=new Scanner(System.in);\n int A=in.nextInt();\n int B=in.nextInt();\n int H=in.nextInt();\n int M=in.nextInt();\n \n double t=(2*3.141592654*H)/12+(2*3.141592654*M)/(12*60);\n \n double t1=(2*3.141592654*M)/60;\n \n double p=Math.abs(t-t1);\n double y=Math.cos(p);\n double k=((y*2*A*B)-(A*A)-(B*B))*-1;\n double h=Math.sqrt(k);\n System.out.println(h);\n }", "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 t=(2*3.141592654*H)/12+(2*3.141592654*M)/(12*60);", "t", "(2*3.141592654*H)/12+(2*3.141592654*M)/(12*60)", "(2*3.141592654*H)/12", "(2*3.141592654*H)", "2*3.141592654*H", "2", "3.141592654", "H", "12", "(2*3.141592654*M)/(12*60)", "(2*3.141592654*M)", "2*3.141592654*M", "2", "3.141592654", "M", "(12*60)", "12", "60", "double t1=(2*3.141592654*M)/60;", "t1", "(2*3.141592654*M)/60", "(2*3.141592654*M)", "2*3.141592654*M", "2", "3.141592654", "M", "60", "double p=Math.abs(t-t1);", "p", "Math.abs(t-t1)", "Math.abs", "Math", "t-t1", "t", "t1", "double y=Math.cos(p);", "y", "Math.cos(p)", "Math.cos", "Math", "p", "double k=((y*2*A*B)-(A*A)-(B*B))*-1;", "k", "((y*2*A*B)-(A*A)-(B*B))*-1", "((y*2*A*B)-(A*A)-(B*B))", "(y*2*A*B)-(A*A)-(B*B)", "(y*2*A*B)", "A", "y*2*A*B", "y", "2", "A", "B", "(A*A)", "A", "A", "(B*B)", "B", "B", "-1", "1", "double h=Math.sqrt(k);", "h", "Math.sqrt(k)", "Math.sqrt", "Math", "k", "System.out.println(h)", "System.out.println", "System.out", "System", "System.out", "h", "String args[]", "args" ]
import java.util.*; 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 t=(2*3.141592654*H)/12+(2*3.141592654*M)/(12*60); double t1=(2*3.141592654*M)/60; double p=Math.abs(t-t1); double y=Math.cos(p); double k=((y*2*A*B)-(A*A)-(B*B))*-1; double h=Math.sqrt(k); System.out.println(h); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 17, 12, 13, 30, 41, 13, 4, 13, 41, 13, 4, 13, 41, 13, 4, 13, 41, 13, 4, 13, 41, 13, 2, 2, 2, 17, 13, 2, 17, 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, 13, 41, 13, 2, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 2, 2, 13, 13, 2, 13, 13, 12, 13, 30, 0, 13, 20, 41, 13, 4, 18, 13, 17, 14, 2, 13, 17, 30, 38, 5, 13, 30, 37, 20, 30, 0, 13, 20, 41, 13, 17, 42, 13, 30, 4, 13, 38, 5, 13, 30, 37, 20, 30, 4, 18, 13, 17, 14, 2, 4, 18, 13, 17, 30, 4, 18, 13, 4, 18, 18, 13, 13, 17, 30, 0, 13, 17, 23, 13, 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, 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, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 280, 8 ], [ 280, 9 ], [ 9, 10 ], [ 280, 11 ], [ 11, 12 ], [ 11, 13 ], [ 280, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 16, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 16, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 16, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 16, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 43, 45 ], [ 16, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 16, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 16, 68 ], [ 68, 69 ], [ 68, 70 ], [ 16, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 16, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 88, 89 ], [ 88, 90 ], [ 280, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 93, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 108, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 93, 118 ], [ 118, 119 ], [ 118, 120 ], [ 93, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 130, 131 ], [ 126, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 133, 136 ], [ 132, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 138, 142 ], [ 137, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 143, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 147, 152 ], [ 137, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 91, 157 ], [ 157, 158 ], [ 280, 159 ], [ 159, 160 ], [ 159, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 163, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 162, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 175, 176 ], [ 176, 177 ], [ 172, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 161, 182 ], [ 182, 183 ], [ 183, 184 ], [ 184, 185 ], [ 280, 186 ], [ 186, 187 ], [ 186, 188 ], [ 188, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 190, 193 ], [ 193, 194 ], [ 280, 195 ], [ 195, 196 ], [ 195, 197 ], [ 197, 198 ], [ 198, 199 ], [ 199, 200 ], [ 200, 201 ], [ 199, 202 ], [ 202, 203 ], [ 280, 204 ], [ 204, 205 ], [ 204, 206 ], [ 206, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 208, 211 ], [ 211, 212 ], [ 280, 213 ], [ 213, 214 ], [ 213, 215 ], [ 215, 216 ], [ 216, 217 ], [ 216, 218 ], [ 215, 220 ], [ 220, 221 ], [ 221, 222 ], [ 222, 223 ], [ 222, 224 ], [ 220, 225 ], [ 225, 226 ], [ 225, 227 ], [ 220, 228 ], [ 228, 229 ], [ 229, 230 ], [ 220, 231 ], [ 231, 232 ], [ 232, 233 ], [ 233, 234 ], [ 233, 235 ], [ 232, 236 ], [ 236, 237 ], [ 215, 238 ], [ 238, 239 ], [ 213, 240 ], [ 240, 241 ], [ 280, 242 ], [ 242, 243 ], [ 242, 244 ], [ 244, 245 ], [ 245, 246 ], [ 246, 247 ], [ 247, 248 ], [ 248, 249 ], [ 280, 250 ], [ 250, 251 ], [ 250, 252 ], [ 252, 253 ], [ 253, 254 ], [ 253, 255 ], [ 252, 257 ], [ 257, 258 ], [ 258, 259 ], [ 259, 260 ], [ 259, 261 ], [ 257, 262 ], [ 262, 263 ], [ 262, 264 ], [ 257, 265 ], [ 265, 266 ], [ 266, 267 ], [ 257, 268 ], [ 268, 269 ], [ 269, 270 ], [ 270, 271 ], [ 270, 272 ], [ 269, 273 ], [ 273, 274 ], [ 252, 275 ], [ 275, 276 ], [ 250, 277 ], [ 277, 278 ], [ 0, 279 ], [ 279, 280 ], [ 279, 281 ] ]
[ "import java.util.*;\nimport java.io.*;\n\npublic class Main {\t\n\tprivate static void solve(){\n\t\t//Implement solution here.\n\t\tdouble A = nd();\n\t\tdouble B = nd();\n\t\tdouble H = nd();\n\t\tdouble M = nd();\n\t\tdouble ang = 30D * H + 0.5D * M - 6D * M;\n\t\tdouble asin = A * Math.sin(Math.toRadians(ang));\n\t\tdouble acos = A * Math.cos(Math.toRadians(ang));\n\t\t\n\t\tdouble height = asin;\n\t\tdouble width = B - acos;\n\t\t\n\t\tSystem.out.println(Math.sqrt(height * height + width * width));\n\n\t}\n\n\t//Switch input source (stdin/file)\n\tprivate static BufferedReader br;\n\tpublic static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}\n\n\t//Input read utility\n\tprivate static StringTokenizer tokenizer = null;\n\tpublic static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}\n\t//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}\n\t//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t//Get next int array from one line\n\tprivate static int[] na(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\treturn a;\n\t}\n\t//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}\n\t//Get next long array from one line\n\tprivate static long[] nal(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\treturn a;\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\t\n\tprivate static void solve(){\n\t\t//Implement solution here.\n\t\tdouble A = nd();\n\t\tdouble B = nd();\n\t\tdouble H = nd();\n\t\tdouble M = nd();\n\t\tdouble ang = 30D * H + 0.5D * M - 6D * M;\n\t\tdouble asin = A * Math.sin(Math.toRadians(ang));\n\t\tdouble acos = A * Math.cos(Math.toRadians(ang));\n\t\t\n\t\tdouble height = asin;\n\t\tdouble width = B - acos;\n\t\t\n\t\tSystem.out.println(Math.sqrt(height * height + width * width));\n\n\t}\n\n\t//Switch input source (stdin/file)\n\tprivate static BufferedReader br;\n\tpublic static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}\n\n\t//Input read utility\n\tprivate static StringTokenizer tokenizer = null;\n\tpublic static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}\n\t//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}\n\t//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t//Get next int array from one line\n\tprivate static int[] na(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\treturn a;\n\t}\n\t//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}\n\t//Get next long array from one line\n\tprivate static long[] nal(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\treturn a;\n\t}\n}", "Main", "//Switch input source (stdin/file)\n\tprivate static BufferedReader br;", "br", "//Input read utility\n\tprivate static StringTokenizer tokenizer = null;", "tokenizer", "null", "private static void solve(){\n\t\t//Implement solution here.\n\t\tdouble A = nd();\n\t\tdouble B = nd();\n\t\tdouble H = nd();\n\t\tdouble M = nd();\n\t\tdouble ang = 30D * H + 0.5D * M - 6D * M;\n\t\tdouble asin = A * Math.sin(Math.toRadians(ang));\n\t\tdouble acos = A * Math.cos(Math.toRadians(ang));\n\t\t\n\t\tdouble height = asin;\n\t\tdouble width = B - acos;\n\t\t\n\t\tSystem.out.println(Math.sqrt(height * height + width * width));\n\n\t}", "solve", "{\n\t\t//Implement solution here.\n\t\tdouble A = nd();\n\t\tdouble B = nd();\n\t\tdouble H = nd();\n\t\tdouble M = nd();\n\t\tdouble ang = 30D * H + 0.5D * M - 6D * M;\n\t\tdouble asin = A * Math.sin(Math.toRadians(ang));\n\t\tdouble acos = A * Math.cos(Math.toRadians(ang));\n\t\t\n\t\tdouble height = asin;\n\t\tdouble width = B - acos;\n\t\t\n\t\tSystem.out.println(Math.sqrt(height * height + width * width));\n\n\t}", "double A = nd();", "A", "nd()", "nd", "double B = nd();", "B", "nd()", "nd", "double H = nd();", "H", "nd()", "nd", "double M = nd();", "M", "nd()", "nd", "double ang = 30D * H + 0.5D * M - 6D * M;", "ang", "30D * H + 0.5D * M - 6D * M", "30D * H + 0.5D * M", "30D * H", "30D", "H", "0.5D * M", "0.5D", "M", "6D * M", "6D", "M", "double asin = A * Math.sin(Math.toRadians(ang));", "asin", "A * Math.sin(Math.toRadians(ang))", "A", "Math.sin(Math.toRadians(ang))", "Math.sin", "Math", "Math.toRadians(ang)", "Math.toRadians", "Math", "ang", "double acos = A * Math.cos(Math.toRadians(ang));", "acos", "A * Math.cos(Math.toRadians(ang))", "A", "Math.cos(Math.toRadians(ang))", "Math.cos", "Math", "Math.toRadians(ang)", "Math.toRadians", "Math", "ang", "double height = asin;", "height", "asin", "double width = B - acos;", "width", "B - acos", "B", "acos", "System.out.println(Math.sqrt(height * height + width * width))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(height * height + width * width)", "Math.sqrt", "Math", "height * height + width * width", "height * height", "height", "height", "width * width", "width", "width", "public static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}", "main", "{\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}", "br = new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "String debugDataPath = System.getenv(\"DD_PATH\");", "debugDataPath", "System.getenv(\"DD_PATH\")", "System.getenv", "System", "\"DD_PATH\"", "if(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}", "debugDataPath != null", "debugDataPath", "null", "{\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}", "try{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}", "catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}", "Exception e", "{\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}", "throw new RuntimeException(e);", "new RuntimeException(e)", "{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}", "br = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))))", "br", "new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))))", "boolean hasNext = true;", "hasNext", "true", "while(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}", "hasNext", "{\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}", "solve()", "solve", "try{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}", "catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}", "Exception e", "{\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}", "throw new RuntimeException(e);", "new RuntimeException(e)", "{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}", "br.mark(1)", "br.mark", "br", "1", "if(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}", "br.read() > 0", "br.read()", "br.read", "br", "0", "{\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t}", "br.reset()", "br.reset", "br", "System.out.println(\"---\")", "System.out.println", "System.out", "System", "System.out", "\"---\"", "{\n\t\t\t\t\thasNext = false;\n\t\t\t\t}", "hasNext = false", "hasNext", "false", "String[] args", "args", "public static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}", "next", "{\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}", "while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}", "tokenizer == null || !tokenizer.hasMoreTokens()", "tokenizer == null", "tokenizer", "null", "!tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens", "tokenizer", "{\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}", "try {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}", "catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}", "Exception e", "{\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}", "throw new RuntimeException(e);", "new RuntimeException(e)", "{\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t}", "tokenizer = new StringTokenizer(br.readLine())", "tokenizer", "new StringTokenizer(br.readLine())", "return tokenizer.nextToken();", "tokenizer.nextToken()", "tokenizer.nextToken", "tokenizer", "//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}", "ni", "{\n\t\treturn Integer.parseInt(next());\n\t}", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}", "nl", "{\n\t\treturn Long.parseLong(next());\n\t}", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}", "nd", "{\n\t\treturn Double.parseDouble(next());\n\t}", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "//Get next int array from one line\n\tprivate static int[] na(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\treturn a;\n\t}", "na", "{\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\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();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "a[i] = ni();", "a[i] = ni()", "a[i]", "a", "i", "ni()", "ni", "return a;", "a", "int n", "n", "//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}", "ns", "{\n\t\treturn next().toCharArray();\n\t}", "return next().toCharArray();", "next().toCharArray()", "next().toCharArray", "next()", "next", "//Get next long array from one line\n\tprivate static long[] nal(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\treturn a;\n\t}", "nal", "{\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\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();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "a[i] = nl();", "a[i] = nl()", "a[i]", "a", "i", "nl()", "nl", "return a;", "a", "int n", "n", "public class Main {\t\n\tprivate static void solve(){\n\t\t//Implement solution here.\n\t\tdouble A = nd();\n\t\tdouble B = nd();\n\t\tdouble H = nd();\n\t\tdouble M = nd();\n\t\tdouble ang = 30D * H + 0.5D * M - 6D * M;\n\t\tdouble asin = A * Math.sin(Math.toRadians(ang));\n\t\tdouble acos = A * Math.cos(Math.toRadians(ang));\n\t\t\n\t\tdouble height = asin;\n\t\tdouble width = B - acos;\n\t\t\n\t\tSystem.out.println(Math.sqrt(height * height + width * width));\n\n\t}\n\n\t//Switch input source (stdin/file)\n\tprivate static BufferedReader br;\n\tpublic static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}\n\n\t//Input read utility\n\tprivate static StringTokenizer tokenizer = null;\n\tpublic static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}\n\t//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}\n\t//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t//Get next int array from one line\n\tprivate static int[] na(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\treturn a;\n\t}\n\t//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}\n\t//Get next long array from one line\n\tprivate static long[] nal(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\treturn a;\n\t}\n}", "public class Main {\t\n\tprivate static void solve(){\n\t\t//Implement solution here.\n\t\tdouble A = nd();\n\t\tdouble B = nd();\n\t\tdouble H = nd();\n\t\tdouble M = nd();\n\t\tdouble ang = 30D * H + 0.5D * M - 6D * M;\n\t\tdouble asin = A * Math.sin(Math.toRadians(ang));\n\t\tdouble acos = A * Math.cos(Math.toRadians(ang));\n\t\t\n\t\tdouble height = asin;\n\t\tdouble width = B - acos;\n\t\t\n\t\tSystem.out.println(Math.sqrt(height * height + width * width));\n\n\t}\n\n\t//Switch input source (stdin/file)\n\tprivate static BufferedReader br;\n\tpublic static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}\n\n\t//Input read utility\n\tprivate static StringTokenizer tokenizer = null;\n\tpublic static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}\n\t//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}\n\t//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t//Get next int array from one line\n\tprivate static int[] na(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\treturn a;\n\t}\n\t//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}\n\t//Get next long array from one line\n\tprivate static long[] nal(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\treturn a;\n\t}\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { private static void solve(){ //Implement solution here. double A = nd(); double B = nd(); double H = nd(); double M = nd(); double ang = 30D * H + 0.5D * M - 6D * M; double asin = A * Math.sin(Math.toRadians(ang)); double acos = A * Math.cos(Math.toRadians(ang)); double height = asin; double width = B - acos; System.out.println(Math.sqrt(height * height + width * width)); } //Switch input source (stdin/file) private static BufferedReader br; public static void main(String[] args){ br = new BufferedReader(new InputStreamReader(System.in)); String debugDataPath = System.getenv("DD_PATH"); if(debugDataPath != null){ try{ br = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath)))); }catch(Exception e){ throw new RuntimeException(e); } } boolean hasNext = true; while(hasNext){ solve(); try{ br.mark(1); if(br.read() > 0){ br.reset(); System.out.println("---"); } else { hasNext = false; } }catch(Exception e){ throw new RuntimeException(e); } } } //Input read utility private static StringTokenizer tokenizer = null; public static String next() { while (tokenizer == null || !tokenizer.hasMoreTokens()) { try { tokenizer = new StringTokenizer(br.readLine()); } catch (Exception e) { throw new RuntimeException(e); } } return tokenizer.nextToken(); } //Get next single int private static int ni() { return Integer.parseInt(next()); } //Get next single long private static long nl() { return Long.parseLong(next()); } //Get next single double private static double nd() { return Double.parseDouble(next()); } //Get next int array from one line private static int[] na(int n) { int[] a = new int[n]; for (int i = 0; i < n; i++) a[i] = ni(); return a; } //Get next char array from one line private static char[] ns() { return next().toCharArray(); } //Get next long array from one line private static long[] nal(int n) { long[] a = new long[n]; for (int i = 0; i < n; i++) a[i] = nl(); return a; } }
[ 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, 17, 41, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 0, 13, 4, 18, 13, 2, 13, 13, 14, 2, 13, 17, 0, 13, 2, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 17, 13, 0, 13, 2, 13, 2, 4, 18, 13, 4, 18, 13, 13, 13, 0, 13, 4, 18, 13, 2, 2, 13, 13, 2, 2, 2, 4, 18, 13, 4, 18, 13, 13, 13, 4, 18, 13, 4, 18, 13, 13, 13, 30, 0, 13, 2, 13, 2, 4, 18, 13, 4, 18, 13, 13, 13, 0, 13, 4, 18, 13, 2, 2, 13, 13, 2, 2, 2, 4, 18, 13, 4, 18, 13, 13, 13, 4, 18, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 187, 5 ], [ 187, 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 ], [ 8, 57 ], [ 57, 58 ], [ 57, 59 ], [ 8, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 65, 66 ], [ 65, 67 ], [ 60, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 73, 74 ], [ 73, 75 ], [ 60, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 82, 84 ], [ 76, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 89, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 99, 107 ], [ 89, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 119, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 119, 127 ], [ 118, 128 ], [ 128, 129 ], [ 129, 130 ], [ 128, 131 ], [ 131, 132 ], [ 132, 133 ], [ 131, 134 ], [ 119, 135 ], [ 85, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 139, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 142, 145 ], [ 145, 146 ], [ 146, 147 ], [ 145, 148 ], [ 141, 149 ], [ 136, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 153, 154 ], [ 152, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 155, 159 ], [ 161, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 162, 165 ], [ 165, 166 ], [ 166, 167 ], [ 165, 168 ], [ 161, 169 ], [ 160, 170 ], [ 170, 171 ], [ 171, 172 ], [ 170, 173 ], [ 173, 174 ], [ 174, 175 ], [ 173, 176 ], [ 161, 177 ], [ 8, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 180, 182 ], [ 178, 183 ], [ 6, 184 ], [ 184, 185 ], [ 0, 186 ], [ 186, 187 ], [ 186, 188 ] ]
[ "import java.util.Scanner;\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\n double mTHeta = 6 * m;\n double hTheta = 30 * h + 0.5 * m;\n double theta = Math.abs(hTheta - mTHeta);\n\n double ans = 0;\n double bDash = 0;\n if (theta == 0 || theta == 360) ans = Math.abs(b - a);\n else if (theta == 180) ans = b + a;\n else if (theta > 180) {\n theta = 360 - theta;\n bDash = b - (Math.cos(Math.toRadians(theta)) * a);\n ans = Math.sqrt(bDash * bDash + Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a);\n } else {\n bDash = b - (Math.cos(Math.toRadians(theta)) * a);\n ans = Math.sqrt(bDash * bDash + Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a);\n }\n System.out.println(ans);\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 double a = sc.nextDouble();\n double b = sc.nextDouble();\n double h = sc.nextDouble();\n double m = sc.nextDouble();\n\n double mTHeta = 6 * m;\n double hTheta = 30 * h + 0.5 * m;\n double theta = Math.abs(hTheta - mTHeta);\n\n double ans = 0;\n double bDash = 0;\n if (theta == 0 || theta == 360) ans = Math.abs(b - a);\n else if (theta == 180) ans = b + a;\n else if (theta > 180) {\n theta = 360 - theta;\n bDash = b - (Math.cos(Math.toRadians(theta)) * a);\n ans = Math.sqrt(bDash * bDash + Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a);\n } else {\n bDash = b - (Math.cos(Math.toRadians(theta)) * a);\n ans = Math.sqrt(bDash * bDash + Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a);\n }\n System.out.println(ans);\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 mTHeta = 6 * m;\n double hTheta = 30 * h + 0.5 * m;\n double theta = Math.abs(hTheta - mTHeta);\n\n double ans = 0;\n double bDash = 0;\n if (theta == 0 || theta == 360) ans = Math.abs(b - a);\n else if (theta == 180) ans = b + a;\n else if (theta > 180) {\n theta = 360 - theta;\n bDash = b - (Math.cos(Math.toRadians(theta)) * a);\n ans = Math.sqrt(bDash * bDash + Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a);\n } else {\n bDash = b - (Math.cos(Math.toRadians(theta)) * a);\n ans = Math.sqrt(bDash * bDash + Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a);\n }\n System.out.println(ans);\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 mTHeta = 6 * m;\n double hTheta = 30 * h + 0.5 * m;\n double theta = Math.abs(hTheta - mTHeta);\n\n double ans = 0;\n double bDash = 0;\n if (theta == 0 || theta == 360) ans = Math.abs(b - a);\n else if (theta == 180) ans = b + a;\n else if (theta > 180) {\n theta = 360 - theta;\n bDash = b - (Math.cos(Math.toRadians(theta)) * a);\n ans = Math.sqrt(bDash * bDash + Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a);\n } else {\n bDash = b - (Math.cos(Math.toRadians(theta)) * a);\n ans = Math.sqrt(bDash * bDash + Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a);\n }\n System.out.println(ans);\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 mTHeta = 6 * m;", "mTHeta", "6 * m", "6", "m", "double hTheta = 30 * h + 0.5 * m;", "hTheta", "30 * h + 0.5 * m", "30 * h", "30", "h", "0.5 * m", "0.5", "m", "double theta = Math.abs(hTheta - mTHeta);", "theta", "Math.abs(hTheta - mTHeta)", "Math.abs", "Math", "hTheta - mTHeta", "hTheta", "mTHeta", "double ans = 0;", "ans", "0", "double bDash = 0;", "bDash", "0", "if (theta == 0 || theta == 360) ans = Math.abs(b - a);\n else if (theta == 180) ans = b + a;\n else if (theta > 180) {\n theta = 360 - theta;\n bDash = b - (Math.cos(Math.toRadians(theta)) * a);\n ans = Math.sqrt(bDash * bDash + Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a);\n } else {\n bDash = b - (Math.cos(Math.toRadians(theta)) * a);\n ans = Math.sqrt(bDash * bDash + Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a);\n }", "theta == 0 || theta == 360", "theta == 0", "theta", "0", "theta == 360", "theta", "360", "ans = Math.abs(b - a)", "ans", "Math.abs(b - a)", "Math.abs", "Math", "b - a", "b", "a", "if (theta == 180) ans = b + a;\n else if (theta > 180) {\n theta = 360 - theta;\n bDash = b - (Math.cos(Math.toRadians(theta)) * a);\n ans = Math.sqrt(bDash * bDash + Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a);\n } else {\n bDash = b - (Math.cos(Math.toRadians(theta)) * a);\n ans = Math.sqrt(bDash * bDash + Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a);\n }", "theta == 180", "theta", "180", "ans = b + a", "ans", "b + a", "b", "a", "if (theta > 180) {\n theta = 360 - theta;\n bDash = b - (Math.cos(Math.toRadians(theta)) * a);\n ans = Math.sqrt(bDash * bDash + Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a);\n } else {\n bDash = b - (Math.cos(Math.toRadians(theta)) * a);\n ans = Math.sqrt(bDash * bDash + Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a);\n }", "theta > 180", "theta", "180", "{\n theta = 360 - theta;\n bDash = b - (Math.cos(Math.toRadians(theta)) * a);\n ans = Math.sqrt(bDash * bDash + Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a);\n }", "theta = 360 - theta", "theta", "360 - theta", "360", "theta", "bDash = b - (Math.cos(Math.toRadians(theta)) * a)", "bDash", "b - (Math.cos(Math.toRadians(theta)) * a)", "b", "(Math.cos(Math.toRadians(theta)) * a)", "Math.cos(Math.toRadians(theta))", "Math.cos", "Math", "Math.toRadians(theta)", "Math.toRadians", "Math", "theta", "a", "ans = Math.sqrt(bDash * bDash + Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a)", "ans", "Math.sqrt(bDash * bDash + Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a)", "Math.sqrt", "Math", "bDash * bDash + Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a", "bDash * bDash", "bDash", "bDash", "Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a", "Math.sin(Math.toRadians(theta))", "Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a", "Math.sin(Math.toRadians(theta))", "Math.sin", "Math", "Math.toRadians(theta)", "Math.toRadians", "Math", "theta", "a", "Math.sin(Math.toRadians(theta))", "Math.sin", "Math", "Math.toRadians(theta)", "Math.toRadians", "Math", "theta", "a", "{\n bDash = b - (Math.cos(Math.toRadians(theta)) * a);\n ans = Math.sqrt(bDash * bDash + Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a);\n }", "bDash = b - (Math.cos(Math.toRadians(theta)) * a)", "bDash", "b - (Math.cos(Math.toRadians(theta)) * a)", "b", "(Math.cos(Math.toRadians(theta)) * a)", "Math.cos(Math.toRadians(theta))", "Math.cos", "Math", "Math.toRadians(theta)", "Math.toRadians", "Math", "theta", "a", "ans = Math.sqrt(bDash * bDash + Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a)", "ans", "Math.sqrt(bDash * bDash + Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a)", "Math.sqrt", "Math", "bDash * bDash + Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a", "bDash * bDash", "bDash", "bDash", "Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a", "Math.sin(Math.toRadians(theta))", "Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a", "Math.sin(Math.toRadians(theta))", "Math.sin", "Math", "Math.toRadians(theta)", "Math.toRadians", "Math", "theta", "a", "Math.sin(Math.toRadians(theta))", "Math.sin", "Math", "Math.toRadians(theta)", "Math.toRadians", "Math", "theta", "a", "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 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 mTHeta = 6 * m;\n double hTheta = 30 * h + 0.5 * m;\n double theta = Math.abs(hTheta - mTHeta);\n\n double ans = 0;\n double bDash = 0;\n if (theta == 0 || theta == 360) ans = Math.abs(b - a);\n else if (theta == 180) ans = b + a;\n else if (theta > 180) {\n theta = 360 - theta;\n bDash = b - (Math.cos(Math.toRadians(theta)) * a);\n ans = Math.sqrt(bDash * bDash + Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a);\n } else {\n bDash = b - (Math.cos(Math.toRadians(theta)) * a);\n ans = Math.sqrt(bDash * bDash + Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a);\n }\n System.out.println(ans);\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\n double mTHeta = 6 * m;\n double hTheta = 30 * h + 0.5 * m;\n double theta = Math.abs(hTheta - mTHeta);\n\n double ans = 0;\n double bDash = 0;\n if (theta == 0 || theta == 360) ans = Math.abs(b - a);\n else if (theta == 180) ans = b + a;\n else if (theta > 180) {\n theta = 360 - theta;\n bDash = b - (Math.cos(Math.toRadians(theta)) * a);\n ans = Math.sqrt(bDash * bDash + Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a);\n } else {\n bDash = b - (Math.cos(Math.toRadians(theta)) * a);\n ans = Math.sqrt(bDash * bDash + Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a);\n }\n System.out.println(ans);\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.nextDouble(); double b = sc.nextDouble(); double h = sc.nextDouble(); double m = sc.nextDouble(); double mTHeta = 6 * m; double hTheta = 30 * h + 0.5 * m; double theta = Math.abs(hTheta - mTHeta); double ans = 0; double bDash = 0; if (theta == 0 || theta == 360) ans = Math.abs(b - a); else if (theta == 180) ans = b + a; else if (theta > 180) { theta = 360 - theta; bDash = b - (Math.cos(Math.toRadians(theta)) * a); ans = Math.sqrt(bDash * bDash + Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a); } else { bDash = b - (Math.cos(Math.toRadians(theta)) * a); ans = Math.sqrt(bDash * bDash + Math.sin(Math.toRadians(theta)) * a * Math.sin(Math.toRadians(theta)) * a); } 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, 17, 13, 2, 13, 17, 41, 13, 2, 2, 17, 17, 13, 41, 13, 4, 18, 13, 2, 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, 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 ], [ 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 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 38, 40 ], [ 8, 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 ], [ 53, 55 ], [ 8, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 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 ], [ 8, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 8, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 6, 98 ], [ 98, 99 ], [ 0, 100 ], [ 100, 101 ], [ 100, 102 ] ]
[ "import java.util.*;\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\n double HR = 30 * H + M * 0.5;\n double MR = 360 / 60 * M;\n\n double r = Math.abs(HR - MR);\n double cos = Math.cos(Math.toRadians(r));\n double result = Math.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * cos;\n result = Math.sqrt(result);\n \n \n System.out.println(result);\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 int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n\n double HR = 30 * H + M * 0.5;\n double MR = 360 / 60 * M;\n\n double r = Math.abs(HR - MR);\n double cos = Math.cos(Math.toRadians(r));\n double result = Math.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * cos;\n result = Math.sqrt(result);\n \n \n System.out.println(result);\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\n double HR = 30 * H + M * 0.5;\n double MR = 360 / 60 * M;\n\n double r = Math.abs(HR - MR);\n double cos = Math.cos(Math.toRadians(r));\n double result = Math.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * cos;\n result = Math.sqrt(result);\n \n \n System.out.println(result);\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\n double HR = 30 * H + M * 0.5;\n double MR = 360 / 60 * M;\n\n double r = Math.abs(HR - MR);\n double cos = Math.cos(Math.toRadians(r));\n double result = Math.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * cos;\n result = Math.sqrt(result);\n \n \n System.out.println(result);\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 HR = 30 * H + M * 0.5;", "HR", "30 * H + M * 0.5", "30 * H", "30", "H", "M * 0.5", "M", "0.5", "double MR = 360 / 60 * M;", "MR", "360 / 60 * M", "360 / 60", "360", "60", "M", "double r = Math.abs(HR - MR);", "r", "Math.abs(HR - MR)", "Math.abs", "Math", "HR - MR", "HR", "MR", "double cos = Math.cos(Math.toRadians(r));", "cos", "Math.cos(Math.toRadians(r))", "Math.cos", "Math", "Math.toRadians(r)", "Math.toRadians", "Math", "r", "double result = Math.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * cos;", "result", "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", "result = Math.sqrt(result)", "result", "Math.sqrt(result)", "Math.sqrt", "Math", "result", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "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\n double HR = 30 * H + M * 0.5;\n double MR = 360 / 60 * M;\n\n double r = Math.abs(HR - MR);\n double cos = Math.cos(Math.toRadians(r));\n double result = Math.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * cos;\n result = Math.sqrt(result);\n \n \n System.out.println(result);\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\n double HR = 30 * H + M * 0.5;\n double MR = 360 / 60 * M;\n\n double r = Math.abs(HR - MR);\n double cos = Math.cos(Math.toRadians(r));\n double result = Math.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * cos;\n result = Math.sqrt(result);\n \n \n System.out.println(result);\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 HR = 30 * H + M * 0.5; double MR = 360 / 60 * M; double r = Math.abs(HR - MR); double cos = Math.cos(Math.toRadians(r)); double result = Math.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * cos; result = Math.sqrt(result); System.out.println(result); } }
[ 7, 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, 2, 2, 13, 2, 17, 17, 2, 2, 13, 17, 17, 41, 13, 2, 13, 2, 17, 17, 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, 4, 18, 13, 13, 2, 17, 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 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 113, 17 ], [ 113, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 20, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 20, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 20, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 20, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 46, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 20, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 20, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 69, 70 ], [ 69, 71 ], [ 20, 72 ], [ 72, 73 ], [ 72, 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 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 94, 98 ], [ 98, 99 ], [ 98, 100 ], [ 20, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 18, 110 ], [ 110, 111 ], [ 0, 112 ], [ 112, 113 ], [ 112, 114 ] ]
[ "import java.util.*;\nimport java.util.ArrayList;\nimport java.util.Iterator;\nimport java.util.List;\nimport java.util.Collections;\n\npublic class Main {\n\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n //ArrayList<Integer> list;\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n \n double Short = (double)(h * (360 / 12)) + (double)m * 1/2;\n\n double Long = (double)m * (360 / 60);\n\n double ang = (double)Math.abs(Long - Short);\n //System.out.println(ang);\n\n double ans = (double)a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(Math.min(ang, 360 - ang)));\n \n System.out.println(Math.sqrt(ans));\n \n\t}\n}", "import java.util.*;", "util.*", "java", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Iterator;", "Iterator", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Collections;", "Collections", "java.util", "public class Main {\n\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n //ArrayList<Integer> list;\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n \n double Short = (double)(h * (360 / 12)) + (double)m * 1/2;\n\n double Long = (double)m * (360 / 60);\n\n double ang = (double)Math.abs(Long - Short);\n //System.out.println(ang);\n\n double ans = (double)a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(Math.min(ang, 360 - ang)));\n \n System.out.println(Math.sqrt(ans));\n \n\t}\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n //ArrayList<Integer> list;\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n \n double Short = (double)(h * (360 / 12)) + (double)m * 1/2;\n\n double Long = (double)m * (360 / 60);\n\n double ang = (double)Math.abs(Long - Short);\n //System.out.println(ang);\n\n double ans = (double)a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(Math.min(ang, 360 - ang)));\n \n System.out.println(Math.sqrt(ans));\n \n\t}", "main", "{\n Scanner sc = new Scanner(System.in);\n //ArrayList<Integer> list;\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n \n double Short = (double)(h * (360 / 12)) + (double)m * 1/2;\n\n double Long = (double)m * (360 / 60);\n\n double ang = (double)Math.abs(Long - Short);\n //System.out.println(ang);\n\n double ans = (double)a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(Math.min(ang, 360 - ang)));\n \n System.out.println(Math.sqrt(ans));\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 Short = (double)(h * (360 / 12)) + (double)m * 1/2;", "Short", "(double)(h * (360 / 12)) + (double)m * 1/2", "(double)(h * (360 / 12))", "h", "(360 / 12)", "360", "12", "(double)m * 1/2", "(double)m * 1", "(double)m", "1", "2", "double Long = (double)m * (360 / 60);", "Long", "(double)m * (360 / 60)", "(double)m", "(360 / 60)", "360", "60", "double ang = (double)Math.abs(Long - Short);", "ang", "(double)Math.abs(Long - Short)", "Math.abs", "Math", "Long - Short", "Long", "Short", "double ans = (double)a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(Math.min(ang, 360 - ang)));", "ans", "(double)a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(Math.min(ang, 360 - ang)))", "(double)a * a + b * b", "(double)a * a", "(double)a", "a", "b * b", "b", "b", "2 * a * b * Math.cos(Math.toRadians(Math.min(ang, 360 - ang)))", "b", "2 * a * b * Math.cos(Math.toRadians(Math.min(ang, 360 - ang)))", "2", "a", "b", "Math.cos(Math.toRadians(Math.min(ang, 360 - ang)))", "Math.cos", "Math", "Math.toRadians(Math.min(ang, 360 - ang))", "Math.toRadians", "Math", "Math.min(ang, 360 - ang)", "Math.min", "Math", "ang", "360 - ang", "360", "ang", "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 Scanner sc = new Scanner(System.in);\n //ArrayList<Integer> list;\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n \n double Short = (double)(h * (360 / 12)) + (double)m * 1/2;\n\n double Long = (double)m * (360 / 60);\n\n double ang = (double)Math.abs(Long - Short);\n //System.out.println(ang);\n\n double ans = (double)a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(Math.min(ang, 360 - ang)));\n \n System.out.println(Math.sqrt(ans));\n \n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n //ArrayList<Integer> list;\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n \n double Short = (double)(h * (360 / 12)) + (double)m * 1/2;\n\n double Long = (double)m * (360 / 60);\n\n double ang = (double)Math.abs(Long - Short);\n //System.out.println(ang);\n\n double ans = (double)a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(Math.min(ang, 360 - ang)));\n \n System.out.println(Math.sqrt(ans));\n \n\t}\n}", "Main" ]
import java.util.*; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.Collections; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); //ArrayList<Integer> list; int a = sc.nextInt(); int b = sc.nextInt(); int h = sc.nextInt(); int m = sc.nextInt(); double Short = (double)(h * (360 / 12)) + (double)m * 1/2; double Long = (double)m * (360 / 60); double ang = (double)Math.abs(Long - Short); //System.out.println(ang); double ans = (double)a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(Math.min(ang, 360 - ang))); System.out.println(Math.sqrt(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, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 2, 13, 17, 14, 2, 13, 17, 30, 0, 13, 2, 13, 17, 41, 13, 2, 13, 17, 0, 13, 4, 18, 13, 2, 13, 13, 2, 17, 2, 13, 13, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 2, 2, 2, 17, 13, 13, 4, 18, 13, 2, 13, 2, 18, 13, 13, 17, 30, 0, 13, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 2, 2, 2, 17, 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 ], [ 143, 8 ], [ 143, 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 ], [ 11, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 40, 42 ], [ 11, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 50, 52 ], [ 11, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 11, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 63, 64 ], [ 63, 65 ], [ 60, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 11, 71 ], [ 71, 72 ], [ 71, 73 ], [ 11, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 83, 87 ], [ 82, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 88, 92 ], [ 81, 93 ], [ 95, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 95, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 104, 108 ], [ 74, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 114, 118 ], [ 113, 119 ], [ 119, 120 ], [ 120, 121 ], [ 119, 122 ], [ 119, 123 ], [ 112, 124 ], [ 126, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 125, 129 ], [ 126, 130 ], [ 11, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 131, 136 ], [ 136, 137 ], [ 137, 138 ], [ 136, 139 ], [ 9, 140 ], [ 140, 141 ], [ 0, 142 ], [ 142, 143 ], [ 142, 144 ] ]
[ "import java.util.*;\nimport java.util.Scanner;\npublic class Main {\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\tdouble kaku = 0;\n\t\t\n\t\tdouble h_kaku = h*30;\n\t\tif(m!=0) {\n\t\t\th_kaku += m*0.5;\n\t\t}\n\t\tdouble m_kaku = m*6;\n\t\t\n\t\tkaku = Math.min(h_kaku-m_kaku, 360-(h_kaku-m_kaku));\n\t\tdouble ans = 0;\n\t\t\n\t\t\n\t\tif(kaku!=90) {\n\t\t\tans = Math.pow(a, 2)+Math.pow(b, 2)-2*a*b*Math.cos(kaku*(Math.PI/180));\n\t\t}else {\n\t\t\tans = Math.pow(a, 2)+Math.pow(b, 2)-2*a*b*0;\n\t\t}\n\t\t\n\t\tSystem.out.println(Math.sqrt(ans));\n\t\t\n\t\t\n\t\t\n\t\t\n\t}\t\n\t\n\t\n\t//๏ฟฝล๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ\n\t/*\n\tstatic int gcd (int a, int b) {\n\t\tint temp;\n\t\twhile((temp = a%b)!=0) {\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}\n\t\treturn b;\n\t}\n\t*/\n\t\n\t//๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝึ‚๏ฟฝ\n\t/*\n\tstatic int swap (int a, int b) {\n\t\tint swap_arr[] = new int[2];\n\t\t\n\t\tswap[0] = b;\n\t\tswap[1] = a;\n\t\t\n\t\treturn swap_arr;\n\t}\n\t*/\n\t\n}\n", "import java.util.*;", "util.*", "java", "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\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\tdouble kaku = 0;\n\t\t\n\t\tdouble h_kaku = h*30;\n\t\tif(m!=0) {\n\t\t\th_kaku += m*0.5;\n\t\t}\n\t\tdouble m_kaku = m*6;\n\t\t\n\t\tkaku = Math.min(h_kaku-m_kaku, 360-(h_kaku-m_kaku));\n\t\tdouble ans = 0;\n\t\t\n\t\t\n\t\tif(kaku!=90) {\n\t\t\tans = Math.pow(a, 2)+Math.pow(b, 2)-2*a*b*Math.cos(kaku*(Math.PI/180));\n\t\t}else {\n\t\t\tans = Math.pow(a, 2)+Math.pow(b, 2)-2*a*b*0;\n\t\t}\n\t\t\n\t\tSystem.out.println(Math.sqrt(ans));\n\t\t\n\t\t\n\t\t\n\t\t\n\t}\t\n\t\n\t\n\t//๏ฟฝล๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ\n\t/*\n\tstatic int gcd (int a, int b) {\n\t\tint temp;\n\t\twhile((temp = a%b)!=0) {\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}\n\t\treturn b;\n\t}\n\t*/\n\t\n\t//๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝึ‚๏ฟฝ\n\t/*\n\tstatic int swap (int a, int b) {\n\t\tint swap_arr[] = new int[2];\n\t\t\n\t\tswap[0] = b;\n\t\tswap[1] = a;\n\t\t\n\t\treturn swap_arr;\n\t}\n\t*/\n\t\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\tdouble kaku = 0;\n\t\t\n\t\tdouble h_kaku = h*30;\n\t\tif(m!=0) {\n\t\t\th_kaku += m*0.5;\n\t\t}\n\t\tdouble m_kaku = m*6;\n\t\t\n\t\tkaku = Math.min(h_kaku-m_kaku, 360-(h_kaku-m_kaku));\n\t\tdouble ans = 0;\n\t\t\n\t\t\n\t\tif(kaku!=90) {\n\t\t\tans = Math.pow(a, 2)+Math.pow(b, 2)-2*a*b*Math.cos(kaku*(Math.PI/180));\n\t\t}else {\n\t\t\tans = Math.pow(a, 2)+Math.pow(b, 2)-2*a*b*0;\n\t\t}\n\t\t\n\t\tSystem.out.println(Math.sqrt(ans));\n\t\t\n\t\t\n\t\t\n\t\t\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\tdouble kaku = 0;\n\t\t\n\t\tdouble h_kaku = h*30;\n\t\tif(m!=0) {\n\t\t\th_kaku += m*0.5;\n\t\t}\n\t\tdouble m_kaku = m*6;\n\t\t\n\t\tkaku = Math.min(h_kaku-m_kaku, 360-(h_kaku-m_kaku));\n\t\tdouble ans = 0;\n\t\t\n\t\t\n\t\tif(kaku!=90) {\n\t\t\tans = Math.pow(a, 2)+Math.pow(b, 2)-2*a*b*Math.cos(kaku*(Math.PI/180));\n\t\t}else {\n\t\t\tans = Math.pow(a, 2)+Math.pow(b, 2)-2*a*b*0;\n\t\t}\n\t\t\n\t\tSystem.out.println(Math.sqrt(ans));\n\t\t\n\t\t\n\t\t\n\t\t\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 kaku = 0;", "kaku", "0", "double h_kaku = h*30;", "h_kaku", "h*30", "h", "30", "if(m!=0) {\n\t\t\th_kaku += m*0.5;\n\t\t}", "m!=0", "m", "0", "{\n\t\t\th_kaku += m*0.5;\n\t\t}", "h_kaku += m*0.5", "h_kaku", "m*0.5", "m", "0.5", "double m_kaku = m*6;", "m_kaku", "m*6", "m", "6", "kaku = Math.min(h_kaku-m_kaku, 360-(h_kaku-m_kaku))", "kaku", "Math.min(h_kaku-m_kaku, 360-(h_kaku-m_kaku))", "Math.min", "Math", "h_kaku-m_kaku", "h_kaku", "m_kaku", "360-(h_kaku-m_kaku)", "360", "(h_kaku-m_kaku)", "h_kaku", "m_kaku", "double ans = 0;", "ans", "0", "if(kaku!=90) {\n\t\t\tans = Math.pow(a, 2)+Math.pow(b, 2)-2*a*b*Math.cos(kaku*(Math.PI/180));\n\t\t}else {\n\t\t\tans = Math.pow(a, 2)+Math.pow(b, 2)-2*a*b*0;\n\t\t}", "kaku!=90", "kaku", "90", "{\n\t\t\tans = Math.pow(a, 2)+Math.pow(b, 2)-2*a*b*Math.cos(kaku*(Math.PI/180));\n\t\t}", "ans = Math.pow(a, 2)+Math.pow(b, 2)-2*a*b*Math.cos(kaku*(Math.PI/180))", "ans", "Math.pow(a, 2)+Math.pow(b, 2)-2*a*b*Math.cos(kaku*(Math.PI/180))", "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(kaku*(Math.PI/180))", "b", "2*a*b*Math.cos(kaku*(Math.PI/180))", "2", "a", "b", "Math.cos(kaku*(Math.PI/180))", "Math.cos", "Math", "kaku*(Math.PI/180)", "kaku", "(Math.PI/180)", "Math.PI", "Math", "Math.PI", "180", "{\n\t\t\tans = Math.pow(a, 2)+Math.pow(b, 2)-2*a*b*0;\n\t\t}", "ans = Math.pow(a, 2)+Math.pow(b, 2)-2*a*b*0", "ans", "Math.pow(a, 2)+Math.pow(b, 2)-2*a*b*0", "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*0", "b", "2*a*b*0", "2", "a", "b", "0", "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\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\tdouble kaku = 0;\n\t\t\n\t\tdouble h_kaku = h*30;\n\t\tif(m!=0) {\n\t\t\th_kaku += m*0.5;\n\t\t}\n\t\tdouble m_kaku = m*6;\n\t\t\n\t\tkaku = Math.min(h_kaku-m_kaku, 360-(h_kaku-m_kaku));\n\t\tdouble ans = 0;\n\t\t\n\t\t\n\t\tif(kaku!=90) {\n\t\t\tans = Math.pow(a, 2)+Math.pow(b, 2)-2*a*b*Math.cos(kaku*(Math.PI/180));\n\t\t}else {\n\t\t\tans = Math.pow(a, 2)+Math.pow(b, 2)-2*a*b*0;\n\t\t}\n\t\t\n\t\tSystem.out.println(Math.sqrt(ans));\n\t\t\n\t\t\n\t\t\n\t\t\n\t}\t\n\t\n\t\n\t//๏ฟฝล๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ\n\t/*\n\tstatic int gcd (int a, int b) {\n\t\tint temp;\n\t\twhile((temp = a%b)!=0) {\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}\n\t\treturn b;\n\t}\n\t*/\n\t\n\t//๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝึ‚๏ฟฝ\n\t/*\n\tstatic int swap (int a, int b) {\n\t\tint swap_arr[] = new int[2];\n\t\t\n\t\tswap[0] = b;\n\t\tswap[1] = a;\n\t\t\n\t\treturn swap_arr;\n\t}\n\t*/\n\t\n}", "public class Main {\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\tdouble kaku = 0;\n\t\t\n\t\tdouble h_kaku = h*30;\n\t\tif(m!=0) {\n\t\t\th_kaku += m*0.5;\n\t\t}\n\t\tdouble m_kaku = m*6;\n\t\t\n\t\tkaku = Math.min(h_kaku-m_kaku, 360-(h_kaku-m_kaku));\n\t\tdouble ans = 0;\n\t\t\n\t\t\n\t\tif(kaku!=90) {\n\t\t\tans = Math.pow(a, 2)+Math.pow(b, 2)-2*a*b*Math.cos(kaku*(Math.PI/180));\n\t\t}else {\n\t\t\tans = Math.pow(a, 2)+Math.pow(b, 2)-2*a*b*0;\n\t\t}\n\t\t\n\t\tSystem.out.println(Math.sqrt(ans));\n\t\t\n\t\t\n\t\t\n\t\t\n\t}\t\n\t\n\t\n\t//๏ฟฝล๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ\n\t/*\n\tstatic int gcd (int a, int b) {\n\t\tint temp;\n\t\twhile((temp = a%b)!=0) {\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}\n\t\treturn b;\n\t}\n\t*/\n\t\n\t//๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝึ‚๏ฟฝ\n\t/*\n\tstatic int swap (int a, int b) {\n\t\tint swap_arr[] = new int[2];\n\t\t\n\t\tswap[0] = b;\n\t\tswap[1] = a;\n\t\t\n\t\treturn swap_arr;\n\t}\n\t*/\n\t\n}", "Main" ]
import java.util.*; 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 kaku = 0; double h_kaku = h*30; if(m!=0) { h_kaku += m*0.5; } double m_kaku = m*6; kaku = Math.min(h_kaku-m_kaku, 360-(h_kaku-m_kaku)); double ans = 0; if(kaku!=90) { ans = Math.pow(a, 2)+Math.pow(b, 2)-2*a*b*Math.cos(kaku*(Math.PI/180)); }else { ans = Math.pow(a, 2)+Math.pow(b, 2)-2*a*b*0; } System.out.println(Math.sqrt(ans)); } //๏ฟฝล๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ /* static int gcd (int a, int b) { int temp; while((temp = a%b)!=0) { a = b; b = temp; } return b; } */ //๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝึ‚๏ฟฝ /* static int swap (int a, int b) { int swap_arr[] = new int[2]; swap[0] = b; swap[1] = a; return swap_arr; } */ }
[ 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, 17, 13, 13, 17, 41, 13, 2, 17, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 2, 13, 4, 18, 13, 4, 18, 13, 2, 17, 13, 0, 13, 2, 13, 4, 18, 13, 4, 18, 13, 2, 17, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 2, 13, 4, 18, 13, 4, 18, 13, 2, 13, 17, 0, 13, 2, 40, 13, 4, 18, 13, 4, 18, 13, 2, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 2, 40, 13, 4, 18, 13, 4, 18, 13, 2, 17, 13, 0, 13, 2, 40, 13, 4, 18, 13, 4, 18, 13, 2, 17, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 2, 40, 13, 4, 18, 13, 4, 18, 13, 2, 13, 17, 0, 13, 2, 13, 4, 18, 13, 4, 18, 13, 2, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 2, 13, 4, 18, 13, 4, 18, 13, 2, 17, 13, 0, 13, 2, 13, 4, 18, 13, 4, 18, 13, 2, 17, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 2, 13, 4, 18, 13, 4, 18, 13, 2, 13, 17, 0, 13, 2, 40, 13, 4, 18, 13, 4, 18, 13, 2, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 2, 40, 13, 4, 18, 13, 4, 18, 13, 2, 17, 13, 0, 13, 2, 40, 13, 4, 18, 13, 4, 18, 13, 2, 17, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 2, 40, 13, 4, 18, 13, 4, 18, 13, 2, 13, 17, 0, 13, 2, 13, 4, 18, 13, 4, 18, 13, 2, 13, 17, 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 ], [ 375, 5 ], [ 375, 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 ], [ 8, 49 ], [ 49, 50 ], [ 49, 51 ], [ 8, 52 ], [ 52, 53 ], [ 52, 54 ], [ 8, 55 ], [ 55, 56 ], [ 55, 57 ], [ 8, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 63, 65 ], [ 58, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 77, 79 ], [ 66, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 90, 91 ], [ 90, 92 ], [ 58, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 98, 100 ], [ 93, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 112, 113 ], [ 112, 114 ], [ 101, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 118, 119 ], [ 117, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 126, 127 ], [ 126, 128 ], [ 93, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 130, 134 ], [ 134, 135 ], [ 134, 136 ], [ 129, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 141, 142 ], [ 140, 143 ], [ 143, 144 ], [ 144, 145 ], [ 143, 146 ], [ 146, 147 ], [ 147, 148 ], [ 146, 149 ], [ 149, 150 ], [ 149, 151 ], [ 137, 152 ], [ 152, 153 ], [ 152, 154 ], [ 154, 155 ], [ 155, 156 ], [ 154, 157 ], [ 157, 158 ], [ 158, 159 ], [ 157, 160 ], [ 160, 161 ], [ 161, 162 ], [ 160, 163 ], [ 163, 164 ], [ 163, 165 ], [ 129, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 167, 171 ], [ 171, 172 ], [ 171, 173 ], [ 166, 174 ], [ 174, 175 ], [ 175, 176 ], [ 175, 177 ], [ 177, 178 ], [ 178, 179 ], [ 177, 180 ], [ 180, 181 ], [ 181, 182 ], [ 180, 183 ], [ 183, 184 ], [ 184, 185 ], [ 183, 186 ], [ 186, 187 ], [ 186, 188 ], [ 174, 189 ], [ 189, 190 ], [ 189, 191 ], [ 191, 192 ], [ 191, 193 ], [ 193, 194 ], [ 194, 195 ], [ 193, 196 ], [ 196, 197 ], [ 197, 198 ], [ 196, 199 ], [ 199, 200 ], [ 199, 201 ], [ 8, 202 ], [ 202, 203 ], [ 203, 204 ], [ 204, 205 ], [ 204, 206 ], [ 203, 207 ], [ 207, 208 ], [ 207, 209 ], [ 202, 210 ], [ 210, 211 ], [ 211, 212 ], [ 211, 213 ], [ 213, 214 ], [ 213, 215 ], [ 215, 216 ], [ 216, 217 ], [ 215, 218 ], [ 218, 219 ], [ 219, 220 ], [ 218, 221 ], [ 221, 222 ], [ 221, 223 ], [ 210, 224 ], [ 224, 225 ], [ 224, 226 ], [ 226, 227 ], [ 226, 228 ], [ 228, 229 ], [ 229, 230 ], [ 228, 231 ], [ 231, 232 ], [ 232, 233 ], [ 231, 234 ], [ 234, 235 ], [ 234, 236 ], [ 202, 237 ], [ 237, 238 ], [ 238, 239 ], [ 239, 240 ], [ 239, 241 ], [ 238, 242 ], [ 242, 243 ], [ 242, 244 ], [ 237, 245 ], [ 245, 246 ], [ 246, 247 ], [ 246, 248 ], [ 248, 249 ], [ 248, 250 ], [ 250, 251 ], [ 251, 252 ], [ 250, 253 ], [ 253, 254 ], [ 254, 255 ], [ 253, 256 ], [ 256, 257 ], [ 256, 258 ], [ 245, 259 ], [ 259, 260 ], [ 259, 261 ], [ 261, 262 ], [ 262, 263 ], [ 261, 264 ], [ 264, 265 ], [ 265, 266 ], [ 264, 267 ], [ 267, 268 ], [ 268, 269 ], [ 267, 270 ], [ 270, 271 ], [ 270, 272 ], [ 237, 273 ], [ 273, 274 ], [ 274, 275 ], [ 275, 276 ], [ 275, 277 ], [ 274, 278 ], [ 278, 279 ], [ 278, 280 ], [ 273, 281 ], [ 281, 282 ], [ 282, 283 ], [ 282, 284 ], [ 284, 285 ], [ 285, 286 ], [ 284, 287 ], [ 287, 288 ], [ 288, 289 ], [ 287, 290 ], [ 290, 291 ], [ 291, 292 ], [ 290, 293 ], [ 293, 294 ], [ 293, 295 ], [ 281, 296 ], [ 296, 297 ], [ 296, 298 ], [ 298, 299 ], [ 299, 300 ], [ 298, 301 ], [ 301, 302 ], [ 302, 303 ], [ 301, 304 ], [ 304, 305 ], [ 305, 306 ], [ 304, 307 ], [ 307, 308 ], [ 307, 309 ], [ 273, 310 ], [ 310, 311 ], [ 311, 312 ], [ 312, 313 ], [ 312, 314 ], [ 311, 315 ], [ 315, 316 ], [ 315, 317 ], [ 310, 318 ], [ 318, 319 ], [ 319, 320 ], [ 319, 321 ], [ 321, 322 ], [ 322, 323 ], [ 321, 324 ], [ 324, 325 ], [ 325, 326 ], [ 324, 327 ], [ 327, 328 ], [ 328, 329 ], [ 327, 330 ], [ 330, 331 ], [ 330, 332 ], [ 318, 333 ], [ 333, 334 ], [ 333, 335 ], [ 335, 336 ], [ 335, 337 ], [ 337, 338 ], [ 338, 339 ], [ 337, 340 ], [ 340, 341 ], [ 341, 342 ], [ 340, 343 ], [ 343, 344 ], [ 343, 345 ], [ 8, 346 ], [ 346, 347 ], [ 346, 348 ], [ 348, 349 ], [ 349, 350 ], [ 348, 351 ], [ 351, 352 ], [ 352, 353 ], [ 353, 354 ], [ 352, 355 ], [ 355, 356 ], [ 355, 357 ], [ 352, 358 ], [ 351, 359 ], [ 359, 360 ], [ 360, 361 ], [ 359, 362 ], [ 362, 363 ], [ 362, 364 ], [ 359, 365 ], [ 8, 366 ], [ 366, 367 ], [ 367, 368 ], [ 368, 369 ], [ 368, 370 ], [ 366, 371 ], [ 6, 372 ], [ 372, 373 ], [ 0, 374 ], [ 374, 375 ], [ 374, 376 ] ]
[ "import java.util.*;\npublic 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\t\n\t\tdouble argA = (double) (60 * h + m) / 2;\n\t\tdouble argB = 6 * m;\n\t\tdouble ax = 0;\n\t\tdouble ay = 0;\n\t\tdouble bx = 0;\n\t\tdouble by = 0;\n\t\t\n\t\tif (argA >= 0 && argA <= 90) {\n\t\t ax = a * Math.cos(Math.toRadians(90 - argA));\n\t\t ay = a * Math.sin(Math.toRadians(90 - argA));\n\t\t} else if (argA > 90 && argA <= 180) {\n\t\t ax = a * Math.cos(Math.toRadians(argA - 90));\n\t\t ay = -a * Math.sin(Math.toRadians(argA - 90));\n\t\t} else if (argA > 180 && argA <= 270) {\n\t\t ax = -a * Math.cos(Math.toRadians(270 - argA));\n\t\t ay = -a * Math.sin(Math.toRadians(270 - argA));\n\t\t} else if (argA > 270 && argA <= 360) {\n\t\t ax = -a * Math.cos(Math.toRadians(argA - 270));\n\t\t ay = a * Math.sin(Math.toRadians(argA - 270));\n\t\t}\n\t\t\n\t\tif (argB >= 0 && argB <= 90) {\n\t\t bx = b * Math.cos(Math.toRadians(90 - argB));\n\t\t by = b * Math.sin(Math.toRadians(90 - argB));\n\t\t} else if (argB > 90 && argB <= 180) {\n\t\t bx = b * Math.cos(Math.toRadians(argB - 90));\n\t\t by = -b * Math.sin(Math.toRadians(argB - 90));\n\t\t} else if (argB > 180 && argB <= 270) {\n\t\t bx = -b * Math.cos(Math.toRadians(270 - argB));\n\t\t by = -b * Math.sin(Math.toRadians(270 - argB));\n\t\t} else if (argB > 270 && argB <= 360) {\n\t\t bx = -b * Math.cos(Math.toRadians(argB - 270));\n\t\t by = b * Math.sin(Math.toRadians(argB - 270));\n\t\t}\n\t\t\n\t\tdouble result = (double) Math.sqrt(Math.pow(bx - ax, 2) + Math.pow(by - ay, 2));\n\t\t\n\t\tSystem.out.println(result);\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\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 argA = (double) (60 * h + m) / 2;\n\t\tdouble argB = 6 * m;\n\t\tdouble ax = 0;\n\t\tdouble ay = 0;\n\t\tdouble bx = 0;\n\t\tdouble by = 0;\n\t\t\n\t\tif (argA >= 0 && argA <= 90) {\n\t\t ax = a * Math.cos(Math.toRadians(90 - argA));\n\t\t ay = a * Math.sin(Math.toRadians(90 - argA));\n\t\t} else if (argA > 90 && argA <= 180) {\n\t\t ax = a * Math.cos(Math.toRadians(argA - 90));\n\t\t ay = -a * Math.sin(Math.toRadians(argA - 90));\n\t\t} else if (argA > 180 && argA <= 270) {\n\t\t ax = -a * Math.cos(Math.toRadians(270 - argA));\n\t\t ay = -a * Math.sin(Math.toRadians(270 - argA));\n\t\t} else if (argA > 270 && argA <= 360) {\n\t\t ax = -a * Math.cos(Math.toRadians(argA - 270));\n\t\t ay = a * Math.sin(Math.toRadians(argA - 270));\n\t\t}\n\t\t\n\t\tif (argB >= 0 && argB <= 90) {\n\t\t bx = b * Math.cos(Math.toRadians(90 - argB));\n\t\t by = b * Math.sin(Math.toRadians(90 - argB));\n\t\t} else if (argB > 90 && argB <= 180) {\n\t\t bx = b * Math.cos(Math.toRadians(argB - 90));\n\t\t by = -b * Math.sin(Math.toRadians(argB - 90));\n\t\t} else if (argB > 180 && argB <= 270) {\n\t\t bx = -b * Math.cos(Math.toRadians(270 - argB));\n\t\t by = -b * Math.sin(Math.toRadians(270 - argB));\n\t\t} else if (argB > 270 && argB <= 360) {\n\t\t bx = -b * Math.cos(Math.toRadians(argB - 270));\n\t\t by = b * Math.sin(Math.toRadians(argB - 270));\n\t\t}\n\t\t\n\t\tdouble result = (double) Math.sqrt(Math.pow(bx - ax, 2) + Math.pow(by - ay, 2));\n\t\t\n\t\tSystem.out.println(result);\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\t\n\t\tdouble argA = (double) (60 * h + m) / 2;\n\t\tdouble argB = 6 * m;\n\t\tdouble ax = 0;\n\t\tdouble ay = 0;\n\t\tdouble bx = 0;\n\t\tdouble by = 0;\n\t\t\n\t\tif (argA >= 0 && argA <= 90) {\n\t\t ax = a * Math.cos(Math.toRadians(90 - argA));\n\t\t ay = a * Math.sin(Math.toRadians(90 - argA));\n\t\t} else if (argA > 90 && argA <= 180) {\n\t\t ax = a * Math.cos(Math.toRadians(argA - 90));\n\t\t ay = -a * Math.sin(Math.toRadians(argA - 90));\n\t\t} else if (argA > 180 && argA <= 270) {\n\t\t ax = -a * Math.cos(Math.toRadians(270 - argA));\n\t\t ay = -a * Math.sin(Math.toRadians(270 - argA));\n\t\t} else if (argA > 270 && argA <= 360) {\n\t\t ax = -a * Math.cos(Math.toRadians(argA - 270));\n\t\t ay = a * Math.sin(Math.toRadians(argA - 270));\n\t\t}\n\t\t\n\t\tif (argB >= 0 && argB <= 90) {\n\t\t bx = b * Math.cos(Math.toRadians(90 - argB));\n\t\t by = b * Math.sin(Math.toRadians(90 - argB));\n\t\t} else if (argB > 90 && argB <= 180) {\n\t\t bx = b * Math.cos(Math.toRadians(argB - 90));\n\t\t by = -b * Math.sin(Math.toRadians(argB - 90));\n\t\t} else if (argB > 180 && argB <= 270) {\n\t\t bx = -b * Math.cos(Math.toRadians(270 - argB));\n\t\t by = -b * Math.sin(Math.toRadians(270 - argB));\n\t\t} else if (argB > 270 && argB <= 360) {\n\t\t bx = -b * Math.cos(Math.toRadians(argB - 270));\n\t\t by = b * Math.sin(Math.toRadians(argB - 270));\n\t\t}\n\t\t\n\t\tdouble result = (double) Math.sqrt(Math.pow(bx - ax, 2) + Math.pow(by - ay, 2));\n\t\t\n\t\tSystem.out.println(result);\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\t\n\t\tdouble argA = (double) (60 * h + m) / 2;\n\t\tdouble argB = 6 * m;\n\t\tdouble ax = 0;\n\t\tdouble ay = 0;\n\t\tdouble bx = 0;\n\t\tdouble by = 0;\n\t\t\n\t\tif (argA >= 0 && argA <= 90) {\n\t\t ax = a * Math.cos(Math.toRadians(90 - argA));\n\t\t ay = a * Math.sin(Math.toRadians(90 - argA));\n\t\t} else if (argA > 90 && argA <= 180) {\n\t\t ax = a * Math.cos(Math.toRadians(argA - 90));\n\t\t ay = -a * Math.sin(Math.toRadians(argA - 90));\n\t\t} else if (argA > 180 && argA <= 270) {\n\t\t ax = -a * Math.cos(Math.toRadians(270 - argA));\n\t\t ay = -a * Math.sin(Math.toRadians(270 - argA));\n\t\t} else if (argA > 270 && argA <= 360) {\n\t\t ax = -a * Math.cos(Math.toRadians(argA - 270));\n\t\t ay = a * Math.sin(Math.toRadians(argA - 270));\n\t\t}\n\t\t\n\t\tif (argB >= 0 && argB <= 90) {\n\t\t bx = b * Math.cos(Math.toRadians(90 - argB));\n\t\t by = b * Math.sin(Math.toRadians(90 - argB));\n\t\t} else if (argB > 90 && argB <= 180) {\n\t\t bx = b * Math.cos(Math.toRadians(argB - 90));\n\t\t by = -b * Math.sin(Math.toRadians(argB - 90));\n\t\t} else if (argB > 180 && argB <= 270) {\n\t\t bx = -b * Math.cos(Math.toRadians(270 - argB));\n\t\t by = -b * Math.sin(Math.toRadians(270 - argB));\n\t\t} else if (argB > 270 && argB <= 360) {\n\t\t bx = -b * Math.cos(Math.toRadians(argB - 270));\n\t\t by = b * Math.sin(Math.toRadians(argB - 270));\n\t\t}\n\t\t\n\t\tdouble result = (double) Math.sqrt(Math.pow(bx - ax, 2) + Math.pow(by - ay, 2));\n\t\t\n\t\tSystem.out.println(result);\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 argA = (double) (60 * h + m) / 2;", "argA", "(double) (60 * h + m) / 2", "(double) (60 * h + m)", "60 * h", "60", "h", "m", "2", "double argB = 6 * m;", "argB", "6 * m", "6", "m", "double ax = 0;", "ax", "0", "double ay = 0;", "ay", "0", "double bx = 0;", "bx", "0", "double by = 0;", "by", "0", "if (argA >= 0 && argA <= 90) {\n\t\t ax = a * Math.cos(Math.toRadians(90 - argA));\n\t\t ay = a * Math.sin(Math.toRadians(90 - argA));\n\t\t} else if (argA > 90 && argA <= 180) {\n\t\t ax = a * Math.cos(Math.toRadians(argA - 90));\n\t\t ay = -a * Math.sin(Math.toRadians(argA - 90));\n\t\t} else if (argA > 180 && argA <= 270) {\n\t\t ax = -a * Math.cos(Math.toRadians(270 - argA));\n\t\t ay = -a * Math.sin(Math.toRadians(270 - argA));\n\t\t} else if (argA > 270 && argA <= 360) {\n\t\t ax = -a * Math.cos(Math.toRadians(argA - 270));\n\t\t ay = a * Math.sin(Math.toRadians(argA - 270));\n\t\t}", "argA >= 0 && argA <= 90", "argA >= 0", "argA", "0", "argA <= 90", "argA", "90", "{\n\t\t ax = a * Math.cos(Math.toRadians(90 - argA));\n\t\t ay = a * Math.sin(Math.toRadians(90 - argA));\n\t\t}", "ax = a * Math.cos(Math.toRadians(90 - argA))", "ax", "a * Math.cos(Math.toRadians(90 - argA))", "a", "Math.cos(Math.toRadians(90 - argA))", "Math.cos", "Math", "Math.toRadians(90 - argA)", "Math.toRadians", "Math", "90 - argA", "90", "argA", "ay = a * Math.sin(Math.toRadians(90 - argA))", "ay", "a * Math.sin(Math.toRadians(90 - argA))", "a", "Math.sin(Math.toRadians(90 - argA))", "Math.sin", "Math", "Math.toRadians(90 - argA)", "Math.toRadians", "Math", "90 - argA", "90", "argA", "if (argA > 90 && argA <= 180) {\n\t\t ax = a * Math.cos(Math.toRadians(argA - 90));\n\t\t ay = -a * Math.sin(Math.toRadians(argA - 90));\n\t\t} else if (argA > 180 && argA <= 270) {\n\t\t ax = -a * Math.cos(Math.toRadians(270 - argA));\n\t\t ay = -a * Math.sin(Math.toRadians(270 - argA));\n\t\t} else if (argA > 270 && argA <= 360) {\n\t\t ax = -a * Math.cos(Math.toRadians(argA - 270));\n\t\t ay = a * Math.sin(Math.toRadians(argA - 270));\n\t\t}", "argA > 90 && argA <= 180", "argA > 90", "argA", "90", "argA <= 180", "argA", "180", "{\n\t\t ax = a * Math.cos(Math.toRadians(argA - 90));\n\t\t ay = -a * Math.sin(Math.toRadians(argA - 90));\n\t\t}", "ax = a * Math.cos(Math.toRadians(argA - 90))", "ax", "a * Math.cos(Math.toRadians(argA - 90))", "a", "Math.cos(Math.toRadians(argA - 90))", "Math.cos", "Math", "Math.toRadians(argA - 90)", "Math.toRadians", "Math", "argA - 90", "argA", "90", "ay = -a * Math.sin(Math.toRadians(argA - 90))", "ay", "-a * Math.sin(Math.toRadians(argA - 90))", "-a", "a", "Math.sin(Math.toRadians(argA - 90))", "Math.sin", "Math", "Math.toRadians(argA - 90)", "Math.toRadians", "Math", "argA - 90", "argA", "90", "if (argA > 180 && argA <= 270) {\n\t\t ax = -a * Math.cos(Math.toRadians(270 - argA));\n\t\t ay = -a * Math.sin(Math.toRadians(270 - argA));\n\t\t} else if (argA > 270 && argA <= 360) {\n\t\t ax = -a * Math.cos(Math.toRadians(argA - 270));\n\t\t ay = a * Math.sin(Math.toRadians(argA - 270));\n\t\t}", "argA > 180 && argA <= 270", "argA > 180", "argA", "180", "argA <= 270", "argA", "270", "{\n\t\t ax = -a * Math.cos(Math.toRadians(270 - argA));\n\t\t ay = -a * Math.sin(Math.toRadians(270 - argA));\n\t\t}", "ax = -a * Math.cos(Math.toRadians(270 - argA))", "ax", "-a * Math.cos(Math.toRadians(270 - argA))", "-a", "a", "Math.cos(Math.toRadians(270 - argA))", "Math.cos", "Math", "Math.toRadians(270 - argA)", "Math.toRadians", "Math", "270 - argA", "270", "argA", "ay = -a * Math.sin(Math.toRadians(270 - argA))", "ay", "-a * Math.sin(Math.toRadians(270 - argA))", "-a", "a", "Math.sin(Math.toRadians(270 - argA))", "Math.sin", "Math", "Math.toRadians(270 - argA)", "Math.toRadians", "Math", "270 - argA", "270", "argA", "if (argA > 270 && argA <= 360) {\n\t\t ax = -a * Math.cos(Math.toRadians(argA - 270));\n\t\t ay = a * Math.sin(Math.toRadians(argA - 270));\n\t\t}", "argA > 270 && argA <= 360", "argA > 270", "argA", "270", "argA <= 360", "argA", "360", "{\n\t\t ax = -a * Math.cos(Math.toRadians(argA - 270));\n\t\t ay = a * Math.sin(Math.toRadians(argA - 270));\n\t\t}", "ax = -a * Math.cos(Math.toRadians(argA - 270))", "ax", "-a * Math.cos(Math.toRadians(argA - 270))", "-a", "a", "Math.cos(Math.toRadians(argA - 270))", "Math.cos", "Math", "Math.toRadians(argA - 270)", "Math.toRadians", "Math", "argA - 270", "argA", "270", "ay = a * Math.sin(Math.toRadians(argA - 270))", "ay", "a * Math.sin(Math.toRadians(argA - 270))", "a", "Math.sin(Math.toRadians(argA - 270))", "Math.sin", "Math", "Math.toRadians(argA - 270)", "Math.toRadians", "Math", "argA - 270", "argA", "270", "if (argB >= 0 && argB <= 90) {\n\t\t bx = b * Math.cos(Math.toRadians(90 - argB));\n\t\t by = b * Math.sin(Math.toRadians(90 - argB));\n\t\t} else if (argB > 90 && argB <= 180) {\n\t\t bx = b * Math.cos(Math.toRadians(argB - 90));\n\t\t by = -b * Math.sin(Math.toRadians(argB - 90));\n\t\t} else if (argB > 180 && argB <= 270) {\n\t\t bx = -b * Math.cos(Math.toRadians(270 - argB));\n\t\t by = -b * Math.sin(Math.toRadians(270 - argB));\n\t\t} else if (argB > 270 && argB <= 360) {\n\t\t bx = -b * Math.cos(Math.toRadians(argB - 270));\n\t\t by = b * Math.sin(Math.toRadians(argB - 270));\n\t\t}", "argB >= 0 && argB <= 90", "argB >= 0", "argB", "0", "argB <= 90", "argB", "90", "{\n\t\t bx = b * Math.cos(Math.toRadians(90 - argB));\n\t\t by = b * Math.sin(Math.toRadians(90 - argB));\n\t\t}", "bx = b * Math.cos(Math.toRadians(90 - argB))", "bx", "b * Math.cos(Math.toRadians(90 - argB))", "b", "Math.cos(Math.toRadians(90 - argB))", "Math.cos", "Math", "Math.toRadians(90 - argB)", "Math.toRadians", "Math", "90 - argB", "90", "argB", "by = b * Math.sin(Math.toRadians(90 - argB))", "by", "b * Math.sin(Math.toRadians(90 - argB))", "b", "Math.sin(Math.toRadians(90 - argB))", "Math.sin", "Math", "Math.toRadians(90 - argB)", "Math.toRadians", "Math", "90 - argB", "90", "argB", "if (argB > 90 && argB <= 180) {\n\t\t bx = b * Math.cos(Math.toRadians(argB - 90));\n\t\t by = -b * Math.sin(Math.toRadians(argB - 90));\n\t\t} else if (argB > 180 && argB <= 270) {\n\t\t bx = -b * Math.cos(Math.toRadians(270 - argB));\n\t\t by = -b * Math.sin(Math.toRadians(270 - argB));\n\t\t} else if (argB > 270 && argB <= 360) {\n\t\t bx = -b * Math.cos(Math.toRadians(argB - 270));\n\t\t by = b * Math.sin(Math.toRadians(argB - 270));\n\t\t}", "argB > 90 && argB <= 180", "argB > 90", "argB", "90", "argB <= 180", "argB", "180", "{\n\t\t bx = b * Math.cos(Math.toRadians(argB - 90));\n\t\t by = -b * Math.sin(Math.toRadians(argB - 90));\n\t\t}", "bx = b * Math.cos(Math.toRadians(argB - 90))", "bx", "b * Math.cos(Math.toRadians(argB - 90))", "b", "Math.cos(Math.toRadians(argB - 90))", "Math.cos", "Math", "Math.toRadians(argB - 90)", "Math.toRadians", "Math", "argB - 90", "argB", "90", "by = -b * Math.sin(Math.toRadians(argB - 90))", "by", "-b * Math.sin(Math.toRadians(argB - 90))", "-b", "b", "Math.sin(Math.toRadians(argB - 90))", "Math.sin", "Math", "Math.toRadians(argB - 90)", "Math.toRadians", "Math", "argB - 90", "argB", "90", "if (argB > 180 && argB <= 270) {\n\t\t bx = -b * Math.cos(Math.toRadians(270 - argB));\n\t\t by = -b * Math.sin(Math.toRadians(270 - argB));\n\t\t} else if (argB > 270 && argB <= 360) {\n\t\t bx = -b * Math.cos(Math.toRadians(argB - 270));\n\t\t by = b * Math.sin(Math.toRadians(argB - 270));\n\t\t}", "argB > 180 && argB <= 270", "argB > 180", "argB", "180", "argB <= 270", "argB", "270", "{\n\t\t bx = -b * Math.cos(Math.toRadians(270 - argB));\n\t\t by = -b * Math.sin(Math.toRadians(270 - argB));\n\t\t}", "bx = -b * Math.cos(Math.toRadians(270 - argB))", "bx", "-b * Math.cos(Math.toRadians(270 - argB))", "-b", "b", "Math.cos(Math.toRadians(270 - argB))", "Math.cos", "Math", "Math.toRadians(270 - argB)", "Math.toRadians", "Math", "270 - argB", "270", "argB", "by = -b * Math.sin(Math.toRadians(270 - argB))", "by", "-b * Math.sin(Math.toRadians(270 - argB))", "-b", "b", "Math.sin(Math.toRadians(270 - argB))", "Math.sin", "Math", "Math.toRadians(270 - argB)", "Math.toRadians", "Math", "270 - argB", "270", "argB", "if (argB > 270 && argB <= 360) {\n\t\t bx = -b * Math.cos(Math.toRadians(argB - 270));\n\t\t by = b * Math.sin(Math.toRadians(argB - 270));\n\t\t}", "argB > 270 && argB <= 360", "argB > 270", "argB", "270", "argB <= 360", "argB", "360", "{\n\t\t bx = -b * Math.cos(Math.toRadians(argB - 270));\n\t\t by = b * Math.sin(Math.toRadians(argB - 270));\n\t\t}", "bx = -b * Math.cos(Math.toRadians(argB - 270))", "bx", "-b * Math.cos(Math.toRadians(argB - 270))", "-b", "b", "Math.cos(Math.toRadians(argB - 270))", "Math.cos", "Math", "Math.toRadians(argB - 270)", "Math.toRadians", "Math", "argB - 270", "argB", "270", "by = b * Math.sin(Math.toRadians(argB - 270))", "by", "b * Math.sin(Math.toRadians(argB - 270))", "b", "Math.sin(Math.toRadians(argB - 270))", "Math.sin", "Math", "Math.toRadians(argB - 270)", "Math.toRadians", "Math", "argB - 270", "argB", "270", "double result = (double) Math.sqrt(Math.pow(bx - ax, 2) + Math.pow(by - ay, 2));", "result", "(double) Math.sqrt(Math.pow(bx - ax, 2) + Math.pow(by - ay, 2))", "Math.sqrt", "Math", "Math.pow(bx - ax, 2) + Math.pow(by - ay, 2)", "Math.pow(bx - ax, 2)", "Math.pow", "Math", "bx - ax", "bx", "ax", "2", "Math.pow(by - ay, 2)", "Math.pow", "Math", "by - ay", "by", "ay", "2", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "String[] args", "args", "public 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\t\n\t\tdouble argA = (double) (60 * h + m) / 2;\n\t\tdouble argB = 6 * m;\n\t\tdouble ax = 0;\n\t\tdouble ay = 0;\n\t\tdouble bx = 0;\n\t\tdouble by = 0;\n\t\t\n\t\tif (argA >= 0 && argA <= 90) {\n\t\t ax = a * Math.cos(Math.toRadians(90 - argA));\n\t\t ay = a * Math.sin(Math.toRadians(90 - argA));\n\t\t} else if (argA > 90 && argA <= 180) {\n\t\t ax = a * Math.cos(Math.toRadians(argA - 90));\n\t\t ay = -a * Math.sin(Math.toRadians(argA - 90));\n\t\t} else if (argA > 180 && argA <= 270) {\n\t\t ax = -a * Math.cos(Math.toRadians(270 - argA));\n\t\t ay = -a * Math.sin(Math.toRadians(270 - argA));\n\t\t} else if (argA > 270 && argA <= 360) {\n\t\t ax = -a * Math.cos(Math.toRadians(argA - 270));\n\t\t ay = a * Math.sin(Math.toRadians(argA - 270));\n\t\t}\n\t\t\n\t\tif (argB >= 0 && argB <= 90) {\n\t\t bx = b * Math.cos(Math.toRadians(90 - argB));\n\t\t by = b * Math.sin(Math.toRadians(90 - argB));\n\t\t} else if (argB > 90 && argB <= 180) {\n\t\t bx = b * Math.cos(Math.toRadians(argB - 90));\n\t\t by = -b * Math.sin(Math.toRadians(argB - 90));\n\t\t} else if (argB > 180 && argB <= 270) {\n\t\t bx = -b * Math.cos(Math.toRadians(270 - argB));\n\t\t by = -b * Math.sin(Math.toRadians(270 - argB));\n\t\t} else if (argB > 270 && argB <= 360) {\n\t\t bx = -b * Math.cos(Math.toRadians(argB - 270));\n\t\t by = b * Math.sin(Math.toRadians(argB - 270));\n\t\t}\n\t\t\n\t\tdouble result = (double) Math.sqrt(Math.pow(bx - ax, 2) + Math.pow(by - ay, 2));\n\t\t\n\t\tSystem.out.println(result);\n\t}\n}", "public 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\t\n\t\tdouble argA = (double) (60 * h + m) / 2;\n\t\tdouble argB = 6 * m;\n\t\tdouble ax = 0;\n\t\tdouble ay = 0;\n\t\tdouble bx = 0;\n\t\tdouble by = 0;\n\t\t\n\t\tif (argA >= 0 && argA <= 90) {\n\t\t ax = a * Math.cos(Math.toRadians(90 - argA));\n\t\t ay = a * Math.sin(Math.toRadians(90 - argA));\n\t\t} else if (argA > 90 && argA <= 180) {\n\t\t ax = a * Math.cos(Math.toRadians(argA - 90));\n\t\t ay = -a * Math.sin(Math.toRadians(argA - 90));\n\t\t} else if (argA > 180 && argA <= 270) {\n\t\t ax = -a * Math.cos(Math.toRadians(270 - argA));\n\t\t ay = -a * Math.sin(Math.toRadians(270 - argA));\n\t\t} else if (argA > 270 && argA <= 360) {\n\t\t ax = -a * Math.cos(Math.toRadians(argA - 270));\n\t\t ay = a * Math.sin(Math.toRadians(argA - 270));\n\t\t}\n\t\t\n\t\tif (argB >= 0 && argB <= 90) {\n\t\t bx = b * Math.cos(Math.toRadians(90 - argB));\n\t\t by = b * Math.sin(Math.toRadians(90 - argB));\n\t\t} else if (argB > 90 && argB <= 180) {\n\t\t bx = b * Math.cos(Math.toRadians(argB - 90));\n\t\t by = -b * Math.sin(Math.toRadians(argB - 90));\n\t\t} else if (argB > 180 && argB <= 270) {\n\t\t bx = -b * Math.cos(Math.toRadians(270 - argB));\n\t\t by = -b * Math.sin(Math.toRadians(270 - argB));\n\t\t} else if (argB > 270 && argB <= 360) {\n\t\t bx = -b * Math.cos(Math.toRadians(argB - 270));\n\t\t by = b * Math.sin(Math.toRadians(argB - 270));\n\t\t}\n\t\t\n\t\tdouble result = (double) Math.sqrt(Math.pow(bx - ax, 2) + Math.pow(by - ay, 2));\n\t\t\n\t\tSystem.out.println(result);\n\t}\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 argA = (double) (60 * h + m) / 2; double argB = 6 * m; double ax = 0; double ay = 0; double bx = 0; double by = 0; if (argA >= 0 && argA <= 90) { ax = a * Math.cos(Math.toRadians(90 - argA)); ay = a * Math.sin(Math.toRadians(90 - argA)); } else if (argA > 90 && argA <= 180) { ax = a * Math.cos(Math.toRadians(argA - 90)); ay = -a * Math.sin(Math.toRadians(argA - 90)); } else if (argA > 180 && argA <= 270) { ax = -a * Math.cos(Math.toRadians(270 - argA)); ay = -a * Math.sin(Math.toRadians(270 - argA)); } else if (argA > 270 && argA <= 360) { ax = -a * Math.cos(Math.toRadians(argA - 270)); ay = a * Math.sin(Math.toRadians(argA - 270)); } if (argB >= 0 && argB <= 90) { bx = b * Math.cos(Math.toRadians(90 - argB)); by = b * Math.sin(Math.toRadians(90 - argB)); } else if (argB > 90 && argB <= 180) { bx = b * Math.cos(Math.toRadians(argB - 90)); by = -b * Math.sin(Math.toRadians(argB - 90)); } else if (argB > 180 && argB <= 270) { bx = -b * Math.cos(Math.toRadians(270 - argB)); by = -b * Math.sin(Math.toRadians(270 - argB)); } else if (argB > 270 && argB <= 360) { bx = -b * Math.cos(Math.toRadians(argB - 270)); by = b * Math.sin(Math.toRadians(argB - 270)); } double result = (double) Math.sqrt(Math.pow(bx - ax, 2) + Math.pow(by - ay, 2)); System.out.println(result); } }
[ 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, 40, 4, 18, 13, 2, 2, 13, 2, 13, 17, 17, 17, 41, 13, 2, 40, 4, 18, 13, 2, 13, 17, 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, 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 ], [ 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 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 54, 56 ], [ 51, 57 ], [ 46, 58 ], [ 8, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 66, 67 ], [ 66, 68 ], [ 61, 69 ], [ 8, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 8, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 8, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 8, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 8, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 108, 112 ], [ 112, 113 ], [ 112, 114 ], [ 107, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 119, 120 ], [ 119, 121 ], [ 8, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 6, 128 ], [ 128, 129 ], [ 0, 130 ], [ 130, 131 ], [ 130, 132 ] ]
[ "import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n double A = Double.parseDouble(sc.next());\n double B = Double.parseDouble(sc.next());\n double H = Double.parseDouble(sc.next());\n double M = Double.parseDouble(sc.next());\n double radH = -Math.toRadians((H + M / 60D) * 30D) + 90D;\n double radM = -Math.toRadians(M * 6D) + 90D;\n double hX = A * Math.cos(radH);\n double hY = A * Math.sin(radH);\n double mX = B * Math.cos(radM);\n double mY = B * Math.sin(radM);\n double distance = Math.sqrt((hX - mX) * (hX - mX) + (hY - mY) * (hY - mY));\n System.out.println(distance);\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 = Double.parseDouble(sc.next());\n double B = Double.parseDouble(sc.next());\n double H = Double.parseDouble(sc.next());\n double M = Double.parseDouble(sc.next());\n double radH = -Math.toRadians((H + M / 60D) * 30D) + 90D;\n double radM = -Math.toRadians(M * 6D) + 90D;\n double hX = A * Math.cos(radH);\n double hY = A * Math.sin(radH);\n double mX = B * Math.cos(radM);\n double mY = B * Math.sin(radM);\n double distance = Math.sqrt((hX - mX) * (hX - mX) + (hY - mY) * (hY - mY));\n System.out.println(distance);\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n double A = Double.parseDouble(sc.next());\n double B = Double.parseDouble(sc.next());\n double H = Double.parseDouble(sc.next());\n double M = Double.parseDouble(sc.next());\n double radH = -Math.toRadians((H + M / 60D) * 30D) + 90D;\n double radM = -Math.toRadians(M * 6D) + 90D;\n double hX = A * Math.cos(radH);\n double hY = A * Math.sin(radH);\n double mX = B * Math.cos(radM);\n double mY = B * Math.sin(radM);\n double distance = Math.sqrt((hX - mX) * (hX - mX) + (hY - mY) * (hY - mY));\n System.out.println(distance);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n double A = Double.parseDouble(sc.next());\n double B = Double.parseDouble(sc.next());\n double H = Double.parseDouble(sc.next());\n double M = Double.parseDouble(sc.next());\n double radH = -Math.toRadians((H + M / 60D) * 30D) + 90D;\n double radM = -Math.toRadians(M * 6D) + 90D;\n double hX = A * Math.cos(radH);\n double hY = A * Math.sin(radH);\n double mX = B * Math.cos(radM);\n double mY = B * Math.sin(radM);\n double distance = Math.sqrt((hX - mX) * (hX - mX) + (hY - mY) * (hY - mY));\n System.out.println(distance);\n }", "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", "double radH = -Math.toRadians((H + M / 60D) * 30D) + 90D;", "radH", "-Math.toRadians((H + M / 60D) * 30D) + 90D", "-Math.toRadians((H + M / 60D) * 30D)", "Math.toRadians((H + M / 60D) * 30D)", "Math.toRadians", "Math", "(H + M / 60D) * 30D", "(H + M / 60D)", "H", "M / 60D", "M", "60D", "30D", "90D", "double radM = -Math.toRadians(M * 6D) + 90D;", "radM", "-Math.toRadians(M * 6D) + 90D", "-Math.toRadians(M * 6D)", "Math.toRadians(M * 6D)", "Math.toRadians", "Math", "M * 6D", "M", "6D", "90D", "double hX = A * Math.cos(radH);", "hX", "A * Math.cos(radH)", "A", "Math.cos(radH)", "Math.cos", "Math", "radH", "double hY = A * Math.sin(radH);", "hY", "A * Math.sin(radH)", "A", "Math.sin(radH)", "Math.sin", "Math", "radH", "double mX = B * Math.cos(radM);", "mX", "B * Math.cos(radM)", "B", "Math.cos(radM)", "Math.cos", "Math", "radM", "double mY = B * Math.sin(radM);", "mY", "B * Math.sin(radM)", "B", "Math.sin(radM)", "Math.sin", "Math", "radM", "double distance = Math.sqrt((hX - mX) * (hX - mX) + (hY - mY) * (hY - mY));", "distance", "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(distance)", "System.out.println", "System.out", "System", "System.out", "distance", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n double A = Double.parseDouble(sc.next());\n double B = Double.parseDouble(sc.next());\n double H = Double.parseDouble(sc.next());\n double M = Double.parseDouble(sc.next());\n double radH = -Math.toRadians((H + M / 60D) * 30D) + 90D;\n double radM = -Math.toRadians(M * 6D) + 90D;\n double hX = A * Math.cos(radH);\n double hY = A * Math.sin(radH);\n double mX = B * Math.cos(radM);\n double mY = B * Math.sin(radM);\n double distance = Math.sqrt((hX - mX) * (hX - mX) + (hY - mY) * (hY - mY));\n System.out.println(distance);\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n double A = Double.parseDouble(sc.next());\n double B = Double.parseDouble(sc.next());\n double H = Double.parseDouble(sc.next());\n double M = Double.parseDouble(sc.next());\n double radH = -Math.toRadians((H + M / 60D) * 30D) + 90D;\n double radM = -Math.toRadians(M * 6D) + 90D;\n double hX = A * Math.cos(radH);\n double hY = A * Math.sin(radH);\n double mX = B * Math.cos(radM);\n double mY = B * Math.sin(radM);\n double distance = Math.sqrt((hX - mX) * (hX - mX) + (hY - mY) * (hY - mY));\n System.out.println(distance);\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ 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()); double radH = -Math.toRadians((H + M / 60D) * 30D) + 90D; double radM = -Math.toRadians(M * 6D) + 90D; double hX = A * Math.cos(radH); double hY = A * Math.sin(radH); double mX = B * Math.cos(radM); double mY = B * Math.sin(radM); double distance = Math.sqrt((hX - mX) * (hX - mX) + (hY - mY) * (hY - mY)); System.out.println(distance); } }
[ 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, 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, 4, 13, 13, 13, 13, 13, 4, 18, 13, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 2, 2, 13, 17, 2, 2, 13, 17, 17, 41, 13, 2, 2, 17, 18, 13, 13, 2, 2, 13, 17, 13, 29, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 13, 23, 13, 23, 13, 23, 13, 23, 13, 6, 13, 41, 13, 41, 13, 41, 13, 17, 12, 13, 30, 4, 13, 20, 23, 13, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 2, 2, 17, 13, 17, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 37, 20, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 29, 17, 0, 13, 20, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 2, 2, 2, 17, 13, 17, 13, 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 ], [ 277, 32 ], [ 277, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 38, 40 ], [ 35, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 35, 46 ], [ 46, 47 ], [ 46, 48 ], [ 35, 49 ], [ 49, 50 ], [ 49, 51 ], [ 35, 52 ], [ 52, 53 ], [ 52, 54 ], [ 35, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 55, 59 ], [ 55, 60 ], [ 35, 61 ], [ 61, 62 ], [ 62, 63 ], [ 33, 64 ], [ 64, 65 ], [ 277, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 70, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 70, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 70, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 70, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 93, 96 ], [ 93, 97 ], [ 93, 98 ], [ 70, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 68, 103 ], [ 103, 104 ], [ 68, 105 ], [ 105, 106 ], [ 68, 107 ], [ 107, 108 ], [ 66, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 118, 122 ], [ 111, 123 ], [ 123, 124 ], [ 123, 125 ], [ 126, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 131, 135 ], [ 111, 136 ], [ 136, 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 ], [ 109, 158 ], [ 158, 159 ], [ 109, 160 ], [ 160, 161 ], [ 109, 162 ], [ 162, 163 ], [ 109, 164 ], [ 164, 165 ], [ 277, 166 ], [ 166, 167 ], [ 166, 168 ], [ 168, 169 ], [ 166, 170 ], [ 170, 171 ], [ 166, 172 ], [ 172, 173 ], [ 172, 174 ], [ 166, 175 ], [ 175, 176 ], [ 175, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 175, 181 ], [ 181, 182 ], [ 166, 183 ], [ 183, 184 ], [ 183, 185 ], [ 185, 186 ], [ 186, 187 ], [ 186, 188 ], [ 183, 189 ], [ 189, 190 ], [ 166, 191 ], [ 191, 192 ], [ 191, 193 ], [ 193, 194 ], [ 194, 195 ], [ 195, 196 ], [ 195, 197 ], [ 194, 198 ], [ 198, 199 ], [ 199, 200 ], [ 200, 201 ], [ 201, 202 ], [ 201, 203 ], [ 199, 204 ], [ 205, 205 ], [ 205, 206 ], [ 205, 207 ], [ 205, 208 ], [ 193, 209 ], [ 209, 210 ], [ 210, 211 ], [ 211, 212 ], [ 211, 213 ], [ 210, 214 ], [ 214, 215 ], [ 215, 216 ], [ 216, 217 ], [ 209, 218 ], [ 218, 219 ], [ 219, 220 ], [ 220, 221 ], [ 220, 222 ], [ 222, 223 ], [ 223, 224 ], [ 224, 225 ], [ 222, 226 ], [ 226, 227 ], [ 219, 228 ], [ 228, 229 ], [ 229, 230 ], [ 229, 231 ], [ 231, 232 ], [ 232, 233 ], [ 228, 234 ], [ 234, 235 ], [ 235, 236 ], [ 235, 237 ], [ 234, 238 ], [ 238, 239 ], [ 228, 240 ], [ 240, 241 ], [ 240, 242 ], [ 193, 243 ], [ 243, 244 ], [ 243, 245 ], [ 245, 246 ], [ 246, 247 ], [ 193, 248 ], [ 248, 249 ], [ 249, 250 ], [ 249, 251 ], [ 248, 252 ], [ 252, 253 ], [ 253, 254 ], [ 254, 255 ], [ 255, 256 ], [ 255, 257 ], [ 253, 258 ], [ 260, 259 ], [ 259, 260 ], [ 260, 261 ], [ 260, 262 ], [ 259, 263 ], [ 260, 264 ], [ 193, 265 ], [ 265, 266 ], [ 166, 267 ], [ 267, 268 ], [ 267, 269 ], [ 269, 270 ], [ 270, 271 ], [ 271, 272 ], [ 272, 273 ], [ 271, 274 ], [ 274, 275 ], [ 0, 276 ], [ 276, 277 ], [ 276, 278 ] ]
[ "import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.io.PrintStream;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\nimport java.io.BufferedReader;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author Eric\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(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, FastReader in, PrintWriter out) {\n double a = in.nextInt();\n double b = in.nextInt();\n double h = in.nextInt();\n double m = in.nextInt();\n double res = solveMe1(a, b, h, m);\n out.println(res);\n //out.print(\"Case #\"+ testNumber + \": \");\n }\n\n private double solveMe1(double a, double b, double h, double m) {\n double angleHour = h / 12.0 + (m / 60.0 / 12.0);\n double angle = 2 * Math.PI * (m / 60.0 - angleHour);\n return Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(angle));\n }\n\n }\n\n static class FastReader {\n public BufferedReader br;\n public StringTokenizer st;\n String context = null;\n\n public FastReader(InputStream in) {\n this(new InputStreamReader(in));\n }\n\n public FastReader(InputStreamReader input) {\n br = new BufferedReader(input);\n }\n\n public String next() {\n if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }\n while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }\n String res = st.nextToken();\n if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }\n return res;\n }\n\n public int nextInt() {\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.io.PrintStream;", "PrintStream", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "import java.io.BufferedReader;", "BufferedReader", "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 FastReader in = new FastReader(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, FastReader in, PrintWriter out) {\n double a = in.nextInt();\n double b = in.nextInt();\n double h = in.nextInt();\n double m = in.nextInt();\n double res = solveMe1(a, b, h, m);\n out.println(res);\n //out.print(\"Case #\"+ testNumber + \": \");\n }\n\n private double solveMe1(double a, double b, double h, double m) {\n double angleHour = h / 12.0 + (m / 60.0 / 12.0);\n double angle = 2 * Math.PI * (m / 60.0 - angleHour);\n return Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(angle));\n }\n\n }\n\n static class FastReader {\n public BufferedReader br;\n public StringTokenizer st;\n String context = null;\n\n public FastReader(InputStream in) {\n this(new InputStreamReader(in));\n }\n\n public FastReader(InputStreamReader input) {\n br = new BufferedReader(input);\n }\n\n public String next() {\n if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }\n while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }\n String res = st.nextToken();\n if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }\n return res;\n }\n\n public int nextInt() {\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 FastReader in = new FastReader(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 FastReader in = new FastReader(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", "FastReader in = new FastReader(inputStream);", "in", "new FastReader(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, FastReader in, PrintWriter out) {\n double a = in.nextInt();\n double b = in.nextInt();\n double h = in.nextInt();\n double m = in.nextInt();\n double res = solveMe1(a, b, h, m);\n out.println(res);\n //out.print(\"Case #\"+ testNumber + \": \");\n }\n\n private double solveMe1(double a, double b, double h, double m) {\n double angleHour = h / 12.0 + (m / 60.0 / 12.0);\n double angle = 2 * Math.PI * (m / 60.0 - angleHour);\n return Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(angle));\n }\n\n }", "CColon", "public void solve(int testNumber, FastReader in, PrintWriter out) {\n double a = in.nextInt();\n double b = in.nextInt();\n double h = in.nextInt();\n double m = in.nextInt();\n double res = solveMe1(a, b, h, m);\n out.println(res);\n //out.print(\"Case #\"+ testNumber + \": \");\n }", "solve", "{\n double a = in.nextInt();\n double b = in.nextInt();\n double h = in.nextInt();\n double m = in.nextInt();\n double res = solveMe1(a, b, h, m);\n out.println(res);\n //out.print(\"Case #\"+ testNumber + \": \");\n }", "double a = in.nextInt();", "a", "in.nextInt()", "in.nextInt", "in", "double b = in.nextInt();", "b", "in.nextInt()", "in.nextInt", "in", "double h = in.nextInt();", "h", "in.nextInt()", "in.nextInt", "in", "double m = in.nextInt();", "m", "in.nextInt()", "in.nextInt", "in", "double res = solveMe1(a, b, h, m);", "res", "solveMe1(a, b, h, m)", "solveMe1", "a", "b", "h", "m", "out.println(res)", "out.println", "out", "res", "int testNumber", "testNumber", "FastReader in", "in", "PrintWriter out", "out", "private double solveMe1(double a, double b, double h, double m) {\n double angleHour = h / 12.0 + (m / 60.0 / 12.0);\n double angle = 2 * Math.PI * (m / 60.0 - angleHour);\n return Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(angle));\n }", "solveMe1", "{\n double angleHour = h / 12.0 + (m / 60.0 / 12.0);\n double angle = 2 * Math.PI * (m / 60.0 - angleHour);\n return Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(angle));\n }", "double angleHour = h / 12.0 + (m / 60.0 / 12.0);", "angleHour", "h / 12.0 + (m / 60.0 / 12.0)", "h / 12.0", "h", "12.0", "(m / 60.0 / 12.0)", "m / 60.0 / 12.0", "m", "60.0", "12.0", "double angle = 2 * Math.PI * (m / 60.0 - angleHour);", "angle", "2 * Math.PI * (m / 60.0 - angleHour)", "2 * Math.PI * (m / 60.0 - angleHour)", "2", "Math.PI", "Math", "Math.PI", "(m / 60.0 - angleHour)", "m / 60.0", "m", "60.0", "angleHour", "return Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(angle));", "Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(angle))", "Math.sqrt", "Math", "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", "double a", "a", "double b", "b", "double h", "h", "double m", "m", "static class FastReader {\n public BufferedReader br;\n public StringTokenizer st;\n String context = null;\n\n public FastReader(InputStream in) {\n this(new InputStreamReader(in));\n }\n\n public FastReader(InputStreamReader input) {\n br = new BufferedReader(input);\n }\n\n public String next() {\n if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }\n while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }\n String res = st.nextToken();\n if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }\n return res;\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }", "FastReader", "public BufferedReader br;", "br", "public StringTokenizer st;", "st", "String context = null;", "context", "null", "public FastReader(InputStream in) {\n this(new InputStreamReader(in));\n }", "FastReader", "{\n this(new InputStreamReader(in));\n }", "this(new InputStreamReader(in))", "this", "new InputStreamReader(in)", "InputStream in", "in", "public FastReader(InputStreamReader input) {\n br = new BufferedReader(input);\n }", "FastReader", "{\n br = new BufferedReader(input);\n }", "br = new BufferedReader(input)", "br", "new BufferedReader(input)", "InputStreamReader input", "input", "public String next() {\n if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }\n while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }\n String res = st.nextToken();\n if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }\n return res;\n }", "next", "{\n if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }\n while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }\n String res = st.nextToken();\n if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }\n return res;\n }", "if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }", "context != null", "context", "null", "{\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }", "System.err.print(\"[\" + context + \"] Wait for input ...\")", "System.err.print", "System.err", "System", "System.err", "\"[\" + context + \"] Wait for input ...\"", "\"[\" + context + \"] Wait for input ...\"", "\"[\"", "context", "\"] Wait for input ...\"", "while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }", "try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }", "catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }", "IOException e", "{\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }", "e.printStackTrace()", "e.printStackTrace", "e", "throw new RuntimeException(\"Could not read\");", "new RuntimeException(\"Could not read\")", "{\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n }", "String s = br.readLine();", "s", "br.readLine()", "br.readLine", "br", "if (s == null)\n return null;", "s == null", "s", "null", "return null;", "null", "st = new StringTokenizer(s)", "st", "new StringTokenizer(s)", "String res = st.nextToken();", "res", "st.nextToken()", "st.nextToken", "st", "if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }", "context != null", "context", "null", "{\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }", "System.err.println(\"[\" + context + \"] ... received : \" + res)", "System.err.println", "System.err", "System", "System.err", "\"[\" + context + \"] ... received : \" + res", "\"] ... received : \"", "\"[\" + context + \"] ... received : \" + res", "\"[\"", "context", "\"] ... received : \"", "res", "return res;", "res", "public 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", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(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, FastReader in, PrintWriter out) {\n double a = in.nextInt();\n double b = in.nextInt();\n double h = in.nextInt();\n double m = in.nextInt();\n double res = solveMe1(a, b, h, m);\n out.println(res);\n //out.print(\"Case #\"+ testNumber + \": \");\n }\n\n private double solveMe1(double a, double b, double h, double m) {\n double angleHour = h / 12.0 + (m / 60.0 / 12.0);\n double angle = 2 * Math.PI * (m / 60.0 - angleHour);\n return Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(angle));\n }\n\n }\n\n static class FastReader {\n public BufferedReader br;\n public StringTokenizer st;\n String context = null;\n\n public FastReader(InputStream in) {\n this(new InputStreamReader(in));\n }\n\n public FastReader(InputStreamReader input) {\n br = new BufferedReader(input);\n }\n\n public String next() {\n if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }\n while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }\n String res = st.nextToken();\n if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }\n return res;\n }\n\n public int nextInt() {\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 FastReader in = new FastReader(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, FastReader in, PrintWriter out) {\n double a = in.nextInt();\n double b = in.nextInt();\n double h = in.nextInt();\n double m = in.nextInt();\n double res = solveMe1(a, b, h, m);\n out.println(res);\n //out.print(\"Case #\"+ testNumber + \": \");\n }\n\n private double solveMe1(double a, double b, double h, double m) {\n double angleHour = h / 12.0 + (m / 60.0 / 12.0);\n double angle = 2 * Math.PI * (m / 60.0 - angleHour);\n return Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(angle));\n }\n\n }\n\n static class FastReader {\n public BufferedReader br;\n public StringTokenizer st;\n String context = null;\n\n public FastReader(InputStream in) {\n this(new InputStreamReader(in));\n }\n\n public FastReader(InputStreamReader input) {\n br = new BufferedReader(input);\n }\n\n public String next() {\n if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }\n while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }\n String res = st.nextToken();\n if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }\n return res;\n }\n\n public int nextInt() {\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.io.PrintStream; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; import java.io.BufferedReader; import java.io.InputStream; /** * Built using CHelper plug-in * Actual solution is at the top * * @author Eric */ public class Main { public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; FastReader in = new FastReader(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, FastReader in, PrintWriter out) { double a = in.nextInt(); double b = in.nextInt(); double h = in.nextInt(); double m = in.nextInt(); double res = solveMe1(a, b, h, m); out.println(res); //out.print("Case #"+ testNumber + ": "); } private double solveMe1(double a, double b, double h, double m) { double angleHour = h / 12.0 + (m / 60.0 / 12.0); double angle = 2 * Math.PI * (m / 60.0 - angleHour); return Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(angle)); } } static class FastReader { public BufferedReader br; public StringTokenizer st; String context = null; public FastReader(InputStream in) { this(new InputStreamReader(in)); } public FastReader(InputStreamReader input) { br = new BufferedReader(input); } public String next() { if (context != null) { System.err.print("[" + context + "] Wait for input ..."); } while (st == null || !st.hasMoreElements()) { try { String s = br.readLine(); if (s == null) return null; st = new StringTokenizer(s); } catch (IOException e) { e.printStackTrace(); throw new RuntimeException("Could not read"); } } String res = st.nextToken(); if (context != null) { System.err.println("[" + context + "] ... received : " + res); } return res; } public int nextInt() { return Integer.parseInt(next()); } } }
[ 7, 15, 13, 17, 6, 13, 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, 2, 17, 18, 13, 13, 13, 17, 41, 13, 2, 2, 2, 17, 18, 13, 13, 2, 2, 13, 17, 13, 2, 17, 17, 41, 13, 2, 4, 18, 13, 13, 13, 4, 18, 13, 13, 13, 14, 2, 13, 18, 13, 13, 0, 13, 2, 2, 17, 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, 13, 4, 18, 18, 13, 13, 13, 12, 13, 30, 4, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 125, 5 ], [ 125, 6 ], [ 6, 7 ], [ 6, 8 ], [ 125, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 11, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 11, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 11, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 36, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 34, 42 ], [ 11, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 47, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 45, 57 ], [ 57, 58 ], [ 57, 59 ], [ 11, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 63, 67 ], [ 62, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 68, 72 ], [ 11, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 73, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 81, 87 ], [ 11, 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 ], [ 11, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 125, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 120, 121 ], [ 117, 122 ], [ 122, 123 ], [ 0, 124 ], [ 124, 125 ], [ 124, 126 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n static Scanner in = new Scanner(System.in);\n\n static void run() {\n int A = in.nextInt(), B = in.nextInt(), H = in.nextInt(), M = in.nextInt();\n double m = 2.0 * Math.PI * M / 60;\n double h = 2.0 * Math.PI * (H * 60 + M) / (60 * 12);\n double a = Math.max(m, h) - Math.min(m, h);\n if (a >= Math.PI) a = 2 * Math.PI - a;\n double d = Math.sqrt(A*A + B*B - 2*A*B*Math.cos(a));\n System.out.println(d);\n }\n\n public static void main(String[] args) {\n run();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n static Scanner in = new Scanner(System.in);\n\n static void run() {\n int A = in.nextInt(), B = in.nextInt(), H = in.nextInt(), M = in.nextInt();\n double m = 2.0 * Math.PI * M / 60;\n double h = 2.0 * Math.PI * (H * 60 + M) / (60 * 12);\n double a = Math.max(m, h) - Math.min(m, h);\n if (a >= Math.PI) a = 2 * Math.PI - a;\n double d = Math.sqrt(A*A + B*B - 2*A*B*Math.cos(a));\n System.out.println(d);\n }\n\n public static void main(String[] args) {\n run();\n }\n}", "Main", "static Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "static void run() {\n int A = in.nextInt(), B = in.nextInt(), H = in.nextInt(), M = in.nextInt();\n double m = 2.0 * Math.PI * M / 60;\n double h = 2.0 * Math.PI * (H * 60 + M) / (60 * 12);\n double a = Math.max(m, h) - Math.min(m, h);\n if (a >= Math.PI) a = 2 * Math.PI - a;\n double d = Math.sqrt(A*A + B*B - 2*A*B*Math.cos(a));\n System.out.println(d);\n }", "run", "{\n int A = in.nextInt(), B = in.nextInt(), H = in.nextInt(), M = in.nextInt();\n double m = 2.0 * Math.PI * M / 60;\n double h = 2.0 * Math.PI * (H * 60 + M) / (60 * 12);\n double a = Math.max(m, h) - Math.min(m, h);\n if (a >= Math.PI) a = 2 * Math.PI - a;\n double d = Math.sqrt(A*A + B*B - 2*A*B*Math.cos(a));\n System.out.println(d);\n }", "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 m = 2.0 * Math.PI * M / 60;", "m", "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 h = 2.0 * Math.PI * (H * 60 + M) / (60 * 12);", "h", "2.0 * Math.PI * (H * 60 + M) / (60 * 12)", "2.0 * Math.PI * (H * 60 + M)", "2.0 * Math.PI * (H * 60 + M)", "2.0", "Math.PI", "Math", "Math.PI", "(H * 60 + M)", "H * 60", "H", "60", "M", "(60 * 12)", "60", "12", "double a = Math.max(m, h) - Math.min(m, h);", "a", "Math.max(m, h) - Math.min(m, h)", "Math.max(m, h)", "Math.max", "Math", "m", "h", "Math.min(m, h)", "Math.min", "Math", "m", "h", "if (a >= Math.PI) a = 2 * Math.PI - a;", "a >= Math.PI", "a", "Math.PI", "Math", "Math.PI", "a = 2 * Math.PI - a", "a", "2 * Math.PI - a", "2 * Math.PI", "2", "Math.PI", "Math", "Math.PI", "a", "double d = Math.sqrt(A*A + B*B - 2*A*B*Math.cos(a));", "d", "Math.sqrt(A*A + B*B - 2*A*B*Math.cos(a))", "Math.sqrt", "Math", "A*A + B*B - 2*A*B*Math.cos(a)", "A*A + B*B", "A*A", "A", "A", "B*B", "B", "B", "2*A*B*Math.cos(a)", "B", "2*A*B*Math.cos(a)", "2", "A", "B", "Math.cos(a)", "Math.cos", "Math", "a", "System.out.println(d)", "System.out.println", "System.out", "System", "System.out", "d", "public static void main(String[] args) {\n run();\n }", "main", "{\n run();\n }", "run()", "run", "String[] args", "args", "public class Main {\n static Scanner in = new Scanner(System.in);\n\n static void run() {\n int A = in.nextInt(), B = in.nextInt(), H = in.nextInt(), M = in.nextInt();\n double m = 2.0 * Math.PI * M / 60;\n double h = 2.0 * Math.PI * (H * 60 + M) / (60 * 12);\n double a = Math.max(m, h) - Math.min(m, h);\n if (a >= Math.PI) a = 2 * Math.PI - a;\n double d = Math.sqrt(A*A + B*B - 2*A*B*Math.cos(a));\n System.out.println(d);\n }\n\n public static void main(String[] args) {\n run();\n }\n}", "public class Main {\n static Scanner in = new Scanner(System.in);\n\n static void run() {\n int A = in.nextInt(), B = in.nextInt(), H = in.nextInt(), M = in.nextInt();\n double m = 2.0 * Math.PI * M / 60;\n double h = 2.0 * Math.PI * (H * 60 + M) / (60 * 12);\n double a = Math.max(m, h) - Math.min(m, h);\n if (a >= Math.PI) a = 2 * Math.PI - a;\n double d = Math.sqrt(A*A + B*B - 2*A*B*Math.cos(a));\n System.out.println(d);\n }\n\n public static void main(String[] args) {\n run();\n }\n}", "Main" ]
import java.util.Scanner; public class Main { static Scanner in = new Scanner(System.in); static void run() { int A = in.nextInt(), B = in.nextInt(), H = in.nextInt(), M = in.nextInt(); double m = 2.0 * Math.PI * M / 60; double h = 2.0 * Math.PI * (H * 60 + M) / (60 * 12); double a = Math.max(m, h) - Math.min(m, h); if (a >= Math.PI) a = 2 * Math.PI - a; double d = Math.sqrt(A*A + B*B - 2*A*B*Math.cos(a)); System.out.println(d); } public static void main(String[] args) { run(); } }
[ 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, 2, 17, 13, 17, 41, 13, 2, 17, 13, 41, 13, 8, 2, 4, 18, 13, 2, 13, 13, 17, 4, 18, 13, 2, 13, 13, 2, 17, 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 ], [ 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 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 8, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 45, 47 ], [ 8, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 55, 57 ], [ 51, 58 ], [ 50, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 62, 64 ], [ 50, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 70, 72 ], [ 8, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 80, 82 ], [ 75, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 83, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 8, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 6, 105 ], [ 105, 106 ], [ 0, 107 ], [ 107, 108 ], [ 107, 109 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\tint a = stdIn.nextInt();\n\n\t\tint b = stdIn.nextInt();\n\n\t\tint h = stdIn.nextInt();\n\n\t\tint m = stdIn.nextInt();\n\n\n\t\tdouble thour = 30 * h + 30 * m / 60.0;\n\n\t\tdouble mhour = 6 * m;\n\n\n\t\tdouble kakudo = (Math.abs(thour - mhour))<180 ?Math.abs(thour - mhour):360-(Math.abs(thour - mhour));\n\t\t\n\t\n\t\tdouble tmp = b * b + a * a - (2 * a * b * Math.cos(Math.toRadians(kakudo))); \n\n\t\t\n\t\tSystem.out.println(Math.sqrt(tmp));\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 stdIn = new Scanner(System.in);\n\n\t\tint a = stdIn.nextInt();\n\n\t\tint b = stdIn.nextInt();\n\n\t\tint h = stdIn.nextInt();\n\n\t\tint m = stdIn.nextInt();\n\n\n\t\tdouble thour = 30 * h + 30 * m / 60.0;\n\n\t\tdouble mhour = 6 * m;\n\n\n\t\tdouble kakudo = (Math.abs(thour - mhour))<180 ?Math.abs(thour - mhour):360-(Math.abs(thour - mhour));\n\t\t\n\t\n\t\tdouble tmp = b * b + a * a - (2 * a * b * Math.cos(Math.toRadians(kakudo))); \n\n\t\t\n\t\tSystem.out.println(Math.sqrt(tmp));\n\t\t\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\tint a = stdIn.nextInt();\n\n\t\tint b = stdIn.nextInt();\n\n\t\tint h = stdIn.nextInt();\n\n\t\tint m = stdIn.nextInt();\n\n\n\t\tdouble thour = 30 * h + 30 * m / 60.0;\n\n\t\tdouble mhour = 6 * m;\n\n\n\t\tdouble kakudo = (Math.abs(thour - mhour))<180 ?Math.abs(thour - mhour):360-(Math.abs(thour - mhour));\n\t\t\n\t\n\t\tdouble tmp = b * b + a * a - (2 * a * b * Math.cos(Math.toRadians(kakudo))); \n\n\t\t\n\t\tSystem.out.println(Math.sqrt(tmp));\n\t\t\n\t}", "main", "{\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\tint a = stdIn.nextInt();\n\n\t\tint b = stdIn.nextInt();\n\n\t\tint h = stdIn.nextInt();\n\n\t\tint m = stdIn.nextInt();\n\n\n\t\tdouble thour = 30 * h + 30 * m / 60.0;\n\n\t\tdouble mhour = 6 * m;\n\n\n\t\tdouble kakudo = (Math.abs(thour - mhour))<180 ?Math.abs(thour - mhour):360-(Math.abs(thour - mhour));\n\t\t\n\t\n\t\tdouble tmp = b * b + a * a - (2 * a * b * Math.cos(Math.toRadians(kakudo))); \n\n\t\t\n\t\tSystem.out.println(Math.sqrt(tmp));\n\t\t\n\t}", "Scanner stdIn = new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "int a = stdIn.nextInt();", "a", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "int b = stdIn.nextInt();", "b", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "int h = stdIn.nextInt();", "h", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "int m = stdIn.nextInt();", "m", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "double thour = 30 * h + 30 * m / 60.0;", "thour", "30 * h + 30 * m / 60.0", "30 * h", "30", "h", "30 * m / 60.0", "30 * m", "30", "m", "60.0", "double mhour = 6 * m;", "mhour", "6 * m", "6", "m", "double kakudo = (Math.abs(thour - mhour))<180 ?Math.abs(thour - mhour):360-(Math.abs(thour - mhour));", "kakudo", "(Math.abs(thour - mhour))<180 ?Math.abs(thour - mhour):360-(Math.abs(thour - mhour))", "(Math.abs(thour - mhour))<180", "(Math.abs(thour - mhour))", "Math.abs", "Math", "thour - mhour", "thour", "mhour", "180", "Math.abs(thour - mhour)", "Math.abs", "Math", "thour - mhour", "thour", "mhour", "360-(Math.abs(thour - mhour))", "360", "(Math.abs(thour - mhour))", "Math.abs", "Math", "thour - mhour", "thour", "mhour", "double tmp = b * b + a * a - (2 * a * b * Math.cos(Math.toRadians(kakudo)));", "tmp", "b * b + a * a - (2 * a * b * Math.cos(Math.toRadians(kakudo)))", "b * b + a * a", "b * b", "b", "b", "a * a", "a", "a", "(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", "System.out.println(Math.sqrt(tmp))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(tmp)", "Math.sqrt", "Math", "tmp", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\tint a = stdIn.nextInt();\n\n\t\tint b = stdIn.nextInt();\n\n\t\tint h = stdIn.nextInt();\n\n\t\tint m = stdIn.nextInt();\n\n\n\t\tdouble thour = 30 * h + 30 * m / 60.0;\n\n\t\tdouble mhour = 6 * m;\n\n\n\t\tdouble kakudo = (Math.abs(thour - mhour))<180 ?Math.abs(thour - mhour):360-(Math.abs(thour - mhour));\n\t\t\n\t\n\t\tdouble tmp = b * b + a * a - (2 * a * b * Math.cos(Math.toRadians(kakudo))); \n\n\t\t\n\t\tSystem.out.println(Math.sqrt(tmp));\n\t\t\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\tint a = stdIn.nextInt();\n\n\t\tint b = stdIn.nextInt();\n\n\t\tint h = stdIn.nextInt();\n\n\t\tint m = stdIn.nextInt();\n\n\n\t\tdouble thour = 30 * h + 30 * m / 60.0;\n\n\t\tdouble mhour = 6 * m;\n\n\n\t\tdouble kakudo = (Math.abs(thour - mhour))<180 ?Math.abs(thour - mhour):360-(Math.abs(thour - mhour));\n\t\t\n\t\n\t\tdouble tmp = b * b + a * a - (2 * a * b * Math.cos(Math.toRadians(kakudo))); \n\n\t\t\n\t\tSystem.out.println(Math.sqrt(tmp));\n\t\t\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int a = stdIn.nextInt(); int b = stdIn.nextInt(); int h = stdIn.nextInt(); int m = stdIn.nextInt(); double thour = 30 * h + 30 * m / 60.0; double mhour = 6 * m; double kakudo = (Math.abs(thour - mhour))<180 ?Math.abs(thour - mhour):360-(Math.abs(thour - mhour)); double tmp = b * b + a * a - (2 * a * b * Math.cos(Math.toRadians(kakudo))); System.out.println(Math.sqrt(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, 41, 13, 2, 2, 13, 17, 13, 41, 13, 2, 2, 17, 13, 17, 41, 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, 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 ], [ 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 ], [ 35, 37 ], [ 34, 38 ], [ 8, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 8, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 8, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 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 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 81, 82 ], [ 81, 83 ], [ 8, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 6, 90 ], [ 90, 91 ], [ 0, 92 ], [ 92, 93 ], [ 92, 94 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\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\tint pass_time = H*60 + M;\n \t//1min =0.5ยฐ\n\t\tdouble digA = (0.5 * (double)pass_time) % 360;\n \t//1min =6ยฐ\n\t\tdouble digB = (6 * pass_time) % 360;\n\n\t\tdouble C = Math.sqrt(A*A + B*B -2*A*B*Math.cos(Math.toRadians(Math.abs(digA-digB))));\n\n\t\tSystem.out.println(C);\n\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\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\tint pass_time = H*60 + M;\n \t//1min =0.5ยฐ\n\t\tdouble digA = (0.5 * (double)pass_time) % 360;\n \t//1min =6ยฐ\n\t\tdouble digB = (6 * pass_time) % 360;\n\n\t\tdouble C = Math.sqrt(A*A + B*B -2*A*B*Math.cos(Math.toRadians(Math.abs(digA-digB))));\n\n\t\tSystem.out.println(C);\n\n\t}\n}", "Main", "public static void main(String[] args) {\n\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\tint pass_time = H*60 + M;\n \t//1min =0.5ยฐ\n\t\tdouble digA = (0.5 * (double)pass_time) % 360;\n \t//1min =6ยฐ\n\t\tdouble digB = (6 * pass_time) % 360;\n\n\t\tdouble C = Math.sqrt(A*A + B*B -2*A*B*Math.cos(Math.toRadians(Math.abs(digA-digB))));\n\n\t\tSystem.out.println(C);\n\n\t}", "main", "{\n\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\tint pass_time = H*60 + M;\n \t//1min =0.5ยฐ\n\t\tdouble digA = (0.5 * (double)pass_time) % 360;\n \t//1min =6ยฐ\n\t\tdouble digB = (6 * pass_time) % 360;\n\n\t\tdouble C = Math.sqrt(A*A + B*B -2*A*B*Math.cos(Math.toRadians(Math.abs(digA-digB))));\n\n\t\tSystem.out.println(C);\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", "int pass_time = H*60 + M;", "pass_time", "H*60 + M", "H*60", "H", "60", "M", "double digA = (0.5 * (double)pass_time) % 360;", "digA", "(0.5 * (double)pass_time) % 360", "(0.5 * (double)pass_time)", "0.5", "(double)pass_time", "360", "double digB = (6 * pass_time) % 360;", "digB", "(6 * pass_time) % 360", "(6 * pass_time)", "6", "pass_time", "360", "double C = Math.sqrt(A*A + B*B -2*A*B*Math.cos(Math.toRadians(Math.abs(digA-digB))));", "C", "Math.sqrt(A*A + B*B -2*A*B*Math.cos(Math.toRadians(Math.abs(digA-digB))))", "Math.sqrt", "Math", "A*A + B*B -2*A*B*Math.cos(Math.toRadians(Math.abs(digA-digB)))", "A*A + B*B", "A*A", "A", "A", "B*B", "B", "B", "2*A*B*Math.cos(Math.toRadians(Math.abs(digA-digB)))", "B", "2*A*B*Math.cos(Math.toRadians(Math.abs(digA-digB)))", "2", "A", "B", "Math.cos(Math.toRadians(Math.abs(digA-digB)))", "Math.cos", "Math", "Math.toRadians(Math.abs(digA-digB))", "Math.toRadians", "Math", "Math.abs(digA-digB)", "Math.abs", "Math", "digA-digB", "digA", "digB", "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\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\tint pass_time = H*60 + M;\n \t//1min =0.5ยฐ\n\t\tdouble digA = (0.5 * (double)pass_time) % 360;\n \t//1min =6ยฐ\n\t\tdouble digB = (6 * pass_time) % 360;\n\n\t\tdouble C = Math.sqrt(A*A + B*B -2*A*B*Math.cos(Math.toRadians(Math.abs(digA-digB))));\n\n\t\tSystem.out.println(C);\n\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\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\tint pass_time = H*60 + M;\n \t//1min =0.5ยฐ\n\t\tdouble digA = (0.5 * (double)pass_time) % 360;\n \t//1min =6ยฐ\n\t\tdouble digB = (6 * pass_time) % 360;\n\n\t\tdouble C = Math.sqrt(A*A + B*B -2*A*B*Math.cos(Math.toRadians(Math.abs(digA-digB))));\n\n\t\tSystem.out.println(C);\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(); int pass_time = H*60 + M; //1min =0.5ยฐ double digA = (0.5 * (double)pass_time) % 360; //1min =6ยฐ double digB = (6 * pass_time) % 360; double C = Math.sqrt(A*A + B*B -2*A*B*Math.cos(Math.toRadians(Math.abs(digA-digB)))); System.out.println(C); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 13, 41, 13, 4, 18, 13, 41, 13, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 41, 13, 0, 13, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 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, 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 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 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 ], [ 39, 40 ], [ 8, 41 ], [ 41, 42 ], [ 8, 43 ], [ 43, 44 ], [ 8, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 55, 57 ], [ 8, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 68, 70 ], [ 63, 71 ], [ 73, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 73, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 8, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 6, 90 ], [ 90, 91 ], [ 0, 92 ], [ 92, 93 ], [ 92, 94 ] ]
[ "import java.util.*;\n\npublic 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\tdouble Ad=(double)A;\n\t\tint B=sc.nextInt();\n\t\tdouble Bd=(double)B;\n\t\tint H=sc.nextInt();\n\t\tint M=sc.nextInt();\n\t\tsc.close();\n\t\tdouble arg, C;\n\t\targ=(double)H*30.0+(double)M*0.5-(double)M*6.0;\n\t\tC=Math.sqrt(Ad*Ad+Bd*Bd-2.0*Ad*Bd*Math.cos(Math.toRadians(arg)));\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\t\tScanner sc = new Scanner(System.in);\n\t\tint A=sc.nextInt();\n\t\tdouble Ad=(double)A;\n\t\tint B=sc.nextInt();\n\t\tdouble Bd=(double)B;\n\t\tint H=sc.nextInt();\n\t\tint M=sc.nextInt();\n\t\tsc.close();\n\t\tdouble arg, C;\n\t\targ=(double)H*30.0+(double)M*0.5-(double)M*6.0;\n\t\tC=Math.sqrt(Ad*Ad+Bd*Bd-2.0*Ad*Bd*Math.cos(Math.toRadians(arg)));\n\t\tSystem.out.println(C);\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\tdouble Ad=(double)A;\n\t\tint B=sc.nextInt();\n\t\tdouble Bd=(double)B;\n\t\tint H=sc.nextInt();\n\t\tint M=sc.nextInt();\n\t\tsc.close();\n\t\tdouble arg, C;\n\t\targ=(double)H*30.0+(double)M*0.5-(double)M*6.0;\n\t\tC=Math.sqrt(Ad*Ad+Bd*Bd-2.0*Ad*Bd*Math.cos(Math.toRadians(arg)));\n\t\tSystem.out.println(C);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint A=sc.nextInt();\n\t\tdouble Ad=(double)A;\n\t\tint B=sc.nextInt();\n\t\tdouble Bd=(double)B;\n\t\tint H=sc.nextInt();\n\t\tint M=sc.nextInt();\n\t\tsc.close();\n\t\tdouble arg, C;\n\t\targ=(double)H*30.0+(double)M*0.5-(double)M*6.0;\n\t\tC=Math.sqrt(Ad*Ad+Bd*Bd-2.0*Ad*Bd*Math.cos(Math.toRadians(arg)));\n\t\tSystem.out.println(C);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int A=sc.nextInt();", "A", "sc.nextInt()", "sc.nextInt", "sc", "double Ad=(double)A;", "Ad", "(double)A", "int B=sc.nextInt();", "B", "sc.nextInt()", "sc.nextInt", "sc", "double Bd=(double)B;", "Bd", "(double)B", "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 arg", "arg", "C;", "C", "arg=(double)H*30.0+(double)M*0.5-(double)M*6.0", "arg", "(double)H*30.0+(double)M*0.5-(double)M*6.0", "(double)H*30.0+(double)M*0.5", "(double)H*30.0", "(double)H", "30.0", "(double)M*0.5", "(double)M", "0.5", "(double)M*6.0", "(double)M", "6.0", "C=Math.sqrt(Ad*Ad+Bd*Bd-2.0*Ad*Bd*Math.cos(Math.toRadians(arg)))", "C", "Math.sqrt(Ad*Ad+Bd*Bd-2.0*Ad*Bd*Math.cos(Math.toRadians(arg)))", "Math.sqrt", "Math", "Ad*Ad+Bd*Bd-2.0*Ad*Bd*Math.cos(Math.toRadians(arg))", "Ad*Ad+Bd*Bd", "Ad*Ad", "Ad", "Ad", "Bd*Bd", "Bd", "Bd", "2.0*Ad*Bd*Math.cos(Math.toRadians(arg))", "Bd", "2.0*Ad*Bd*Math.cos(Math.toRadians(arg))", "2.0", "Ad", "Bd", "Math.cos(Math.toRadians(arg))", "Math.cos", "Math", "Math.toRadians(arg)", "Math.toRadians", "Math", "arg", "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\t\tScanner sc = new Scanner(System.in);\n\t\tint A=sc.nextInt();\n\t\tdouble Ad=(double)A;\n\t\tint B=sc.nextInt();\n\t\tdouble Bd=(double)B;\n\t\tint H=sc.nextInt();\n\t\tint M=sc.nextInt();\n\t\tsc.close();\n\t\tdouble arg, C;\n\t\targ=(double)H*30.0+(double)M*0.5-(double)M*6.0;\n\t\tC=Math.sqrt(Ad*Ad+Bd*Bd-2.0*Ad*Bd*Math.cos(Math.toRadians(arg)));\n\t\tSystem.out.println(C);\n\t}\n}", "public 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\tdouble Ad=(double)A;\n\t\tint B=sc.nextInt();\n\t\tdouble Bd=(double)B;\n\t\tint H=sc.nextInt();\n\t\tint M=sc.nextInt();\n\t\tsc.close();\n\t\tdouble arg, C;\n\t\targ=(double)H*30.0+(double)M*0.5-(double)M*6.0;\n\t\tC=Math.sqrt(Ad*Ad+Bd*Bd-2.0*Ad*Bd*Math.cos(Math.toRadians(arg)));\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); int A=sc.nextInt(); double Ad=(double)A; int B=sc.nextInt(); double Bd=(double)B; int H=sc.nextInt(); int M=sc.nextInt(); sc.close(); double arg, C; arg=(double)H*30.0+(double)M*0.5-(double)M*6.0; C=Math.sqrt(Ad*Ad+Bd*Bd-2.0*Ad*Bd*Math.cos(Math.toRadians(arg))); System.out.println(C); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 20, 4, 18, 13, 4, 18, 13, 23, 13, 12, 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, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 2, 2, 17, 13, 13, 41, 13, 2, 13, 2, 17, 17, 41, 13, 2, 13, 4, 18, 13, 2, 2, 17, 18, 13, 13, 13, 41, 13, 2, 13, 4, 18, 13, 2, 2, 17, 18, 13, 13, 13, 41, 13, 2, 13, 17, 41, 13, 2, 13, 4, 18, 13, 2, 2, 17, 18, 13, 13, 13, 41, 13, 2, 13, 4, 18, 13, 2, 2, 17, 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, 12, 13, 30, 12, 13, 30, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 185, 11 ], [ 185, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 14, 24 ], [ 24, 25 ], [ 25, 26 ], [ 14, 27 ], [ 27, 28 ], [ 28, 29 ], [ 12, 30 ], [ 30, 31 ], [ 185, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 37, 42 ], [ 34, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 48, 49 ], [ 48, 50 ], [ 34, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 56, 57 ], [ 56, 58 ], [ 34, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 64, 66 ], [ 34, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 72, 73 ], [ 72, 74 ], [ 34, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 34, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 34, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 97, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 34, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 111, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 34, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 119, 121 ], [ 34, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 130, 130 ], [ 130, 131 ], [ 130, 132 ], [ 132, 133 ], [ 132, 134 ], [ 130, 135 ], [ 34, 136 ], [ 136, 137 ], [ 136, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 141, 142 ], [ 140, 143 ], [ 144, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 146, 148 ], [ 144, 149 ], [ 34, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 153, 154 ], [ 152, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 156, 159 ], [ 159, 160 ], [ 159, 161 ], [ 156, 162 ], [ 155, 163 ], [ 163, 164 ], [ 164, 165 ], [ 163, 166 ], [ 166, 167 ], [ 166, 168 ], [ 163, 169 ], [ 34, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 170, 175 ], [ 32, 176 ], [ 176, 177 ], [ 185, 178 ], [ 178, 179 ], [ 178, 180 ], [ 185, 181 ], [ 181, 182 ], [ 181, 183 ], [ 0, 184 ], [ 184, 185 ], [ 184, 186 ] ]
[ "\nimport java.util.*;\nimport java.io.*;\nimport java.nio.charset.StandardCharsets;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}\n\n\tMain(BufferedReader in) throws IOException {\n\t\tString[] tokens = in.readLine().split(\" \");\n\t\tint A = Integer.parseInt(tokens[0]);\n\t\tint B = Integer.parseInt(tokens[1]);\n\t\tint H = Integer.parseInt(tokens[2]);\n\t\tint M = Integer.parseInt(tokens[3]);\n\n\t\tint totalMin = 60 * H + M;\n\t\tdouble hourRatio = (double) totalMin / (double) (12 * 60);\n\t\tdouble hourX = (double) A * Math.sin(2. * Math.PI * hourRatio);\n\t\tdouble hourY = (double) A * Math.cos(2. * Math.PI * hourRatio);\n\n\t\tdouble minuteRatio = (double) M / (double) 60;\n\t\tdouble minuteX = (double) B * Math.sin(2. * Math.PI * minuteRatio);\n\t\tdouble minuteY = (double) B * Math.cos(2. * Math.PI * minuteRatio);\n\t\tdouble distance = Math.sqrt(Math.pow(hourX - minuteX, 2.0) + Math.pow(hourY - minuteY, 2.0));\n\t\tSystem.out.println(distance);\n\t}\n\n\tvoid calc() {\n\t}\n\n\tvoid showResult() {\n\t}\n\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "import java.nio.charset.StandardCharsets;", "StandardCharsets", "java.nio.charset", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}\n\n\tMain(BufferedReader in) throws IOException {\n\t\tString[] tokens = in.readLine().split(\" \");\n\t\tint A = Integer.parseInt(tokens[0]);\n\t\tint B = Integer.parseInt(tokens[1]);\n\t\tint H = Integer.parseInt(tokens[2]);\n\t\tint M = Integer.parseInt(tokens[3]);\n\n\t\tint totalMin = 60 * H + M;\n\t\tdouble hourRatio = (double) totalMin / (double) (12 * 60);\n\t\tdouble hourX = (double) A * Math.sin(2. * Math.PI * hourRatio);\n\t\tdouble hourY = (double) A * Math.cos(2. * Math.PI * hourRatio);\n\n\t\tdouble minuteRatio = (double) M / (double) 60;\n\t\tdouble minuteX = (double) B * Math.sin(2. * Math.PI * minuteRatio);\n\t\tdouble minuteY = (double) B * Math.cos(2. * Math.PI * minuteRatio);\n\t\tdouble distance = Math.sqrt(Math.pow(hourX - minuteX, 2.0) + Math.pow(hourY - minuteY, 2.0));\n\t\tSystem.out.println(distance);\n\t}\n\n\tvoid calc() {\n\t}\n\n\tvoid showResult() {\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}", "main", "{\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}", "InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);", "reader", "new InputStreamReader(System.in, StandardCharsets.UTF_8)", "BufferedReader in = new BufferedReader(reader);", "in", "new BufferedReader(reader)", "Main ins = new Main(in);", "ins", "new Main(in)", "ins.calc()", "ins.calc", "ins", "ins.showResult()", "ins.showResult", "ins", "String[] args", "args", "Main(BufferedReader in) throws IOException {\n\t\tString[] tokens = in.readLine().split(\" \");\n\t\tint A = Integer.parseInt(tokens[0]);\n\t\tint B = Integer.parseInt(tokens[1]);\n\t\tint H = Integer.parseInt(tokens[2]);\n\t\tint M = Integer.parseInt(tokens[3]);\n\n\t\tint totalMin = 60 * H + M;\n\t\tdouble hourRatio = (double) totalMin / (double) (12 * 60);\n\t\tdouble hourX = (double) A * Math.sin(2. * Math.PI * hourRatio);\n\t\tdouble hourY = (double) A * Math.cos(2. * Math.PI * hourRatio);\n\n\t\tdouble minuteRatio = (double) M / (double) 60;\n\t\tdouble minuteX = (double) B * Math.sin(2. * Math.PI * minuteRatio);\n\t\tdouble minuteY = (double) B * Math.cos(2. * Math.PI * minuteRatio);\n\t\tdouble distance = Math.sqrt(Math.pow(hourX - minuteX, 2.0) + Math.pow(hourY - minuteY, 2.0));\n\t\tSystem.out.println(distance);\n\t}", "Main", "{\n\t\tString[] tokens = in.readLine().split(\" \");\n\t\tint A = Integer.parseInt(tokens[0]);\n\t\tint B = Integer.parseInt(tokens[1]);\n\t\tint H = Integer.parseInt(tokens[2]);\n\t\tint M = Integer.parseInt(tokens[3]);\n\n\t\tint totalMin = 60 * H + M;\n\t\tdouble hourRatio = (double) totalMin / (double) (12 * 60);\n\t\tdouble hourX = (double) A * Math.sin(2. * Math.PI * hourRatio);\n\t\tdouble hourY = (double) A * Math.cos(2. * Math.PI * hourRatio);\n\n\t\tdouble minuteRatio = (double) M / (double) 60;\n\t\tdouble minuteX = (double) B * Math.sin(2. * Math.PI * minuteRatio);\n\t\tdouble minuteY = (double) B * Math.cos(2. * Math.PI * minuteRatio);\n\t\tdouble distance = Math.sqrt(Math.pow(hourX - minuteX, 2.0) + Math.pow(hourY - minuteY, 2.0));\n\t\tSystem.out.println(distance);\n\t}", "String[] tokens = in.readLine().split(\" \");", "tokens", "in.readLine().split(\" \")", "in.readLine().split", "in.readLine()", "in.readLine", "in", "\" \"", "int A = Integer.parseInt(tokens[0]);", "A", "Integer.parseInt(tokens[0])", "Integer.parseInt", "Integer", "tokens[0]", "tokens", "0", "int B = Integer.parseInt(tokens[1]);", "B", "Integer.parseInt(tokens[1])", "Integer.parseInt", "Integer", "tokens[1]", "tokens", "1", "int H = Integer.parseInt(tokens[2]);", "H", "Integer.parseInt(tokens[2])", "Integer.parseInt", "Integer", "tokens[2]", "tokens", "2", "int M = Integer.parseInt(tokens[3]);", "M", "Integer.parseInt(tokens[3])", "Integer.parseInt", "Integer", "tokens[3]", "tokens", "3", "int totalMin = 60 * H + M;", "totalMin", "60 * H + M", "60 * H", "60", "H", "M", "double hourRatio = (double) totalMin / (double) (12 * 60);", "hourRatio", "(double) totalMin / (double) (12 * 60)", "(double) totalMin", "(double) (12 * 60)", "12", "60", "double hourX = (double) A * Math.sin(2. * Math.PI * hourRatio);", "hourX", "(double) A * Math.sin(2. * Math.PI * hourRatio)", "(double) A", "Math.sin(2. * Math.PI * hourRatio)", "Math.sin", "Math", "2. * Math.PI * hourRatio", "2. * Math.PI * hourRatio", "2.", "Math.PI", "Math", "Math.PI", "hourRatio", "double hourY = (double) A * Math.cos(2. * Math.PI * hourRatio);", "hourY", "(double) A * Math.cos(2. * Math.PI * hourRatio)", "(double) A", "Math.cos(2. * Math.PI * hourRatio)", "Math.cos", "Math", "2. * Math.PI * hourRatio", "2. * Math.PI * hourRatio", "2.", "Math.PI", "Math", "Math.PI", "hourRatio", "double minuteRatio = (double) M / (double) 60;", "minuteRatio", "(double) M / (double) 60", "(double) M", "(double) 60", "double minuteX = (double) B * Math.sin(2. * Math.PI * minuteRatio);", "minuteX", "(double) B * Math.sin(2. * Math.PI * minuteRatio)", "(double) B", "Math.sin(2. * Math.PI * minuteRatio)", "Math.sin", "Math", "2. * Math.PI * minuteRatio", "2. * Math.PI * minuteRatio", "2.", "Math.PI", "Math", "Math.PI", "minuteRatio", "double minuteY = (double) B * Math.cos(2. * Math.PI * minuteRatio);", "minuteY", "(double) B * Math.cos(2. * Math.PI * minuteRatio)", "(double) B", "Math.cos(2. * Math.PI * minuteRatio)", "Math.cos", "Math", "2. * Math.PI * minuteRatio", "2. * Math.PI * minuteRatio", "2.", "Math.PI", "Math", "Math.PI", "minuteRatio", "double distance = Math.sqrt(Math.pow(hourX - minuteX, 2.0) + Math.pow(hourY - minuteY, 2.0));", "distance", "Math.sqrt(Math.pow(hourX - minuteX, 2.0) + Math.pow(hourY - minuteY, 2.0))", "Math.sqrt", "Math", "Math.pow(hourX - minuteX, 2.0) + Math.pow(hourY - minuteY, 2.0)", "Math.pow(hourX - minuteX, 2.0)", "Math.pow", "Math", "hourX - minuteX", "hourX", "minuteX", "2.0", "Math.pow(hourY - minuteY, 2.0)", "Math.pow", "Math", "hourY - minuteY", "hourY", "minuteY", "2.0", "System.out.println(distance)", "System.out.println", "System.out", "System", "System.out", "distance", "BufferedReader in", "in", "void calc() {\n\t}", "calc", "{\n\t}", "void showResult() {\n\t}", "showResult", "{\n\t}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}\n\n\tMain(BufferedReader in) throws IOException {\n\t\tString[] tokens = in.readLine().split(\" \");\n\t\tint A = Integer.parseInt(tokens[0]);\n\t\tint B = Integer.parseInt(tokens[1]);\n\t\tint H = Integer.parseInt(tokens[2]);\n\t\tint M = Integer.parseInt(tokens[3]);\n\n\t\tint totalMin = 60 * H + M;\n\t\tdouble hourRatio = (double) totalMin / (double) (12 * 60);\n\t\tdouble hourX = (double) A * Math.sin(2. * Math.PI * hourRatio);\n\t\tdouble hourY = (double) A * Math.cos(2. * Math.PI * hourRatio);\n\n\t\tdouble minuteRatio = (double) M / (double) 60;\n\t\tdouble minuteX = (double) B * Math.sin(2. * Math.PI * minuteRatio);\n\t\tdouble minuteY = (double) B * Math.cos(2. * Math.PI * minuteRatio);\n\t\tdouble distance = Math.sqrt(Math.pow(hourX - minuteX, 2.0) + Math.pow(hourY - minuteY, 2.0));\n\t\tSystem.out.println(distance);\n\t}\n\n\tvoid calc() {\n\t}\n\n\tvoid showResult() {\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}\n\n\tMain(BufferedReader in) throws IOException {\n\t\tString[] tokens = in.readLine().split(\" \");\n\t\tint A = Integer.parseInt(tokens[0]);\n\t\tint B = Integer.parseInt(tokens[1]);\n\t\tint H = Integer.parseInt(tokens[2]);\n\t\tint M = Integer.parseInt(tokens[3]);\n\n\t\tint totalMin = 60 * H + M;\n\t\tdouble hourRatio = (double) totalMin / (double) (12 * 60);\n\t\tdouble hourX = (double) A * Math.sin(2. * Math.PI * hourRatio);\n\t\tdouble hourY = (double) A * Math.cos(2. * Math.PI * hourRatio);\n\n\t\tdouble minuteRatio = (double) M / (double) 60;\n\t\tdouble minuteX = (double) B * Math.sin(2. * Math.PI * minuteRatio);\n\t\tdouble minuteY = (double) B * Math.cos(2. * Math.PI * minuteRatio);\n\t\tdouble distance = Math.sqrt(Math.pow(hourX - minuteX, 2.0) + Math.pow(hourY - minuteY, 2.0));\n\t\tSystem.out.println(distance);\n\t}\n\n\tvoid calc() {\n\t}\n\n\tvoid showResult() {\n\t}\n\n}", "Main" ]
import java.util.*; import java.io.*; import java.nio.charset.StandardCharsets; public class Main { public static void main(String[] args) throws IOException { InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8); BufferedReader in = new BufferedReader(reader); Main ins = new Main(in); ins.calc(); ins.showResult(); } Main(BufferedReader in) throws IOException { String[] tokens = in.readLine().split(" "); int A = Integer.parseInt(tokens[0]); int B = Integer.parseInt(tokens[1]); int H = Integer.parseInt(tokens[2]); int M = Integer.parseInt(tokens[3]); int totalMin = 60 * H + M; double hourRatio = (double) totalMin / (double) (12 * 60); double hourX = (double) A * Math.sin(2. * Math.PI * hourRatio); double hourY = (double) A * Math.cos(2. * Math.PI * hourRatio); double minuteRatio = (double) M / (double) 60; double minuteX = (double) B * Math.sin(2. * Math.PI * minuteRatio); double minuteY = (double) B * Math.cos(2. * Math.PI * minuteRatio); double distance = Math.sqrt(Math.pow(hourX - minuteX, 2.0) + Math.pow(hourY - minuteY, 2.0)); System.out.println(distance); } void calc() { } void showResult() { } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 17, 17, 13, 41, 13, 2, 2, 17, 13, 2, 2, 17, 17, 13, 41, 13, 4, 18, 13, 2, 13, 13, 14, 2, 13, 17, 0, 13, 2, 17, 13, 41, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 2, 13, 2, 18, 13, 13, 17, 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 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 117, 14 ], [ 117, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 17, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 17, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 17, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 17, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 17, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 64, 66 ], [ 17, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 17, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 83, 85 ], [ 78, 86 ], [ 88, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 88, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 17, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 17, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 15, 114 ], [ 114, 115 ], [ 0, 116 ], [ 116, 117 ], [ 116, 118 ] ]
[ "import java.util.*;\nimport java.lang.*;\nimport java.io.*;\nimport java.math.*;\npublic class Main\n{\n\t\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t int A=scan.nextInt();\n\t int B=scan.nextInt();\n\t int H=scan.nextInt();\n\t int M=scan.nextInt();\n\t double mangle = (360.0/60.0)*M;\n\t double hangle = (30.0*H)+(30.0/360.0)*mangle;\n\t double angle = Math.abs(mangle-hangle);\n\t if(angle>180) angle= 360-angle;\n\t double ans = A*A+B*B-2*A*B*Math.cos(angle*(Math.PI/180));\n\t ans = Math.sqrt(ans);\n\t System.out.println(ans);\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.lang.*;", "lang.*", "java", "import java.io.*;", "io.*", "java", "import java.math.*;", "math.*", "java", "public class Main\n{\n\t\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t int A=scan.nextInt();\n\t int B=scan.nextInt();\n\t int H=scan.nextInt();\n\t int M=scan.nextInt();\n\t double mangle = (360.0/60.0)*M;\n\t double hangle = (30.0*H)+(30.0/360.0)*mangle;\n\t double angle = Math.abs(mangle-hangle);\n\t if(angle>180) angle= 360-angle;\n\t double ans = A*A+B*B-2*A*B*Math.cos(angle*(Math.PI/180));\n\t ans = Math.sqrt(ans);\n\t System.out.println(ans);\n\t}\n}", "Main", "public static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t int A=scan.nextInt();\n\t int B=scan.nextInt();\n\t int H=scan.nextInt();\n\t int M=scan.nextInt();\n\t double mangle = (360.0/60.0)*M;\n\t double hangle = (30.0*H)+(30.0/360.0)*mangle;\n\t double angle = Math.abs(mangle-hangle);\n\t if(angle>180) angle= 360-angle;\n\t double ans = A*A+B*B-2*A*B*Math.cos(angle*(Math.PI/180));\n\t ans = Math.sqrt(ans);\n\t System.out.println(ans);\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t int A=scan.nextInt();\n\t int B=scan.nextInt();\n\t int H=scan.nextInt();\n\t int M=scan.nextInt();\n\t double mangle = (360.0/60.0)*M;\n\t double hangle = (30.0*H)+(30.0/360.0)*mangle;\n\t double angle = Math.abs(mangle-hangle);\n\t if(angle>180) angle= 360-angle;\n\t double ans = A*A+B*B-2*A*B*Math.cos(angle*(Math.PI/180));\n\t ans = Math.sqrt(ans);\n\t System.out.println(ans);\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 mangle = (360.0/60.0)*M;", "mangle", "(360.0/60.0)*M", "(360.0/60.0)", "360.0", "60.0", "M", "double hangle = (30.0*H)+(30.0/360.0)*mangle;", "hangle", "(30.0*H)+(30.0/360.0)*mangle", "(30.0*H)", "30.0", "H", "(30.0/360.0)*mangle", "(30.0/360.0)", "30.0", "360.0", "mangle", "double angle = Math.abs(mangle-hangle);", "angle", "Math.abs(mangle-hangle)", "Math.abs", "Math", "mangle-hangle", "mangle", "hangle", "if(angle>180) angle= 360-angle;", "angle>180", "angle", "180", "angle= 360-angle", "angle", "360-angle", "360", "angle", "double ans = A*A+B*B-2*A*B*Math.cos(angle*(Math.PI/180));", "ans", "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/180)", "Math.PI", "Math", "Math.PI", "180", "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{\n\t\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t int A=scan.nextInt();\n\t int B=scan.nextInt();\n\t int H=scan.nextInt();\n\t int M=scan.nextInt();\n\t double mangle = (360.0/60.0)*M;\n\t double hangle = (30.0*H)+(30.0/360.0)*mangle;\n\t double angle = Math.abs(mangle-hangle);\n\t if(angle>180) angle= 360-angle;\n\t double ans = A*A+B*B-2*A*B*Math.cos(angle*(Math.PI/180));\n\t ans = Math.sqrt(ans);\n\t System.out.println(ans);\n\t}\n}", "public class Main\n{\n\t\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t int A=scan.nextInt();\n\t int B=scan.nextInt();\n\t int H=scan.nextInt();\n\t int M=scan.nextInt();\n\t double mangle = (360.0/60.0)*M;\n\t double hangle = (30.0*H)+(30.0/360.0)*mangle;\n\t double angle = Math.abs(mangle-hangle);\n\t if(angle>180) angle= 360-angle;\n\t double ans = A*A+B*B-2*A*B*Math.cos(angle*(Math.PI/180));\n\t ans = Math.sqrt(ans);\n\t System.out.println(ans);\n\t}\n}", "Main" ]
import java.util.*; import java.lang.*; import java.io.*; import java.math.*; 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 mangle = (360.0/60.0)*M; double hangle = (30.0*H)+(30.0/360.0)*mangle; double angle = Math.abs(mangle-hangle); if(angle>180) angle= 360-angle; double ans = A*A+B*B-2*A*B*Math.cos(angle*(Math.PI/180)); ans = Math.sqrt(ans); 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, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 41, 13, 4, 18, 13, 2, 2, 17, 13, 2, 17, 13, 14, 2, 2, 13, 17, 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, 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, 14, 2, 13, 17, 30, 0, 13, 2, 13, 13, 30, 0, 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 ], [ 143, 8 ], [ 143, 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 ], [ 39, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 46, 48 ], [ 11, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 54, 56 ], [ 49, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 68, 70 ], [ 63, 71 ], [ 73, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 73, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 49, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 99, 100 ], [ 99, 101 ], [ 94, 102 ], [ 104, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 104, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 84, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 122, 124 ], [ 115, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 129, 130 ], [ 128, 131 ], [ 131, 132 ], [ 131, 133 ], [ 11, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 134, 139 ], [ 9, 140 ], [ 140, 141 ], [ 0, 142 ], [ 142, 143 ], [ 142, 144 ] ]
[ "import java.util.*;\nimport static java.lang.Math.*;\n \npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner scan = new Scanner(System.in);\n double a = scan.nextInt();\n double b = scan.nextInt();\n double h = scan.nextInt();\n double m = scan.nextInt();\n double ans;\n \n //่ง’้€Ÿๅบฆ๏ผˆๅˆ†้‡๏ผ‰\n //System.out.println(Math.PI);\n //double m1 = 2*(Math.PI)/3600;\n \n //่ง’้€Ÿๅบฆ๏ผˆๆ™‚้‡๏ผ‰\n //double h1 = 2*(Math.PI)/43200;\n \n //ๅˆ†้‡ใจๆ™‚้‡ใŒไฝœใ‚‹่ง’ๅบฆ\n //่ง’้€Ÿๅบฆ๏ผˆๆ™‚้‡๏ผ‰\n\n double k = Math.abs(5.500000000000000000000000000*m-30.000000000000000000000000000*h);\n //System.out.println(k);\n if(k>180 && k!=360){\n //k=k-180;\n ans= Math.sqrt(a*a+b*b-2*a*b*(Math.cos(Math.toRadians(k))));\n }else if(k<180){\n ans= Math.sqrt(a*a+b*b-2*a*b*(Math.cos(Math.toRadians(k))));\n }else if(k==180){\n ans=a+b;\n }else{\n ans = Math.abs(a-b);\n }\n System.out.println(ans);\n }\n}\n ", "import java.util.*;", "util.*", "java", "import static java.lang.Math.*;", "import static java.lang.Math.*;", "import static java.lang.Math.*;", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner scan = new Scanner(System.in);\n double a = scan.nextInt();\n double b = scan.nextInt();\n double h = scan.nextInt();\n double m = scan.nextInt();\n double ans;\n \n //่ง’้€Ÿๅบฆ๏ผˆๅˆ†้‡๏ผ‰\n //System.out.println(Math.PI);\n //double m1 = 2*(Math.PI)/3600;\n \n //่ง’้€Ÿๅบฆ๏ผˆๆ™‚้‡๏ผ‰\n //double h1 = 2*(Math.PI)/43200;\n \n //ๅˆ†้‡ใจๆ™‚้‡ใŒไฝœใ‚‹่ง’ๅบฆ\n //่ง’้€Ÿๅบฆ๏ผˆๆ™‚้‡๏ผ‰\n\n double k = Math.abs(5.500000000000000000000000000*m-30.000000000000000000000000000*h);\n //System.out.println(k);\n if(k>180 && k!=360){\n //k=k-180;\n ans= Math.sqrt(a*a+b*b-2*a*b*(Math.cos(Math.toRadians(k))));\n }else if(k<180){\n ans= Math.sqrt(a*a+b*b-2*a*b*(Math.cos(Math.toRadians(k))));\n }else if(k==180){\n ans=a+b;\n }else{\n ans = Math.abs(a-b);\n }\n System.out.println(ans);\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n Scanner scan = new Scanner(System.in);\n double a = scan.nextInt();\n double b = scan.nextInt();\n double h = scan.nextInt();\n double m = scan.nextInt();\n double ans;\n \n //่ง’้€Ÿๅบฆ๏ผˆๅˆ†้‡๏ผ‰\n //System.out.println(Math.PI);\n //double m1 = 2*(Math.PI)/3600;\n \n //่ง’้€Ÿๅบฆ๏ผˆๆ™‚้‡๏ผ‰\n //double h1 = 2*(Math.PI)/43200;\n \n //ๅˆ†้‡ใจๆ™‚้‡ใŒไฝœใ‚‹่ง’ๅบฆ\n //่ง’้€Ÿๅบฆ๏ผˆๆ™‚้‡๏ผ‰\n\n double k = Math.abs(5.500000000000000000000000000*m-30.000000000000000000000000000*h);\n //System.out.println(k);\n if(k>180 && k!=360){\n //k=k-180;\n ans= Math.sqrt(a*a+b*b-2*a*b*(Math.cos(Math.toRadians(k))));\n }else if(k<180){\n ans= Math.sqrt(a*a+b*b-2*a*b*(Math.cos(Math.toRadians(k))));\n }else if(k==180){\n ans=a+b;\n }else{\n ans = Math.abs(a-b);\n }\n System.out.println(ans);\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n double a = scan.nextInt();\n double b = scan.nextInt();\n double h = scan.nextInt();\n double m = scan.nextInt();\n double ans;\n \n //่ง’้€Ÿๅบฆ๏ผˆๅˆ†้‡๏ผ‰\n //System.out.println(Math.PI);\n //double m1 = 2*(Math.PI)/3600;\n \n //่ง’้€Ÿๅบฆ๏ผˆๆ™‚้‡๏ผ‰\n //double h1 = 2*(Math.PI)/43200;\n \n //ๅˆ†้‡ใจๆ™‚้‡ใŒไฝœใ‚‹่ง’ๅบฆ\n //่ง’้€Ÿๅบฆ๏ผˆๆ™‚้‡๏ผ‰\n\n double k = Math.abs(5.500000000000000000000000000*m-30.000000000000000000000000000*h);\n //System.out.println(k);\n if(k>180 && k!=360){\n //k=k-180;\n ans= Math.sqrt(a*a+b*b-2*a*b*(Math.cos(Math.toRadians(k))));\n }else if(k<180){\n ans= Math.sqrt(a*a+b*b-2*a*b*(Math.cos(Math.toRadians(k))));\n }else if(k==180){\n ans=a+b;\n }else{\n ans = Math.abs(a-b);\n }\n System.out.println(ans);\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "double a = scan.nextInt();", "a", "scan.nextInt()", "scan.nextInt", "scan", "double b = scan.nextInt();", "b", "scan.nextInt()", "scan.nextInt", "scan", "double h = scan.nextInt();", "h", "scan.nextInt()", "scan.nextInt", "scan", "double m = scan.nextInt();", "m", "scan.nextInt()", "scan.nextInt", "scan", "double ans;", "ans", "double k = Math.abs(5.500000000000000000000000000*m-30.000000000000000000000000000*h);", "k", "Math.abs(5.500000000000000000000000000*m-30.000000000000000000000000000*h)", "Math.abs", "Math", "5.500000000000000000000000000*m-30.000000000000000000000000000*h", "5.500000000000000000000000000*m", "5.500000000000000000000000000", "m", "30.000000000000000000000000000*h", "30.000000000000000000000000000", "h", "if(k>180 && k!=360){\n //k=k-180;\n ans= Math.sqrt(a*a+b*b-2*a*b*(Math.cos(Math.toRadians(k))));\n }else if(k<180){\n ans= Math.sqrt(a*a+b*b-2*a*b*(Math.cos(Math.toRadians(k))));\n }else if(k==180){\n ans=a+b;\n }else{\n ans = Math.abs(a-b);\n }", "k>180 && k!=360", "k>180", "k", "180", "k!=360", "k", "360", "{\n //k=k-180;\n ans= Math.sqrt(a*a+b*b-2*a*b*(Math.cos(Math.toRadians(k))));\n }", "ans= Math.sqrt(a*a+b*b-2*a*b*(Math.cos(Math.toRadians(k))))", "ans", "Math.sqrt(a*a+b*b-2*a*b*(Math.cos(Math.toRadians(k))))", "Math.sqrt", "Math", "a*a+b*b-2*a*b*(Math.cos(Math.toRadians(k)))", "a*a+b*b", "a*a", "a", "a", "b*b", "b", "b", "2*a*b*(Math.cos(Math.toRadians(k)))", "b", "2*a*b*(Math.cos(Math.toRadians(k)))", "2", "a", "b", "(Math.cos(Math.toRadians(k)))", "Math.cos", "Math", "Math.toRadians(k)", "Math.toRadians", "Math", "k", "if(k<180){\n ans= Math.sqrt(a*a+b*b-2*a*b*(Math.cos(Math.toRadians(k))));\n }else if(k==180){\n ans=a+b;\n }else{\n ans = Math.abs(a-b);\n }", "k<180", "k", "180", "{\n ans= Math.sqrt(a*a+b*b-2*a*b*(Math.cos(Math.toRadians(k))));\n }", "ans= Math.sqrt(a*a+b*b-2*a*b*(Math.cos(Math.toRadians(k))))", "ans", "Math.sqrt(a*a+b*b-2*a*b*(Math.cos(Math.toRadians(k))))", "Math.sqrt", "Math", "a*a+b*b-2*a*b*(Math.cos(Math.toRadians(k)))", "a*a+b*b", "a*a", "a", "a", "b*b", "b", "b", "2*a*b*(Math.cos(Math.toRadians(k)))", "b", "2*a*b*(Math.cos(Math.toRadians(k)))", "2", "a", "b", "(Math.cos(Math.toRadians(k)))", "Math.cos", "Math", "Math.toRadians(k)", "Math.toRadians", "Math", "k", "if(k==180){\n ans=a+b;\n }else{\n ans = Math.abs(a-b);\n }", "k==180", "k", "180", "{\n ans=a+b;\n }", "ans=a+b", "ans", "a+b", "a", "b", "{\n ans = Math.abs(a-b);\n }", "ans = Math.abs(a-b)", "ans", "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 scan = new Scanner(System.in);\n double a = scan.nextInt();\n double b = scan.nextInt();\n double h = scan.nextInt();\n double m = scan.nextInt();\n double ans;\n \n //่ง’้€Ÿๅบฆ๏ผˆๅˆ†้‡๏ผ‰\n //System.out.println(Math.PI);\n //double m1 = 2*(Math.PI)/3600;\n \n //่ง’้€Ÿๅบฆ๏ผˆๆ™‚้‡๏ผ‰\n //double h1 = 2*(Math.PI)/43200;\n \n //ๅˆ†้‡ใจๆ™‚้‡ใŒไฝœใ‚‹่ง’ๅบฆ\n //่ง’้€Ÿๅบฆ๏ผˆๆ™‚้‡๏ผ‰\n\n double k = Math.abs(5.500000000000000000000000000*m-30.000000000000000000000000000*h);\n //System.out.println(k);\n if(k>180 && k!=360){\n //k=k-180;\n ans= Math.sqrt(a*a+b*b-2*a*b*(Math.cos(Math.toRadians(k))));\n }else if(k<180){\n ans= Math.sqrt(a*a+b*b-2*a*b*(Math.cos(Math.toRadians(k))));\n }else if(k==180){\n ans=a+b;\n }else{\n ans = Math.abs(a-b);\n }\n System.out.println(ans);\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner scan = new Scanner(System.in);\n double a = scan.nextInt();\n double b = scan.nextInt();\n double h = scan.nextInt();\n double m = scan.nextInt();\n double ans;\n \n //่ง’้€Ÿๅบฆ๏ผˆๅˆ†้‡๏ผ‰\n //System.out.println(Math.PI);\n //double m1 = 2*(Math.PI)/3600;\n \n //่ง’้€Ÿๅบฆ๏ผˆๆ™‚้‡๏ผ‰\n //double h1 = 2*(Math.PI)/43200;\n \n //ๅˆ†้‡ใจๆ™‚้‡ใŒไฝœใ‚‹่ง’ๅบฆ\n //่ง’้€Ÿๅบฆ๏ผˆๆ™‚้‡๏ผ‰\n\n double k = Math.abs(5.500000000000000000000000000*m-30.000000000000000000000000000*h);\n //System.out.println(k);\n if(k>180 && k!=360){\n //k=k-180;\n ans= Math.sqrt(a*a+b*b-2*a*b*(Math.cos(Math.toRadians(k))));\n }else if(k<180){\n ans= Math.sqrt(a*a+b*b-2*a*b*(Math.cos(Math.toRadians(k))));\n }else if(k==180){\n ans=a+b;\n }else{\n ans = Math.abs(a-b);\n }\n System.out.println(ans);\n }\n}", "Main" ]
import java.util.*; import static java.lang.Math.*; public class Main { public static void main(String[] args) throws Exception { Scanner scan = new Scanner(System.in); double a = scan.nextInt(); double b = scan.nextInt(); double h = scan.nextInt(); double m = scan.nextInt(); double ans; //่ง’้€Ÿๅบฆ๏ผˆๅˆ†้‡๏ผ‰ //System.out.println(Math.PI); //double m1 = 2*(Math.PI)/3600; //่ง’้€Ÿๅบฆ๏ผˆๆ™‚้‡๏ผ‰ //double h1 = 2*(Math.PI)/43200; //ๅˆ†้‡ใจๆ™‚้‡ใŒไฝœใ‚‹่ง’ๅบฆ //่ง’้€Ÿๅบฆ๏ผˆๆ™‚้‡๏ผ‰ double k = Math.abs(5.500000000000000000000000000*m-30.000000000000000000000000000*h); //System.out.println(k); if(k>180 && k!=360){ //k=k-180; ans= Math.sqrt(a*a+b*b-2*a*b*(Math.cos(Math.toRadians(k)))); }else if(k<180){ ans= Math.sqrt(a*a+b*b-2*a*b*(Math.cos(Math.toRadians(k)))); }else if(k==180){ ans=a+b; }else{ ans = 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, 4, 18, 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 ], [ 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 ], [ 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 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 8, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 8, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 80, 82 ], [ 75, 83 ], [ 85, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 85, 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.*;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner scn = new Scanner(System.in);\n\t\tdouble a = scn.nextDouble();\n double b = scn.nextDouble();\n double h = scn.nextDouble();\n double m = scn.nextDouble();\n double hh = h*30 + m/2;\n double mm = m*6;\n double x = Math.abs(hh - mm);\n if(x > 180){\n x = 360 - x;\n }\n \n double cosx = Math.cos(Math.toRadians(x));\n double ans2 = a*a + b*b - 2*a*b*cosx;\n double ans = Math.sqrt(ans2);\n System.out.println(ans);\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner scn = new Scanner(System.in);\n\t\tdouble a = scn.nextDouble();\n double b = scn.nextDouble();\n double h = scn.nextDouble();\n double m = scn.nextDouble();\n double hh = h*30 + m/2;\n double mm = m*6;\n double x = Math.abs(hh - mm);\n if(x > 180){\n x = 360 - x;\n }\n \n double cosx = Math.cos(Math.toRadians(x));\n double ans2 = a*a + b*b - 2*a*b*cosx;\n double ans = Math.sqrt(ans2);\n System.out.println(ans);\n\t}\n}", "Main", "public static void main(String[] args) throws Exception{\n\t\tScanner scn = new Scanner(System.in);\n\t\tdouble a = scn.nextDouble();\n double b = scn.nextDouble();\n double h = scn.nextDouble();\n double m = scn.nextDouble();\n double hh = h*30 + m/2;\n double mm = m*6;\n double x = Math.abs(hh - mm);\n if(x > 180){\n x = 360 - x;\n }\n \n double cosx = Math.cos(Math.toRadians(x));\n double ans2 = a*a + b*b - 2*a*b*cosx;\n double ans = Math.sqrt(ans2);\n System.out.println(ans);\n\t}", "main", "{\n\t\tScanner scn = new Scanner(System.in);\n\t\tdouble a = scn.nextDouble();\n double b = scn.nextDouble();\n double h = scn.nextDouble();\n double m = scn.nextDouble();\n double hh = h*30 + m/2;\n double mm = m*6;\n double x = Math.abs(hh - mm);\n if(x > 180){\n x = 360 - x;\n }\n \n double cosx = Math.cos(Math.toRadians(x));\n double ans2 = a*a + b*b - 2*a*b*cosx;\n double ans = Math.sqrt(ans2);\n System.out.println(ans);\n\t}", "Scanner scn = new Scanner(System.in);", "scn", "new Scanner(System.in)", "double a = scn.nextDouble();", "a", "scn.nextDouble()", "scn.nextDouble", "scn", "double b = scn.nextDouble();", "b", "scn.nextDouble()", "scn.nextDouble", "scn", "double h = scn.nextDouble();", "h", "scn.nextDouble()", "scn.nextDouble", "scn", "double m = scn.nextDouble();", "m", "scn.nextDouble()", "scn.nextDouble", "scn", "double hh = h*30 + m/2;", "hh", "h*30 + m/2", "h*30", "h", "30", "m/2", "m", "2", "double mm = m*6;", "mm", "m*6", "m", "6", "double x = Math.abs(hh - mm);", "x", "Math.abs(hh - mm)", "Math.abs", "Math", "hh - mm", "hh", "mm", "if(x > 180){\n x = 360 - x;\n }", "x > 180", "x", "180", "{\n x = 360 - x;\n }", "x = 360 - x", "x", "360 - x", "360", "x", "double cosx = Math.cos(Math.toRadians(x));", "cosx", "Math.cos(Math.toRadians(x))", "Math.cos", "Math", "Math.toRadians(x)", "Math.toRadians", "Math", "x", "double ans2 = a*a + b*b - 2*a*b*cosx;", "ans2", "a*a + b*b - 2*a*b*cosx", "a*a + b*b", "a*a", "a", "a", "b*b", "b", "b", "2*a*b*cosx", "b", "2*a*b*cosx", "2", "a", "b", "cosx", "double ans = Math.sqrt(ans2);", "ans", "Math.sqrt(ans2)", "Math.sqrt", "Math", "ans2", "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) throws Exception{\n\t\tScanner scn = new Scanner(System.in);\n\t\tdouble a = scn.nextDouble();\n double b = scn.nextDouble();\n double h = scn.nextDouble();\n double m = scn.nextDouble();\n double hh = h*30 + m/2;\n double mm = m*6;\n double x = Math.abs(hh - mm);\n if(x > 180){\n x = 360 - x;\n }\n \n double cosx = Math.cos(Math.toRadians(x));\n double ans2 = a*a + b*b - 2*a*b*cosx;\n double ans = Math.sqrt(ans2);\n System.out.println(ans);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner scn = new Scanner(System.in);\n\t\tdouble a = scn.nextDouble();\n double b = scn.nextDouble();\n double h = scn.nextDouble();\n double m = scn.nextDouble();\n double hh = h*30 + m/2;\n double mm = m*6;\n double x = Math.abs(hh - mm);\n if(x > 180){\n x = 360 - x;\n }\n \n double cosx = Math.cos(Math.toRadians(x));\n double ans2 = a*a + b*b - 2*a*b*cosx;\n double ans = Math.sqrt(ans2);\n System.out.println(ans);\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); double a = scn.nextDouble(); double b = scn.nextDouble(); double h = scn.nextDouble(); double m = scn.nextDouble(); double hh = h*30 + m/2; double mm = m*6; double x = Math.abs(hh - mm); if(x > 180){ x = 360 - x; } double cosx = Math.cos(Math.toRadians(x)); double ans2 = a*a + b*b - 2*a*b*cosx; double ans = Math.sqrt(ans2); System.out.println(ans); } }
[ 7, 15, 13, 17, 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, 13, 17, 2, 13, 17, 41, 13, 2, 13, 17, 41, 13, 4, 18, 13, 2, 13, 13, 41, 13, 17, 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, 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 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 122, 11 ], [ 122, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 20, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 31, 32 ], [ 31, 33 ], [ 14, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 39, 40 ], [ 39, 41 ], [ 14, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 47, 48 ], [ 47, 49 ], [ 14, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 55, 57 ], [ 14, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 64, 66 ], [ 14, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 14, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 77, 79 ], [ 14, 80 ], [ 80, 81 ], [ 80, 82 ], [ 14, 83 ], [ 83, 84 ], [ 83, 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 ], [ 14, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 12, 119 ], [ 119, 120 ], [ 0, 121 ], [ 121, 122 ], [ 121, 123 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String[] str = in.readLine().split(\" \");\n int a = Integer.parseInt(str[0]);\n int b = Integer.parseInt(str[1]);\n int h = Integer.parseInt(str[2]);\n int m = Integer.parseInt(str[3]);\n double hour = (h*30)+(m*0.5);\n double min = m*6;\n double anglediff = Math.abs(hour-min);\n double ans = 0;\n \n double sqrt = Math.pow(a,2)+Math.pow(b,2)-2*a*b*Math.cos(Math.toRadians(anglediff));\n System.out.println(Math.sqrt(sqrt));\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String[] str = in.readLine().split(\" \");\n int a = Integer.parseInt(str[0]);\n int b = Integer.parseInt(str[1]);\n int h = Integer.parseInt(str[2]);\n int m = Integer.parseInt(str[3]);\n double hour = (h*30)+(m*0.5);\n double min = m*6;\n double anglediff = Math.abs(hour-min);\n double ans = 0;\n \n double sqrt = Math.pow(a,2)+Math.pow(b,2)-2*a*b*Math.cos(Math.toRadians(anglediff));\n System.out.println(Math.sqrt(sqrt));\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String[] str = in.readLine().split(\" \");\n int a = Integer.parseInt(str[0]);\n int b = Integer.parseInt(str[1]);\n int h = Integer.parseInt(str[2]);\n int m = Integer.parseInt(str[3]);\n double hour = (h*30)+(m*0.5);\n double min = m*6;\n double anglediff = Math.abs(hour-min);\n double ans = 0;\n \n double sqrt = Math.pow(a,2)+Math.pow(b,2)-2*a*b*Math.cos(Math.toRadians(anglediff));\n System.out.println(Math.sqrt(sqrt));\n }", "main", "{\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String[] str = in.readLine().split(\" \");\n int a = Integer.parseInt(str[0]);\n int b = Integer.parseInt(str[1]);\n int h = Integer.parseInt(str[2]);\n int m = Integer.parseInt(str[3]);\n double hour = (h*30)+(m*0.5);\n double min = m*6;\n double anglediff = Math.abs(hour-min);\n double ans = 0;\n \n double sqrt = Math.pow(a,2)+Math.pow(b,2)-2*a*b*Math.cos(Math.toRadians(anglediff));\n System.out.println(Math.sqrt(sqrt));\n }", "BufferedReader in = new BufferedReader(new InputStreamReader(System.in));", "in", "new BufferedReader(new InputStreamReader(System.in))", "String[] str = in.readLine().split(\" \");", "str", "in.readLine().split(\" \")", "in.readLine().split", "in.readLine()", "in.readLine", "in", "\" \"", "int a = Integer.parseInt(str[0]);", "a", "Integer.parseInt(str[0])", "Integer.parseInt", "Integer", "str[0]", "str", "0", "int b = Integer.parseInt(str[1]);", "b", "Integer.parseInt(str[1])", "Integer.parseInt", "Integer", "str[1]", "str", "1", "int h = Integer.parseInt(str[2]);", "h", "Integer.parseInt(str[2])", "Integer.parseInt", "Integer", "str[2]", "str", "2", "int m = Integer.parseInt(str[3]);", "m", "Integer.parseInt(str[3])", "Integer.parseInt", "Integer", "str[3]", "str", "3", "double hour = (h*30)+(m*0.5);", "hour", "(h*30)+(m*0.5)", "(h*30)", "h", "30", "(m*0.5)", "m", "0.5", "double min = m*6;", "min", "m*6", "m", "6", "double anglediff = Math.abs(hour-min);", "anglediff", "Math.abs(hour-min)", "Math.abs", "Math", "hour-min", "hour", "min", "double ans = 0;", "ans", "0", "double sqrt = Math.pow(a,2)+Math.pow(b,2)-2*a*b*Math.cos(Math.toRadians(anglediff));", "sqrt", "Math.pow(a,2)+Math.pow(b,2)-2*a*b*Math.cos(Math.toRadians(anglediff))", "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(anglediff))", "b", "2*a*b*Math.cos(Math.toRadians(anglediff))", "2", "a", "b", "Math.cos(Math.toRadians(anglediff))", "Math.cos", "Math", "Math.toRadians(anglediff)", "Math.toRadians", "Math", "anglediff", "System.out.println(Math.sqrt(sqrt))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(sqrt)", "Math.sqrt", "Math", "sqrt", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String[] str = in.readLine().split(\" \");\n int a = Integer.parseInt(str[0]);\n int b = Integer.parseInt(str[1]);\n int h = Integer.parseInt(str[2]);\n int m = Integer.parseInt(str[3]);\n double hour = (h*30)+(m*0.5);\n double min = m*6;\n double anglediff = Math.abs(hour-min);\n double ans = 0;\n \n double sqrt = Math.pow(a,2)+Math.pow(b,2)-2*a*b*Math.cos(Math.toRadians(anglediff));\n System.out.println(Math.sqrt(sqrt));\n }\n}", "public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String[] str = in.readLine().split(\" \");\n int a = Integer.parseInt(str[0]);\n int b = Integer.parseInt(str[1]);\n int h = Integer.parseInt(str[2]);\n int m = Integer.parseInt(str[3]);\n double hour = (h*30)+(m*0.5);\n double min = m*6;\n double anglediff = Math.abs(hour-min);\n double ans = 0;\n \n double sqrt = Math.pow(a,2)+Math.pow(b,2)-2*a*b*Math.cos(Math.toRadians(anglediff));\n System.out.println(Math.sqrt(sqrt));\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; public class Main { public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String[] str = in.readLine().split(" "); int a = Integer.parseInt(str[0]); int b = Integer.parseInt(str[1]); int h = Integer.parseInt(str[2]); int m = Integer.parseInt(str[3]); double hour = (h*30)+(m*0.5); double min = m*6; double anglediff = Math.abs(hour-min); double ans = 0; double sqrt = Math.pow(a,2)+Math.pow(b,2)-2*a*b*Math.cos(Math.toRadians(anglediff)); System.out.println(Math.sqrt(sqrt)); } }
[ 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, 14, 2, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 13, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 13, 14, 2, 13, 13, 30, 0, 13, 17, 14, 2, 2, 13, 13, 17, 30, 0, 13, 2, 13, 13, 41, 13, 2, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 17, 13, 14, 2, 13, 17, 30, 0, 13, 2, 17, 2, 13, 17, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 13, 14, 2, 13, 17, 30, 0, 13, 4, 18, 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 ], [ 198, 5 ], [ 198, 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 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 8, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 8, 62 ], [ 62, 63 ], [ 62, 64 ], [ 8, 65 ], [ 65, 66 ], [ 65, 67 ], [ 8, 68 ], [ 68, 69 ], [ 68, 70 ], [ 8, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 79, 81 ], [ 71, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 90, 92 ], [ 82, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 8, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 101, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 110, 112 ], [ 8, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 115, 117 ], [ 8, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 118, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 125, 127 ], [ 8, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 137, 139 ], [ 8, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 143, 144 ], [ 142, 145 ], [ 8, 146 ], [ 146, 147 ], [ 146, 148 ], [ 148, 149 ], [ 149, 150 ], [ 148, 151 ], [ 8, 152 ], [ 152, 153 ], [ 152, 154 ], [ 154, 155 ], [ 155, 156 ], [ 154, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 158, 162 ], [ 162, 163 ], [ 162, 164 ], [ 157, 165 ], [ 167, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 166, 170 ], [ 167, 171 ], [ 8, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 172, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 179, 180 ], [ 180, 181 ], [ 179, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 182, 186 ], [ 186, 187 ], [ 186, 188 ], [ 8, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 191, 193 ], [ 189, 194 ], [ 6, 195 ], [ 195, 196 ], [ 0, 197 ], [ 197, 198 ], [ 197, 199 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ่‡ชๅ‹•็”Ÿๆˆใ•ใ‚ŒใŸใƒกใ‚ฝใƒƒใƒ‰ใƒปใ‚นใ‚ฟใƒ–\n\t\t\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\n\t\tdouble lon = h * 30 + m * 0.5;\n\t\tdouble sho = m * 6 ;\n\t\t\n\t\tif(lon == 0) {\n\t\t\tlon = 360;\n\t\t}\n\t\t\n\t\tif(sho == 0) {\n\t\t\tsho = 360;\n\t\t}\n\t\t\n\t\tdouble big = 0;\n\t\tdouble small = 0;\n\t\t\n\t\tdouble answer = 0;\n\t\t\n\t\tif(lon > sho) {\n\t\t\tbig = lon;\n\t\t\tsmall = sho;\n\t\t}else if(lon < sho) {\n\t\t\tbig = sho;\n\t\t\tsmall = lon;\n\t\t}else if(lon == sho) {\n\t\t\tanswer = 0;\n\t\t}\n\t\t\n\t\tif((big - small) == 180) {\n\t\t\tanswer = a + b;\n\t\t}\n\t\t\n\t\t\n\t\tdouble deg = big - small;\n\t\tif(deg > 180) {\n\t\t\tdeg = 360 - deg;\n\t\t}\n\t\t\n\t\tif(deg > 180) {\n\t\t\tdeg = 180 - (deg - 180);\n\t\t}\n\t\t\n\t\tdouble rad = Math.toRadians(deg);\n\t\tdouble cos = Math.cos(rad);\n\t\tanswer = Math.sqrt(a*a + b*b - 2 * a * b * cos);\n\t\t\n\t\tif( deg == 90) {\n\t\t\tanswer = Math.sqrt(a*a + b*b);\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\t\t\n\t\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\t\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\n\t\tdouble lon = h * 30 + m * 0.5;\n\t\tdouble sho = m * 6 ;\n\t\t\n\t\tif(lon == 0) {\n\t\t\tlon = 360;\n\t\t}\n\t\t\n\t\tif(sho == 0) {\n\t\t\tsho = 360;\n\t\t}\n\t\t\n\t\tdouble big = 0;\n\t\tdouble small = 0;\n\t\t\n\t\tdouble answer = 0;\n\t\t\n\t\tif(lon > sho) {\n\t\t\tbig = lon;\n\t\t\tsmall = sho;\n\t\t}else if(lon < sho) {\n\t\t\tbig = sho;\n\t\t\tsmall = lon;\n\t\t}else if(lon == sho) {\n\t\t\tanswer = 0;\n\t\t}\n\t\t\n\t\tif((big - small) == 180) {\n\t\t\tanswer = a + b;\n\t\t}\n\t\t\n\t\t\n\t\tdouble deg = big - small;\n\t\tif(deg > 180) {\n\t\t\tdeg = 360 - deg;\n\t\t}\n\t\t\n\t\tif(deg > 180) {\n\t\t\tdeg = 180 - (deg - 180);\n\t\t}\n\t\t\n\t\tdouble rad = Math.toRadians(deg);\n\t\tdouble cos = Math.cos(rad);\n\t\tanswer = Math.sqrt(a*a + b*b - 2 * a * b * cos);\n\t\t\n\t\tif( deg == 90) {\n\t\t\tanswer = Math.sqrt(a*a + b*b);\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\t\t\n\t\t\n}\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO ่‡ชๅ‹•็”Ÿๆˆใ•ใ‚ŒใŸใƒกใ‚ฝใƒƒใƒ‰ใƒปใ‚นใ‚ฟใƒ–\n\t\t\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\n\t\tdouble lon = h * 30 + m * 0.5;\n\t\tdouble sho = m * 6 ;\n\t\t\n\t\tif(lon == 0) {\n\t\t\tlon = 360;\n\t\t}\n\t\t\n\t\tif(sho == 0) {\n\t\t\tsho = 360;\n\t\t}\n\t\t\n\t\tdouble big = 0;\n\t\tdouble small = 0;\n\t\t\n\t\tdouble answer = 0;\n\t\t\n\t\tif(lon > sho) {\n\t\t\tbig = lon;\n\t\t\tsmall = sho;\n\t\t}else if(lon < sho) {\n\t\t\tbig = sho;\n\t\t\tsmall = lon;\n\t\t}else if(lon == sho) {\n\t\t\tanswer = 0;\n\t\t}\n\t\t\n\t\tif((big - small) == 180) {\n\t\t\tanswer = a + b;\n\t\t}\n\t\t\n\t\t\n\t\tdouble deg = big - small;\n\t\tif(deg > 180) {\n\t\t\tdeg = 360 - deg;\n\t\t}\n\t\t\n\t\tif(deg > 180) {\n\t\t\tdeg = 180 - (deg - 180);\n\t\t}\n\t\t\n\t\tdouble rad = Math.toRadians(deg);\n\t\tdouble cos = Math.cos(rad);\n\t\tanswer = Math.sqrt(a*a + b*b - 2 * a * b * cos);\n\t\t\n\t\tif( deg == 90) {\n\t\t\tanswer = Math.sqrt(a*a + b*b);\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\t\t\n\t\t\n}", "main", "{\n\t\t// TODO ่‡ชๅ‹•็”Ÿๆˆใ•ใ‚ŒใŸใƒกใ‚ฝใƒƒใƒ‰ใƒปใ‚นใ‚ฟใƒ–\n\t\t\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\n\t\tdouble lon = h * 30 + m * 0.5;\n\t\tdouble sho = m * 6 ;\n\t\t\n\t\tif(lon == 0) {\n\t\t\tlon = 360;\n\t\t}\n\t\t\n\t\tif(sho == 0) {\n\t\t\tsho = 360;\n\t\t}\n\t\t\n\t\tdouble big = 0;\n\t\tdouble small = 0;\n\t\t\n\t\tdouble answer = 0;\n\t\t\n\t\tif(lon > sho) {\n\t\t\tbig = lon;\n\t\t\tsmall = sho;\n\t\t}else if(lon < sho) {\n\t\t\tbig = sho;\n\t\t\tsmall = lon;\n\t\t}else if(lon == sho) {\n\t\t\tanswer = 0;\n\t\t}\n\t\t\n\t\tif((big - small) == 180) {\n\t\t\tanswer = a + b;\n\t\t}\n\t\t\n\t\t\n\t\tdouble deg = big - small;\n\t\tif(deg > 180) {\n\t\t\tdeg = 360 - deg;\n\t\t}\n\t\t\n\t\tif(deg > 180) {\n\t\t\tdeg = 180 - (deg - 180);\n\t\t}\n\t\t\n\t\tdouble rad = Math.toRadians(deg);\n\t\tdouble cos = Math.cos(rad);\n\t\tanswer = Math.sqrt(a*a + b*b - 2 * a * b * cos);\n\t\t\n\t\tif( deg == 90) {\n\t\t\tanswer = Math.sqrt(a*a + b*b);\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\t\t\n\t\t\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 lon = h * 30 + m * 0.5;", "lon", "h * 30 + m * 0.5", "h * 30", "h", "30", "m * 0.5", "m", "0.5", "double sho = m * 6 ;", "sho", "m * 6", "m", "6", "if(lon == 0) {\n\t\t\tlon = 360;\n\t\t}", "lon == 0", "lon", "0", "{\n\t\t\tlon = 360;\n\t\t}", "lon = 360", "lon", "360", "if(sho == 0) {\n\t\t\tsho = 360;\n\t\t}", "sho == 0", "sho", "0", "{\n\t\t\tsho = 360;\n\t\t}", "sho = 360", "sho", "360", "double big = 0;", "big", "0", "double small = 0;", "small", "0", "double answer = 0;", "answer", "0", "if(lon > sho) {\n\t\t\tbig = lon;\n\t\t\tsmall = sho;\n\t\t}else if(lon < sho) {\n\t\t\tbig = sho;\n\t\t\tsmall = lon;\n\t\t}else if(lon == sho) {\n\t\t\tanswer = 0;\n\t\t}", "lon > sho", "lon", "sho", "{\n\t\t\tbig = lon;\n\t\t\tsmall = sho;\n\t\t}", "big = lon", "big", "lon", "small = sho", "small", "sho", "if(lon < sho) {\n\t\t\tbig = sho;\n\t\t\tsmall = lon;\n\t\t}else if(lon == sho) {\n\t\t\tanswer = 0;\n\t\t}", "lon < sho", "lon", "sho", "{\n\t\t\tbig = sho;\n\t\t\tsmall = lon;\n\t\t}", "big = sho", "big", "sho", "small = lon", "small", "lon", "if(lon == sho) {\n\t\t\tanswer = 0;\n\t\t}", "lon == sho", "lon", "sho", "{\n\t\t\tanswer = 0;\n\t\t}", "answer = 0", "answer", "0", "if((big - small) == 180) {\n\t\t\tanswer = a + b;\n\t\t}", "(big - small) == 180", "(big - small)", "big", "small", "180", "{\n\t\t\tanswer = a + b;\n\t\t}", "answer = a + b", "answer", "a + b", "a", "b", "double deg = big - small;", "deg", "big - small", "big", "small", "if(deg > 180) {\n\t\t\tdeg = 360 - deg;\n\t\t}", "deg > 180", "deg", "180", "{\n\t\t\tdeg = 360 - deg;\n\t\t}", "deg = 360 - deg", "deg", "360 - deg", "360", "deg", "if(deg > 180) {\n\t\t\tdeg = 180 - (deg - 180);\n\t\t}", "deg > 180", "deg", "180", "{\n\t\t\tdeg = 180 - (deg - 180);\n\t\t}", "deg = 180 - (deg - 180)", "deg", "180 - (deg - 180)", "180", "(deg - 180)", "deg", "180", "double rad = Math.toRadians(deg);", "rad", "Math.toRadians(deg)", "Math.toRadians", "Math", "deg", "double cos = Math.cos(rad);", "cos", "Math.cos(rad)", "Math.cos", "Math", "rad", "answer = Math.sqrt(a*a + b*b - 2 * a * b * cos)", "answer", "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", "if( deg == 90) {\n\t\t\tanswer = Math.sqrt(a*a + b*b);\n\t\t}", "deg == 90", "deg", "90", "{\n\t\t\tanswer = Math.sqrt(a*a + b*b);\n\t\t}", "answer = Math.sqrt(a*a + b*b)", "answer", "Math.sqrt(a*a + b*b)", "Math.sqrt", "Math", "a*a + b*b", "a*a", "a", "a", "b*b", "b", "b", "System.out.println(answer)", "System.out.println", "System.out", "System", "System.out", "answer", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ่‡ชๅ‹•็”Ÿๆˆใ•ใ‚ŒใŸใƒกใ‚ฝใƒƒใƒ‰ใƒปใ‚นใ‚ฟใƒ–\n\t\t\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\n\t\tdouble lon = h * 30 + m * 0.5;\n\t\tdouble sho = m * 6 ;\n\t\t\n\t\tif(lon == 0) {\n\t\t\tlon = 360;\n\t\t}\n\t\t\n\t\tif(sho == 0) {\n\t\t\tsho = 360;\n\t\t}\n\t\t\n\t\tdouble big = 0;\n\t\tdouble small = 0;\n\t\t\n\t\tdouble answer = 0;\n\t\t\n\t\tif(lon > sho) {\n\t\t\tbig = lon;\n\t\t\tsmall = sho;\n\t\t}else if(lon < sho) {\n\t\t\tbig = sho;\n\t\t\tsmall = lon;\n\t\t}else if(lon == sho) {\n\t\t\tanswer = 0;\n\t\t}\n\t\t\n\t\tif((big - small) == 180) {\n\t\t\tanswer = a + b;\n\t\t}\n\t\t\n\t\t\n\t\tdouble deg = big - small;\n\t\tif(deg > 180) {\n\t\t\tdeg = 360 - deg;\n\t\t}\n\t\t\n\t\tif(deg > 180) {\n\t\t\tdeg = 180 - (deg - 180);\n\t\t}\n\t\t\n\t\tdouble rad = Math.toRadians(deg);\n\t\tdouble cos = Math.cos(rad);\n\t\tanswer = Math.sqrt(a*a + b*b - 2 * a * b * cos);\n\t\t\n\t\tif( deg == 90) {\n\t\t\tanswer = Math.sqrt(a*a + b*b);\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\t\t\n\t\t\n}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ่‡ชๅ‹•็”Ÿๆˆใ•ใ‚ŒใŸใƒกใ‚ฝใƒƒใƒ‰ใƒปใ‚นใ‚ฟใƒ–\n\t\t\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\n\t\tdouble lon = h * 30 + m * 0.5;\n\t\tdouble sho = m * 6 ;\n\t\t\n\t\tif(lon == 0) {\n\t\t\tlon = 360;\n\t\t}\n\t\t\n\t\tif(sho == 0) {\n\t\t\tsho = 360;\n\t\t}\n\t\t\n\t\tdouble big = 0;\n\t\tdouble small = 0;\n\t\t\n\t\tdouble answer = 0;\n\t\t\n\t\tif(lon > sho) {\n\t\t\tbig = lon;\n\t\t\tsmall = sho;\n\t\t}else if(lon < sho) {\n\t\t\tbig = sho;\n\t\t\tsmall = lon;\n\t\t}else if(lon == sho) {\n\t\t\tanswer = 0;\n\t\t}\n\t\t\n\t\tif((big - small) == 180) {\n\t\t\tanswer = a + b;\n\t\t}\n\t\t\n\t\t\n\t\tdouble deg = big - small;\n\t\tif(deg > 180) {\n\t\t\tdeg = 360 - deg;\n\t\t}\n\t\t\n\t\tif(deg > 180) {\n\t\t\tdeg = 180 - (deg - 180);\n\t\t}\n\t\t\n\t\tdouble rad = Math.toRadians(deg);\n\t\tdouble cos = Math.cos(rad);\n\t\tanswer = Math.sqrt(a*a + b*b - 2 * a * b * cos);\n\t\t\n\t\tif( deg == 90) {\n\t\t\tanswer = Math.sqrt(a*a + b*b);\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\t\t\n\t\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 lon = h * 30 + m * 0.5; double sho = m * 6 ; if(lon == 0) { lon = 360; } if(sho == 0) { sho = 360; } double big = 0; double small = 0; double answer = 0; if(lon > sho) { big = lon; small = sho; }else if(lon < sho) { big = sho; small = lon; }else if(lon == sho) { answer = 0; } if((big - small) == 180) { answer = a + b; } double deg = big - small; if(deg > 180) { deg = 360 - deg; } if(deg > 180) { deg = 180 - (deg - 180); } double rad = Math.toRadians(deg); double cos = Math.cos(rad); answer = Math.sqrt(a*a + b*b - 2 * a * b * cos); if( deg == 90) { answer = Math.sqrt(a*a + b*b); } 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, 41, 13, 2, 2, 2, 2, 2, 2, 13, 17, 13, 2, 17, 17, 17, 18, 13, 13, 2, 2, 13, 17, 18, 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, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 90, 5 ], [ 90, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 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 ], [ 36, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 37, 43 ], [ 43, 44 ], [ 43, 45 ], [ 36, 46 ], [ 36, 47 ], [ 47, 48 ], [ 47, 49 ], [ 34, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 54, 56 ], [ 8, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 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 ], [ 6, 87 ], [ 87, 88 ], [ 0, 89 ], [ 89, 90 ], [ 89, 91 ] ]
[ "import java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner c = new Scanner(System.in);\n double a = c.nextInt();\n double b = c.nextInt();\n double h = c.nextInt();\n double m = c.nextInt();\n double angle = ((h*60+m)/(12*60))*2*Math.PI-m/30*Math.PI;\n System.out.println(Math.sqrt(Math.pow(a,2)+Math.pow(b,2)-2*a*b*Math.cos(angle)));\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner c = new Scanner(System.in);\n double a = c.nextInt();\n double b = c.nextInt();\n double h = c.nextInt();\n double m = c.nextInt();\n double angle = ((h*60+m)/(12*60))*2*Math.PI-m/30*Math.PI;\n System.out.println(Math.sqrt(Math.pow(a,2)+Math.pow(b,2)-2*a*b*Math.cos(angle)));\n }\n}", "Main", "public static void main(String[] args) {\n Scanner c = new Scanner(System.in);\n double a = c.nextInt();\n double b = c.nextInt();\n double h = c.nextInt();\n double m = c.nextInt();\n double angle = ((h*60+m)/(12*60))*2*Math.PI-m/30*Math.PI;\n System.out.println(Math.sqrt(Math.pow(a,2)+Math.pow(b,2)-2*a*b*Math.cos(angle)));\n }", "main", "{\n Scanner c = new Scanner(System.in);\n double a = c.nextInt();\n double b = c.nextInt();\n double h = c.nextInt();\n double m = c.nextInt();\n double angle = ((h*60+m)/(12*60))*2*Math.PI-m/30*Math.PI;\n System.out.println(Math.sqrt(Math.pow(a,2)+Math.pow(b,2)-2*a*b*Math.cos(angle)));\n }", "Scanner c = new Scanner(System.in);", "c", "new Scanner(System.in)", "double a = c.nextInt();", "a", "c.nextInt()", "c.nextInt", "c", "double b = c.nextInt();", "b", "c.nextInt()", "c.nextInt", "c", "double h = c.nextInt();", "h", "c.nextInt()", "c.nextInt", "c", "double m = c.nextInt();", "m", "c.nextInt()", "c.nextInt", "c", "double angle = ((h*60+m)/(12*60))*2*Math.PI-m/30*Math.PI;", "angle", "((h*60+m)/(12*60))*2*Math.PI-m/30*Math.PI", "((h*60+m)/(12*60))*2*Math.PI", "((h*60+m)/(12*60))*2*Math.PI", "((h*60+m)/(12*60))", "(h*60+m)", "h*60", "h", "60", "m", "(12*60)", "12", "60", "2", "Math.PI", "Math", "Math.PI", "m/30*Math.PI", "m/30", "m", "30", "Math.PI", "Math", "Math.PI", "System.out.println(Math.sqrt(Math.pow(a,2)+Math.pow(b,2)-2*a*b*Math.cos(angle)))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(Math.pow(a,2)+Math.pow(b,2)-2*a*b*Math.cos(angle))", "Math.sqrt", "Math", "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", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner c = new Scanner(System.in);\n double a = c.nextInt();\n double b = c.nextInt();\n double h = c.nextInt();\n double m = c.nextInt();\n double angle = ((h*60+m)/(12*60))*2*Math.PI-m/30*Math.PI;\n System.out.println(Math.sqrt(Math.pow(a,2)+Math.pow(b,2)-2*a*b*Math.cos(angle)));\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner c = new Scanner(System.in);\n double a = c.nextInt();\n double b = c.nextInt();\n double h = c.nextInt();\n double m = c.nextInt();\n double angle = ((h*60+m)/(12*60))*2*Math.PI-m/30*Math.PI;\n System.out.println(Math.sqrt(Math.pow(a,2)+Math.pow(b,2)-2*a*b*Math.cos(angle)));\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner c = new Scanner(System.in); double a = c.nextInt(); double b = c.nextInt(); double h = c.nextInt(); double m = c.nextInt(); double angle = ((h*60+m)/(12*60))*2*Math.PI-m/30*Math.PI; System.out.println(Math.sqrt(Math.pow(a,2)+Math.pow(b,2)-2*a*b*Math.cos(angle))); } }
[ 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, 17, 41, 13, 2, 2, 13, 17, 17, 41, 13, 4, 18, 13, 2, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 17, 13, 30, 0, 13, 13, 41, 13, 13, 41, 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 ], [ 117, 5 ], [ 117, 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 ], [ 8, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 8, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 55, 57 ], [ 8, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 58, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 8, 72 ], [ 72, 73 ], [ 72, 74 ], [ 8, 75 ], [ 75, 76 ], [ 75, 77 ], [ 8, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 85, 89 ], [ 84, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 90, 94 ], [ 83, 95 ], [ 97, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 97, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 8, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 6, 114 ], [ 114, 115 ], [ 0, 116 ], [ 116, 117 ], [ 116, 118 ] ]
[ "import java.util.*;\n\npublic 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\t\n\t\tdouble akakudo = (H * 30 + M * 0.5) % 360 ;\n\t\tdouble bkakudo = (M * 6) % 360 ;\n\t\tdouble ckakudo = Math.abs(akakudo-bkakudo);\n\t\t\n\t\tif (ckakudo>=180){\n\t\t\tckakudo = 360 - ckakudo; \n\t\t} else {\n\t\t\tckakudo = ckakudo;\n\t\t}\n\t\t\n\t\tdouble a = (double) A;\n\t\tdouble b = (double) B;\n\t\t\n\t\tdouble c = Math.sqrt(( Math.pow(a,2) + Math.pow(b,2) - 2*a*b*(Math.cos(Math.toRadians(ckakudo)) )));\n\t\tSystem.out.println(c);\n\t\t\n\t\t\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\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 akakudo = (H * 30 + M * 0.5) % 360 ;\n\t\tdouble bkakudo = (M * 6) % 360 ;\n\t\tdouble ckakudo = Math.abs(akakudo-bkakudo);\n\t\t\n\t\tif (ckakudo>=180){\n\t\t\tckakudo = 360 - ckakudo; \n\t\t} else {\n\t\t\tckakudo = ckakudo;\n\t\t}\n\t\t\n\t\tdouble a = (double) A;\n\t\tdouble b = (double) B;\n\t\t\n\t\tdouble c = Math.sqrt(( Math.pow(a,2) + Math.pow(b,2) - 2*a*b*(Math.cos(Math.toRadians(ckakudo)) )));\n\t\tSystem.out.println(c);\n\t\t\n\t\t\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint A = 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 akakudo = (H * 30 + M * 0.5) % 360 ;\n\t\tdouble bkakudo = (M * 6) % 360 ;\n\t\tdouble ckakudo = Math.abs(akakudo-bkakudo);\n\t\t\n\t\tif (ckakudo>=180){\n\t\t\tckakudo = 360 - ckakudo; \n\t\t} else {\n\t\t\tckakudo = ckakudo;\n\t\t}\n\t\t\n\t\tdouble a = (double) A;\n\t\tdouble b = (double) B;\n\t\t\n\t\tdouble c = Math.sqrt(( Math.pow(a,2) + Math.pow(b,2) - 2*a*b*(Math.cos(Math.toRadians(ckakudo)) )));\n\t\tSystem.out.println(c);\n\t\t\n\t\t\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\t\n\t\tdouble akakudo = (H * 30 + M * 0.5) % 360 ;\n\t\tdouble bkakudo = (M * 6) % 360 ;\n\t\tdouble ckakudo = Math.abs(akakudo-bkakudo);\n\t\t\n\t\tif (ckakudo>=180){\n\t\t\tckakudo = 360 - ckakudo; \n\t\t} else {\n\t\t\tckakudo = ckakudo;\n\t\t}\n\t\t\n\t\tdouble a = (double) A;\n\t\tdouble b = (double) B;\n\t\t\n\t\tdouble c = Math.sqrt(( Math.pow(a,2) + Math.pow(b,2) - 2*a*b*(Math.cos(Math.toRadians(ckakudo)) )));\n\t\tSystem.out.println(c);\n\t\t\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 akakudo = (H * 30 + M * 0.5) % 360 ;", "akakudo", "(H * 30 + M * 0.5) % 360", "(H * 30 + M * 0.5)", "H * 30", "H", "30", "M * 0.5", "M", "0.5", "360", "double bkakudo = (M * 6) % 360 ;", "bkakudo", "(M * 6) % 360", "(M * 6)", "M", "6", "360", "double ckakudo = Math.abs(akakudo-bkakudo);", "ckakudo", "Math.abs(akakudo-bkakudo)", "Math.abs", "Math", "akakudo-bkakudo", "akakudo", "bkakudo", "if (ckakudo>=180){\n\t\t\tckakudo = 360 - ckakudo; \n\t\t} else {\n\t\t\tckakudo = ckakudo;\n\t\t}", "ckakudo>=180", "ckakudo", "180", "{\n\t\t\tckakudo = 360 - ckakudo; \n\t\t}", "ckakudo = 360 - ckakudo", "ckakudo", "360 - ckakudo", "360", "ckakudo", "{\n\t\t\tckakudo = ckakudo;\n\t\t}", "ckakudo = ckakudo", "ckakudo", "ckakudo", "double a = (double) A;", "a", "(double) A", "double b = (double) B;", "b", "(double) B", "double c = Math.sqrt(( Math.pow(a,2) + Math.pow(b,2) - 2*a*b*(Math.cos(Math.toRadians(ckakudo)) )));", "c", "Math.sqrt(( Math.pow(a,2) + Math.pow(b,2) - 2*a*b*(Math.cos(Math.toRadians(ckakudo)) )))", "Math.sqrt", "Math", "( Math.pow(a,2) + Math.pow(b,2) - 2*a*b*(Math.cos(Math.toRadians(ckakudo)) ))", "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(ckakudo)) )", "b", "2*a*b*(Math.cos(Math.toRadians(ckakudo)) )", "2", "a", "b", "(Math.cos(Math.toRadians(ckakudo)) )", "Math.cos", "Math", "Math.toRadians(ckakudo)", "Math.toRadians", "Math", "ckakudo", "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\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\t\n\t\tdouble akakudo = (H * 30 + M * 0.5) % 360 ;\n\t\tdouble bkakudo = (M * 6) % 360 ;\n\t\tdouble ckakudo = Math.abs(akakudo-bkakudo);\n\t\t\n\t\tif (ckakudo>=180){\n\t\t\tckakudo = 360 - ckakudo; \n\t\t} else {\n\t\t\tckakudo = ckakudo;\n\t\t}\n\t\t\n\t\tdouble a = (double) A;\n\t\tdouble b = (double) B;\n\t\t\n\t\tdouble c = Math.sqrt(( Math.pow(a,2) + Math.pow(b,2) - 2*a*b*(Math.cos(Math.toRadians(ckakudo)) )));\n\t\tSystem.out.println(c);\n\t\t\n\t\t\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\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 akakudo = (H * 30 + M * 0.5) % 360 ;\n\t\tdouble bkakudo = (M * 6) % 360 ;\n\t\tdouble ckakudo = Math.abs(akakudo-bkakudo);\n\t\t\n\t\tif (ckakudo>=180){\n\t\t\tckakudo = 360 - ckakudo; \n\t\t} else {\n\t\t\tckakudo = ckakudo;\n\t\t}\n\t\t\n\t\tdouble a = (double) A;\n\t\tdouble b = (double) B;\n\t\t\n\t\tdouble c = Math.sqrt(( Math.pow(a,2) + Math.pow(b,2) - 2*a*b*(Math.cos(Math.toRadians(ckakudo)) )));\n\t\tSystem.out.println(c);\n\t\t\n\t\t\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int H = sc.nextInt(); int M = sc.nextInt(); double akakudo = (H * 30 + M * 0.5) % 360 ; double bkakudo = (M * 6) % 360 ; double ckakudo = Math.abs(akakudo-bkakudo); if (ckakudo>=180){ ckakudo = 360 - ckakudo; } else { ckakudo = ckakudo; } double a = (double) A; double b = (double) B; double c = Math.sqrt(( Math.pow(a,2) + Math.pow(b,2) - 2*a*b*(Math.cos(Math.toRadians(ckakudo)) ))); System.out.println(c); } }
[ 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, 13, 4, 18, 13, 2, 2, 2, 2, 13, 2, 13, 17, 17, 17, 18, 13, 13, 41, 13, 2, 13, 4, 18, 13, 2, 2, 2, 2, 13, 2, 13, 17, 17, 17, 18, 13, 13, 41, 13, 2, 13, 4, 18, 13, 2, 2, 2, 13, 17, 17, 18, 13, 13, 41, 13, 2, 13, 4, 18, 13, 2, 2, 2, 13, 17, 17, 18, 13, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 2, 13, 13, 2, 13, 13, 23, 13, 23, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 0, 13, 17, 23, 13, 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, 6, 13, 12, 13, 30, 29, 4, 18, 13, 17, 13, 23, 13, 12, 13, 30, 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 ], [ 251, 29 ], [ 251, 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 ], [ 251, 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 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 96, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 100, 102 ], [ 97, 103 ], [ 96, 104 ], [ 96, 105 ], [ 105, 106 ], [ 105, 107 ], [ 67, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 113, 114 ], [ 112, 115 ], [ 116, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 120, 122 ], [ 117, 123 ], [ 116, 124 ], [ 116, 125 ], [ 125, 126 ], [ 125, 127 ], [ 67, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 130, 132 ], [ 132, 133 ], [ 133, 134 ], [ 132, 135 ], [ 136, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 136, 140 ], [ 136, 141 ], [ 141, 142 ], [ 141, 143 ], [ 67, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 146, 148 ], [ 148, 149 ], [ 149, 150 ], [ 148, 151 ], [ 152, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 152, 156 ], [ 152, 157 ], [ 157, 158 ], [ 157, 159 ], [ 67, 160 ], [ 160, 161 ], [ 161, 162 ], [ 160, 163 ], [ 163, 164 ], [ 164, 165 ], [ 163, 166 ], [ 166, 167 ], [ 167, 168 ], [ 166, 169 ], [ 169, 170 ], [ 169, 171 ], [ 166, 172 ], [ 172, 173 ], [ 172, 174 ], [ 65, 175 ], [ 175, 176 ], [ 65, 177 ], [ 177, 178 ], [ 65, 179 ], [ 179, 180 ], [ 251, 181 ], [ 181, 182 ], [ 181, 183 ], [ 183, 184 ], [ 181, 185 ], [ 185, 186 ], [ 181, 187 ], [ 187, 188 ], [ 187, 189 ], [ 189, 190 ], [ 190, 191 ], [ 190, 192 ], [ 189, 193 ], [ 193, 194 ], [ 193, 195 ], [ 187, 196 ], [ 196, 197 ], [ 181, 198 ], [ 198, 199 ], [ 198, 200 ], [ 200, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 203, 205 ], [ 202, 206 ], [ 206, 207 ], [ 207, 208 ], [ 208, 209 ], [ 201, 210 ], [ 210, 211 ], [ 211, 212 ], [ 212, 213 ], [ 212, 214 ], [ 214, 215 ], [ 215, 216 ], [ 211, 217 ], [ 217, 218 ], [ 218, 219 ], [ 218, 220 ], [ 200, 221 ], [ 221, 222 ], [ 222, 223 ], [ 223, 224 ], [ 181, 225 ], [ 225, 226 ], [ 225, 227 ], [ 227, 228 ], [ 228, 229 ], [ 229, 230 ], [ 230, 231 ], [ 229, 232 ], [ 232, 233 ], [ 251, 234 ], [ 234, 235 ], [ 234, 236 ], [ 236, 237 ], [ 236, 238 ], [ 238, 239 ], [ 239, 240 ], [ 240, 241 ], [ 241, 242 ], [ 240, 243 ], [ 240, 244 ], [ 236, 245 ], [ 245, 246 ], [ 234, 247 ], [ 247, 248 ], [ 247, 249 ], [ 0, 250 ], [ 250, 251 ], [ 250, 252 ] ]
[ "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 *\n * @author AnandOza\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.nextInt(), b = in.nextInt();\n double h = in.nextInt(), m = in.nextInt();\n\n double x1 = a * Math.cos((h + m / 60) / 12 * 2 * Math.PI);\n double y1 = a * Math.sin((h + m / 60) / 12 * 2 * Math.PI);\n double x2 = b * Math.cos(m / 60 * 2 * Math.PI);\n double y2 = b * Math.sin(m / 60 * 2 * Math.PI);\n\n out.println(Util.formatDouble(Math.hypot(x1 - x2, y1 - y2)));\n }\n\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n\n static class Util {\n public static String formatDouble(double x) {\n return String.format(\"%.15f\", x);\n }\n\n private Util() {\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 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.nextInt(), b = in.nextInt();\n double h = in.nextInt(), m = in.nextInt();\n\n double x1 = a * Math.cos((h + m / 60) / 12 * 2 * Math.PI);\n double y1 = a * Math.sin((h + m / 60) / 12 * 2 * Math.PI);\n double x2 = b * Math.cos(m / 60 * 2 * Math.PI);\n double y2 = b * Math.sin(m / 60 * 2 * Math.PI);\n\n out.println(Util.formatDouble(Math.hypot(x1 - x2, y1 - y2)));\n }\n\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n\n static class Util {\n public static String formatDouble(double x) {\n return String.format(\"%.15f\", x);\n }\n\n private Util() {\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.nextInt(), b = in.nextInt();\n double h = in.nextInt(), m = in.nextInt();\n\n double x1 = a * Math.cos((h + m / 60) / 12 * 2 * Math.PI);\n double y1 = a * Math.sin((h + m / 60) / 12 * 2 * Math.PI);\n double x2 = b * Math.cos(m / 60 * 2 * Math.PI);\n double y2 = b * Math.sin(m / 60 * 2 * Math.PI);\n\n out.println(Util.formatDouble(Math.hypot(x1 - x2, y1 - y2)));\n }\n\n }", "CColon", "public void solve(int testNumber, InputReader in, PrintWriter out) {\n double a = in.nextInt(), b = in.nextInt();\n double h = in.nextInt(), m = in.nextInt();\n\n double x1 = a * Math.cos((h + m / 60) / 12 * 2 * Math.PI);\n double y1 = a * Math.sin((h + m / 60) / 12 * 2 * Math.PI);\n double x2 = b * Math.cos(m / 60 * 2 * Math.PI);\n double y2 = b * Math.sin(m / 60 * 2 * Math.PI);\n\n out.println(Util.formatDouble(Math.hypot(x1 - x2, y1 - y2)));\n }", "solve", "{\n double a = in.nextInt(), b = in.nextInt();\n double h = in.nextInt(), m = in.nextInt();\n\n double x1 = a * Math.cos((h + m / 60) / 12 * 2 * Math.PI);\n double y1 = a * Math.sin((h + m / 60) / 12 * 2 * Math.PI);\n double x2 = b * Math.cos(m / 60 * 2 * Math.PI);\n double y2 = b * Math.sin(m / 60 * 2 * Math.PI);\n\n out.println(Util.formatDouble(Math.hypot(x1 - x2, y1 - y2)));\n }", "double a = in.nextInt()", "a", "in.nextInt()", "in.nextInt", "in", "b = in.nextInt();", "b", "in.nextInt()", "in.nextInt", "in", "double h = in.nextInt()", "h", "in.nextInt()", "in.nextInt", "in", "m = in.nextInt();", "m", "in.nextInt()", "in.nextInt", "in", "double x1 = a * Math.cos((h + m / 60) / 12 * 2 * Math.PI);", "x1", "a * Math.cos((h + m / 60) / 12 * 2 * Math.PI)", "a", "Math.cos((h + m / 60) / 12 * 2 * Math.PI)", "Math.cos", "Math", "(h + m / 60) / 12 * 2 * Math.PI", "(h + m / 60) / 12 * 2 * Math.PI", "(h + m / 60) / 12", "(h + m / 60)", "h", "m / 60", "m", "60", "12", "2", "Math.PI", "Math", "Math.PI", "double y1 = a * Math.sin((h + m / 60) / 12 * 2 * Math.PI);", "y1", "a * Math.sin((h + m / 60) / 12 * 2 * Math.PI)", "a", "Math.sin((h + m / 60) / 12 * 2 * Math.PI)", "Math.sin", "Math", "(h + m / 60) / 12 * 2 * Math.PI", "(h + m / 60) / 12 * 2 * Math.PI", "(h + m / 60) / 12", "(h + m / 60)", "h", "m / 60", "m", "60", "12", "2", "Math.PI", "Math", "Math.PI", "double x2 = b * Math.cos(m / 60 * 2 * Math.PI);", "x2", "b * Math.cos(m / 60 * 2 * Math.PI)", "b", "Math.cos(m / 60 * 2 * Math.PI)", "Math.cos", "Math", "m / 60 * 2 * Math.PI", "m / 60 * 2 * Math.PI", "m / 60", "m", "60", "2", "Math.PI", "Math", "Math.PI", "double y2 = b * Math.sin(m / 60 * 2 * Math.PI);", "y2", "b * Math.sin(m / 60 * 2 * Math.PI)", "b", "Math.sin(m / 60 * 2 * Math.PI)", "Math.sin", "Math", "m / 60 * 2 * Math.PI", "m / 60 * 2 * Math.PI", "m / 60", "m", "60", "2", "Math.PI", "Math", "Math.PI", "out.println(Util.formatDouble(Math.hypot(x1 - x2, y1 - y2)))", "out.println", "out", "Util.formatDouble(Math.hypot(x1 - x2, y1 - y2))", "Util.formatDouble", "Util", "Math.hypot(x1 - x2, y1 - y2)", "Math.hypot", "Math", "x1 - x2", "x1", "x2", "y1 - y2", "y1", "y2", "int testNumber", "testNumber", "InputReader in", "in", "PrintWriter out", "out", "static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }", "InputReader", "public BufferedReader reader;", "reader", "public StringTokenizer tokenizer;", "tokenizer", "public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }", "InputReader", "{\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }", "reader = new BufferedReader(new InputStreamReader(stream), 32768)", "reader", "new BufferedReader(new InputStreamReader(stream), 32768)", "tokenizer = null", "tokenizer", "null", "InputStream stream", "stream", "public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }", "next", "{\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }", "while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "tokenizer == null || !tokenizer.hasMoreTokens()", "tokenizer == null", "tokenizer", "null", "!tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens", "tokenizer", "{\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }", "catch (IOException e) {\n throw new RuntimeException(e);\n }", "IOException e", "{\n throw new RuntimeException(e);\n }", "throw new RuntimeException(e);", "new RuntimeException(e)", "{\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", "public 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", "static class Util {\n public static String formatDouble(double x) {\n return String.format(\"%.15f\", x);\n }\n\n private Util() {\n }\n\n }", "Util", "public static String formatDouble(double x) {\n return String.format(\"%.15f\", x);\n }", "formatDouble", "{\n return String.format(\"%.15f\", x);\n }", "return String.format(\"%.15f\", x);", "String.format(\"%.15f\", x)", "String.format", "String", "\"%.15f\"", "x", "double x", "x", "private Util() {\n }", "Util", "{\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.nextInt(), b = in.nextInt();\n double h = in.nextInt(), m = in.nextInt();\n\n double x1 = a * Math.cos((h + m / 60) / 12 * 2 * Math.PI);\n double y1 = a * Math.sin((h + m / 60) / 12 * 2 * Math.PI);\n double x2 = b * Math.cos(m / 60 * 2 * Math.PI);\n double y2 = b * Math.sin(m / 60 * 2 * Math.PI);\n\n out.println(Util.formatDouble(Math.hypot(x1 - x2, y1 - y2)));\n }\n\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n\n static class Util {\n public static String formatDouble(double x) {\n return String.format(\"%.15f\", x);\n }\n\n private Util() {\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.nextInt(), b = in.nextInt();\n double h = in.nextInt(), m = in.nextInt();\n\n double x1 = a * Math.cos((h + m / 60) / 12 * 2 * Math.PI);\n double y1 = a * Math.sin((h + m / 60) / 12 * 2 * Math.PI);\n double x2 = b * Math.cos(m / 60 * 2 * Math.PI);\n double y2 = b * Math.sin(m / 60 * 2 * Math.PI);\n\n out.println(Util.formatDouble(Math.hypot(x1 - x2, y1 - y2)));\n }\n\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n\n static class Util {\n public static String formatDouble(double x) {\n return String.format(\"%.15f\", x);\n }\n\n private Util() {\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 * * @author AnandOza */ 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.nextInt(), b = in.nextInt(); double h = in.nextInt(), m = in.nextInt(); double x1 = a * Math.cos((h + m / 60) / 12 * 2 * Math.PI); double y1 = a * Math.sin((h + m / 60) / 12 * 2 * Math.PI); double x2 = b * Math.cos(m / 60 * 2 * Math.PI); double y2 = b * Math.sin(m / 60 * 2 * Math.PI); out.println(Util.formatDouble(Math.hypot(x1 - x2, y1 - y2))); } } static class InputReader { public BufferedReader reader; public StringTokenizer tokenizer; public InputReader(InputStream stream) { reader = new BufferedReader(new InputStreamReader(stream), 32768); tokenizer = null; } public String next() { while (tokenizer == null || !tokenizer.hasMoreTokens()) { try { tokenizer = new StringTokenizer(reader.readLine()); } catch (IOException e) { throw new RuntimeException(e); } } return tokenizer.nextToken(); } public int nextInt() { return Integer.parseInt(next()); } } static class Util { public static String formatDouble(double x) { return String.format("%.15f", x); } private Util() { } } }
[ 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, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 85, 5 ], [ 85, 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 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 6, 82 ], [ 82, 83 ], [ 0, 84 ], [ 84, 85 ], [ 84, 86 ] ]
[ "\nimport java.util.Scanner;\n\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 h = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\t// ๆ™‚้‡ - ๅˆ†้‡\n\t\t// ่ง’ๅบฆ\n\t\tdouble rad = Math.PI * 2 * ((double)h / 12.0 + ((double)m / 60.0) / 12.0 - (double)m / 60.0);\n\n\t\tdouble rsq = (double)(a * a + b * b) - (double)(2 * a * b) * Math.cos(rad);\n\n\n\t\tSystem.out.println(Math.sqrt(rsq));\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 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\t// ๆ™‚้‡ - ๅˆ†้‡\n\t\t// ่ง’ๅบฆ\n\t\tdouble rad = Math.PI * 2 * ((double)h / 12.0 + ((double)m / 60.0) / 12.0 - (double)m / 60.0);\n\n\t\tdouble rsq = (double)(a * a + b * b) - (double)(2 * a * b) * Math.cos(rad);\n\n\n\t\tSystem.out.println(Math.sqrt(rsq));\n\t}\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 h = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\t// ๆ™‚้‡ - ๅˆ†้‡\n\t\t// ่ง’ๅบฆ\n\t\tdouble rad = Math.PI * 2 * ((double)h / 12.0 + ((double)m / 60.0) / 12.0 - (double)m / 60.0);\n\n\t\tdouble rsq = (double)(a * a + b * b) - (double)(2 * a * b) * Math.cos(rad);\n\n\n\t\tSystem.out.println(Math.sqrt(rsq));\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 h = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\t// ๆ™‚้‡ - ๅˆ†้‡\n\t\t// ่ง’ๅบฆ\n\t\tdouble rad = Math.PI * 2 * ((double)h / 12.0 + ((double)m / 60.0) / 12.0 - (double)m / 60.0);\n\n\t\tdouble rsq = (double)(a * a + b * b) - (double)(2 * a * b) * Math.cos(rad);\n\n\n\t\tSystem.out.println(Math.sqrt(rsq));\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 rad = Math.PI * 2 * ((double)h / 12.0 + ((double)m / 60.0) / 12.0 - (double)m / 60.0);", "rad", "Math.PI * 2 * ((double)h / 12.0 + ((double)m / 60.0) / 12.0 - (double)m / 60.0)", "Math.PI * 2 * ((double)h / 12.0 + ((double)m / 60.0) / 12.0 - (double)m / 60.0)", "Math.PI", "Math", "Math.PI", "2", "((double)h / 12.0 + ((double)m / 60.0) / 12.0 - (double)m / 60.0)", "(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)", "(double)m", "60.0", "12.0", "(double)m / 60.0", "(double)m", "60.0", "double rsq = (double)(a * a + b * b) - (double)(2 * a * b) * Math.cos(rad);", "rsq", "(double)(a * a + b * b) - (double)(2 * a * b) * Math.cos(rad)", "(double)(a * a + b * b)", "a * a", "a", "a", "b * b", "b", "b", "(double)(2 * a * b) * Math.cos(rad)", "(double)(2 * a * b)", "2 * a * b", "2", "a", "b", "Math.cos(rad)", "Math.cos", "Math", "rad", "System.out.println(Math.sqrt(rsq))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(rsq)", "Math.sqrt", "Math", "rsq", "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 h = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\t// ๆ™‚้‡ - ๅˆ†้‡\n\t\t// ่ง’ๅบฆ\n\t\tdouble rad = Math.PI * 2 * ((double)h / 12.0 + ((double)m / 60.0) / 12.0 - (double)m / 60.0);\n\n\t\tdouble rsq = (double)(a * a + b * b) - (double)(2 * a * b) * Math.cos(rad);\n\n\n\t\tSystem.out.println(Math.sqrt(rsq));\n\t}\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 h = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\t// ๆ™‚้‡ - ๅˆ†้‡\n\t\t// ่ง’ๅบฆ\n\t\tdouble rad = Math.PI * 2 * ((double)h / 12.0 + ((double)m / 60.0) / 12.0 - (double)m / 60.0);\n\n\t\tdouble rsq = (double)(a * a + b * b) - (double)(2 * a * b) * Math.cos(rad);\n\n\n\t\tSystem.out.println(Math.sqrt(rsq));\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 rad = Math.PI * 2 * ((double)h / 12.0 + ((double)m / 60.0) / 12.0 - (double)m / 60.0); double rsq = (double)(a * a + b * b) - (double)(2 * a * b) * Math.cos(rad); System.out.println(Math.sqrt(rsq)); } }
[ 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, 41, 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, 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, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 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, 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, 4, 13, 13, 30, 4, 18, 13, 13, 0, 13, 4, 13, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 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, 29, 4, 13, 12, 13, 30, 14, 13, 30, 41, 13, 20, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 29, 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, 23, 13, 12, 13, 30, 14, 13, 30, 41, 13, 20, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 29, 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, 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 ], [ 476, 14 ], [ 476, 15 ], [ 15, 16 ], [ 15, 17 ], [ 476, 18 ], [ 18, 19 ], [ 18, 20 ], [ 476, 21 ], [ 21, 22 ], [ 476, 23 ], [ 23, 24 ], [ 476, 25 ], [ 25, 26 ], [ 476, 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 ], [ 54, 56 ], [ 53, 57 ], [ 52, 58 ], [ 29, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 29, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 69, 70 ], [ 69, 71 ], [ 29, 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 ], [ 94, 97 ], [ 29, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 29, 102 ], [ 102, 103 ], [ 103, 104 ], [ 27, 105 ], [ 105, 106 ], [ 476, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 111, 113 ], [ 107, 114 ], [ 114, 115 ], [ 114, 116 ], [ 107, 118 ], [ 118, 119 ], [ 118, 120 ], [ 107, 121 ], [ 121, 122 ], [ 121, 123 ], [ 107, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 127, 131 ], [ 131, 132 ], [ 132, 133 ], [ 127, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 134, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 138, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 148, 149 ], [ 149, 150 ], [ 148, 151 ], [ 134, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 152, 156 ], [ 156, 157 ], [ 157, 158 ], [ 126, 159 ], [ 159, 160 ], [ 107, 161 ], [ 161, 162 ], [ 161, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 164, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 170, 171 ], [ 164, 172 ], [ 172, 173 ], [ 173, 174 ], [ 107, 175 ], [ 175, 176 ], [ 175, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 180, 182 ], [ 179, 183 ], [ 183, 184 ], [ 183, 185 ], [ 175, 186 ], [ 186, 187 ], [ 107, 188 ], [ 188, 189 ], [ 188, 190 ], [ 190, 191 ], [ 191, 192 ], [ 192, 193 ], [ 193, 194 ], [ 192, 195 ], [ 195, 196 ], [ 196, 197 ], [ 196, 198 ], [ 198, 199 ], [ 198, 200 ], [ 191, 201 ], [ 201, 202 ], [ 107, 203 ], [ 203, 204 ], [ 203, 205 ], [ 205, 206 ], [ 206, 207 ], [ 205, 208 ], [ 208, 209 ], [ 209, 210 ], [ 107, 211 ], [ 211, 212 ], [ 211, 213 ], [ 213, 214 ], [ 214, 215 ], [ 215, 216 ], [ 216, 217 ], [ 214, 218 ], [ 218, 219 ], [ 213, 220 ], [ 220, 221 ], [ 220, 222 ], [ 213, 223 ], [ 223, 224 ], [ 223, 225 ], [ 225, 226 ], [ 213, 227 ], [ 227, 228 ], [ 228, 229 ], [ 228, 230 ], [ 227, 231 ], [ 231, 232 ], [ 232, 233 ], [ 233, 234 ], [ 232, 235 ], [ 231, 236 ], [ 236, 237 ], [ 236, 238 ], [ 238, 239 ], [ 213, 240 ], [ 240, 241 ], [ 241, 242 ], [ 242, 243 ], [ 107, 244 ], [ 244, 245 ], [ 244, 246 ], [ 246, 247 ], [ 247, 248 ], [ 248, 249 ], [ 249, 250 ], [ 248, 251 ], [ 251, 252 ], [ 107, 253 ], [ 253, 254 ], [ 253, 255 ], [ 255, 256 ], [ 256, 257 ], [ 257, 258 ], [ 258, 259 ], [ 256, 260 ], [ 260, 261 ], [ 255, 262 ], [ 262, 263 ], [ 262, 264 ], [ 255, 265 ], [ 265, 266 ], [ 265, 267 ], [ 255, 268 ], [ 268, 269 ], [ 268, 270 ], [ 270, 271 ], [ 255, 272 ], [ 272, 273 ], [ 273, 274 ], [ 273, 275 ], [ 272, 276 ], [ 276, 277 ], [ 277, 278 ], [ 277, 279 ], [ 276, 280 ], [ 280, 281 ], [ 280, 282 ], [ 282, 283 ], [ 255, 284 ], [ 284, 285 ], [ 285, 286 ], [ 286, 287 ], [ 286, 288 ], [ 285, 289 ], [ 289, 290 ], [ 289, 291 ], [ 284, 292 ], [ 292, 293 ], [ 293, 294 ], [ 255, 295 ], [ 295, 296 ], [ 295, 297 ], [ 297, 298 ], [ 298, 299 ], [ 299, 300 ], [ 300, 301 ], [ 300, 302 ], [ 299, 303 ], [ 303, 304 ], [ 303, 305 ], [ 298, 306 ], [ 306, 307 ], [ 307, 308 ], [ 307, 309 ], [ 306, 310 ], [ 310, 311 ], [ 310, 312 ], [ 312, 313 ], [ 312, 314 ], [ 298, 315 ], [ 315, 316 ], [ 316, 317 ], [ 317, 318 ], [ 317, 319 ], [ 319, 320 ], [ 316, 321 ], [ 321, 322 ], [ 322, 323 ], [ 322, 324 ], [ 315, 325 ], [ 325, 326 ], [ 326, 327 ], [ 327, 328 ], [ 327, 329 ], [ 329, 330 ], [ 327, 331 ], [ 315, 332 ], [ 332, 333 ], [ 333, 334 ], [ 297, 335 ], [ 335, 336 ], [ 335, 337 ], [ 337, 338 ], [ 107, 339 ], [ 339, 340 ], [ 339, 341 ], [ 341, 342 ], [ 342, 343 ], [ 343, 344 ], [ 107, 345 ], [ 345, 346 ], [ 345, 347 ], [ 347, 348 ], [ 348, 349 ], [ 348, 350 ], [ 350, 351 ], [ 351, 352 ], [ 351, 353 ], [ 354, 355 ], [ 354, 356 ], [ 350, 357 ], [ 357, 358 ], [ 358, 359 ], [ 359, 360 ], [ 359, 361 ], [ 357, 362 ], [ 362, 363 ], [ 362, 364 ], [ 357, 365 ], [ 365, 366 ], [ 366, 367 ], [ 357, 368 ], [ 369, 369 ], [ 369, 370 ], [ 370, 371 ], [ 371, 372 ], [ 371, 373 ], [ 370, 374 ], [ 374, 375 ], [ 375, 376 ], [ 350, 377 ], [ 377, 378 ], [ 348, 379 ], [ 379, 380 ], [ 380, 381 ], [ 380, 382 ], [ 379, 384 ], [ 384, 385 ], [ 385, 386 ], [ 386, 387 ], [ 386, 388 ], [ 384, 389 ], [ 389, 390 ], [ 389, 391 ], [ 384, 392 ], [ 392, 393 ], [ 393, 394 ], [ 384, 395 ], [ 396, 396 ], [ 396, 397 ], [ 397, 398 ], [ 398, 399 ], [ 398, 400 ], [ 397, 401 ], [ 401, 402 ], [ 402, 403 ], [ 379, 404 ], [ 404, 405 ], [ 345, 406 ], [ 406, 407 ], [ 345, 408 ], [ 408, 409 ], [ 107, 410 ], [ 410, 411 ], [ 410, 412 ], [ 412, 413 ], [ 413, 414 ], [ 413, 415 ], [ 415, 416 ], [ 416, 417 ], [ 416, 418 ], [ 419, 420 ], [ 419, 421 ], [ 415, 422 ], [ 422, 423 ], [ 423, 424 ], [ 424, 425 ], [ 424, 426 ], [ 422, 427 ], [ 427, 428 ], [ 427, 429 ], [ 422, 430 ], [ 430, 431 ], [ 431, 432 ], [ 422, 433 ], [ 434, 434 ], [ 434, 435 ], [ 435, 436 ], [ 436, 437 ], [ 436, 438 ], [ 435, 439 ], [ 439, 440 ], [ 440, 441 ], [ 415, 442 ], [ 442, 443 ], [ 413, 444 ], [ 444, 445 ], [ 445, 446 ], [ 445, 447 ], [ 444, 449 ], [ 449, 450 ], [ 450, 451 ], [ 451, 452 ], [ 451, 453 ], [ 449, 454 ], [ 454, 455 ], [ 454, 456 ], [ 449, 457 ], [ 457, 458 ], [ 458, 459 ], [ 449, 460 ], [ 461, 461 ], [ 461, 462 ], [ 462, 463 ], [ 463, 464 ], [ 463, 465 ], [ 462, 466 ], [ 466, 467 ], [ 467, 468 ], [ 444, 469 ], [ 469, 470 ], [ 410, 471 ], [ 471, 472 ], [ 410, 473 ], [ 473, 474 ], [ 0, 475 ], [ 475, 476 ], [ 475, 477 ] ]
[ "import java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.NoSuchElementException;\n\n\n\npublic class Main{\n\tstatic FastScanner sc = new FastScanner();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tstatic int n;\n\tstatic String s;\n\tstatic int [] a;\n\t//static HashMap <Integer, Integer> map;\n\t//static PriorityQueue <Integer> q ;\n\t//static Deque <Integer> q = new LinkedList <Integer>();\n\t//static LinkedList<Integer> adj[]; \n\t//static final int mod = 1_000_000_007;\n\t\n\t\n\tpublic static void main(String[] args) {\n\t\tdouble a = sc.nextInt();\n\t\tdouble b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\t\n\t\tdouble a_ang = (h*60+m)*0.5;\n\t\tdouble b_ang = m*6;\n\t\t\n\t\tdouble ang = Math.abs(a_ang-b_ang);\n\t\t\n\t\tdouble ans = Math.sqrt (a*a+b*b-2*a*b*Math.cos(Math.toRadians(ang)));\n\n\t\tout.println(ans);\n\t\tout.flush();\n\t\t\n\t}\n\n\t\n\tstatic class FastScanner {\n\t private final InputStream in = System.in;\n\t private final byte[] buffer = new byte[1024];\n\t private int ptr = 0;\n\t private int buflen = 0;\n\n\t private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\n\t private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }\n\n\t private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }\n\n\t private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }\n\n\t public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }\n\n\t public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }\n\t \n\t public double nextDouble () {\n\t \treturn Double.parseDouble(next());\n\t }\n\n\t public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }\n\n\t public int nextInt() {\n\t return (int) nextLong();\n\t }\n\n\t public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }\n\n\t public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }\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.NoSuchElementException;", "NoSuchElementException", "java.util", "public class Main{\n\tstatic FastScanner sc = new FastScanner();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tstatic int n;\n\tstatic String s;\n\tstatic int [] a;\n\t//static HashMap <Integer, Integer> map;\n\t//static PriorityQueue <Integer> q ;\n\t//static Deque <Integer> q = new LinkedList <Integer>();\n\t//static LinkedList<Integer> adj[]; \n\t//static final int mod = 1_000_000_007;\n\t\n\t\n\tpublic static void main(String[] args) {\n\t\tdouble a = sc.nextInt();\n\t\tdouble b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\t\n\t\tdouble a_ang = (h*60+m)*0.5;\n\t\tdouble b_ang = m*6;\n\t\t\n\t\tdouble ang = Math.abs(a_ang-b_ang);\n\t\t\n\t\tdouble ans = Math.sqrt (a*a+b*b-2*a*b*Math.cos(Math.toRadians(ang)));\n\n\t\tout.println(ans);\n\t\tout.flush();\n\t\t\n\t}\n\n\t\n\tstatic class FastScanner {\n\t private final InputStream in = System.in;\n\t private final byte[] buffer = new byte[1024];\n\t private int ptr = 0;\n\t private int buflen = 0;\n\n\t private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\n\t private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }\n\n\t private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }\n\n\t private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }\n\n\t public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }\n\n\t public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }\n\t \n\t public double nextDouble () {\n\t \treturn Double.parseDouble(next());\n\t }\n\n\t public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }\n\n\t public int nextInt() {\n\t return (int) nextLong();\n\t }\n\n\t public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }\n\n\t public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }\n\t }\n}", "Main", "static FastScanner sc = new FastScanner();", "sc", "new FastScanner()", "static PrintWriter out = new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "static int n;", "n", "static String s;", "s", "static int [] a;", "a", "public static void main(String[] args) {\n\t\tdouble a = sc.nextInt();\n\t\tdouble b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\t\n\t\tdouble a_ang = (h*60+m)*0.5;\n\t\tdouble b_ang = m*6;\n\t\t\n\t\tdouble ang = Math.abs(a_ang-b_ang);\n\t\t\n\t\tdouble ans = Math.sqrt (a*a+b*b-2*a*b*Math.cos(Math.toRadians(ang)));\n\n\t\tout.println(ans);\n\t\tout.flush();\n\t\t\n\t}", "main", "{\n\t\tdouble a = sc.nextInt();\n\t\tdouble b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\t\n\t\tdouble a_ang = (h*60+m)*0.5;\n\t\tdouble b_ang = m*6;\n\t\t\n\t\tdouble ang = Math.abs(a_ang-b_ang);\n\t\t\n\t\tdouble ans = Math.sqrt (a*a+b*b-2*a*b*Math.cos(Math.toRadians(ang)));\n\n\t\tout.println(ans);\n\t\tout.flush();\n\t\t\n\t}", "double a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "double 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 a_ang = (h*60+m)*0.5;", "a_ang", "(h*60+m)*0.5", "(h*60+m)", "h*60", "h", "60", "m", "0.5", "double b_ang = m*6;", "b_ang", "m*6", "m", "6", "double ang = Math.abs(a_ang-b_ang);", "ang", "Math.abs(a_ang-b_ang)", "Math.abs", "Math", "a_ang-b_ang", "a_ang", "b_ang", "double ans = Math.sqrt (a*a+b*b-2*a*b*Math.cos(Math.toRadians(ang)));", "ans", "Math.sqrt (a*a+b*b-2*a*b*Math.cos(Math.toRadians(ang)))", "Math.sqrt", "Math", "a*a+b*b-2*a*b*Math.cos(Math.toRadians(ang))", "a*a+b*b", "a*a", "a", "a", "b*b", "b", "b", "2*a*b*Math.cos(Math.toRadians(ang))", "b", "2*a*b*Math.cos(Math.toRadians(ang))", "2", "a", "b", "Math.cos(Math.toRadians(ang))", "Math.cos", "Math", "Math.toRadians(ang)", "Math.toRadians", "Math", "ang", "out.println(ans)", "out.println", "out", "ans", "out.flush()", "out.flush", "out", "String[] args", "args", "static class FastScanner {\n\t private final InputStream in = System.in;\n\t private final byte[] buffer = new byte[1024];\n\t private int ptr = 0;\n\t private int buflen = 0;\n\n\t private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\n\t private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }\n\n\t private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }\n\n\t private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }\n\n\t public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }\n\n\t public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }\n\t \n\t public double nextDouble () {\n\t \treturn Double.parseDouble(next());\n\t }\n\n\t public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }\n\n\t public int nextInt() {\n\t return (int) nextLong();\n\t }\n\n\t public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }\n\n\t public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }\n\t }", "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 if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }", "hasNextByte", "{\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }", "if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }", "ptr < buflen", "ptr", "buflen", "{\n\t return true;\n\t }", "return true;", "true", "{\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }", "ptr = 0", "ptr", "0", "try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }", "catch (IOException e) {\n\t e.printStackTrace();\n\t }", "IOException e", "{\n\t e.printStackTrace();\n\t }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t buflen = in.read(buffer);\n\t }", "buflen = in.read(buffer)", "buflen", "in.read(buffer)", "in.read", "in", "buffer", "if (buflen <= 0) {\n\t return false;\n\t }", "buflen <= 0", "buflen", "0", "{\n\t return false;\n\t }", "return false;", "false", "return true;", "true", "private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }", "readByte", "{\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }", "if (hasNextByte()) return buffer[ptr++];\n\t else return -1;", "hasNextByte()", "hasNextByte", "return buffer[ptr++];", "buffer[ptr++]", "buffer", "ptr++", "ptr", "return -1;", "-1", "1", "private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }", "isPrintableChar", "{\n\t return 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", "private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }", "skipUnprintable", "{\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }", "while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;", "hasNextByte() && !isPrintableChar(buffer[ptr])", "hasNextByte()", "hasNextByte", "!isPrintableChar(buffer[ptr])", "isPrintableChar(buffer[ptr])", "isPrintableChar", "buffer[ptr]", "buffer", "ptr", "ptr++", "ptr", "public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }", "hasNext", "{\n\t skipUnprintable();\n\t return hasNextByte();\n\t }", "skipUnprintable()", "skipUnprintable", "return hasNextByte();", "hasNextByte()", "hasNextByte", "public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }", "next", "{\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }", "if (!hasNext()) throw 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 sb.appendCodePoint(b);\n\t b = readByte();\n\t }", "isPrintableChar(b)", "isPrintableChar", "b", "{\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }", "sb.appendCodePoint(b)", "sb.appendCodePoint", "sb", "b", "b = readByte()", "b", "readByte()", "readByte", "return sb.toString();", "sb.toString()", "sb.toString", "sb", "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 long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }", "nextLong", "{\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }", "if (!hasNext()) throw 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 minus = true;\n\t b = readByte();\n\t }", "b == '-'", "b", "'-'", "{\n\t minus = true;\n\t b = readByte();\n\t }", "minus = true", "minus", "true", "b = readByte()", "b", "readByte()", "readByte", "if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }", "b < '0' || '9' < b", "b < '0'", "b", "'0'", "'9' < b", "'9'", "b", "{\n\t throw new NumberFormatException();\n\t }", "throw new NumberFormatException();", "new NumberFormatException()", "while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }", "true", "{\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }", "if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }", "'0' <= b && b <= '9'", "'0' <= b", "'0'", "b", "b <= '9'", "b", "'9'", "{\n\t n *= 10;\n\t n += b - '0';\n\t }", "n *= 10", "n", "10", "n += b - '0'", "n", "b - '0'", "b", "'0'", "if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }", "b == -1 || !isPrintableChar(b)", "b == -1", "b", "-1", "1", "!isPrintableChar(b)", "isPrintableChar(b)", "isPrintableChar", "b", "{\n\t return minus ? -n : n;\n\t }", "return minus ? -n : n;", "minus ? -n : n", "minus", "-n", "n", "n", "{\n\t throw new NumberFormatException();\n\t }", "throw new NumberFormatException();", "new NumberFormatException()", "b = readByte()", "b", "readByte()", "readByte", "public int nextInt() {\n\t return (int) nextLong();\n\t }", "nextInt", "{\n\t return (int) nextLong();\n\t }", "return (int) nextLong();", "(int) nextLong()", "nextLong", "public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }", "nextIntArray", "{\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }", "if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }", "oneBased", "{\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }", "int[] array = new int[N + 1];", "array", "new int[N + 1]", "N + 1", "N", "1", "for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }", "int i = 1;", "int i = 1;", "i", "1", "i <= N", "i", "N", "i++", "i++", "i", "{\n\t array[i] = sc.nextInt();\n\t }", "{\n\t array[i] = sc.nextInt();\n\t }", "array[i] = sc.nextInt()", "array[i]", "array", "i", "sc.nextInt()", "sc.nextInt", "sc", "return array;", "array", "{\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }", "int[] array = new int[N];", "array", "new int[N]", "N", "for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t array[i] = sc.nextInt();\n\t }", "{\n\t array[i] = sc.nextInt();\n\t }", "array[i] = sc.nextInt()", "array[i]", "array", "i", "sc.nextInt()", "sc.nextInt", "sc", "return array;", "array", "int N", "N", "boolean oneBased", "oneBased", "public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }", "nextLongArray", "{\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }", "if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }", "oneBased", "{\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }", "long[] array = new long[N + 1];", "array", "new long[N + 1]", "N + 1", "N", "1", "for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }", "int i = 1;", "int i = 1;", "i", "1", "i <= N", "i", "N", "i++", "i++", "i", "{\n\t array[i] = sc.nextLong();\n\t }", "{\n\t array[i] = sc.nextLong();\n\t }", "array[i] = sc.nextLong()", "array[i]", "array", "i", "sc.nextLong()", "sc.nextLong", "sc", "return array;", "array", "{\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }", "long[] array = new long[N];", "array", "new long[N]", "N", "for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t array[i] = sc.nextLong();\n\t }", "{\n\t array[i] = sc.nextLong();\n\t }", "array[i] = sc.nextLong()", "array[i]", "array", "i", "sc.nextLong()", "sc.nextLong", "sc", "return array;", "array", "int N", "N", "boolean oneBased", "oneBased", "public class Main{\n\tstatic FastScanner sc = new FastScanner();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tstatic int n;\n\tstatic String s;\n\tstatic int [] a;\n\t//static HashMap <Integer, Integer> map;\n\t//static PriorityQueue <Integer> q ;\n\t//static Deque <Integer> q = new LinkedList <Integer>();\n\t//static LinkedList<Integer> adj[]; \n\t//static final int mod = 1_000_000_007;\n\t\n\t\n\tpublic static void main(String[] args) {\n\t\tdouble a = sc.nextInt();\n\t\tdouble b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\t\n\t\tdouble a_ang = (h*60+m)*0.5;\n\t\tdouble b_ang = m*6;\n\t\t\n\t\tdouble ang = Math.abs(a_ang-b_ang);\n\t\t\n\t\tdouble ans = Math.sqrt (a*a+b*b-2*a*b*Math.cos(Math.toRadians(ang)));\n\n\t\tout.println(ans);\n\t\tout.flush();\n\t\t\n\t}\n\n\t\n\tstatic class FastScanner {\n\t private final InputStream in = System.in;\n\t private final byte[] buffer = new byte[1024];\n\t private int ptr = 0;\n\t private int buflen = 0;\n\n\t private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\n\t private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }\n\n\t private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }\n\n\t private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }\n\n\t public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }\n\n\t public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }\n\t \n\t public double nextDouble () {\n\t \treturn Double.parseDouble(next());\n\t }\n\n\t public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }\n\n\t public int nextInt() {\n\t return (int) nextLong();\n\t }\n\n\t public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }\n\n\t public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }\n\t }\n}", "public class Main{\n\tstatic FastScanner sc = new FastScanner();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tstatic int n;\n\tstatic String s;\n\tstatic int [] a;\n\t//static HashMap <Integer, Integer> map;\n\t//static PriorityQueue <Integer> q ;\n\t//static Deque <Integer> q = new LinkedList <Integer>();\n\t//static LinkedList<Integer> adj[]; \n\t//static final int mod = 1_000_000_007;\n\t\n\t\n\tpublic static void main(String[] args) {\n\t\tdouble a = sc.nextInt();\n\t\tdouble b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\t\n\t\tdouble a_ang = (h*60+m)*0.5;\n\t\tdouble b_ang = m*6;\n\t\t\n\t\tdouble ang = Math.abs(a_ang-b_ang);\n\t\t\n\t\tdouble ans = Math.sqrt (a*a+b*b-2*a*b*Math.cos(Math.toRadians(ang)));\n\n\t\tout.println(ans);\n\t\tout.flush();\n\t\t\n\t}\n\n\t\n\tstatic class FastScanner {\n\t private final InputStream in = System.in;\n\t private final byte[] buffer = new byte[1024];\n\t private int ptr = 0;\n\t private int buflen = 0;\n\n\t private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\n\t private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }\n\n\t private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }\n\n\t private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }\n\n\t public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }\n\n\t public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }\n\t \n\t public double nextDouble () {\n\t \treturn Double.parseDouble(next());\n\t }\n\n\t public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }\n\n\t public int nextInt() {\n\t return (int) nextLong();\n\t }\n\n\t public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }\n\n\t public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }\n\t }\n}", "Main" ]
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.NoSuchElementException; public class Main{ static FastScanner sc = new FastScanner(); static PrintWriter out = new PrintWriter(System.out); static int n; static String s; static int [] a; //static HashMap <Integer, Integer> map; //static PriorityQueue <Integer> q ; //static Deque <Integer> q = new LinkedList <Integer>(); //static LinkedList<Integer> adj[]; //static final int mod = 1_000_000_007; public static void main(String[] args) { double a = sc.nextInt(); double b = sc.nextInt(); int h = sc.nextInt(); int m = sc.nextInt(); double a_ang = (h*60+m)*0.5; double b_ang = m*6; double ang = Math.abs(a_ang-b_ang); double ans = Math.sqrt (a*a+b*b-2*a*b*Math.cos(Math.toRadians(ang))); out.println(ans); out.flush(); } static 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; } private void skipUnprintable() { while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; } public boolean hasNext() { skipUnprintable(); 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 double nextDouble () { return Double.parseDouble(next()); } 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() { return (int) nextLong(); } public int[] nextIntArray(int N, boolean oneBased) { if (oneBased) { int[] array = new int[N + 1]; for (int i = 1; i <= N; i++) { array[i] = sc.nextInt(); } return array; } else { int[] array = new int[N]; for (int i = 0; i < N; i++) { array[i] = sc.nextInt(); } return array; } } public long[] nextLongArray(int N, boolean oneBased) { if (oneBased) { long[] array = new long[N + 1]; for (int i = 1; i <= N; i++) { array[i] = sc.nextLong(); } return array; } else { long[] array = new long[N]; for (int i = 0; i < N; i++) { array[i] = sc.nextLong(); } return array; } } } }
[ 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, 2, 13, 17, 17, 2, 13, 17, 0, 13, 4, 18, 13, 13, 41, 13, 2, 13, 4, 18, 13, 13, 41, 13, 2, 13, 4, 18, 13, 13, 41, 13, 2, 4, 18, 13, 2, 13, 13, 17, 4, 18, 13, 13, 17, 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 ], [ 100, 5 ], [ 100, 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 ], [ 41, 42 ], [ 41, 43 ], [ 38, 44 ], [ 37, 45 ], [ 45, 46 ], [ 45, 47 ], [ 8, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 8, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 8, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 8, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 76, 77 ], [ 76, 78 ], [ 73, 79 ], [ 72, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 80, 84 ], [ 8, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 8, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 6, 97 ], [ 97, 98 ], [ 0, 99 ], [ 99, 100 ], [ 99, 101 ] ]
[ "import java.util.Scanner;\n\npublic class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\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 deg = (double)(h+(double)m/60) * 30 - (double)m * 6 ;\n\n\t\tdeg = Math.toRadians(deg);\n\n\t\tdouble acos = a * Math.cos(deg);\n\t\tdouble asin = a * Math.sin(deg) ;\n\t\tdouble ans = Math.pow(b - acos, 2) + Math.pow(asin, 2);\n\t\tans = Math.sqrt(ans);\n\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\t{\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 deg = (double)(h+(double)m/60) * 30 - (double)m * 6 ;\n\n\t\tdeg = Math.toRadians(deg);\n\n\t\tdouble acos = a * Math.cos(deg);\n\t\tdouble asin = a * Math.sin(deg) ;\n\t\tdouble ans = Math.pow(b - acos, 2) + Math.pow(asin, 2);\n\t\tans = Math.sqrt(ans);\n\n\t\tSystem.out.println(ans);\n\t}\n}", "Main", "public static void main(String[] args)\n\t{\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 deg = (double)(h+(double)m/60) * 30 - (double)m * 6 ;\n\n\t\tdeg = Math.toRadians(deg);\n\n\t\tdouble acos = a * Math.cos(deg);\n\t\tdouble asin = a * Math.sin(deg) ;\n\t\tdouble ans = Math.pow(b - acos, 2) + Math.pow(asin, 2);\n\t\tans = Math.sqrt(ans);\n\n\t\tSystem.out.println(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\tsc.close();\n\t\tdouble deg = (double)(h+(double)m/60) * 30 - (double)m * 6 ;\n\n\t\tdeg = Math.toRadians(deg);\n\n\t\tdouble acos = a * Math.cos(deg);\n\t\tdouble asin = a * Math.sin(deg) ;\n\t\tdouble ans = Math.pow(b - acos, 2) + Math.pow(asin, 2);\n\t\tans = Math.sqrt(ans);\n\n\t\tSystem.out.println(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", "sc.close()", "sc.close", "sc", "double deg = (double)(h+(double)m/60) * 30 - (double)m * 6 ;", "deg", "(double)(h+(double)m/60) * 30 - (double)m * 6", "(double)(h+(double)m/60) * 30", "(double)(h+(double)m/60)", "h", "(double)m/60", "(double)m", "60", "30", "(double)m * 6", "(double)m", "6", "deg = Math.toRadians(deg)", "deg", "Math.toRadians(deg)", "Math.toRadians", "Math", "deg", "double acos = a * Math.cos(deg);", "acos", "a * Math.cos(deg)", "a", "Math.cos(deg)", "Math.cos", "Math", "deg", "double asin = a * Math.sin(deg) ;", "asin", "a * Math.sin(deg)", "a", "Math.sin(deg)", "Math.sin", "Math", "deg", "double ans = Math.pow(b - acos, 2) + Math.pow(asin, 2);", "ans", "Math.pow(b - acos, 2) + Math.pow(asin, 2)", "Math.pow(b - acos, 2)", "Math.pow", "Math", "b - acos", "b", "acos", "2", "Math.pow(asin, 2)", "Math.pow", "Math", "asin", "2", "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{\n\tpublic static void main(String[] args)\n\t{\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 deg = (double)(h+(double)m/60) * 30 - (double)m * 6 ;\n\n\t\tdeg = Math.toRadians(deg);\n\n\t\tdouble acos = a * Math.cos(deg);\n\t\tdouble asin = a * Math.sin(deg) ;\n\t\tdouble ans = Math.pow(b - acos, 2) + Math.pow(asin, 2);\n\t\tans = Math.sqrt(ans);\n\n\t\tSystem.out.println(ans);\n\t}\n}", "public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\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 deg = (double)(h+(double)m/60) * 30 - (double)m * 6 ;\n\n\t\tdeg = Math.toRadians(deg);\n\n\t\tdouble acos = a * Math.cos(deg);\n\t\tdouble asin = a * Math.sin(deg) ;\n\t\tdouble ans = Math.pow(b - acos, 2) + Math.pow(asin, 2);\n\t\tans = Math.sqrt(ans);\n\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); int a = sc.nextInt(); int b = sc.nextInt(); int h = sc.nextInt(); int m = sc.nextInt(); sc.close(); double deg = (double)(h+(double)m/60) * 30 - (double)m * 6 ; deg = Math.toRadians(deg); double acos = a * Math.cos(deg); double asin = a * Math.sin(deg) ; double ans = Math.pow(b - acos, 2) + Math.pow(asin, 2); ans = Math.sqrt(ans); System.out.println(ans); } }
[ 7, 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, 2, 2, 17, 13, 13, 2, 17, 17, 17, 41, 13, 2, 2, 13, 17, 17, 41, 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, 4, 18, 13, 4, 18, 13, 4, 18, 13, 13, 23, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 148, 17 ], [ 148, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 23, 25 ], [ 20, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 28, 30 ], [ 20, 31 ], [ 31, 32 ], [ 31, 33 ], [ 20, 34 ], [ 34, 35 ], [ 34, 36 ], [ 20, 37 ], [ 37, 38 ], [ 37, 39 ], [ 20, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 40, 44 ], [ 40, 45 ], [ 20, 46 ], [ 46, 47 ], [ 47, 48 ], [ 18, 49 ], [ 49, 50 ], [ 148, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 55, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 55, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 55, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 55, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 79, 85 ], [ 85, 86 ], [ 85, 87 ], [ 78, 88 ], [ 55, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 55, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 101, 102 ], [ 101, 103 ], [ 55, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 108, 112 ], [ 107, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 113, 117 ], [ 106, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 119, 123 ], [ 118, 124 ], [ 124, 125 ], [ 125, 126 ], [ 124, 127 ], [ 127, 128 ], [ 128, 129 ], [ 127, 130 ], [ 55, 131 ], [ 131, 132 ], [ 132, 133 ], [ 131, 134 ], [ 134, 135 ], [ 135, 136 ], [ 134, 137 ], [ 137, 138 ], [ 138, 139 ], [ 137, 140 ], [ 53, 141 ], [ 141, 142 ], [ 53, 143 ], [ 143, 144 ], [ 53, 145 ], [ 145, 146 ], [ 0, 147 ], [ 147, 148 ], [ 147, 149 ] ]
[ "import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Scanner;\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 Scanner in = new Scanner(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, Scanner in, PrintWriter out) {\n int longDistance = in.nextInt();\n int shortDistance = in.nextInt();\n int hour = in.nextInt();\n int minute = in.nextInt();\n\n double kakudo = ((double) (60 * hour + minute) / (60 * 12)) * 360;\n double kakudoShort = ((double) minute / 60) * 360;\n double diff = Math.abs(kakudo - kakudoShort);\n\n double ans = Math.pow(longDistance, 2) +\n Math.pow(shortDistance, 2) -\n (2 * longDistance * shortDistance * Math.cos(Math.toRadians(diff)));\n\n out.append(String.valueOf(Math.sqrt(ans)));\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.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(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, Scanner in, PrintWriter out) {\n int longDistance = in.nextInt();\n int shortDistance = in.nextInt();\n int hour = in.nextInt();\n int minute = in.nextInt();\n\n double kakudo = ((double) (60 * hour + minute) / (60 * 12)) * 360;\n double kakudoShort = ((double) minute / 60) * 360;\n double diff = Math.abs(kakudo - kakudoShort);\n\n double ans = Math.pow(longDistance, 2) +\n Math.pow(shortDistance, 2) -\n (2 * longDistance * shortDistance * Math.cos(Math.toRadians(diff)));\n\n out.append(String.valueOf(Math.sqrt(ans)));\n\n }\n\n }\n}", "Main", "public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(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 Scanner in = new Scanner(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", "Scanner in = new Scanner(inputStream);", "in", "new Scanner(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, Scanner in, PrintWriter out) {\n int longDistance = in.nextInt();\n int shortDistance = in.nextInt();\n int hour = in.nextInt();\n int minute = in.nextInt();\n\n double kakudo = ((double) (60 * hour + minute) / (60 * 12)) * 360;\n double kakudoShort = ((double) minute / 60) * 360;\n double diff = Math.abs(kakudo - kakudoShort);\n\n double ans = Math.pow(longDistance, 2) +\n Math.pow(shortDistance, 2) -\n (2 * longDistance * shortDistance * Math.cos(Math.toRadians(diff)));\n\n out.append(String.valueOf(Math.sqrt(ans)));\n\n }\n\n }", "C", "public void solve(int testNumber, Scanner in, PrintWriter out) {\n int longDistance = in.nextInt();\n int shortDistance = in.nextInt();\n int hour = in.nextInt();\n int minute = in.nextInt();\n\n double kakudo = ((double) (60 * hour + minute) / (60 * 12)) * 360;\n double kakudoShort = ((double) minute / 60) * 360;\n double diff = Math.abs(kakudo - kakudoShort);\n\n double ans = Math.pow(longDistance, 2) +\n Math.pow(shortDistance, 2) -\n (2 * longDistance * shortDistance * Math.cos(Math.toRadians(diff)));\n\n out.append(String.valueOf(Math.sqrt(ans)));\n\n }", "solve", "{\n int longDistance = in.nextInt();\n int shortDistance = in.nextInt();\n int hour = in.nextInt();\n int minute = in.nextInt();\n\n double kakudo = ((double) (60 * hour + minute) / (60 * 12)) * 360;\n double kakudoShort = ((double) minute / 60) * 360;\n double diff = Math.abs(kakudo - kakudoShort);\n\n double ans = Math.pow(longDistance, 2) +\n Math.pow(shortDistance, 2) -\n (2 * longDistance * shortDistance * Math.cos(Math.toRadians(diff)));\n\n out.append(String.valueOf(Math.sqrt(ans)));\n\n }", "int longDistance = in.nextInt();", "longDistance", "in.nextInt()", "in.nextInt", "in", "int shortDistance = in.nextInt();", "shortDistance", "in.nextInt()", "in.nextInt", "in", "int hour = in.nextInt();", "hour", "in.nextInt()", "in.nextInt", "in", "int minute = in.nextInt();", "minute", "in.nextInt()", "in.nextInt", "in", "double kakudo = ((double) (60 * hour + minute) / (60 * 12)) * 360;", "kakudo", "((double) (60 * hour + minute) / (60 * 12)) * 360", "((double) (60 * hour + minute) / (60 * 12))", "(double) (60 * hour + minute)", "60 * hour", "60", "hour", "minute", "(60 * 12)", "60", "12", "360", "double kakudoShort = ((double) minute / 60) * 360;", "kakudoShort", "((double) minute / 60) * 360", "((double) minute / 60)", "(double) minute", "60", "360", "double diff = Math.abs(kakudo - kakudoShort);", "diff", "Math.abs(kakudo - kakudoShort)", "Math.abs", "Math", "kakudo - kakudoShort", "kakudo", "kakudoShort", "double ans = Math.pow(longDistance, 2) +\n Math.pow(shortDistance, 2) -\n (2 * longDistance * shortDistance * Math.cos(Math.toRadians(diff)));", "ans", "Math.pow(longDistance, 2) +\n Math.pow(shortDistance, 2) -\n (2 * longDistance * shortDistance * Math.cos(Math.toRadians(diff)))", "Math.pow(longDistance, 2) +\n Math.pow(shortDistance, 2)", "Math.pow(longDistance, 2)", "Math.pow", "Math", "longDistance", "2", "Math.pow(shortDistance, 2)", "Math.pow", "Math", "shortDistance", "2", "(2 * longDistance * shortDistance * Math.cos(Math.toRadians(diff)))", "shortDistance", "2 * longDistance * shortDistance * Math.cos(Math.toRadians(diff))", "2", "longDistance", "shortDistance", "Math.cos(Math.toRadians(diff))", "Math.cos", "Math", "Math.toRadians(diff)", "Math.toRadians", "Math", "diff", "out.append(String.valueOf(Math.sqrt(ans)))", "out.append", "out", "String.valueOf(Math.sqrt(ans))", "String.valueOf", "String", "Math.sqrt(ans)", "Math.sqrt", "Math", "ans", "int testNumber", "testNumber", "Scanner in", "in", "PrintWriter out", "out", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(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, Scanner in, PrintWriter out) {\n int longDistance = in.nextInt();\n int shortDistance = in.nextInt();\n int hour = in.nextInt();\n int minute = in.nextInt();\n\n double kakudo = ((double) (60 * hour + minute) / (60 * 12)) * 360;\n double kakudoShort = ((double) minute / 60) * 360;\n double diff = Math.abs(kakudo - kakudoShort);\n\n double ans = Math.pow(longDistance, 2) +\n Math.pow(shortDistance, 2) -\n (2 * longDistance * shortDistance * Math.cos(Math.toRadians(diff)));\n\n out.append(String.valueOf(Math.sqrt(ans)));\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 Scanner in = new Scanner(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, Scanner in, PrintWriter out) {\n int longDistance = in.nextInt();\n int shortDistance = in.nextInt();\n int hour = in.nextInt();\n int minute = in.nextInt();\n\n double kakudo = ((double) (60 * hour + minute) / (60 * 12)) * 360;\n double kakudoShort = ((double) minute / 60) * 360;\n double diff = Math.abs(kakudo - kakudoShort);\n\n double ans = Math.pow(longDistance, 2) +\n Math.pow(shortDistance, 2) -\n (2 * longDistance * shortDistance * Math.cos(Math.toRadians(diff)));\n\n out.append(String.valueOf(Math.sqrt(ans)));\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.Scanner; /** * 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; Scanner in = new Scanner(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, Scanner in, PrintWriter out) { int longDistance = in.nextInt(); int shortDistance = in.nextInt(); int hour = in.nextInt(); int minute = in.nextInt(); double kakudo = ((double) (60 * hour + minute) / (60 * 12)) * 360; double kakudoShort = ((double) minute / 60) * 360; double diff = Math.abs(kakudo - kakudoShort); double ans = Math.pow(longDistance, 2) + Math.pow(shortDistance, 2) - (2 * longDistance * shortDistance * Math.cos(Math.toRadians(diff))); out.append(String.valueOf(Math.sqrt(ans))); } } }
[ 7, 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, 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, 13, 17, 17, 41, 13, 2, 2, 2, 2, 13, 17, 13, 17, 2, 17, 17, 41, 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, 2, 13, 2, 18, 13, 13, 17, 4, 18, 13, 17, 13, 23, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 163, 17 ], [ 163, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 23, 25 ], [ 20, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 28, 30 ], [ 20, 31 ], [ 31, 32 ], [ 31, 33 ], [ 20, 34 ], [ 34, 35 ], [ 34, 36 ], [ 20, 37 ], [ 37, 38 ], [ 37, 39 ], [ 20, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 40, 44 ], [ 40, 45 ], [ 20, 46 ], [ 46, 47 ], [ 47, 48 ], [ 18, 49 ], [ 49, 50 ], [ 163, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 61, 62 ], [ 62, 63 ], [ 55, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 69, 70 ], [ 70, 71 ], [ 55, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 78, 79 ], [ 55, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 85, 86 ], [ 86, 87 ], [ 55, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 55, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 98, 104 ], [ 97, 105 ], [ 105, 106 ], [ 105, 107 ], [ 55, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 110, 112 ], [ 55, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 119, 121 ], [ 55, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 125, 126 ], [ 124, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 132 ], [ 132, 133 ], [ 132, 134 ], [ 127, 135 ], [ 137, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 136, 140 ], [ 137, 141 ], [ 141, 142 ], [ 142, 143 ], [ 141, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 146, 150 ], [ 55, 151 ], [ 151, 152 ], [ 152, 153 ], [ 151, 154 ], [ 151, 155 ], [ 53, 156 ], [ 156, 157 ], [ 53, 158 ], [ 158, 159 ], [ 53, 160 ], [ 160, 161 ], [ 0, 162 ], [ 162, 163 ], [ 162, 164 ] ]
[ "import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Scanner;\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 Scanner in = new Scanner(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, Scanner in, PrintWriter out) {\n // ๅ…ฅๅŠ›\n int a = Integer.parseInt(in.next());\n int b = Integer.parseInt(in.next());\n int h = Integer.parseInt(in.next());\n int m = Integer.parseInt(in.next());\n\n double rect_l = m * 360.0 / 60.0; //้•ท้‡\n double rect_s = (h * 60.0 + m) * 360.0 / (12.0 * 60.0); //็Ÿญ้‡\n double diff = rect_s - rect_l;\n if (diff > 180) diff = 360 - diff;\n double ans = Math.sqrt((a * a) + (b * b) - 2 * a * b * Math.cos(diff * (Math.PI / 180.0)));\n // ๅ‡บๅŠ›\n out.printf(\"%.13f\\n\", ans);\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.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(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, Scanner in, PrintWriter out) {\n // ๅ…ฅๅŠ›\n int a = Integer.parseInt(in.next());\n int b = Integer.parseInt(in.next());\n int h = Integer.parseInt(in.next());\n int m = Integer.parseInt(in.next());\n\n double rect_l = m * 360.0 / 60.0; //้•ท้‡\n double rect_s = (h * 60.0 + m) * 360.0 / (12.0 * 60.0); //็Ÿญ้‡\n double diff = rect_s - rect_l;\n if (diff > 180) diff = 360 - diff;\n double ans = Math.sqrt((a * a) + (b * b) - 2 * a * b * Math.cos(diff * (Math.PI / 180.0)));\n // ๅ‡บๅŠ›\n out.printf(\"%.13f\\n\", ans);\n\n }\n\n }\n}", "Main", "public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(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 Scanner in = new Scanner(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", "Scanner in = new Scanner(inputStream);", "in", "new Scanner(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, Scanner in, PrintWriter out) {\n // ๅ…ฅๅŠ›\n int a = Integer.parseInt(in.next());\n int b = Integer.parseInt(in.next());\n int h = Integer.parseInt(in.next());\n int m = Integer.parseInt(in.next());\n\n double rect_l = m * 360.0 / 60.0; //้•ท้‡\n double rect_s = (h * 60.0 + m) * 360.0 / (12.0 * 60.0); //็Ÿญ้‡\n double diff = rect_s - rect_l;\n if (diff > 180) diff = 360 - diff;\n double ans = Math.sqrt((a * a) + (b * b) - 2 * a * b * Math.cos(diff * (Math.PI / 180.0)));\n // ๅ‡บๅŠ›\n out.printf(\"%.13f\\n\", ans);\n\n }\n\n }", "C", "public void solve(int testNumber, Scanner in, PrintWriter out) {\n // ๅ…ฅๅŠ›\n int a = Integer.parseInt(in.next());\n int b = Integer.parseInt(in.next());\n int h = Integer.parseInt(in.next());\n int m = Integer.parseInt(in.next());\n\n double rect_l = m * 360.0 / 60.0; //้•ท้‡\n double rect_s = (h * 60.0 + m) * 360.0 / (12.0 * 60.0); //็Ÿญ้‡\n double diff = rect_s - rect_l;\n if (diff > 180) diff = 360 - diff;\n double ans = Math.sqrt((a * a) + (b * b) - 2 * a * b * Math.cos(diff * (Math.PI / 180.0)));\n // ๅ‡บๅŠ›\n out.printf(\"%.13f\\n\", ans);\n\n }", "solve", "{\n // ๅ…ฅๅŠ›\n int a = Integer.parseInt(in.next());\n int b = Integer.parseInt(in.next());\n int h = Integer.parseInt(in.next());\n int m = Integer.parseInt(in.next());\n\n double rect_l = m * 360.0 / 60.0; //้•ท้‡\n double rect_s = (h * 60.0 + m) * 360.0 / (12.0 * 60.0); //็Ÿญ้‡\n double diff = rect_s - rect_l;\n if (diff > 180) diff = 360 - diff;\n double ans = Math.sqrt((a * a) + (b * b) - 2 * a * b * Math.cos(diff * (Math.PI / 180.0)));\n // ๅ‡บๅŠ›\n out.printf(\"%.13f\\n\", ans);\n\n }", "int a = Integer.parseInt(in.next());", "a", "Integer.parseInt(in.next())", "Integer.parseInt", "Integer", "in.next()", "in.next", "in", "int b = Integer.parseInt(in.next());", "b", "Integer.parseInt(in.next())", "Integer.parseInt", "Integer", "in.next()", "in.next", "in", "int h = Integer.parseInt(in.next());", "h", "Integer.parseInt(in.next())", "Integer.parseInt", "Integer", "in.next()", "in.next", "in", "int m = Integer.parseInt(in.next());", "m", "Integer.parseInt(in.next())", "Integer.parseInt", "Integer", "in.next()", "in.next", "in", "double rect_l = m * 360.0 / 60.0;", "rect_l", "m * 360.0 / 60.0", "m * 360.0", "m", "360.0", "60.0", "double rect_s = (h * 60.0 + m) * 360.0 / (12.0 * 60.0);", "rect_s", "(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 diff = rect_s - rect_l;", "diff", "rect_s - rect_l", "rect_s", "rect_l", "if (diff > 180) diff = 360 - diff;", "diff > 180", "diff", "180", "diff = 360 - diff", "diff", "360 - diff", "360", "diff", "double ans = Math.sqrt((a * a) + (b * b) - 2 * a * b * Math.cos(diff * (Math.PI / 180.0)));", "ans", "Math.sqrt((a * a) + (b * b) - 2 * a * b * Math.cos(diff * (Math.PI / 180.0)))", "Math.sqrt", "Math", "(a * a) + (b * b) - 2 * a * b * Math.cos(diff * (Math.PI / 180.0))", "(a * a) + (b * b)", "(a * a)", "a", "a", "(b * b)", "b", "b", "2 * a * b * Math.cos(diff * (Math.PI / 180.0))", "b", "2 * a * b * Math.cos(diff * (Math.PI / 180.0))", "2", "a", "b", "Math.cos(diff * (Math.PI / 180.0))", "Math.cos", "Math", "diff * (Math.PI / 180.0)", "diff", "(Math.PI / 180.0)", "Math.PI", "Math", "Math.PI", "180.0", "out.printf(\"%.13f\\n\", ans)", "out.printf", "out", "\"%.13f\\n\"", "ans", "int testNumber", "testNumber", "Scanner in", "in", "PrintWriter out", "out", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(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, Scanner in, PrintWriter out) {\n // ๅ…ฅๅŠ›\n int a = Integer.parseInt(in.next());\n int b = Integer.parseInt(in.next());\n int h = Integer.parseInt(in.next());\n int m = Integer.parseInt(in.next());\n\n double rect_l = m * 360.0 / 60.0; //้•ท้‡\n double rect_s = (h * 60.0 + m) * 360.0 / (12.0 * 60.0); //็Ÿญ้‡\n double diff = rect_s - rect_l;\n if (diff > 180) diff = 360 - diff;\n double ans = Math.sqrt((a * a) + (b * b) - 2 * a * b * Math.cos(diff * (Math.PI / 180.0)));\n // ๅ‡บๅŠ›\n out.printf(\"%.13f\\n\", ans);\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 Scanner in = new Scanner(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, Scanner in, PrintWriter out) {\n // ๅ…ฅๅŠ›\n int a = Integer.parseInt(in.next());\n int b = Integer.parseInt(in.next());\n int h = Integer.parseInt(in.next());\n int m = Integer.parseInt(in.next());\n\n double rect_l = m * 360.0 / 60.0; //้•ท้‡\n double rect_s = (h * 60.0 + m) * 360.0 / (12.0 * 60.0); //็Ÿญ้‡\n double diff = rect_s - rect_l;\n if (diff > 180) diff = 360 - diff;\n double ans = Math.sqrt((a * a) + (b * b) - 2 * a * b * Math.cos(diff * (Math.PI / 180.0)));\n // ๅ‡บๅŠ›\n out.printf(\"%.13f\\n\", ans);\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.Scanner; /** * 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; Scanner in = new Scanner(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, Scanner in, PrintWriter out) { // ๅ…ฅๅŠ› int a = Integer.parseInt(in.next()); int b = Integer.parseInt(in.next()); int h = Integer.parseInt(in.next()); int m = Integer.parseInt(in.next()); double rect_l = m * 360.0 / 60.0; //้•ท้‡ double rect_s = (h * 60.0 + m) * 360.0 / (12.0 * 60.0); //็Ÿญ้‡ double diff = rect_s - rect_l; if (diff > 180) diff = 360 - diff; double ans = Math.sqrt((a * a) + (b * b) - 2 * a * b * Math.cos(diff * (Math.PI / 180.0))); // ๅ‡บๅŠ› out.printf("%.13f\n", 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, 13, 17, 2, 13, 17, 41, 13, 4, 18, 13, 2, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 17, 13, 0, 13, 17, 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, 4, 18, 18, 13, 13, 4, 18, 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 ], [ 33, 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 ], [ 47, 48 ], [ 46, 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 ], [ 8, 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 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 8, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 6, 101 ], [ 101, 102 ], [ 0, 103 ], [ 103, 104 ], [ 103, 105 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\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 sc.nextLine();\n\n double t = (double) H*5 + (double) M/12;\n double sa = Math.abs(t - M);\n\n if (sa > 30) {\n sa = 60 - sa;\n }\n\n sa *= 6.0;\n\n double ans = Math.pow(A, 2) + Math.pow(B, 2) - 2.0 * A * B * Math.cos(Math.toRadians(sa));\n\n System.out.println(Math.sqrt(ans));\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 \n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n sc.nextLine();\n\n double t = (double) H*5 + (double) M/12;\n double sa = Math.abs(t - M);\n\n if (sa > 30) {\n sa = 60 - sa;\n }\n\n sa *= 6.0;\n\n double ans = Math.pow(A, 2) + Math.pow(B, 2) - 2.0 * A * B * Math.cos(Math.toRadians(sa));\n\n System.out.println(Math.sqrt(ans));\n }\n}", "Main", "public static void main(String[] args) {\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 sc.nextLine();\n\n double t = (double) H*5 + (double) M/12;\n double sa = Math.abs(t - M);\n\n if (sa > 30) {\n sa = 60 - sa;\n }\n\n sa *= 6.0;\n\n double ans = Math.pow(A, 2) + Math.pow(B, 2) - 2.0 * A * B * Math.cos(Math.toRadians(sa));\n\n System.out.println(Math.sqrt(ans));\n }", "main", "{\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 sc.nextLine();\n\n double t = (double) H*5 + (double) M/12;\n double sa = Math.abs(t - M);\n\n if (sa > 30) {\n sa = 60 - sa;\n }\n\n sa *= 6.0;\n\n double ans = Math.pow(A, 2) + Math.pow(B, 2) - 2.0 * A * B * Math.cos(Math.toRadians(sa));\n\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", "sc.nextLine()", "sc.nextLine", "sc", "double t = (double) H*5 + (double) M/12;", "t", "(double) H*5 + (double) M/12", "(double) H*5", "(double) H", "5", "(double) M/12", "(double) M", "12", "double sa = Math.abs(t - M);", "sa", "Math.abs(t - M)", "Math.abs", "Math", "t - M", "t", "M", "if (sa > 30) {\n sa = 60 - sa;\n }", "sa > 30", "sa", "30", "{\n sa = 60 - sa;\n }", "sa = 60 - sa", "sa", "60 - sa", "60", "sa", "sa *= 6.0", "sa", "6.0", "double ans = Math.pow(A, 2) + Math.pow(B, 2) - 2.0 * A * B * Math.cos(Math.toRadians(sa));", "ans", "Math.pow(A, 2) + Math.pow(B, 2) - 2.0 * A * B * Math.cos(Math.toRadians(sa))", "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(sa))", "B", "2.0 * A * B * Math.cos(Math.toRadians(sa))", "2.0", "A", "B", "Math.cos(Math.toRadians(sa))", "Math.cos", "Math", "Math.toRadians(sa)", "Math.toRadians", "Math", "sa", "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 \n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n sc.nextLine();\n\n double t = (double) H*5 + (double) M/12;\n double sa = Math.abs(t - M);\n\n if (sa > 30) {\n sa = 60 - sa;\n }\n\n sa *= 6.0;\n\n double ans = Math.pow(A, 2) + Math.pow(B, 2) - 2.0 * A * B * Math.cos(Math.toRadians(sa));\n\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 \n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n sc.nextLine();\n\n double t = (double) H*5 + (double) M/12;\n double sa = Math.abs(t - M);\n\n if (sa > 30) {\n sa = 60 - sa;\n }\n\n sa *= 6.0;\n\n double ans = Math.pow(A, 2) + Math.pow(B, 2) - 2.0 * A * B * Math.cos(Math.toRadians(sa));\n\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(); sc.nextLine(); double t = (double) H*5 + (double) M/12; double sa = Math.abs(t - M); if (sa > 30) { sa = 60 - sa; } sa *= 6.0; double ans = Math.pow(A, 2) + Math.pow(B, 2) - 2.0 * A * B * Math.cos(Math.toRadians(sa)); System.out.println(Math.sqrt(ans)); } }
[ 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, 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, 2, 2, 13, 17, 13, 18, 13, 13, 17, 41, 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, 4, 18, 13, 2, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 142, 20 ], [ 142, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 26, 28 ], [ 23, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 31, 33 ], [ 23, 34 ], [ 34, 35 ], [ 34, 36 ], [ 23, 37 ], [ 37, 38 ], [ 37, 39 ], [ 23, 40 ], [ 40, 41 ], [ 40, 42 ], [ 23, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 43, 47 ], [ 43, 48 ], [ 23, 49 ], [ 49, 50 ], [ 50, 51 ], [ 21, 52 ], [ 52, 53 ], [ 142, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 58, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 58, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 58, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 58, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 82, 88 ], [ 88, 89 ], [ 88, 90 ], [ 81, 91 ], [ 58, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 97, 99 ], [ 94, 100 ], [ 58, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 104, 108 ], [ 108, 109 ], [ 108, 110 ], [ 103, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 111, 117 ], [ 117, 118 ], [ 118, 119 ], [ 117, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 123, 124 ], [ 123, 125 ], [ 58, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 131, 132 ], [ 132, 133 ], [ 131, 134 ], [ 56, 135 ], [ 135, 136 ], [ 56, 137 ], [ 137, 138 ], [ 56, 139 ], [ 139, 140 ], [ 0, 141 ], [ 141, 142 ], [ 141, 143 ] ]
[ "import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.io.PrintStream;\nimport java.util.Scanner;\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 Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class B {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int A = in.nextInt();\n int B = in.nextInt();\n int H = in.nextInt();\n int M = in.nextInt();\n\n double angleA = (H * 60 + M) * Math.PI / 360;\n double angleB = (M * Math.PI) / 30;\n double C = A * A + B * B - (2 * A * B * Math.cos(Math.abs(angleA - angleB)));\n System.out.println(Math.sqrt(C));\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.io.PrintStream;", "PrintStream", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class B {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int A = in.nextInt();\n int B = in.nextInt();\n int H = in.nextInt();\n int M = in.nextInt();\n\n double angleA = (H * 60 + M) * Math.PI / 360;\n double angleB = (M * Math.PI) / 30;\n double C = A * A + B * B - (2 * A * B * Math.cos(Math.abs(angleA - angleB)));\n System.out.println(Math.sqrt(C));\n }\n\n }\n}", "Main", "public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }", "main", "{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\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", "Scanner in = new Scanner(inputStream);", "in", "new Scanner(inputStream)", "PrintWriter out = new PrintWriter(outputStream);", "out", "new PrintWriter(outputStream)", "B solver = new B();", "solver", "new B()", "solver.solve(1, in, out)", "solver.solve", "solver", "1", "in", "out", "out.close()", "out.close", "out", "String[] args", "args", "static class B {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int A = in.nextInt();\n int B = in.nextInt();\n int H = in.nextInt();\n int M = in.nextInt();\n\n double angleA = (H * 60 + M) * Math.PI / 360;\n double angleB = (M * Math.PI) / 30;\n double C = A * A + B * B - (2 * A * B * Math.cos(Math.abs(angleA - angleB)));\n System.out.println(Math.sqrt(C));\n }\n\n }", "B", "public void solve(int testNumber, Scanner in, PrintWriter out) {\n int A = in.nextInt();\n int B = in.nextInt();\n int H = in.nextInt();\n int M = in.nextInt();\n\n double angleA = (H * 60 + M) * Math.PI / 360;\n double angleB = (M * Math.PI) / 30;\n double C = A * A + B * B - (2 * A * B * Math.cos(Math.abs(angleA - angleB)));\n System.out.println(Math.sqrt(C));\n }", "solve", "{\n int A = in.nextInt();\n int B = in.nextInt();\n int H = in.nextInt();\n int M = in.nextInt();\n\n double angleA = (H * 60 + M) * Math.PI / 360;\n double angleB = (M * Math.PI) / 30;\n double C = A * A + B * B - (2 * A * B * Math.cos(Math.abs(angleA - angleB)));\n System.out.println(Math.sqrt(C));\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 angleA = (H * 60 + M) * Math.PI / 360;", "angleA", "(H * 60 + M) * Math.PI / 360", "(H * 60 + M) * Math.PI", "(H * 60 + M)", "H * 60", "H", "60", "M", "Math.PI", "Math", "Math.PI", "360", "double angleB = (M * Math.PI) / 30;", "angleB", "(M * Math.PI) / 30", "(M * Math.PI)", "M", "Math.PI", "Math", "Math.PI", "30", "double C = A * A + B * B - (2 * A * B * Math.cos(Math.abs(angleA - angleB)));", "C", "A * A + B * B - (2 * A * B * Math.cos(Math.abs(angleA - angleB)))", "A * A + B * B", "A * A", "A", "A", "B * B", "B", "B", "(2 * A * B * Math.cos(Math.abs(angleA - angleB)))", "B", "2 * A * B * Math.cos(Math.abs(angleA - angleB))", "2", "A", "B", "Math.cos(Math.abs(angleA - angleB))", "Math.cos", "Math", "Math.abs(angleA - angleB)", "Math.abs", "Math", "angleA - angleB", "angleA", "angleB", "System.out.println(Math.sqrt(C))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(C)", "Math.sqrt", "Math", "C", "int testNumber", "testNumber", "Scanner in", "in", "PrintWriter out", "out", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class B {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int A = in.nextInt();\n int B = in.nextInt();\n int H = in.nextInt();\n int M = in.nextInt();\n\n double angleA = (H * 60 + M) * Math.PI / 360;\n double angleB = (M * Math.PI) / 30;\n double C = A * A + B * B - (2 * A * B * Math.cos(Math.abs(angleA - angleB)));\n System.out.println(Math.sqrt(C));\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 Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class B {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int A = in.nextInt();\n int B = in.nextInt();\n int H = in.nextInt();\n int M = in.nextInt();\n\n double angleA = (H * 60 + M) * Math.PI / 360;\n double angleB = (M * Math.PI) / 30;\n double C = A * A + B * B - (2 * A * B * Math.cos(Math.abs(angleA - angleB)));\n System.out.println(Math.sqrt(C));\n }\n\n }\n}", "Main" ]
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.io.PrintStream; import java.util.Scanner; /** * 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; Scanner in = new Scanner(inputStream); PrintWriter out = new PrintWriter(outputStream); B solver = new B(); solver.solve(1, in, out); out.close(); } static class B { public void solve(int testNumber, Scanner in, PrintWriter out) { int A = in.nextInt(); int B = in.nextInt(); int H = in.nextInt(); int M = in.nextInt(); double angleA = (H * 60 + M) * Math.PI / 360; double angleB = (M * Math.PI) / 30; double C = A * A + B * B - (2 * A * B * Math.cos(Math.abs(angleA - angleB))); System.out.println(Math.sqrt(C)); } } }
[ 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, 18, 13, 13, 41, 13, 18, 13, 13, 41, 13, 18, 13, 13, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 17, 42, 2, 40, 13, 17, 30, 4, 13, 41, 13, 4, 18, 13, 4, 18, 13, 2, 2, 17, 2, 2, 13, 13, 17, 17, 4, 13, 17, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 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, 13, 2, 13, 13, 29, 14, 2, 13, 17, 30, 4, 18, 13, 4, 18, 13, 2, 13, 13, 29, 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, 13, 17, 13, 12, 13, 30, 28, 13, 13, 30, 30, 4, 18, 13, 13, 23, 13, 12, 13, 30, 4, 18, 13, 17, 12, 13, 30, 4, 18, 13, 17, 12, 13, 30, 4, 18, 13, 4, 18, 13, 4, 18, 13, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 0, 13, 17, 23, 13, 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, 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, 2, 13, 13, 11, 1, 41, 13, 13, 2, 13, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 29, 13, 23, 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, 2, 13, 13, 11, 1, 41, 13, 13, 2, 13, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 29, 13, 23, 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 ], [ 459, 23 ], [ 459, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 26, 28 ], [ 459, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 31, 33 ], [ 459, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 36, 38 ], [ 459, 39 ], [ 39, 40 ], [ 39, 41 ], [ 459, 42 ], [ 42, 43 ], [ 42, 44 ], [ 459, 45 ], [ 45, 46 ], [ 45, 47 ], [ 459, 48 ], [ 48, 49 ], [ 48, 50 ], [ 459, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 53, 59 ], [ 59, 60 ], [ 59, 61 ], [ 53, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 62, 67 ], [ 67, 68 ], [ 68, 69 ], [ 53, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 53, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 79, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 79, 86 ], [ 53, 87 ], [ 87, 88 ], [ 87, 89 ], [ 51, 90 ], [ 90, 91 ], [ 459, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 94, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 94, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 94, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 113, 114 ], [ 94, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 121, 122 ], [ 121, 123 ], [ 94, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 126, 128 ], [ 94, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 132, 133 ], [ 131, 134 ], [ 134, 135 ], [ 134, 136 ], [ 94, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 137, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 142, 145 ], [ 145, 146 ], [ 145, 147 ], [ 141, 148 ], [ 94, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 149, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 154, 157 ], [ 157, 158 ], [ 158, 159 ], [ 157, 160 ], [ 160, 161 ], [ 160, 162 ], [ 153, 163 ], [ 94, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 164, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 171, 172 ], [ 171, 173 ], [ 94, 174 ], [ 174, 175 ], [ 174, 176 ], [ 176, 177 ], [ 177, 178 ], [ 176, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 180, 184 ], [ 184, 185 ], [ 184, 186 ], [ 179, 187 ], [ 189, 188 ], [ 188, 189 ], [ 189, 190 ], [ 189, 191 ], [ 188, 192 ], [ 189, 193 ], [ 193, 194 ], [ 194, 195 ], [ 193, 196 ], [ 196, 197 ], [ 197, 198 ], [ 197, 199 ], [ 199, 200 ], [ 199, 201 ], [ 196, 202 ], [ 94, 203 ], [ 203, 204 ], [ 204, 205 ], [ 203, 206 ], [ 203, 207 ], [ 459, 208 ], [ 208, 209 ], [ 208, 210 ], [ 210, 211 ], [ 211, 212 ], [ 211, 213 ], [ 211, 214 ], [ 215, 215 ], [ 215, 216 ], [ 216, 217 ], [ 217, 218 ], [ 216, 219 ], [ 208, 220 ], [ 220, 221 ], [ 459, 222 ], [ 222, 223 ], [ 222, 224 ], [ 224, 225 ], [ 225, 226 ], [ 226, 227 ], [ 225, 228 ], [ 459, 229 ], [ 229, 230 ], [ 229, 231 ], [ 231, 232 ], [ 232, 233 ], [ 233, 234 ], [ 232, 235 ], [ 459, 236 ], [ 236, 237 ], [ 236, 238 ], [ 238, 239 ], [ 239, 240 ], [ 240, 241 ], [ 238, 242 ], [ 242, 243 ], [ 243, 244 ], [ 238, 245 ], [ 245, 246 ], [ 246, 247 ], [ 245, 248 ], [ 236, 249 ], [ 249, 250 ], [ 459, 251 ], [ 251, 252 ], [ 251, 253 ], [ 253, 254 ], [ 251, 255 ], [ 255, 256 ], [ 251, 257 ], [ 257, 258 ], [ 257, 259 ], [ 259, 260 ], [ 260, 261 ], [ 260, 262 ], [ 259, 263 ], [ 263, 264 ], [ 263, 265 ], [ 257, 266 ], [ 266, 267 ], [ 251, 268 ], [ 268, 269 ], [ 268, 270 ], [ 270, 271 ], [ 271, 272 ], [ 272, 273 ], [ 273, 274 ], [ 273, 275 ], [ 272, 276 ], [ 276, 277 ], [ 277, 278 ], [ 278, 279 ], [ 271, 280 ], [ 280, 281 ], [ 281, 282 ], [ 282, 283 ], [ 282, 284 ], [ 284, 285 ], [ 285, 286 ], [ 281, 287 ], [ 287, 288 ], [ 288, 289 ], [ 288, 290 ], [ 270, 291 ], [ 291, 292 ], [ 292, 293 ], [ 293, 294 ], [ 251, 295 ], [ 295, 296 ], [ 295, 297 ], [ 297, 298 ], [ 298, 299 ], [ 299, 300 ], [ 300, 301 ], [ 299, 302 ], [ 302, 303 ], [ 251, 304 ], [ 304, 305 ], [ 304, 306 ], [ 306, 307 ], [ 307, 308 ], [ 308, 309 ], [ 309, 310 ], [ 308, 311 ], [ 311, 312 ], [ 251, 313 ], [ 313, 314 ], [ 313, 315 ], [ 315, 316 ], [ 316, 317 ], [ 316, 318 ], [ 315, 320 ], [ 320, 321 ], [ 321, 322 ], [ 322, 323 ], [ 322, 324 ], [ 320, 325 ], [ 325, 326 ], [ 325, 327 ], [ 320, 328 ], [ 328, 329 ], [ 329, 330 ], [ 320, 331 ], [ 332, 332 ], [ 332, 333 ], [ 333, 334 ], [ 334, 335 ], [ 334, 336 ], [ 333, 337 ], [ 337, 338 ], [ 338, 339 ], [ 315, 340 ], [ 340, 341 ], [ 313, 342 ], [ 342, 343 ], [ 251, 344 ], [ 344, 345 ], [ 344, 346 ], [ 346, 347 ], [ 347, 348 ], [ 347, 349 ], [ 350, 351 ], [ 350, 352 ], [ 346, 353 ], [ 353, 354 ], [ 354, 355 ], [ 355, 356 ], [ 355, 357 ], [ 353, 358 ], [ 358, 359 ], [ 358, 360 ], [ 360, 361 ], [ 360, 362 ], [ 353, 363 ], [ 363, 364 ], [ 364, 365 ], [ 353, 366 ], [ 367, 367 ], [ 367, 368 ], [ 368, 369 ], [ 369, 370 ], [ 369, 371 ], [ 368, 372 ], [ 372, 373 ], [ 373, 374 ], [ 346, 375 ], [ 375, 376 ], [ 344, 377 ], [ 377, 378 ], [ 344, 379 ], [ 379, 380 ], [ 251, 381 ], [ 381, 382 ], [ 381, 383 ], [ 383, 384 ], [ 384, 385 ], [ 384, 386 ], [ 383, 388 ], [ 388, 389 ], [ 389, 390 ], [ 390, 391 ], [ 390, 392 ], [ 388, 393 ], [ 393, 394 ], [ 393, 395 ], [ 388, 396 ], [ 396, 397 ], [ 397, 398 ], [ 388, 399 ], [ 400, 400 ], [ 400, 401 ], [ 401, 402 ], [ 402, 403 ], [ 402, 404 ], [ 401, 405 ], [ 405, 406 ], [ 406, 407 ], [ 383, 408 ], [ 408, 409 ], [ 381, 410 ], [ 410, 411 ], [ 251, 412 ], [ 412, 413 ], [ 412, 414 ], [ 414, 415 ], [ 415, 416 ], [ 415, 417 ], [ 418, 419 ], [ 418, 420 ], [ 414, 421 ], [ 421, 422 ], [ 422, 423 ], [ 423, 424 ], [ 423, 425 ], [ 421, 426 ], [ 426, 427 ], [ 426, 428 ], [ 428, 429 ], [ 428, 430 ], [ 421, 431 ], [ 431, 432 ], [ 432, 433 ], [ 421, 434 ], [ 435, 435 ], [ 435, 436 ], [ 436, 437 ], [ 437, 438 ], [ 437, 439 ], [ 436, 440 ], [ 440, 441 ], [ 441, 442 ], [ 414, 443 ], [ 443, 444 ], [ 412, 445 ], [ 445, 446 ], [ 412, 447 ], [ 447, 448 ], [ 251, 449 ], [ 449, 450 ], [ 449, 451 ], [ 451, 452 ], [ 452, 453 ], [ 453, 454 ], [ 454, 455 ], [ 453, 456 ], [ 456, 457 ], [ 0, 458 ], [ 458, 459 ], [ 458, 460 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n public static void main(String[] args) throws Exception {\n long startTime = System.nanoTime();\n int t = 1;\n while (t-- > 0) {\n solve();\n }\n long endTime = System.nanoTime();\n err.println(\"Execution Time : +\" + (endTime - startTime) / 1000000 + \" ms\");\n exit(0);\n }\n\n static void solve() {\n double A = in.nextInt();\n double B = in.nextInt();\n int H = in.nextInt();\n double Y = in.nextInt();\n double a1 = H * 30 + Y * .5;\n double b1 = Y * 6;\n double angle = Math.abs(a1 - b1);\n if (angle == 180) {\n out.println((A + B));\n return;\n }\n if (angle == 0) {\n out.println(Math.abs(A - B));\n return;\n }\n if (angle > 180) {\n angle = 360 - angle;\n }\n double ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(angle * Math.PI / 180));\n out.printf(\"%.9f\\n\", ans);\n }\n\n static void debug(Object... args) {\n for (Object a : args) {\n out.println(a);\n }\n }\n\n static void y() {\n out.println(\"YES\");\n }\n\n static void n() {\n out.println(\"NO\");\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] readAllInts(int n) {\n int[] p = new int[n];\n for (int i = 0; i < n; i++) {\n p[i] = in.nextInt();\n }\n return p;\n }\n\n public int[] readAllInts(int n, int s) {\n int[] p = new int[n + s];\n for (int i = s; i < n + s; i++) {\n p[i] = in.nextInt();\n }\n return p;\n }\n\n public long[] readAllLongs(int n) {\n long[] p = new long[n];\n for (int i = 0; i < n; i++) {\n p[i] = in.nextInt();\n }\n return p;\n }\n\n public long[] readAllLongs(int n, int s) {\n long[] p = new long[n + s];\n for (int i = s; i < n + s; i++) {\n p[i] = in.nextInt();\n }\n return p;\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n }\n\n static void exit(int a) {\n out.close();\n err.close();\n System.exit(a);\n }\n\n static InputStream inputStream = System.in;\n static OutputStream outputStream = System.out;\n static OutputStream errStream = System.err;\n static InputReader in = new InputReader(inputStream);\n static PrintWriter out = new PrintWriter(outputStream);\n static PrintWriter err = new PrintWriter(errStream);\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.OutputStream;", "OutputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n\n public static void main(String[] args) throws Exception {\n long startTime = System.nanoTime();\n int t = 1;\n while (t-- > 0) {\n solve();\n }\n long endTime = System.nanoTime();\n err.println(\"Execution Time : +\" + (endTime - startTime) / 1000000 + \" ms\");\n exit(0);\n }\n\n static void solve() {\n double A = in.nextInt();\n double B = in.nextInt();\n int H = in.nextInt();\n double Y = in.nextInt();\n double a1 = H * 30 + Y * .5;\n double b1 = Y * 6;\n double angle = Math.abs(a1 - b1);\n if (angle == 180) {\n out.println((A + B));\n return;\n }\n if (angle == 0) {\n out.println(Math.abs(A - B));\n return;\n }\n if (angle > 180) {\n angle = 360 - angle;\n }\n double ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(angle * Math.PI / 180));\n out.printf(\"%.9f\\n\", ans);\n }\n\n static void debug(Object... args) {\n for (Object a : args) {\n out.println(a);\n }\n }\n\n static void y() {\n out.println(\"YES\");\n }\n\n static void n() {\n out.println(\"NO\");\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] readAllInts(int n) {\n int[] p = new int[n];\n for (int i = 0; i < n; i++) {\n p[i] = in.nextInt();\n }\n return p;\n }\n\n public int[] readAllInts(int n, int s) {\n int[] p = new int[n + s];\n for (int i = s; i < n + s; i++) {\n p[i] = in.nextInt();\n }\n return p;\n }\n\n public long[] readAllLongs(int n) {\n long[] p = new long[n];\n for (int i = 0; i < n; i++) {\n p[i] = in.nextInt();\n }\n return p;\n }\n\n public long[] readAllLongs(int n, int s) {\n long[] p = new long[n + s];\n for (int i = s; i < n + s; i++) {\n p[i] = in.nextInt();\n }\n return p;\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n }\n\n static void exit(int a) {\n out.close();\n err.close();\n System.exit(a);\n }\n\n static InputStream inputStream = System.in;\n static OutputStream outputStream = System.out;\n static OutputStream errStream = System.err;\n static InputReader in = new InputReader(inputStream);\n static PrintWriter out = new PrintWriter(outputStream);\n static PrintWriter err = new PrintWriter(errStream);\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n}", "Main", "static InputStream inputStream = System.in;", "inputStream", "System.in", "System", "System.in", "static OutputStream outputStream = System.out;", "outputStream", "System.out", "System", "System.out", "static OutputStream errStream = System.err;", "errStream", "System.err", "System", "System.err", "static InputReader in = new InputReader(inputStream);", "in", "new InputReader(inputStream)", "static PrintWriter out = new PrintWriter(outputStream);", "out", "new PrintWriter(outputStream)", "static PrintWriter err = new PrintWriter(errStream);", "err", "new PrintWriter(errStream)", "static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "public static void main(String[] args) throws Exception {\n long startTime = System.nanoTime();\n int t = 1;\n while (t-- > 0) {\n solve();\n }\n long endTime = System.nanoTime();\n err.println(\"Execution Time : +\" + (endTime - startTime) / 1000000 + \" ms\");\n exit(0);\n }", "main", "{\n long startTime = System.nanoTime();\n int t = 1;\n while (t-- > 0) {\n solve();\n }\n long endTime = System.nanoTime();\n err.println(\"Execution Time : +\" + (endTime - startTime) / 1000000 + \" ms\");\n exit(0);\n }", "long startTime = System.nanoTime();", "startTime", "System.nanoTime()", "System.nanoTime", "System", "int t = 1;", "t", "1", "while (t-- > 0) {\n solve();\n }", "t-- > 0", "t--", "t", "0", "{\n solve();\n }", "solve()", "solve", "long endTime = System.nanoTime();", "endTime", "System.nanoTime()", "System.nanoTime", "System", "err.println(\"Execution Time : +\" + (endTime - startTime) / 1000000 + \" ms\")", "err.println", "err", "\"Execution Time : +\" + (endTime - startTime) / 1000000 + \" ms\"", "\"Execution Time : +\" + (endTime - startTime) / 1000000 + \" ms\"", "\"Execution Time : +\"", "(endTime - startTime) / 1000000", "(endTime - startTime)", "endTime", "startTime", "1000000", "\" ms\"", "exit(0)", "exit", "0", "String[] args", "args", "static void solve() {\n double A = in.nextInt();\n double B = in.nextInt();\n int H = in.nextInt();\n double Y = in.nextInt();\n double a1 = H * 30 + Y * .5;\n double b1 = Y * 6;\n double angle = Math.abs(a1 - b1);\n if (angle == 180) {\n out.println((A + B));\n return;\n }\n if (angle == 0) {\n out.println(Math.abs(A - B));\n return;\n }\n if (angle > 180) {\n angle = 360 - angle;\n }\n double ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(angle * Math.PI / 180));\n out.printf(\"%.9f\\n\", ans);\n }", "solve", "{\n double A = in.nextInt();\n double B = in.nextInt();\n int H = in.nextInt();\n double Y = in.nextInt();\n double a1 = H * 30 + Y * .5;\n double b1 = Y * 6;\n double angle = Math.abs(a1 - b1);\n if (angle == 180) {\n out.println((A + B));\n return;\n }\n if (angle == 0) {\n out.println(Math.abs(A - B));\n return;\n }\n if (angle > 180) {\n angle = 360 - angle;\n }\n double ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(angle * Math.PI / 180));\n out.printf(\"%.9f\\n\", ans);\n }", "double A = in.nextInt();", "A", "in.nextInt()", "in.nextInt", "in", "double B = in.nextInt();", "B", "in.nextInt()", "in.nextInt", "in", "int H = in.nextInt();", "H", "in.nextInt()", "in.nextInt", "in", "double Y = in.nextInt();", "Y", "in.nextInt()", "in.nextInt", "in", "double a1 = H * 30 + Y * .5;", "a1", "H * 30 + Y * .5", "H * 30", "H", "30", "Y * .5", "Y", ".5", "double b1 = Y * 6;", "b1", "Y * 6", "Y", "6", "double angle = Math.abs(a1 - b1);", "angle", "Math.abs(a1 - b1)", "Math.abs", "Math", "a1 - b1", "a1", "b1", "if (angle == 180) {\n out.println((A + B));\n return;\n }", "angle == 180", "angle", "180", "{\n out.println((A + B));\n return;\n }", "out.println((A + B))", "out.println", "out", "(A + B)", "A", "B", "return;", "if (angle == 0) {\n out.println(Math.abs(A - B));\n return;\n }", "angle == 0", "angle", "0", "{\n out.println(Math.abs(A - B));\n return;\n }", "out.println(Math.abs(A - B))", "out.println", "out", "Math.abs(A - B)", "Math.abs", "Math", "A - B", "A", "B", "return;", "if (angle > 180) {\n angle = 360 - angle;\n }", "angle > 180", "angle", "180", "{\n angle = 360 - angle;\n }", "angle = 360 - angle", "angle", "360 - angle", "360", "angle", "double ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(angle * Math.PI / 180));", "ans", "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", "out.printf(\"%.9f\\n\", ans)", "out.printf", "out", "\"%.9f\\n\"", "ans", "static void debug(Object... args) {\n for (Object a : args) {\n out.println(a);\n }\n }", "debug", "{\n for (Object a : args) {\n out.println(a);\n }\n }", "for (Object a : args) {\n out.println(a);\n }", "Object a", "args", "{\n out.println(a);\n }", "{\n out.println(a);\n }", "out.println(a)", "out.println", "out", "a", "Object... args", "args", "static void y() {\n out.println(\"YES\");\n }", "y", "{\n out.println(\"YES\");\n }", "out.println(\"YES\")", "out.println", "out", "\"YES\"", "static void n() {\n out.println(\"NO\");\n }", "n", "{\n out.println(\"NO\");\n }", "out.println(\"NO\")", "out.println", "out", "\"NO\"", "static void exit(int a) {\n out.close();\n err.close();\n System.exit(a);\n }", "exit", "{\n out.close();\n err.close();\n System.exit(a);\n }", "out.close()", "out.close", "out", "err.close()", "err.close", "err", "System.exit(a)", "System.exit", "System", "a", "int a", "a", "static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] readAllInts(int n) {\n int[] p = new int[n];\n for (int i = 0; i < n; i++) {\n p[i] = in.nextInt();\n }\n return p;\n }\n\n public int[] readAllInts(int n, int s) {\n int[] p = new int[n + s];\n for (int i = s; i < n + s; i++) {\n p[i] = in.nextInt();\n }\n return p;\n }\n\n public long[] readAllLongs(int n) {\n long[] p = new long[n];\n for (int i = 0; i < n; i++) {\n p[i] = in.nextInt();\n }\n return p;\n }\n\n public long[] readAllLongs(int n, int s) {\n long[] p = new long[n + s];\n for (int i = s; i < n + s; i++) {\n p[i] = in.nextInt();\n }\n return p;\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n }", "InputReader", "public BufferedReader reader;", "reader", "public StringTokenizer tokenizer;", "tokenizer", "public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }", "InputReader", "{\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }", "reader = new BufferedReader(new InputStreamReader(stream), 32768)", "reader", "new BufferedReader(new InputStreamReader(stream), 32768)", "tokenizer = null", "tokenizer", "null", "InputStream stream", "stream", "public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }", "next", "{\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }", "while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "tokenizer == null || !tokenizer.hasMoreTokens()", "tokenizer == null", "tokenizer", "null", "!tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens", "tokenizer", "{\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }", "catch (IOException e) {\n throw new RuntimeException(e);\n }", "IOException e", "{\n throw new RuntimeException(e);\n }", "throw new RuntimeException(e);", "new RuntimeException(e)", "{\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", "public 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 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", "public int[] readAllInts(int n) {\n int[] p = new int[n];\n for (int i = 0; i < n; i++) {\n p[i] = in.nextInt();\n }\n return p;\n }", "readAllInts", "{\n int[] p = new int[n];\n for (int i = 0; i < n; i++) {\n p[i] = in.nextInt();\n }\n return p;\n }", "int[] p = new int[n];", "p", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n p[i] = in.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n p[i] = in.nextInt();\n }", "{\n p[i] = in.nextInt();\n }", "p[i] = in.nextInt()", "p[i]", "p", "i", "in.nextInt()", "in.nextInt", "in", "return p;", "p", "int n", "n", "public int[] readAllInts(int n, int s) {\n int[] p = new int[n + s];\n for (int i = s; i < n + s; i++) {\n p[i] = in.nextInt();\n }\n return p;\n }", "readAllInts", "{\n int[] p = new int[n + s];\n for (int i = s; i < n + s; i++) {\n p[i] = in.nextInt();\n }\n return p;\n }", "int[] p = new int[n + s];", "p", "new int[n + s]", "n + s", "n", "s", "for (int i = s; i < n + s; i++) {\n p[i] = in.nextInt();\n }", "int i = s;", "int i = s;", "i", "s", "i < n + s", "i", "n + s", "n", "s", "i++", "i++", "i", "{\n p[i] = in.nextInt();\n }", "{\n p[i] = in.nextInt();\n }", "p[i] = in.nextInt()", "p[i]", "p", "i", "in.nextInt()", "in.nextInt", "in", "return p;", "p", "int n", "n", "int s", "s", "public long[] readAllLongs(int n) {\n long[] p = new long[n];\n for (int i = 0; i < n; i++) {\n p[i] = in.nextInt();\n }\n return p;\n }", "readAllLongs", "{\n long[] p = new long[n];\n for (int i = 0; i < n; i++) {\n p[i] = in.nextInt();\n }\n return p;\n }", "long[] p = new long[n];", "p", "new long[n]", "n", "for (int i = 0; i < n; i++) {\n p[i] = in.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n p[i] = in.nextInt();\n }", "{\n p[i] = in.nextInt();\n }", "p[i] = in.nextInt()", "p[i]", "p", "i", "in.nextInt()", "in.nextInt", "in", "return p;", "p", "int n", "n", "public long[] readAllLongs(int n, int s) {\n long[] p = new long[n + s];\n for (int i = s; i < n + s; i++) {\n p[i] = in.nextInt();\n }\n return p;\n }", "readAllLongs", "{\n long[] p = new long[n + s];\n for (int i = s; i < n + s; i++) {\n p[i] = in.nextInt();\n }\n return p;\n }", "long[] p = new long[n + s];", "p", "new long[n + s]", "n + s", "n", "s", "for (int i = s; i < n + s; i++) {\n p[i] = in.nextInt();\n }", "int i = s;", "int i = s;", "i", "s", "i < n + s", "i", "n + s", "n", "s", "i++", "i++", "i", "{\n p[i] = in.nextInt();\n }", "{\n p[i] = in.nextInt();\n }", "p[i] = in.nextInt()", "p[i]", "p", "i", "in.nextInt()", "in.nextInt", "in", "return p;", "p", "int n", "n", "int s", "s", "public 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", "public class Main {\n\n public static void main(String[] args) throws Exception {\n long startTime = System.nanoTime();\n int t = 1;\n while (t-- > 0) {\n solve();\n }\n long endTime = System.nanoTime();\n err.println(\"Execution Time : +\" + (endTime - startTime) / 1000000 + \" ms\");\n exit(0);\n }\n\n static void solve() {\n double A = in.nextInt();\n double B = in.nextInt();\n int H = in.nextInt();\n double Y = in.nextInt();\n double a1 = H * 30 + Y * .5;\n double b1 = Y * 6;\n double angle = Math.abs(a1 - b1);\n if (angle == 180) {\n out.println((A + B));\n return;\n }\n if (angle == 0) {\n out.println(Math.abs(A - B));\n return;\n }\n if (angle > 180) {\n angle = 360 - angle;\n }\n double ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(angle * Math.PI / 180));\n out.printf(\"%.9f\\n\", ans);\n }\n\n static void debug(Object... args) {\n for (Object a : args) {\n out.println(a);\n }\n }\n\n static void y() {\n out.println(\"YES\");\n }\n\n static void n() {\n out.println(\"NO\");\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] readAllInts(int n) {\n int[] p = new int[n];\n for (int i = 0; i < n; i++) {\n p[i] = in.nextInt();\n }\n return p;\n }\n\n public int[] readAllInts(int n, int s) {\n int[] p = new int[n + s];\n for (int i = s; i < n + s; i++) {\n p[i] = in.nextInt();\n }\n return p;\n }\n\n public long[] readAllLongs(int n) {\n long[] p = new long[n];\n for (int i = 0; i < n; i++) {\n p[i] = in.nextInt();\n }\n return p;\n }\n\n public long[] readAllLongs(int n, int s) {\n long[] p = new long[n + s];\n for (int i = s; i < n + s; i++) {\n p[i] = in.nextInt();\n }\n return p;\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n }\n\n static void exit(int a) {\n out.close();\n err.close();\n System.exit(a);\n }\n\n static InputStream inputStream = System.in;\n static OutputStream outputStream = System.out;\n static OutputStream errStream = System.err;\n static InputReader in = new InputReader(inputStream);\n static PrintWriter out = new PrintWriter(outputStream);\n static PrintWriter err = new PrintWriter(errStream);\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n}", "public class Main {\n\n public static void main(String[] args) throws Exception {\n long startTime = System.nanoTime();\n int t = 1;\n while (t-- > 0) {\n solve();\n }\n long endTime = System.nanoTime();\n err.println(\"Execution Time : +\" + (endTime - startTime) / 1000000 + \" ms\");\n exit(0);\n }\n\n static void solve() {\n double A = in.nextInt();\n double B = in.nextInt();\n int H = in.nextInt();\n double Y = in.nextInt();\n double a1 = H * 30 + Y * .5;\n double b1 = Y * 6;\n double angle = Math.abs(a1 - b1);\n if (angle == 180) {\n out.println((A + B));\n return;\n }\n if (angle == 0) {\n out.println(Math.abs(A - B));\n return;\n }\n if (angle > 180) {\n angle = 360 - angle;\n }\n double ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(angle * Math.PI / 180));\n out.printf(\"%.9f\\n\", ans);\n }\n\n static void debug(Object... args) {\n for (Object a : args) {\n out.println(a);\n }\n }\n\n static void y() {\n out.println(\"YES\");\n }\n\n static void n() {\n out.println(\"NO\");\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] readAllInts(int n) {\n int[] p = new int[n];\n for (int i = 0; i < n; i++) {\n p[i] = in.nextInt();\n }\n return p;\n }\n\n public int[] readAllInts(int n, int s) {\n int[] p = new int[n + s];\n for (int i = s; i < n + s; i++) {\n p[i] = in.nextInt();\n }\n return p;\n }\n\n public long[] readAllLongs(int n) {\n long[] p = new long[n];\n for (int i = 0; i < n; i++) {\n p[i] = in.nextInt();\n }\n return p;\n }\n\n public long[] readAllLongs(int n, int s) {\n long[] p = new long[n + s];\n for (int i = s; i < n + s; i++) {\n p[i] = in.nextInt();\n }\n return p;\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n }\n\n static void exit(int a) {\n out.close();\n err.close();\n System.exit(a);\n }\n\n static InputStream inputStream = System.in;\n static OutputStream outputStream = System.out;\n static OutputStream errStream = System.err;\n static InputReader in = new InputReader(inputStream);\n static PrintWriter out = new PrintWriter(outputStream);\n static PrintWriter err = new PrintWriter(errStream);\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.PrintWriter; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws Exception { long startTime = System.nanoTime(); int t = 1; while (t-- > 0) { solve(); } long endTime = System.nanoTime(); err.println("Execution Time : +" + (endTime - startTime) / 1000000 + " ms"); exit(0); } static void solve() { double A = in.nextInt(); double B = in.nextInt(); int H = in.nextInt(); double Y = in.nextInt(); double a1 = H * 30 + Y * .5; double b1 = Y * 6; double angle = Math.abs(a1 - b1); if (angle == 180) { out.println((A + B)); return; } if (angle == 0) { out.println(Math.abs(A - B)); return; } if (angle > 180) { angle = 360 - angle; } double ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(angle * Math.PI / 180)); out.printf("%.9f\n", ans); } static void debug(Object... args) { for (Object a : args) { out.println(a); } } static void y() { out.println("YES"); } static void n() { out.println("NO"); } static class InputReader { public BufferedReader reader; public StringTokenizer tokenizer; public InputReader(InputStream stream) { reader = new BufferedReader(new InputStreamReader(stream), 32768); tokenizer = null; } public String next() { while (tokenizer == null || !tokenizer.hasMoreTokens()) { try { tokenizer = new StringTokenizer(reader.readLine()); } catch (IOException e) { throw new RuntimeException(e); } } return tokenizer.nextToken(); } public long nextLong() { return Long.parseLong(next()); } public int nextInt() { return Integer.parseInt(next()); } public int[] readAllInts(int n) { int[] p = new int[n]; for (int i = 0; i < n; i++) { p[i] = in.nextInt(); } return p; } public int[] readAllInts(int n, int s) { int[] p = new int[n + s]; for (int i = s; i < n + s; i++) { p[i] = in.nextInt(); } return p; } public long[] readAllLongs(int n) { long[] p = new long[n]; for (int i = 0; i < n; i++) { p[i] = in.nextInt(); } return p; } public long[] readAllLongs(int n, int s) { long[] p = new long[n + s]; for (int i = s; i < n + s; i++) { p[i] = in.nextInt(); } return p; } public double nextDouble() { return Double.parseDouble(next()); } } static void exit(int a) { out.close(); err.close(); System.exit(a); } static InputStream inputStream = System.in; static OutputStream outputStream = System.out; static OutputStream errStream = System.err; static InputReader in = new InputReader(inputStream); static PrintWriter out = new PrintWriter(outputStream); static PrintWriter err = new PrintWriter(errStream); static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); }
[ 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, 13, 17, 41, 13, 4, 18, 13, 2, 13, 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, 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 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 36, 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 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 8, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 70, 72 ], [ 65, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 73, 79 ], [ 8, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 6, 89 ], [ 89, 90 ], [ 0, 91 ], [ 91, 92 ], [ 91, 93 ] ]
[ "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 double h = 30 * (H + M/60.0);\n double m = M * 6.0;\n double k = Math.abs(m - h);\n double cos = Math.cos(Math.toRadians(k));\n double a = A*A + B*B - (2*A*B*cos);\n System.out.println(Math.sqrt(a));\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 double h = 30 * (H + M/60.0);\n double m = M * 6.0;\n double k = Math.abs(m - h);\n double cos = Math.cos(Math.toRadians(k));\n double a = A*A + B*B - (2*A*B*cos);\n System.out.println(Math.sqrt(a));\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 double h = 30 * (H + M/60.0);\n double m = M * 6.0;\n double k = Math.abs(m - h);\n double cos = Math.cos(Math.toRadians(k));\n double a = A*A + B*B - (2*A*B*cos);\n System.out.println(Math.sqrt(a));\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 h = 30 * (H + M/60.0);\n double m = M * 6.0;\n double k = Math.abs(m - h);\n double cos = Math.cos(Math.toRadians(k));\n double a = A*A + B*B - (2*A*B*cos);\n System.out.println(Math.sqrt(a));\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 h = 30 * (H + M/60.0);", "h", "30 * (H + M/60.0)", "30", "(H + M/60.0)", "H", "M/60.0", "M", "60.0", "double m = M * 6.0;", "m", "M * 6.0", "M", "6.0", "double k = Math.abs(m - h);", "k", "Math.abs(m - h)", "Math.abs", "Math", "m - h", "m", "h", "double cos = Math.cos(Math.toRadians(k));", "cos", "Math.cos(Math.toRadians(k))", "Math.cos", "Math", "Math.toRadians(k)", "Math.toRadians", "Math", "k", "double a = A*A + B*B - (2*A*B*cos);", "a", "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(Math.sqrt(a))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(a)", "Math.sqrt", "Math", "a", "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 h = 30 * (H + M/60.0);\n double m = M * 6.0;\n double k = Math.abs(m - h);\n double cos = Math.cos(Math.toRadians(k));\n double a = A*A + B*B - (2*A*B*cos);\n System.out.println(Math.sqrt(a));\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 double h = 30 * (H + M/60.0);\n double m = M * 6.0;\n double k = Math.abs(m - h);\n double cos = Math.cos(Math.toRadians(k));\n double a = A*A + B*B - (2*A*B*cos);\n System.out.println(Math.sqrt(a));\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(); double h = 30 * (H + M/60.0); double m = M * 6.0; double k = Math.abs(m - h); double cos = Math.cos(Math.toRadians(k)); double a = A*A + B*B - (2*A*B*cos); System.out.println(Math.sqrt(a)); } }
[ 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, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 17, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 17, 41, 13, 2, 13, 13, 42, 2, 2, 13, 17, 2, 13, 17, 30, 14, 2, 13, 17, 30, 0, 13, 17, 9, 14, 2, 13, 17, 30, 0, 13, 2, 17, 13, 41, 13, 4, 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, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 147, 5 ], [ 147, 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 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 38, 46 ], [ 46, 47 ], [ 47, 48 ], [ 38, 49 ], [ 50, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 54, 56 ], [ 8, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 62, 63 ], [ 62, 64 ], [ 57, 65 ], [ 65, 66 ], [ 66, 67 ], [ 57, 68 ], [ 69, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 8, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 8, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 83, 85 ], [ 78, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 86, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 103, 105 ], [ 8, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 8, 112 ], [ 112, 113 ], [ 112, 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 ], [ 8, 132 ], [ 132, 133 ], [ 132, 134 ], [ 134, 135 ], [ 135, 136 ], [ 134, 137 ], [ 8, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 138, 143 ], [ 6, 144 ], [ 144, 145 ], [ 0, 146 ], [ 146, 147 ], [ 146, 148 ] ]
[ "import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n long a = scan.nextLong();\n long b = scan.nextLong();\n int c = scan.nextInt();\n int d = scan.nextInt();\n double e = 0;\n long f = 0;\n for (int i=0;i<d;i++){\n f += 6;\n e += 0.5;\n }\n for (int j=0;j<c;j++){\n e += 30;\n }\n\n double t = e-f;\n while ((t>180)||(t<0)){\n if (t<0){\n t+=360;\n continue;\n }\n if (t>180){\n t = 360 - t;\n }\n }\n\n double radian = Math.toRadians(t);\n double gg = a*a+b*b-2*a*b*(Math.cos(radian));\n gg = Math.sqrt(gg);\n System.out.println(gg);\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 long a = scan.nextLong();\n long b = scan.nextLong();\n int c = scan.nextInt();\n int d = scan.nextInt();\n double e = 0;\n long f = 0;\n for (int i=0;i<d;i++){\n f += 6;\n e += 0.5;\n }\n for (int j=0;j<c;j++){\n e += 30;\n }\n\n double t = e-f;\n while ((t>180)||(t<0)){\n if (t<0){\n t+=360;\n continue;\n }\n if (t>180){\n t = 360 - t;\n }\n }\n\n double radian = Math.toRadians(t);\n double gg = a*a+b*b-2*a*b*(Math.cos(radian));\n gg = Math.sqrt(gg);\n System.out.println(gg);\n }\n}", "Main", "public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n long a = scan.nextLong();\n long b = scan.nextLong();\n int c = scan.nextInt();\n int d = scan.nextInt();\n double e = 0;\n long f = 0;\n for (int i=0;i<d;i++){\n f += 6;\n e += 0.5;\n }\n for (int j=0;j<c;j++){\n e += 30;\n }\n\n double t = e-f;\n while ((t>180)||(t<0)){\n if (t<0){\n t+=360;\n continue;\n }\n if (t>180){\n t = 360 - t;\n }\n }\n\n double radian = Math.toRadians(t);\n double gg = a*a+b*b-2*a*b*(Math.cos(radian));\n gg = Math.sqrt(gg);\n System.out.println(gg);\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n long a = scan.nextLong();\n long b = scan.nextLong();\n int c = scan.nextInt();\n int d = scan.nextInt();\n double e = 0;\n long f = 0;\n for (int i=0;i<d;i++){\n f += 6;\n e += 0.5;\n }\n for (int j=0;j<c;j++){\n e += 30;\n }\n\n double t = e-f;\n while ((t>180)||(t<0)){\n if (t<0){\n t+=360;\n continue;\n }\n if (t>180){\n t = 360 - t;\n }\n }\n\n double radian = Math.toRadians(t);\n double gg = a*a+b*b-2*a*b*(Math.cos(radian));\n gg = Math.sqrt(gg);\n System.out.println(gg);\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "long a = scan.nextLong();", "a", "scan.nextLong()", "scan.nextLong", "scan", "long b = scan.nextLong();", "b", "scan.nextLong()", "scan.nextLong", "scan", "int c = scan.nextInt();", "c", "scan.nextInt()", "scan.nextInt", "scan", "int d = scan.nextInt();", "d", "scan.nextInt()", "scan.nextInt", "scan", "double e = 0;", "e", "0", "long f = 0;", "f", "0", "for (int i=0;i<d;i++){\n f += 6;\n e += 0.5;\n }", "int i=0;", "int i=0;", "i", "0", "i<d", "i", "d", "i++", "i++", "i", "{\n f += 6;\n e += 0.5;\n }", "{\n f += 6;\n e += 0.5;\n }", "f += 6", "f", "6", "e += 0.5", "e", "0.5", "for (int j=0;j<c;j++){\n e += 30;\n }", "int j=0;", "int j=0;", "j", "0", "j<c", "j", "c", "j++", "j++", "j", "{\n e += 30;\n }", "{\n e += 30;\n }", "e += 30", "e", "30", "double t = e-f;", "t", "e-f", "e", "f", "while ((t>180)||(t<0)){\n if (t<0){\n t+=360;\n continue;\n }\n if (t>180){\n t = 360 - t;\n }\n }", "(t>180)||(t<0)", "(t>180)", "t", "180", "(t<0)", "t", "0", "{\n if (t<0){\n t+=360;\n continue;\n }\n if (t>180){\n t = 360 - t;\n }\n }", "if (t<0){\n t+=360;\n continue;\n }", "t<0", "t", "0", "{\n t+=360;\n continue;\n }", "t+=360", "t", "360", "continue;", "if (t>180){\n t = 360 - t;\n }", "t>180", "t", "180", "{\n t = 360 - t;\n }", "t = 360 - t", "t", "360 - t", "360", "t", "double radian = Math.toRadians(t);", "radian", "Math.toRadians(t)", "Math.toRadians", "Math", "t", "double gg = a*a+b*b-2*a*b*(Math.cos(radian));", "gg", "a*a+b*b-2*a*b*(Math.cos(radian))", "a*a+b*b", "a*a", "a", "a", "b*b", "b", "b", "2*a*b*(Math.cos(radian))", "b", "2*a*b*(Math.cos(radian))", "2", "a", "b", "(Math.cos(radian))", "Math.cos", "Math", "radian", "gg = Math.sqrt(gg)", "gg", "Math.sqrt(gg)", "Math.sqrt", "Math", "gg", "System.out.println(gg)", "System.out.println", "System.out", "System", "System.out", "gg", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n long a = scan.nextLong();\n long b = scan.nextLong();\n int c = scan.nextInt();\n int d = scan.nextInt();\n double e = 0;\n long f = 0;\n for (int i=0;i<d;i++){\n f += 6;\n e += 0.5;\n }\n for (int j=0;j<c;j++){\n e += 30;\n }\n\n double t = e-f;\n while ((t>180)||(t<0)){\n if (t<0){\n t+=360;\n continue;\n }\n if (t>180){\n t = 360 - t;\n }\n }\n\n double radian = Math.toRadians(t);\n double gg = a*a+b*b-2*a*b*(Math.cos(radian));\n gg = Math.sqrt(gg);\n System.out.println(gg);\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n long a = scan.nextLong();\n long b = scan.nextLong();\n int c = scan.nextInt();\n int d = scan.nextInt();\n double e = 0;\n long f = 0;\n for (int i=0;i<d;i++){\n f += 6;\n e += 0.5;\n }\n for (int j=0;j<c;j++){\n e += 30;\n }\n\n double t = e-f;\n while ((t>180)||(t<0)){\n if (t<0){\n t+=360;\n continue;\n }\n if (t>180){\n t = 360 - t;\n }\n }\n\n double radian = Math.toRadians(t);\n double gg = a*a+b*b-2*a*b*(Math.cos(radian));\n gg = Math.sqrt(gg);\n System.out.println(gg);\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); long a = scan.nextLong(); long b = scan.nextLong(); int c = scan.nextInt(); int d = scan.nextInt(); double e = 0; long f = 0; for (int i=0;i<d;i++){ f += 6; e += 0.5; } for (int j=0;j<c;j++){ e += 30; } double t = e-f; while ((t>180)||(t<0)){ if (t<0){ t+=360; continue; } if (t>180){ t = 360 - t; } } double radian = Math.toRadians(t); double gg = a*a+b*b-2*a*b*(Math.cos(radian)); gg = Math.sqrt(gg); System.out.println(gg); } }
[ 7, 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, 20, 4, 18, 13, 13, 4, 18, 13, 23, 13, 6, 13, 41, 13, 41, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 2, 2, 13, 17, 2, 17, 13, 41, 13, 4, 18, 13, 13, 41, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 13, 4, 18, 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, 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, 30, 29, 18, 13, 40, 13, 30, 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, 30, 40, 13, 29, 4, 13, 12, 13, 30, 14, 40, 4, 13, 30, 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, 30, 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, 30, 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 ], [ 381, 17 ], [ 381, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 20, 27 ], [ 27, 28 ], [ 27, 29 ], [ 20, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 20, 34 ], [ 34, 35 ], [ 35, 36 ], [ 18, 37 ], [ 37, 38 ], [ 0, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 39, 43 ], [ 43, 44 ], [ 39, 45 ], [ 45, 46 ], [ 39, 47 ], [ 47, 48 ], [ 39, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 51, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 51, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 51, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 49, 72 ], [ 72, 73 ], [ 39, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 86, 88 ], [ 76, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 76, 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 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 76, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 118, 119 ], [ 119, 120 ], [ 118, 121 ], [ 74, 122 ], [ 122, 123 ], [ 0, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 128, 130 ], [ 124, 131 ], [ 131, 132 ], [ 131, 133 ], [ 124, 135 ], [ 135, 136 ], [ 135, 137 ], [ 124, 138 ], [ 138, 139 ], [ 138, 140 ], [ 124, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 144, 148 ], [ 148, 149 ], [ 149, 150 ], [ 144, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 155, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 165, 166 ], [ 166, 167 ], [ 165, 168 ], [ 151, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 169, 173 ], [ 173, 174 ], [ 174, 175 ], [ 143, 176 ], [ 176, 177 ], [ 124, 178 ], [ 178, 179 ], [ 178, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 181, 184 ], [ 184, 185 ], [ 185, 186 ], [ 186, 187 ], [ 186, 188 ], [ 188, 189 ], [ 181, 190 ], [ 190, 191 ], [ 191, 192 ], [ 192, 193 ], [ 124, 194 ], [ 194, 195 ], [ 194, 196 ], [ 196, 197 ], [ 197, 198 ], [ 198, 199 ], [ 199, 200 ], [ 199, 201 ], [ 198, 202 ], [ 202, 203 ], [ 202, 204 ], [ 194, 205 ], [ 205, 206 ], [ 124, 207 ], [ 207, 208 ], [ 207, 209 ], [ 209, 210 ], [ 210, 211 ], [ 211, 212 ], [ 212, 213 ], [ 211, 214 ], [ 214, 215 ], [ 215, 216 ], [ 215, 217 ], [ 217, 218 ], [ 217, 219 ], [ 210, 220 ], [ 220, 221 ], [ 221, 222 ], [ 209, 223 ], [ 223, 224 ], [ 224, 225 ], [ 124, 226 ], [ 226, 227 ], [ 226, 228 ], [ 228, 229 ], [ 229, 230 ], [ 230, 231 ], [ 231, 232 ], [ 229, 233 ], [ 233, 234 ], [ 234, 235 ], [ 228, 236 ], [ 236, 237 ], [ 236, 238 ], [ 228, 239 ], [ 239, 240 ], [ 239, 241 ], [ 241, 242 ], [ 228, 243 ], [ 243, 244 ], [ 244, 245 ], [ 244, 246 ], [ 243, 247 ], [ 247, 248 ], [ 248, 249 ], [ 249, 250 ], [ 248, 251 ], [ 247, 252 ], [ 252, 253 ], [ 252, 254 ], [ 254, 255 ], [ 228, 256 ], [ 256, 257 ], [ 257, 258 ], [ 258, 259 ], [ 124, 260 ], [ 260, 261 ], [ 260, 262 ], [ 262, 263 ], [ 263, 264 ], [ 264, 265 ], [ 265, 266 ], [ 263, 267 ], [ 267, 268 ], [ 268, 269 ], [ 262, 270 ], [ 270, 271 ], [ 270, 272 ], [ 262, 273 ], [ 273, 274 ], [ 273, 275 ], [ 262, 276 ], [ 276, 277 ], [ 276, 278 ], [ 278, 279 ], [ 262, 280 ], [ 280, 281 ], [ 281, 282 ], [ 281, 283 ], [ 280, 284 ], [ 284, 285 ], [ 285, 286 ], [ 285, 287 ], [ 284, 288 ], [ 288, 289 ], [ 288, 290 ], [ 290, 291 ], [ 262, 292 ], [ 292, 293 ], [ 293, 294 ], [ 294, 295 ], [ 294, 296 ], [ 293, 297 ], [ 297, 298 ], [ 297, 299 ], [ 292, 300 ], [ 300, 301 ], [ 301, 302 ], [ 262, 303 ], [ 303, 304 ], [ 303, 305 ], [ 305, 306 ], [ 306, 307 ], [ 307, 308 ], [ 308, 309 ], [ 308, 310 ], [ 307, 311 ], [ 311, 312 ], [ 311, 313 ], [ 306, 314 ], [ 314, 315 ], [ 315, 316 ], [ 315, 317 ], [ 314, 318 ], [ 318, 319 ], [ 318, 320 ], [ 320, 321 ], [ 320, 322 ], [ 306, 323 ], [ 323, 324 ], [ 324, 325 ], [ 325, 326 ], [ 325, 327 ], [ 327, 328 ], [ 324, 329 ], [ 329, 330 ], [ 330, 331 ], [ 330, 332 ], [ 323, 333 ], [ 333, 334 ], [ 334, 335 ], [ 335, 336 ], [ 335, 337 ], [ 337, 338 ], [ 335, 339 ], [ 323, 340 ], [ 340, 341 ], [ 341, 342 ], [ 305, 343 ], [ 343, 344 ], [ 343, 345 ], [ 345, 346 ], [ 124, 347 ], [ 347, 348 ], [ 347, 349 ], [ 349, 350 ], [ 350, 351 ], [ 350, 352 ], [ 352, 353 ], [ 349, 354 ], [ 354, 355 ], [ 355, 356 ], [ 356, 357 ], [ 356, 358 ], [ 358, 359 ], [ 358, 360 ], [ 355, 361 ], [ 361, 362 ], [ 361, 363 ], [ 363, 364 ], [ 363, 365 ], [ 354, 366 ], [ 366, 367 ], [ 367, 368 ], [ 349, 369 ], [ 369, 370 ], [ 124, 371 ], [ 371, 372 ], [ 371, 373 ], [ 373, 374 ], [ 374, 375 ], [ 375, 376 ], [ 376, 377 ], [ 375, 378 ], [ 378, 379 ], [ 0, 380 ], [ 380, 381 ], [ 380, 382 ] ]
[ "\nimport java.text.DecimalFormat;\nimport java.util.stream.LongStream;\nimport java.util.stream.IntStream;\nimport java.io.*;\nimport java.util.*;\n\npublic class Main {\n\n public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n PrintWriter out = new PrintWriter(System.out);\n\n AtCoder problem = new AtCoder(sc);\n problem.solve(out);\n\n out.flush();\n }\n\n}\n\nclass AtCoder {\n\n final int A, B, H, M;\n\n AtCoder(FastScanner sc) {\n A = sc.nextInt();\n B = sc.nextInt();\n H = sc.nextInt();\n M = sc.nextInt();\n }\n\n void solve(PrintWriter out) {\n double t = Math.abs(H*30.0 - 5.5*M);\n double rad = Math.toRadians(t);\n double c = A * A + B * B - 2 * A * B * Math.cos(rad);\n// out.println(\"t=\" + t + \" rad=\" + rad + \" c=\" + c);\n out.println(Math.sqrt(c));\n }\n\n}\n\n// https://qiita.com/p_shiki37/items/a0f6aac33bf60f5f65e4\nclass FastScanner {\n\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 (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n\n private int readByte() {\n if (hasNextByte()) {\n return buffer[ptr++];\n } else {\n return -1;\n }\n }\n\n private static boolean isPrintableChar(int c) {\n return 33 <= c && c <= 126;\n }\n\n public boolean hasNext() {\n while (hasNextByte() && !isPrintableChar(buffer[ptr])) {\n ptr++;\n }\n return hasNextByte();\n }\n\n public String next() {\n if (!hasNext()) {\n throw new NoSuchElementException();\n }\n 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 long nextLong() {\n if (!hasNext()) {\n throw new NoSuchElementException();\n }\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 }\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 }\n b = readByte();\n }\n }\n\n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) {\n throw new NumberFormatException();\n }\n return (int) nl;\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n}", "import java.text.DecimalFormat;", "DecimalFormat", "java.text", "import java.util.stream.LongStream;", "LongStream", "java.util.stream", "import java.util.stream.IntStream;", "IntStream", "java.util.stream", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\n\n public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n PrintWriter out = new PrintWriter(System.out);\n\n AtCoder problem = new AtCoder(sc);\n problem.solve(out);\n\n out.flush();\n }\n\n}", "Main", "public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n PrintWriter out = new PrintWriter(System.out);\n\n AtCoder problem = new AtCoder(sc);\n problem.solve(out);\n\n out.flush();\n }", "main", "{\n FastScanner sc = new FastScanner();\n PrintWriter out = new PrintWriter(System.out);\n\n AtCoder problem = new AtCoder(sc);\n problem.solve(out);\n\n out.flush();\n }", "FastScanner sc = new FastScanner();", "sc", "new FastScanner()", "PrintWriter out = new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "AtCoder problem = new AtCoder(sc);", "problem", "new AtCoder(sc)", "problem.solve(out)", "problem.solve", "problem", "out", "out.flush()", "out.flush", "out", "String[] args", "args", "class AtCoder {\n\n final int A, B, H, M;\n\n AtCoder(FastScanner sc) {\n A = sc.nextInt();\n B = sc.nextInt();\n H = sc.nextInt();\n M = sc.nextInt();\n }\n\n void solve(PrintWriter out) {\n double t = Math.abs(H*30.0 - 5.5*M);\n double rad = Math.toRadians(t);\n double c = A * A + B * B - 2 * A * B * Math.cos(rad);\n// out.println(\"t=\" + t + \" rad=\" + rad + \" c=\" + c);\n out.println(Math.sqrt(c));\n }\n\n}", "AtCoder", "final int A", "A", "B", "B", "H", "H", "M;", "M", "AtCoder(FastScanner sc) {\n A = sc.nextInt();\n B = sc.nextInt();\n H = sc.nextInt();\n M = sc.nextInt();\n }", "AtCoder", "{\n A = sc.nextInt();\n B = sc.nextInt();\n H = sc.nextInt();\n M = sc.nextInt();\n }", "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", "FastScanner sc", "sc", "void solve(PrintWriter out) {\n double t = Math.abs(H*30.0 - 5.5*M);\n double rad = Math.toRadians(t);\n double c = A * A + B * B - 2 * A * B * Math.cos(rad);\n// out.println(\"t=\" + t + \" rad=\" + rad + \" c=\" + c);\n out.println(Math.sqrt(c));\n }", "solve", "{\n double t = Math.abs(H*30.0 - 5.5*M);\n double rad = Math.toRadians(t);\n double c = A * A + B * B - 2 * A * B * Math.cos(rad);\n// out.println(\"t=\" + t + \" rad=\" + rad + \" c=\" + c);\n out.println(Math.sqrt(c));\n }", "double t = Math.abs(H*30.0 - 5.5*M);", "t", "Math.abs(H*30.0 - 5.5*M)", "Math.abs", "Math", "H*30.0 - 5.5*M", "H*30.0", "H", "30.0", "5.5*M", "5.5", "M", "double rad = Math.toRadians(t);", "rad", "Math.toRadians(t)", "Math.toRadians", "Math", "t", "double c = A * A + B * B - 2 * A * B * Math.cos(rad);", "c", "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", "out.println(Math.sqrt(c))", "out.println", "out", "Math.sqrt(c)", "Math.sqrt", "Math", "c", "PrintWriter out", "out", "class FastScanner {\n\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 (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n\n private int readByte() {\n if (hasNextByte()) {\n return buffer[ptr++];\n } else {\n return -1;\n }\n }\n\n private static boolean isPrintableChar(int c) {\n return 33 <= c && c <= 126;\n }\n\n public boolean hasNext() {\n while (hasNextByte() && !isPrintableChar(buffer[ptr])) {\n ptr++;\n }\n return hasNextByte();\n }\n\n public String next() {\n if (!hasNext()) {\n throw new NoSuchElementException();\n }\n 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 long nextLong() {\n if (!hasNext()) {\n throw new NoSuchElementException();\n }\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 }\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 }\n b = readByte();\n }\n }\n\n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) {\n throw new NumberFormatException();\n }\n return (int) nl;\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\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 (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\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 (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }", "if (ptr < buflen) {\n return true;\n } else {\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }", "ptr < buflen", "ptr", "buflen", "{\n return true;\n }", "return true;", "true", "{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }", "ptr = 0", "ptr", "0", "try {\n buflen = in.read(buffer);\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 buflen = in.read(buffer);\n }", "buflen = in.read(buffer)", "buflen", "in.read(buffer)", "in.read", "in", "buffer", "if (buflen <= 0) {\n return false;\n }", "buflen <= 0", "buflen", "0", "{\n return false;\n }", "return false;", "false", "return true;", "true", "private int readByte() {\n if (hasNextByte()) {\n return buffer[ptr++];\n } else {\n return -1;\n }\n }", "readByte", "{\n if (hasNextByte()) {\n return buffer[ptr++];\n } else {\n return -1;\n }\n }", "if (hasNextByte()) {\n return buffer[ptr++];\n } else {\n return -1;\n }", "hasNextByte()", "hasNextByte", "{\n return buffer[ptr++];\n }", "return buffer[ptr++];", "buffer[ptr++]", "buffer", "ptr++", "ptr", "{\n return -1;\n }", "return -1;", "-1", "1", "private static boolean isPrintableChar(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", "int c", "c", "public boolean hasNext() {\n while (hasNextByte() && !isPrintableChar(buffer[ptr])) {\n ptr++;\n }\n return hasNextByte();\n }", "hasNext", "{\n while (hasNextByte() && !isPrintableChar(buffer[ptr])) {\n ptr++;\n }\n return hasNextByte();\n }", "while (hasNextByte() && !isPrintableChar(buffer[ptr])) {\n ptr++;\n }", "hasNextByte() && !isPrintableChar(buffer[ptr])", "hasNextByte()", "hasNextByte", "!isPrintableChar(buffer[ptr])", "isPrintableChar(buffer[ptr])", "isPrintableChar", "buffer[ptr]", "buffer", "ptr", "{\n ptr++;\n }", "ptr++", "ptr", "return hasNextByte();", "hasNextByte()", "hasNextByte", "public String next() {\n if (!hasNext()) {\n throw new NoSuchElementException();\n }\n 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 if (!hasNext()) {\n throw new NoSuchElementException();\n }\n 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 }", "if (!hasNext()) {\n throw new NoSuchElementException();\n }", "!hasNext()", "hasNext()", "hasNext", "{\n throw new NoSuchElementException();\n }", "throw new NoSuchElementException();", "new NoSuchElementException()", "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 long nextLong() {\n if (!hasNext()) {\n throw new NoSuchElementException();\n }\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 }\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 }\n b = readByte();\n }\n }", "nextLong", "{\n if (!hasNext()) {\n throw new NoSuchElementException();\n }\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 }\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 }\n b = readByte();\n }\n }", "if (!hasNext()) {\n throw new NoSuchElementException();\n }", "!hasNext()", "hasNext()", "hasNext", "{\n throw new NoSuchElementException();\n }", "throw new NoSuchElementException();", "new NoSuchElementException()", "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();\n }", "b < '0' || '9' < b", "b < '0'", "b", "'0'", "'9' < b", "'9'", "b", "{\n throw new NumberFormatException();\n }", "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 }\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 }\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();\n }", "'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();\n }", "b == -1 || !isPrintableChar(b)", "b == -1", "b", "-1", "1", "!isPrintableChar(b)", "isPrintableChar(b)", "isPrintableChar", "b", "{\n return minus ? -n : n;\n }", "return minus ? -n : n;", "minus ? -n : n", "minus", "-n", "n", "n", "{\n throw new NumberFormatException();\n }", "throw new NumberFormatException();", "new NumberFormatException()", "b = readByte()", "b", "readByte()", "readByte", "public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) {\n throw new NumberFormatException();\n }\n return (int) nl;\n }", "nextInt", "{\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) {\n throw new NumberFormatException();\n }\n return (int) nl;\n }", "long nl = nextLong();", "nl", "nextLong()", "nextLong", "if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) {\n throw new NumberFormatException();\n }", "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", "{\n throw new NumberFormatException();\n }", "throw new NumberFormatException();", "new NumberFormatException()", "return (int) nl;", "(int) nl", "public 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", "public class Main {\n\n public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n PrintWriter out = new PrintWriter(System.out);\n\n AtCoder problem = new AtCoder(sc);\n problem.solve(out);\n\n out.flush();\n }\n\n}", "public class Main {\n\n public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n PrintWriter out = new PrintWriter(System.out);\n\n AtCoder problem = new AtCoder(sc);\n problem.solve(out);\n\n out.flush();\n }\n\n}", "Main" ]
import java.text.DecimalFormat; import java.util.stream.LongStream; import java.util.stream.IntStream; import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { FastScanner sc = new FastScanner(); PrintWriter out = new PrintWriter(System.out); AtCoder problem = new AtCoder(sc); problem.solve(out); out.flush(); } } class AtCoder { final int A, B, H, M; AtCoder(FastScanner sc) { A = sc.nextInt(); B = sc.nextInt(); H = sc.nextInt(); M = sc.nextInt(); } void solve(PrintWriter out) { double t = Math.abs(H*30.0 - 5.5*M); double rad = Math.toRadians(t); double c = A * A + B * B - 2 * A * B * Math.cos(rad); // out.println("t=" + t + " rad=" + rad + " c=" + c); out.println(Math.sqrt(c)); } } // https://qiita.com/p_shiki37/items/a0f6aac33bf60f5f65e4 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, 15, 13, 17, 15, 13, 17, 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, 4, 18, 13, 2, 2, 2, 13, 2, 13, 17, 2, 18, 13, 13, 17, 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, 4, 18, 13, 13, 41, 13, 20, 4, 18, 18, 13, 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 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 26, 31 ], [ 20, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 37, 38 ], [ 37, 39 ], [ 20, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 45, 46 ], [ 45, 47 ], [ 20, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 53, 55 ], [ 20, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 61, 62 ], [ 61, 63 ], [ 20, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 70, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 69, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 20, 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 ], [ 20, 111 ], [ 111, 112 ], [ 111, 113 ], [ 20, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 119, 120 ], [ 120, 121 ], [ 119, 122 ], [ 18, 123 ], [ 123, 124 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.text.DecimalFormat;\n\n\nimport static java.lang.System.in;\n\nclass Main {\n public static void main(String[] args)throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(in));\n String[] lo =reader.readLine().split(\" \");\n int A = Integer.parseInt(lo[0]);\n int B = Integer.parseInt(lo[1]);\n int H = Integer.parseInt(lo[2]);\n int M = Integer.parseInt(lo[3]);\n double angle = Math.abs((H+M/(double)60)*(Math.PI/(double)6) - M*(Math.PI/(double)30));\n double res = Math.sqrt((double)(A*A)+(double)(B*B)-2*A*B*Math.cos(angle));\n DecimalFormat dec = new DecimalFormat(\"#0.000000000\");\n System.out.println(dec.format(res));\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.text.DecimalFormat;", "DecimalFormat", "java.text", "import static java.lang.System.in;", "import static java.lang.System.in;", "import static java.lang.System.in;", "class Main {\n public static void main(String[] args)throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(in));\n String[] lo =reader.readLine().split(\" \");\n int A = Integer.parseInt(lo[0]);\n int B = Integer.parseInt(lo[1]);\n int H = Integer.parseInt(lo[2]);\n int M = Integer.parseInt(lo[3]);\n double angle = Math.abs((H+M/(double)60)*(Math.PI/(double)6) - M*(Math.PI/(double)30));\n double res = Math.sqrt((double)(A*A)+(double)(B*B)-2*A*B*Math.cos(angle));\n DecimalFormat dec = new DecimalFormat(\"#0.000000000\");\n System.out.println(dec.format(res));\n }\n}", "Main", "public static void main(String[] args)throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(in));\n String[] lo =reader.readLine().split(\" \");\n int A = Integer.parseInt(lo[0]);\n int B = Integer.parseInt(lo[1]);\n int H = Integer.parseInt(lo[2]);\n int M = Integer.parseInt(lo[3]);\n double angle = Math.abs((H+M/(double)60)*(Math.PI/(double)6) - M*(Math.PI/(double)30));\n double res = Math.sqrt((double)(A*A)+(double)(B*B)-2*A*B*Math.cos(angle));\n DecimalFormat dec = new DecimalFormat(\"#0.000000000\");\n System.out.println(dec.format(res));\n }", "main", "{\n BufferedReader reader = new BufferedReader(new InputStreamReader(in));\n String[] lo =reader.readLine().split(\" \");\n int A = Integer.parseInt(lo[0]);\n int B = Integer.parseInt(lo[1]);\n int H = Integer.parseInt(lo[2]);\n int M = Integer.parseInt(lo[3]);\n double angle = Math.abs((H+M/(double)60)*(Math.PI/(double)6) - M*(Math.PI/(double)30));\n double res = Math.sqrt((double)(A*A)+(double)(B*B)-2*A*B*Math.cos(angle));\n DecimalFormat dec = new DecimalFormat(\"#0.000000000\");\n System.out.println(dec.format(res));\n }", "BufferedReader reader = new BufferedReader(new InputStreamReader(in));", "reader", "new BufferedReader(new InputStreamReader(in))", "String[] lo =reader.readLine().split(\" \");", "lo", "reader.readLine().split(\" \")", "reader.readLine().split", "reader.readLine()", "reader.readLine", "reader", "\" \"", "int A = Integer.parseInt(lo[0]);", "A", "Integer.parseInt(lo[0])", "Integer.parseInt", "Integer", "lo[0]", "lo", "0", "int B = Integer.parseInt(lo[1]);", "B", "Integer.parseInt(lo[1])", "Integer.parseInt", "Integer", "lo[1]", "lo", "1", "int H = Integer.parseInt(lo[2]);", "H", "Integer.parseInt(lo[2])", "Integer.parseInt", "Integer", "lo[2]", "lo", "2", "int M = Integer.parseInt(lo[3]);", "M", "Integer.parseInt(lo[3])", "Integer.parseInt", "Integer", "lo[3]", "lo", "3", "double angle = Math.abs((H+M/(double)60)*(Math.PI/(double)6) - M*(Math.PI/(double)30));", "angle", "Math.abs((H+M/(double)60)*(Math.PI/(double)6) - M*(Math.PI/(double)30))", "Math.abs", "Math", "(H+M/(double)60)*(Math.PI/(double)6) - M*(Math.PI/(double)30)", "(H+M/(double)60)*(Math.PI/(double)6)", "(H+M/(double)60)", "H", "M/(double)60", "M", "(double)60", "(Math.PI/(double)6)", "Math.PI", "Math", "Math.PI", "(double)6", "M*(Math.PI/(double)30)", "M", "(Math.PI/(double)30)", "Math.PI", "Math", "Math.PI", "(double)30", "double res = Math.sqrt((double)(A*A)+(double)(B*B)-2*A*B*Math.cos(angle));", "res", "Math.sqrt((double)(A*A)+(double)(B*B)-2*A*B*Math.cos(angle))", "Math.sqrt", "Math", "(double)(A*A)+(double)(B*B)-2*A*B*Math.cos(angle)", "(double)(A*A)+(double)(B*B)", "(double)(A*A)", "A", "A", "(double)(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", "DecimalFormat dec = new DecimalFormat(\"#0.000000000\");", "dec", "new DecimalFormat(\"#0.000000000\")", "System.out.println(dec.format(res))", "System.out.println", "System.out", "System", "System.out", "dec.format(res)", "dec.format", "dec", "res", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.text.DecimalFormat; import static java.lang.System.in; class Main { public static void main(String[] args)throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(in)); String[] lo =reader.readLine().split(" "); int A = Integer.parseInt(lo[0]); int B = Integer.parseInt(lo[1]); int H = Integer.parseInt(lo[2]); int M = Integer.parseInt(lo[3]); double angle = Math.abs((H+M/(double)60)*(Math.PI/(double)6) - M*(Math.PI/(double)30)); double res = Math.sqrt((double)(A*A)+(double)(B*B)-2*A*B*Math.cos(angle)); DecimalFormat dec = new DecimalFormat("#0.000000000"); System.out.println(dec.format(res)); } }
[ 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, 17, 13, 0, 13, 2, 17, 2, 13, 17, 41, 13, 4, 18, 13, 2, 13, 13, 41, 13, 4, 18, 13, 13, 41, 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, 4, 18, 18, 13, 13, 4, 18, 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 ], [ 34, 36 ], [ 8, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 39, 41 ], [ 8, 42 ], [ 42, 43 ], [ 42, 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 ], [ 8, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 8, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 73, 77 ], [ 72, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 78, 82 ], [ 71, 83 ], [ 85, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 85, 89 ], [ 8, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 6, 99 ], [ 99, 100 ], [ 0, 101 ], [ 101, 102 ], [ 101, 103 ] ]
[ "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 int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n double hAngle = 30 * H;\n double mAngle = 6 * M;\n\n hAngle += 30 * (mAngle / 360);\n \n double angle = Math.abs(hAngle - mAngle);\n double rad = Math.toRadians(angle);\n double cos = Math.cos(rad);\n double x = Math.pow(A,2) + Math.pow(B,2) - 2*A*B *cos;\n\n System.out.println(Math.sqrt(x));\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 int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n double hAngle = 30 * H;\n double mAngle = 6 * M;\n\n hAngle += 30 * (mAngle / 360);\n \n double angle = Math.abs(hAngle - mAngle);\n double rad = Math.toRadians(angle);\n double cos = Math.cos(rad);\n double x = Math.pow(A,2) + Math.pow(B,2) - 2*A*B *cos;\n\n System.out.println(Math.sqrt(x));\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 double hAngle = 30 * H;\n double mAngle = 6 * M;\n\n hAngle += 30 * (mAngle / 360);\n \n double angle = Math.abs(hAngle - mAngle);\n double rad = Math.toRadians(angle);\n double cos = Math.cos(rad);\n double x = Math.pow(A,2) + Math.pow(B,2) - 2*A*B *cos;\n\n System.out.println(Math.sqrt(x));\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 double hAngle = 30 * H;\n double mAngle = 6 * M;\n\n hAngle += 30 * (mAngle / 360);\n \n double angle = Math.abs(hAngle - mAngle);\n double rad = Math.toRadians(angle);\n double cos = Math.cos(rad);\n double x = Math.pow(A,2) + Math.pow(B,2) - 2*A*B *cos;\n\n System.out.println(Math.sqrt(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 H = sc.nextInt();", "H", "sc.nextInt()", "sc.nextInt", "sc", "int M = sc.nextInt();", "M", "sc.nextInt()", "sc.nextInt", "sc", "double hAngle = 30 * H;", "hAngle", "30 * H", "30", "H", "double mAngle = 6 * M;", "mAngle", "6 * M", "6", "M", "hAngle += 30 * (mAngle / 360)", "hAngle", "30 * (mAngle / 360)", "30", "(mAngle / 360)", "mAngle", "360", "double angle = Math.abs(hAngle - mAngle);", "angle", "Math.abs(hAngle - mAngle)", "Math.abs", "Math", "hAngle - mAngle", "hAngle", "mAngle", "double rad = Math.toRadians(angle);", "rad", "Math.toRadians(angle)", "Math.toRadians", "Math", "angle", "double cos = Math.cos(rad);", "cos", "Math.cos(rad)", "Math.cos", "Math", "rad", "double x = Math.pow(A,2) + Math.pow(B,2) - 2*A*B *cos;", "x", "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(x))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(x)", "Math.sqrt", "Math", "x", "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 double hAngle = 30 * H;\n double mAngle = 6 * M;\n\n hAngle += 30 * (mAngle / 360);\n \n double angle = Math.abs(hAngle - mAngle);\n double rad = Math.toRadians(angle);\n double cos = Math.cos(rad);\n double x = Math.pow(A,2) + Math.pow(B,2) - 2*A*B *cos;\n\n System.out.println(Math.sqrt(x));\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 double hAngle = 30 * H;\n double mAngle = 6 * M;\n\n hAngle += 30 * (mAngle / 360);\n \n double angle = Math.abs(hAngle - mAngle);\n double rad = Math.toRadians(angle);\n double cos = Math.cos(rad);\n double x = Math.pow(A,2) + Math.pow(B,2) - 2*A*B *cos;\n\n System.out.println(Math.sqrt(x));\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 hAngle = 30 * H; double mAngle = 6 * M; hAngle += 30 * (mAngle / 360); double angle = Math.abs(hAngle - mAngle); double rad = Math.toRadians(angle); double cos = Math.cos(rad); double x = Math.pow(A,2) + Math.pow(B,2) - 2*A*B *cos; System.out.println(Math.sqrt(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, 13, 17, 41, 13, 2, 13, 17, 41, 13, 17, 41, 13, 2, 17, 13, 0, 13, 2, 13, 13, 14, 2, 13, 13, 30, 0, 13, 2, 13, 13, 30, 0, 13, 2, 13, 13, 0, 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, 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 ], [ 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 ], [ 34, 36 ], [ 8, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 39, 41 ], [ 8, 42 ], [ 42, 43 ], [ 42, 44 ], [ 8, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 47, 49 ], [ 8, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 8, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 55, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 8, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 8, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 81, 85 ], [ 80, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 86, 90 ], [ 79, 91 ], [ 93, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 93, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 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 ], [ 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 sn = new Scanner(System.in);\n int A = sn.nextInt();\n int B = sn.nextInt();\n int H = sn.nextInt();\n int M = sn.nextInt();\n\n double HDgree = M*6;\n double MDgree = H*30;\n double Dgree = 0;\n double n = 0.5*M;\n\n MDgree = MDgree + n;\n \n if(HDgree > MDgree){\n Dgree = HDgree - MDgree;\n }else{\n Dgree = MDgree - HDgree;\n }\n \n Dgree = Math.abs(Dgree);\n\n double c = Math.pow(A, 2) + Math.pow(B, 2) - 2*A*B*Math.cos(Math.toRadians(Dgree));\n\n double result = Math.sqrt(c);\n\n System.out.println(result);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String args[]){\n Scanner sn = new Scanner(System.in);\n int A = sn.nextInt();\n int B = sn.nextInt();\n int H = sn.nextInt();\n int M = sn.nextInt();\n\n double HDgree = M*6;\n double MDgree = H*30;\n double Dgree = 0;\n double n = 0.5*M;\n\n MDgree = MDgree + n;\n \n if(HDgree > MDgree){\n Dgree = HDgree - MDgree;\n }else{\n Dgree = MDgree - HDgree;\n }\n \n Dgree = Math.abs(Dgree);\n\n double c = Math.pow(A, 2) + Math.pow(B, 2) - 2*A*B*Math.cos(Math.toRadians(Dgree));\n\n double result = Math.sqrt(c);\n\n System.out.println(result);\n }\n}", "Main", "public static void main(String args[]){\n Scanner sn = new Scanner(System.in);\n int A = sn.nextInt();\n int B = sn.nextInt();\n int H = sn.nextInt();\n int M = sn.nextInt();\n\n double HDgree = M*6;\n double MDgree = H*30;\n double Dgree = 0;\n double n = 0.5*M;\n\n MDgree = MDgree + n;\n \n if(HDgree > MDgree){\n Dgree = HDgree - MDgree;\n }else{\n Dgree = MDgree - HDgree;\n }\n \n Dgree = Math.abs(Dgree);\n\n double c = Math.pow(A, 2) + Math.pow(B, 2) - 2*A*B*Math.cos(Math.toRadians(Dgree));\n\n double result = Math.sqrt(c);\n\n System.out.println(result);\n }", "main", "{\n Scanner sn = new Scanner(System.in);\n int A = sn.nextInt();\n int B = sn.nextInt();\n int H = sn.nextInt();\n int M = sn.nextInt();\n\n double HDgree = M*6;\n double MDgree = H*30;\n double Dgree = 0;\n double n = 0.5*M;\n\n MDgree = MDgree + n;\n \n if(HDgree > MDgree){\n Dgree = HDgree - MDgree;\n }else{\n Dgree = MDgree - HDgree;\n }\n \n Dgree = Math.abs(Dgree);\n\n double c = Math.pow(A, 2) + Math.pow(B, 2) - 2*A*B*Math.cos(Math.toRadians(Dgree));\n\n double result = Math.sqrt(c);\n\n System.out.println(result);\n }", "Scanner sn = new Scanner(System.in);", "sn", "new Scanner(System.in)", "int A = sn.nextInt();", "A", "sn.nextInt()", "sn.nextInt", "sn", "int B = sn.nextInt();", "B", "sn.nextInt()", "sn.nextInt", "sn", "int H = sn.nextInt();", "H", "sn.nextInt()", "sn.nextInt", "sn", "int M = sn.nextInt();", "M", "sn.nextInt()", "sn.nextInt", "sn", "double HDgree = M*6;", "HDgree", "M*6", "M", "6", "double MDgree = H*30;", "MDgree", "H*30", "H", "30", "double Dgree = 0;", "Dgree", "0", "double n = 0.5*M;", "n", "0.5*M", "0.5", "M", "MDgree = MDgree + n", "MDgree", "MDgree + n", "MDgree", "n", "if(HDgree > MDgree){\n Dgree = HDgree - MDgree;\n }else{\n Dgree = MDgree - HDgree;\n }", "HDgree > MDgree", "HDgree", "MDgree", "{\n Dgree = HDgree - MDgree;\n }", "Dgree = HDgree - MDgree", "Dgree", "HDgree - MDgree", "HDgree", "MDgree", "{\n Dgree = MDgree - HDgree;\n }", "Dgree = MDgree - HDgree", "Dgree", "MDgree - HDgree", "MDgree", "HDgree", "Dgree = Math.abs(Dgree)", "Dgree", "Math.abs(Dgree)", "Math.abs", "Math", "Dgree", "double c = Math.pow(A, 2) + Math.pow(B, 2) - 2*A*B*Math.cos(Math.toRadians(Dgree));", "c", "Math.pow(A, 2) + Math.pow(B, 2) - 2*A*B*Math.cos(Math.toRadians(Dgree))", "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(Dgree))", "B", "2*A*B*Math.cos(Math.toRadians(Dgree))", "2", "A", "B", "Math.cos(Math.toRadians(Dgree))", "Math.cos", "Math", "Math.toRadians(Dgree)", "Math.toRadians", "Math", "Dgree", "double result = Math.sqrt(c);", "result", "Math.sqrt(c)", "Math.sqrt", "Math", "c", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "String args[]", "args", "public class Main{\n public static void main(String args[]){\n Scanner sn = new Scanner(System.in);\n int A = sn.nextInt();\n int B = sn.nextInt();\n int H = sn.nextInt();\n int M = sn.nextInt();\n\n double HDgree = M*6;\n double MDgree = H*30;\n double Dgree = 0;\n double n = 0.5*M;\n\n MDgree = MDgree + n;\n \n if(HDgree > MDgree){\n Dgree = HDgree - MDgree;\n }else{\n Dgree = MDgree - HDgree;\n }\n \n Dgree = Math.abs(Dgree);\n\n double c = Math.pow(A, 2) + Math.pow(B, 2) - 2*A*B*Math.cos(Math.toRadians(Dgree));\n\n double result = Math.sqrt(c);\n\n System.out.println(result);\n }\n}", "public class Main{\n public static void main(String args[]){\n Scanner sn = new Scanner(System.in);\n int A = sn.nextInt();\n int B = sn.nextInt();\n int H = sn.nextInt();\n int M = sn.nextInt();\n\n double HDgree = M*6;\n double MDgree = H*30;\n double Dgree = 0;\n double n = 0.5*M;\n\n MDgree = MDgree + n;\n \n if(HDgree > MDgree){\n Dgree = HDgree - MDgree;\n }else{\n Dgree = MDgree - HDgree;\n }\n \n Dgree = Math.abs(Dgree);\n\n double c = Math.pow(A, 2) + Math.pow(B, 2) - 2*A*B*Math.cos(Math.toRadians(Dgree));\n\n double result = Math.sqrt(c);\n\n System.out.println(result);\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sn = new Scanner(System.in); int A = sn.nextInt(); int B = sn.nextInt(); int H = sn.nextInt(); int M = sn.nextInt(); double HDgree = M*6; double MDgree = H*30; double Dgree = 0; double n = 0.5*M; MDgree = MDgree + n; if(HDgree > MDgree){ Dgree = HDgree - MDgree; }else{ Dgree = MDgree - HDgree; } Dgree = Math.abs(Dgree); double c = Math.pow(A, 2) + Math.pow(B, 2) - 2*A*B*Math.cos(Math.toRadians(Dgree)); double result = Math.sqrt(c); 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, 17, 41, 13, 2, 13, 2, 17, 13, 41, 13, 2, 17, 13, 41, 13, 2, 17, 13, 42, 2, 13, 17, 30, 0, 13, 2, 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, 4, 18, 18, 13, 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 ], [ 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 ], [ 37, 39 ], [ 39, 40 ], [ 39, 41 ], [ 8, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 44, 46 ], [ 8, 47 ], [ 47, 48 ], [ 47, 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 ], [ 8, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 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 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 94, 95 ], [ 94, 96 ], [ 8, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 6, 103 ], [ 103, 104 ], [ 0, 105 ], [ 105, 106 ], [ 105, 107 ] ]
[ "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 result = 0;\n\t\tint minute = M + 60 * H;\n\t\tdouble radianA = 0.5 * minute;\n\t\tdouble radianB = 6 * minute;\n\t\twhile (radianB >= 360) {\n\t\t\tradianB = radianB - 360;\n\t\t}\n\t\t//System.out.println(result);\n\t\t//System.out.println(radianA);\n\t\t//System.out.println(radianB);\n\t\tresult = Math.sqrt(\n\t\t\t\tMath.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * Math.cos(Math.toRadians(Math.abs(radianA - radianB))));\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\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 result = 0;\n\t\tint minute = M + 60 * H;\n\t\tdouble radianA = 0.5 * minute;\n\t\tdouble radianB = 6 * minute;\n\t\twhile (radianB >= 360) {\n\t\t\tradianB = radianB - 360;\n\t\t}\n\t\t//System.out.println(result);\n\t\t//System.out.println(radianA);\n\t\t//System.out.println(radianB);\n\t\tresult = Math.sqrt(\n\t\t\t\tMath.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * Math.cos(Math.toRadians(Math.abs(radianA - radianB))));\n\t\tSystem.out.println(result);\n\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 result = 0;\n\t\tint minute = M + 60 * H;\n\t\tdouble radianA = 0.5 * minute;\n\t\tdouble radianB = 6 * minute;\n\t\twhile (radianB >= 360) {\n\t\t\tradianB = radianB - 360;\n\t\t}\n\t\t//System.out.println(result);\n\t\t//System.out.println(radianA);\n\t\t//System.out.println(radianB);\n\t\tresult = Math.sqrt(\n\t\t\t\tMath.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * Math.cos(Math.toRadians(Math.abs(radianA - radianB))));\n\t\tSystem.out.println(result);\n\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 result = 0;\n\t\tint minute = M + 60 * H;\n\t\tdouble radianA = 0.5 * minute;\n\t\tdouble radianB = 6 * minute;\n\t\twhile (radianB >= 360) {\n\t\t\tradianB = radianB - 360;\n\t\t}\n\t\t//System.out.println(result);\n\t\t//System.out.println(radianA);\n\t\t//System.out.println(radianB);\n\t\tresult = Math.sqrt(\n\t\t\t\tMath.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * Math.cos(Math.toRadians(Math.abs(radianA - radianB))));\n\t\tSystem.out.println(result);\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 result = 0;", "result", "0", "int minute = M + 60 * H;", "minute", "M + 60 * H", "M", "60 * H", "60", "H", "double radianA = 0.5 * minute;", "radianA", "0.5 * minute", "0.5", "minute", "double radianB = 6 * minute;", "radianB", "6 * minute", "6", "minute", "while (radianB >= 360) {\n\t\t\tradianB = radianB - 360;\n\t\t}", "radianB >= 360", "radianB", "360", "{\n\t\t\tradianB = radianB - 360;\n\t\t}", "radianB = radianB - 360", "radianB", "radianB - 360", "radianB", "360", "result = Math.sqrt(\n\t\t\t\tMath.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * Math.cos(Math.toRadians(Math.abs(radianA - radianB))))", "result", "Math.sqrt(\n\t\t\t\tMath.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * Math.cos(Math.toRadians(Math.abs(radianA - radianB))))", "Math.sqrt", "Math", "Math.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * Math.cos(Math.toRadians(Math.abs(radianA - radianB)))", "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(radianA - radianB)))", "B", "2 * A * B * Math.cos(Math.toRadians(Math.abs(radianA - radianB)))", "2", "A", "B", "Math.cos(Math.toRadians(Math.abs(radianA - radianB)))", "Math.cos", "Math", "Math.toRadians(Math.abs(radianA - radianB))", "Math.toRadians", "Math", "Math.abs(radianA - radianB)", "Math.abs", "Math", "radianA - radianB", "radianA", "radianB", "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\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 result = 0;\n\t\tint minute = M + 60 * H;\n\t\tdouble radianA = 0.5 * minute;\n\t\tdouble radianB = 6 * minute;\n\t\twhile (radianB >= 360) {\n\t\t\tradianB = radianB - 360;\n\t\t}\n\t\t//System.out.println(result);\n\t\t//System.out.println(radianA);\n\t\t//System.out.println(radianB);\n\t\tresult = Math.sqrt(\n\t\t\t\tMath.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * Math.cos(Math.toRadians(Math.abs(radianA - radianB))));\n\t\tSystem.out.println(result);\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\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 result = 0;\n\t\tint minute = M + 60 * H;\n\t\tdouble radianA = 0.5 * minute;\n\t\tdouble radianB = 6 * minute;\n\t\twhile (radianB >= 360) {\n\t\t\tradianB = radianB - 360;\n\t\t}\n\t\t//System.out.println(result);\n\t\t//System.out.println(radianA);\n\t\t//System.out.println(radianB);\n\t\tresult = Math.sqrt(\n\t\t\t\tMath.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * Math.cos(Math.toRadians(Math.abs(radianA - radianB))));\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) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int H = sc.nextInt(); int M = sc.nextInt(); double result = 0; int minute = M + 60 * H; double radianA = 0.5 * minute; double radianB = 6 * minute; while (radianB >= 360) { radianB = radianB - 360; } //System.out.println(result); //System.out.println(radianA); //System.out.println(radianB); result = Math.sqrt( Math.pow(A, 2) + Math.pow(B, 2) - 2 * A * B * Math.cos(Math.toRadians(Math.abs(radianA - radianB)))); 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, 14, 2, 13, 17, 0, 13, 17, 41, 13, 2, 2, 2, 13, 17, 13, 17, 41, 13, 2, 13, 17, 14, 2, 13, 17, 0, 13, 17, 41, 13, 17, 14, 2, 13, 13, 30, 0, 13, 2, 13, 13, 30, 0, 13, 2, 13, 13, 0, 13, 4, 18, 13, 13, 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 ]
[ [ 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 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 36, 38 ], [ 8, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 41, 47 ], [ 8, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 50, 52 ], [ 8, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 57, 59 ], [ 8, 60 ], [ 60, 61 ], [ 60, 62 ], [ 8, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 63, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 8, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 81, 85 ], [ 85, 86 ], [ 85, 87 ], [ 8, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 8, 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 ] ]
[ "import java.util.*;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \tint A = sc.nextInt();\n \tint B = sc.nextInt();\n \tint H = sc.nextInt();\n \tint M = sc.nextInt();\n \tif(H == 0) H = 12;\n\t\tdouble H2 = (H * 60 + M) * 0.5;\n double M2 = M * 6;\n \tif (M2 == 0) M2 = 360;\n \tdouble kakudo = 0;\n \tif(M2 > H2){\n\t kakudo = M2 - H2;\n }\n \telse{\n kakudo = H2 - M2;\n \t}\n \t\n \tkakudo = Math.min(kakudo,360-kakudo);\n \t//System.out.println(kakudo);\n \t\n double cos = Math.cos(Math.toRadians(kakudo));\n \t double ans = Math.sqrt((A*A)+(B*B)-(2*A*B*cos));\n\n System.out.println(ans);\n }\n}", "import java.util.*;", "util.*", "java", "class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \tint A = sc.nextInt();\n \tint B = sc.nextInt();\n \tint H = sc.nextInt();\n \tint M = sc.nextInt();\n \tif(H == 0) H = 12;\n\t\tdouble H2 = (H * 60 + M) * 0.5;\n double M2 = M * 6;\n \tif (M2 == 0) M2 = 360;\n \tdouble kakudo = 0;\n \tif(M2 > H2){\n\t kakudo = M2 - H2;\n }\n \telse{\n kakudo = H2 - M2;\n \t}\n \t\n \tkakudo = Math.min(kakudo,360-kakudo);\n \t//System.out.println(kakudo);\n \t\n double cos = Math.cos(Math.toRadians(kakudo));\n \t double ans = Math.sqrt((A*A)+(B*B)-(2*A*B*cos));\n\n System.out.println(ans);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \tint A = sc.nextInt();\n \tint B = sc.nextInt();\n \tint H = sc.nextInt();\n \tint M = sc.nextInt();\n \tif(H == 0) H = 12;\n\t\tdouble H2 = (H * 60 + M) * 0.5;\n double M2 = M * 6;\n \tif (M2 == 0) M2 = 360;\n \tdouble kakudo = 0;\n \tif(M2 > H2){\n\t kakudo = M2 - H2;\n }\n \telse{\n kakudo = H2 - M2;\n \t}\n \t\n \tkakudo = Math.min(kakudo,360-kakudo);\n \t//System.out.println(kakudo);\n \t\n double cos = Math.cos(Math.toRadians(kakudo));\n \t double ans = Math.sqrt((A*A)+(B*B)-(2*A*B*cos));\n\n System.out.println(ans);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n \tint A = sc.nextInt();\n \tint B = sc.nextInt();\n \tint H = sc.nextInt();\n \tint M = sc.nextInt();\n \tif(H == 0) H = 12;\n\t\tdouble H2 = (H * 60 + M) * 0.5;\n double M2 = M * 6;\n \tif (M2 == 0) M2 = 360;\n \tdouble kakudo = 0;\n \tif(M2 > H2){\n\t kakudo = M2 - H2;\n }\n \telse{\n kakudo = H2 - M2;\n \t}\n \t\n \tkakudo = Math.min(kakudo,360-kakudo);\n \t//System.out.println(kakudo);\n \t\n double cos = Math.cos(Math.toRadians(kakudo));\n \t double ans = Math.sqrt((A*A)+(B*B)-(2*A*B*cos));\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", "if(H == 0) H = 12;", "H == 0", "H", "0", "H = 12", "H", "12", "double H2 = (H * 60 + M) * 0.5;", "H2", "(H * 60 + M) * 0.5", "(H * 60 + M)", "H * 60", "H", "60", "M", "0.5", "double M2 = M * 6;", "M2", "M * 6", "M", "6", "if (M2 == 0) M2 = 360;", "M2 == 0", "M2", "0", "M2 = 360", "M2", "360", "double kakudo = 0;", "kakudo", "0", "if(M2 > H2){\n\t kakudo = M2 - H2;\n }\n \telse{\n kakudo = H2 - M2;\n \t}", "M2 > H2", "M2", "H2", "{\n\t kakudo = M2 - H2;\n }", "kakudo = M2 - H2", "kakudo", "M2 - H2", "M2", "H2", "{\n kakudo = H2 - M2;\n \t}", "kakudo = H2 - M2", "kakudo", "H2 - M2", "H2", "M2", "kakudo = Math.min(kakudo,360-kakudo)", "kakudo", "Math.min(kakudo,360-kakudo)", "Math.min", "Math", "kakudo", "360-kakudo", "360", "kakudo", "double cos = Math.cos(Math.toRadians(kakudo));", "cos", "Math.cos(Math.toRadians(kakudo))", "Math.cos", "Math", "Math.toRadians(kakudo)", "Math.toRadians", "Math", "kakudo", "double 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" ]
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(); if(H == 0) H = 12; double H2 = (H * 60 + M) * 0.5; double M2 = M * 6; if (M2 == 0) M2 = 360; double kakudo = 0; if(M2 > H2){ kakudo = M2 - H2; } else{ kakudo = H2 - M2; } kakudo = Math.min(kakudo,360-kakudo); //System.out.println(kakudo); double cos = Math.cos(Math.toRadians(kakudo)); double ans = Math.sqrt((A*A)+(B*B)-(2*A*B*cos)); 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, 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, 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, 13, 4, 18, 13, 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, 6, 13, 12, 13, 23, 13, 6, 13, 41, 13, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 0, 18, 36, 13, 20, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 17, 30, 4, 18, 13, 17, 4, 18, 13, 18, 13, 13, 23, 13, 12, 13, 30, 4, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 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 ], [ 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 ], [ 411, 35 ], [ 411, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 41, 43 ], [ 38, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 38, 49 ], [ 49, 50 ], [ 49, 51 ], [ 38, 52 ], [ 52, 53 ], [ 52, 54 ], [ 38, 55 ], [ 55, 56 ], [ 55, 57 ], [ 38, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 58, 62 ], [ 58, 63 ], [ 38, 64 ], [ 64, 65 ], [ 65, 66 ], [ 36, 67 ], [ 67, 68 ], [ 411, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 73, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 73, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 73, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 73, 94 ], [ 94, 95 ], [ 94, 96 ], [ 97, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 97, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 108, 108 ], [ 108, 109 ], [ 108, 110 ], [ 108, 111 ], [ 102, 112 ], [ 112, 113 ], [ 112, 114 ], [ 73, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 118, 122 ], [ 122, 123 ], [ 122, 124 ], [ 117, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 125, 131 ], [ 131, 132 ], [ 132, 133 ], [ 131, 134 ], [ 73, 135 ], [ 135, 136 ], [ 136, 137 ], [ 135, 138 ], [ 138, 139 ], [ 139, 140 ], [ 138, 141 ], [ 71, 142 ], [ 142, 143 ], [ 71, 144 ], [ 144, 145 ], [ 71, 146 ], [ 146, 147 ], [ 411, 148 ], [ 148, 149 ], [ 148, 150 ], [ 150, 151 ], [ 148, 152 ], [ 152, 153 ], [ 152, 154 ], [ 148, 156 ], [ 156, 157 ], [ 148, 158 ], [ 158, 159 ], [ 148, 160 ], [ 160, 161 ], [ 148, 162 ], [ 162, 163 ], [ 162, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 165, 169 ], [ 162, 170 ], [ 170, 171 ], [ 148, 172 ], [ 172, 173 ], [ 172, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 178, 179 ], [ 175, 180 ], [ 180, 181 ], [ 181, 182 ], [ 174, 183 ], [ 183, 184 ], [ 184, 185 ], [ 184, 186 ], [ 183, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 187, 191 ], [ 191, 192 ], [ 192, 193 ], [ 192, 194 ], [ 194, 195 ], [ 195, 196 ], [ 191, 197 ], [ 197, 198 ], [ 198, 199 ], [ 198, 200 ], [ 200, 201 ], [ 201, 202 ], [ 200, 203 ], [ 187, 204 ], [ 204, 205 ], [ 205, 206 ], [ 205, 207 ], [ 204, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 174, 212 ], [ 212, 213 ], [ 213, 214 ], [ 213, 215 ], [ 215, 216 ], [ 148, 217 ], [ 217, 218 ], [ 217, 219 ], [ 219, 220 ], [ 220, 221 ], [ 220, 222 ], [ 222, 223 ], [ 219, 224 ], [ 224, 225 ], [ 225, 226 ], [ 225, 227 ], [ 224, 228 ], [ 228, 229 ], [ 229, 230 ], [ 229, 231 ], [ 231, 232 ], [ 219, 233 ], [ 233, 234 ], [ 233, 235 ], [ 219, 236 ], [ 236, 237 ], [ 237, 238 ], [ 237, 239 ], [ 236, 240 ], [ 240, 241 ], [ 241, 242 ], [ 241, 243 ], [ 243, 244 ], [ 240, 245 ], [ 245, 246 ], [ 245, 247 ], [ 247, 248 ], [ 219, 249 ], [ 249, 250 ], [ 249, 251 ], [ 219, 252 ], [ 252, 253 ], [ 253, 254 ], [ 254, 255 ], [ 254, 256 ], [ 252, 257 ], [ 257, 258 ], [ 258, 259 ], [ 259, 260 ], [ 260, 261 ], [ 260, 262 ], [ 259, 263 ], [ 263, 264 ], [ 263, 265 ], [ 258, 266 ], [ 266, 267 ], [ 267, 268 ], [ 257, 269 ], [ 269, 270 ], [ 269, 271 ], [ 257, 272 ], [ 272, 273 ], [ 272, 274 ], [ 274, 275 ], [ 274, 276 ], [ 257, 277 ], [ 277, 278 ], [ 277, 279 ], [ 279, 280 ], [ 219, 281 ], [ 281, 282 ], [ 282, 283 ], [ 282, 284 ], [ 148, 285 ], [ 285, 286 ], [ 285, 287 ], [ 287, 288 ], [ 288, 289 ], [ 289, 290 ], [ 289, 291 ], [ 288, 292 ], [ 292, 293 ], [ 293, 294 ], [ 294, 295 ], [ 295, 296 ], [ 294, 297 ], [ 287, 298 ], [ 298, 299 ], [ 299, 300 ], [ 299, 301 ], [ 285, 302 ], [ 302, 303 ], [ 148, 304 ], [ 304, 305 ], [ 304, 306 ], [ 306, 307 ], [ 307, 308 ], [ 311, 309 ], [ 321, 310 ], [ 318, 311 ], [ 311, 312 ], [ 312, 313 ], [ 312, 314 ], [ 311, 315 ], [ 315, 316 ], [ 315, 317 ], [ 318, 318 ], [ 318, 319 ], [ 318, 320 ], [ 321, 321 ], [ 321, 322 ], [ 321, 323 ], [ 311, 324 ], [ 324, 325 ], [ 324, 326 ], [ 326, 327 ], [ 304, 328 ], [ 328, 329 ], [ 148, 330 ], [ 330, 331 ], [ 330, 332 ], [ 332, 333 ], [ 332, 334 ], [ 334, 335 ], [ 411, 336 ], [ 336, 337 ], [ 336, 338 ], [ 338, 339 ], [ 336, 340 ], [ 340, 341 ], [ 340, 342 ], [ 342, 343 ], [ 343, 344 ], [ 343, 345 ], [ 340, 346 ], [ 346, 347 ], [ 336, 348 ], [ 348, 349 ], [ 348, 350 ], [ 350, 351 ], [ 351, 352 ], [ 352, 353 ], [ 352, 354 ], [ 351, 355 ], [ 348, 356 ], [ 356, 357 ], [ 336, 358 ], [ 358, 359 ], [ 358, 360 ], [ 360, 361 ], [ 361, 362 ], [ 362, 363 ], [ 363, 364 ], [ 363, 365 ], [ 361, 366 ], [ 366, 367 ], [ 366, 368 ], [ 368, 369 ], [ 368, 370 ], [ 361, 371 ], [ 371, 372 ], [ 372, 373 ], [ 361, 374 ], [ 375, 375 ], [ 375, 376 ], [ 376, 377 ], [ 377, 378 ], [ 377, 379 ], [ 376, 380 ], [ 380, 381 ], [ 381, 382 ], [ 382, 383 ], [ 381, 384 ], [ 375, 385 ], [ 385, 386 ], [ 386, 387 ], [ 385, 388 ], [ 388, 389 ], [ 388, 390 ], [ 358, 391 ], [ 391, 392 ], [ 336, 393 ], [ 393, 394 ], [ 393, 395 ], [ 395, 396 ], [ 396, 397 ], [ 396, 398 ], [ 395, 399 ], [ 399, 400 ], [ 400, 401 ], [ 393, 402 ], [ 402, 403 ], [ 336, 404 ], [ 404, 405 ], [ 404, 406 ], [ 406, 407 ], [ 407, 408 ], [ 408, 409 ], [ 0, 410 ], [ 410, 411 ], [ 410, 412 ] ]
[ "import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\nimport java.io.BufferedWriter;\nimport java.io.Writer;\nimport java.io.OutputStreamWriter;\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 */\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 OutputWriter out = new OutputWriter(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, OutputWriter out) {\n int A = in.readInt(), B = in.readInt(), H = in.readInt(), M = in.readInt();\n\n\n double rad = Math.PI * 2.0 * (H / 12.0 + M / 60.0 / 12.0 - M / 60.0);\n\n\n double side = (A * A) + (B * B) - (2 * A * B * Math.cos(rad));\n out.printLine(Math.sqrt(side));\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 readInt() {\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 interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }\n\n public void printLine(Object... objects) {\n print(objects);\n writer.println();\n }\n\n public void close() {\n writer.close();\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.OutputStream;", "OutputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.io.BufferedWriter;", "BufferedWriter", "java.io", "import java.io.Writer;", "Writer", "java.io", "import java.io.OutputStreamWriter;", "OutputStreamWriter", "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 OutputWriter out = new OutputWriter(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, OutputWriter out) {\n int A = in.readInt(), B = in.readInt(), H = in.readInt(), M = in.readInt();\n\n\n double rad = Math.PI * 2.0 * (H / 12.0 + M / 60.0 / 12.0 - M / 60.0);\n\n\n double side = (A * A) + (B * B) - (2 * A * B * Math.cos(rad));\n out.printLine(Math.sqrt(side));\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 readInt() {\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 interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }\n\n public void printLine(Object... objects) {\n print(objects);\n writer.println();\n }\n\n public void close() {\n writer.close();\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 OutputWriter out = new OutputWriter(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 OutputWriter out = new OutputWriter(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)", "OutputWriter out = new OutputWriter(outputStream);", "out", "new OutputWriter(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, OutputWriter out) {\n int A = in.readInt(), B = in.readInt(), H = in.readInt(), M = in.readInt();\n\n\n double rad = Math.PI * 2.0 * (H / 12.0 + M / 60.0 / 12.0 - M / 60.0);\n\n\n double side = (A * A) + (B * B) - (2 * A * B * Math.cos(rad));\n out.printLine(Math.sqrt(side));\n }\n\n }", "CColon", "public void solve(int testNumber, InputReader in, OutputWriter out) {\n int A = in.readInt(), B = in.readInt(), H = in.readInt(), M = in.readInt();\n\n\n double rad = Math.PI * 2.0 * (H / 12.0 + M / 60.0 / 12.0 - M / 60.0);\n\n\n double side = (A * A) + (B * B) - (2 * A * B * Math.cos(rad));\n out.printLine(Math.sqrt(side));\n }", "solve", "{\n int A = in.readInt(), B = in.readInt(), H = in.readInt(), M = in.readInt();\n\n\n double rad = Math.PI * 2.0 * (H / 12.0 + M / 60.0 / 12.0 - M / 60.0);\n\n\n double side = (A * A) + (B * B) - (2 * A * B * Math.cos(rad));\n out.printLine(Math.sqrt(side));\n }", "int A = in.readInt()", "A", "in.readInt()", "in.readInt", "in", "B = in.readInt()", "B", "in.readInt()", "in.readInt", "in", "H = in.readInt()", "H", "in.readInt()", "in.readInt", "in", "M = in.readInt();", "M", "in.readInt()", "in.readInt", "in", "double rad = Math.PI * 2.0 * (H / 12.0 + M / 60.0 / 12.0 - M / 60.0);", "rad", "Math.PI * 2.0 * (H / 12.0 + M / 60.0 / 12.0 - M / 60.0)", "Math.PI * 2.0 * (H / 12.0 + M / 60.0 / 12.0 - M / 60.0)", "Math.PI", "Math", "Math.PI", "2.0", "(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 / 12.0", "M", "60.0", "12.0", "M / 60.0", "M", "60.0", "double side = (A * A) + (B * B) - (2 * A * B * Math.cos(rad));", "side", "(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", "out.printLine(Math.sqrt(side))", "out.printLine", "out", "Math.sqrt(side)", "Math.sqrt", "Math", "side", "int testNumber", "testNumber", "InputReader in", "in", "OutputWriter 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 readInt() {\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 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 readInt() {\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 }", "readInt", "{\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 interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }", "SpaceCharFilter", "public boolean isSpaceChar(int ch);", "isSpaceChar", "int ch", "ch", "static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }\n\n public void printLine(Object... objects) {\n print(objects);\n writer.println();\n }\n\n public void close() {\n writer.close();\n }\n\n }", "OutputWriter", "private final PrintWriter writer;", "writer", "public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }", "OutputWriter", "{\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }", "writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)))", "writer", "new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)))", "OutputStream outputStream", "outputStream", "public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }", "OutputWriter", "{\n this.writer = new PrintWriter(writer);\n }", "this.writer = new PrintWriter(writer)", "this.writer", "this", "this.writer", "new PrintWriter(writer)", "Writer writer", "writer", "public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }", "print", "{\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }", "for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < objects.length", "i", "objects.length", "objects", "objects.length", "i++", "i++", "i", "{\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }", "{\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }", "if (i != 0) {\n writer.print(' ');\n }", "i != 0", "i", "0", "{\n writer.print(' ');\n }", "writer.print(' ')", "writer.print", "writer", "' '", "writer.print(objects[i])", "writer.print", "writer", "objects[i]", "objects", "i", "Object... objects", "objects", "public void printLine(Object... objects) {\n print(objects);\n writer.println();\n }", "printLine", "{\n print(objects);\n writer.println();\n }", "print(objects)", "print", "objects", "writer.println()", "writer.println", "writer", "Object... objects", "objects", "public void close() {\n writer.close();\n }", "close", "{\n writer.close();\n }", "writer.close()", "writer.close", "writer", "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 OutputWriter out = new OutputWriter(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, OutputWriter out) {\n int A = in.readInt(), B = in.readInt(), H = in.readInt(), M = in.readInt();\n\n\n double rad = Math.PI * 2.0 * (H / 12.0 + M / 60.0 / 12.0 - M / 60.0);\n\n\n double side = (A * A) + (B * B) - (2 * A * B * Math.cos(rad));\n out.printLine(Math.sqrt(side));\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 readInt() {\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 interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }\n\n public void printLine(Object... objects) {\n print(objects);\n writer.println();\n }\n\n public void close() {\n writer.close();\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 OutputWriter out = new OutputWriter(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, OutputWriter out) {\n int A = in.readInt(), B = in.readInt(), H = in.readInt(), M = in.readInt();\n\n\n double rad = Math.PI * 2.0 * (H / 12.0 + M / 60.0 / 12.0 - M / 60.0);\n\n\n double side = (A * A) + (B * B) - (2 * A * B * Math.cos(rad));\n out.printLine(Math.sqrt(side));\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 readInt() {\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 interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }\n\n public void printLine(Object... objects) {\n print(objects);\n writer.println();\n }\n\n public void close() {\n writer.close();\n }\n\n }\n}", "Main" ]
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintWriter; import java.io.BufferedWriter; import java.io.Writer; import java.io.OutputStreamWriter; import java.util.InputMismatchException; import java.io.IOException; 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; InputReader in = new InputReader(inputStream); OutputWriter out = new OutputWriter(outputStream); CColon solver = new CColon(); solver.solve(1, in, out); out.close(); } static class CColon { public void solve(int testNumber, InputReader in, OutputWriter out) { int A = in.readInt(), B = in.readInt(), H = in.readInt(), M = in.readInt(); double rad = Math.PI * 2.0 * (H / 12.0 + M / 60.0 / 12.0 - M / 60.0); double side = (A * A) + (B * B) - (2 * A * B * Math.cos(rad)); out.printLine(Math.sqrt(side)); } } 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 readInt() { 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 interface SpaceCharFilter { public boolean isSpaceChar(int ch); } } static class OutputWriter { private final PrintWriter writer; public OutputWriter(OutputStream outputStream) { writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream))); } public OutputWriter(Writer writer) { this.writer = new PrintWriter(writer); } public void print(Object... objects) { for (int i = 0; i < objects.length; i++) { if (i != 0) { writer.print(' '); } writer.print(objects[i]); } } public void printLine(Object... objects) { print(objects); writer.println(); } public void close() { writer.close(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 2, 17, 17, 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, 13, 17, 2, 2, 13, 17, 17, 41, 13, 2, 13, 17, 41, 13, 2, 4, 18, 13, 2, 13, 13, 17, 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 ], [ 113, 8 ], [ 113, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 11, 13 ], [ 113, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 16, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 25, 26 ], [ 26, 27 ], [ 16, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 33, 34 ], [ 34, 35 ], [ 16, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 41, 42 ], [ 42, 43 ], [ 16, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 49, 50 ], [ 50, 51 ], [ 16, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 59, 59 ], [ 59, 60 ], [ 59, 61 ], [ 59, 62 ], [ 16, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 16, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 74, 75 ], [ 74, 76 ], [ 70, 77 ], [ 16, 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 ], [ 16, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 14, 110 ], [ 110, 111 ], [ 0, 112 ], [ 112, 113 ], [ 112, 114 ] ]
[ "import java.util.*;\nimport java.math.BigInteger;\n\npublic class Main{\n \n public static final int MOD = (int)1e9+7;\n \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 double h = Integer.parseInt(sc.next());\n double m = Integer.parseInt(sc.next());\n double hs = h/12+m/60/12;\n double ms = m/60;\n double e = Math.abs(hs-ms)*360;\n \n double c = a*a+b*b-2*a*b*Math.cos(Math.toRadians(e));\n System.out.println(Math.sqrt(c));\n \n }\n}", "import java.util.*;", "util.*", "java", "import java.math.BigInteger;", "BigInteger", "java.math", "public class Main{\n \n public static final int MOD = (int)1e9+7;\n \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 double h = Integer.parseInt(sc.next());\n double m = Integer.parseInt(sc.next());\n double hs = h/12+m/60/12;\n double ms = m/60;\n double e = Math.abs(hs-ms)*360;\n \n double c = a*a+b*b-2*a*b*Math.cos(Math.toRadians(e));\n System.out.println(Math.sqrt(c));\n \n }\n}", "Main", "public static final int MOD = (int)1e9+7;", "MOD", "(int)1e9+7", "(int)1e9", "7", "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 double h = Integer.parseInt(sc.next());\n double m = Integer.parseInt(sc.next());\n double hs = h/12+m/60/12;\n double ms = m/60;\n double e = Math.abs(hs-ms)*360;\n \n double c = a*a+b*b-2*a*b*Math.cos(Math.toRadians(e));\n System.out.println(Math.sqrt(c));\n \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 double h = Integer.parseInt(sc.next());\n double m = Integer.parseInt(sc.next());\n double hs = h/12+m/60/12;\n double ms = m/60;\n double e = Math.abs(hs-ms)*360;\n \n double c = a*a+b*b-2*a*b*Math.cos(Math.toRadians(e));\n System.out.println(Math.sqrt(c));\n \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", "double h = Integer.parseInt(sc.next());", "h", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "double m = Integer.parseInt(sc.next());", "m", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "double hs = h/12+m/60/12;", "hs", "h/12+m/60/12", "h/12", "h", "12", "m/60/12", "m/60/12", "m", "60", "12", "double ms = m/60;", "ms", "m/60", "m", "60", "double e = Math.abs(hs-ms)*360;", "e", "Math.abs(hs-ms)*360", "Math.abs(hs-ms)", "Math.abs", "Math", "hs-ms", "hs", "ms", "360", "double c = a*a+b*b-2*a*b*Math.cos(Math.toRadians(e));", "c", "a*a+b*b-2*a*b*Math.cos(Math.toRadians(e))", "a*a+b*b", "a*a", "a", "a", "b*b", "b", "b", "2*a*b*Math.cos(Math.toRadians(e))", "b", "2*a*b*Math.cos(Math.toRadians(e))", "2", "a", "b", "Math.cos(Math.toRadians(e))", "Math.cos", "Math", "Math.toRadians(e)", "Math.toRadians", "Math", "e", "System.out.println(Math.sqrt(c))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(c)", "Math.sqrt", "Math", "c", "String[] args", "args", "public class Main{\n \n public static final int MOD = (int)1e9+7;\n \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 double h = Integer.parseInt(sc.next());\n double m = Integer.parseInt(sc.next());\n double hs = h/12+m/60/12;\n double ms = m/60;\n double e = Math.abs(hs-ms)*360;\n \n double c = a*a+b*b-2*a*b*Math.cos(Math.toRadians(e));\n System.out.println(Math.sqrt(c));\n \n }\n}", "public class Main{\n \n public static final int MOD = (int)1e9+7;\n \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 double h = Integer.parseInt(sc.next());\n double m = Integer.parseInt(sc.next());\n double hs = h/12+m/60/12;\n double ms = m/60;\n double e = Math.abs(hs-ms)*360;\n \n double c = a*a+b*b-2*a*b*Math.cos(Math.toRadians(e));\n System.out.println(Math.sqrt(c));\n \n }\n}", "Main" ]
import java.util.*; import java.math.BigInteger; public class Main{ public static final int MOD = (int)1e9+7; public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = Integer.parseInt(sc.next()); int b = Integer.parseInt(sc.next()); double h = Integer.parseInt(sc.next()); double m = Integer.parseInt(sc.next()); double hs = h/12+m/60/12; double ms = m/60; double e = Math.abs(hs-ms)*360; double c = a*a+b*b-2*a*b*Math.cos(Math.toRadians(e)); 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, 14, 2, 13, 17, 30, 0, 13, 2, 13, 17, 41, 13, 4, 18, 13, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 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 ], [ 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 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 39, 41 ], [ 8, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 55, 57 ], [ 8, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 8, 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 ], [ 8, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 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.*;\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 if(H>=12){H =H-12;}\n double K =Math.abs(H*30+M*0.5-M*6);\n double k =Math.cos(Math.toRadians(K));\n double T =A*A+B*B-2*A*B*k;\n double t =Math.sqrt(T);\n System.out.println(t);\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 int A =sc.nextInt();\n int B =sc.nextInt();\n int H =sc.nextInt();\n int M =sc.nextInt();\n if(H>=12){H =H-12;}\n double K =Math.abs(H*30+M*0.5-M*6);\n double k =Math.cos(Math.toRadians(K));\n double T =A*A+B*B-2*A*B*k;\n double t =Math.sqrt(T);\n System.out.println(t);\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 if(H>=12){H =H-12;}\n double K =Math.abs(H*30+M*0.5-M*6);\n double k =Math.cos(Math.toRadians(K));\n double T =A*A+B*B-2*A*B*k;\n double t =Math.sqrt(T);\n System.out.println(t);\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 if(H>=12){H =H-12;}\n double K =Math.abs(H*30+M*0.5-M*6);\n double k =Math.cos(Math.toRadians(K));\n double T =A*A+B*B-2*A*B*k;\n double t =Math.sqrt(T);\n System.out.println(t);\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(H>=12){H =H-12;}", "H>=12", "H", "12", "{H =H-12;}", "H =H-12", "H", "H-12", "H", "12", "double K =Math.abs(H*30+M*0.5-M*6);", "K", "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 k =Math.cos(Math.toRadians(K));", "k", "Math.cos(Math.toRadians(K))", "Math.cos", "Math", "Math.toRadians(K)", "Math.toRadians", "Math", "K", "double T =A*A+B*B-2*A*B*k;", "T", "A*A+B*B-2*A*B*k", "A*A+B*B", "A*A", "A", "A", "B*B", "B", "B", "2*A*B*k", "B", "2*A*B*k", "2", "A", "B", "k", "double t =Math.sqrt(T);", "t", "Math.sqrt(T)", "Math.sqrt", "Math", "T", "System.out.println(t)", "System.out.println", "System.out", "System", "System.out", "t", "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 if(H>=12){H =H-12;}\n double K =Math.abs(H*30+M*0.5-M*6);\n double k =Math.cos(Math.toRadians(K));\n double T =A*A+B*B-2*A*B*k;\n double t =Math.sqrt(T);\n System.out.println(t);\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 if(H>=12){H =H-12;}\n double K =Math.abs(H*30+M*0.5-M*6);\n double k =Math.cos(Math.toRadians(K));\n double T =A*A+B*B-2*A*B*k;\n double t =Math.sqrt(T);\n System.out.println(t);\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(); if(H>=12){H =H-12;} double K =Math.abs(H*30+M*0.5-M*6); double k =Math.cos(Math.toRadians(K)); double T =A*A+B*B-2*A*B*k; double t =Math.sqrt(T); System.out.println(t); } }
[ 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, 13, 17, 2, 13, 17, 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 ], [ 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 ], [ 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 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 64, 66 ], [ 59, 67 ], [ 69, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 69, 73 ], [ 8, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 8, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 6, 86 ], [ 86, 87 ], [ 0, 88 ], [ 88, 89 ], [ 88, 90 ] ]
[ "import java.util.Scanner;\npublic class Main{\n\tpublic static void main(String[] args){\n\tScanner sc=new Scanner(System.in);\n\tint a=sc.nextInt();\n\tint b=sc.nextInt();\n\tint h=sc.nextInt();\n\tint m=sc.nextInt();\n\tdouble angle = Math.abs(h*30+m*0.5-m*6);\n\tdouble result = Math.cos(Math.toRadians(angle));\n\tdouble x =a*a+b*b-2*a*b*result;\n\tdouble ans = Math.sqrt(x);\n\tSystem.out.println(ans);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String[] args){\n\tScanner sc=new Scanner(System.in);\n\tint a=sc.nextInt();\n\tint b=sc.nextInt();\n\tint h=sc.nextInt();\n\tint m=sc.nextInt();\n\tdouble angle = Math.abs(h*30+m*0.5-m*6);\n\tdouble result = Math.cos(Math.toRadians(angle));\n\tdouble x =a*a+b*b-2*a*b*result;\n\tdouble ans = Math.sqrt(x);\n\tSystem.out.println(ans);\n\t}\n}", "Main", "public static void main(String[] args){\n\tScanner sc=new Scanner(System.in);\n\tint a=sc.nextInt();\n\tint b=sc.nextInt();\n\tint h=sc.nextInt();\n\tint m=sc.nextInt();\n\tdouble angle = Math.abs(h*30+m*0.5-m*6);\n\tdouble result = Math.cos(Math.toRadians(angle));\n\tdouble x =a*a+b*b-2*a*b*result;\n\tdouble ans = Math.sqrt(x);\n\tSystem.out.println(ans);\n\t}", "main", "{\n\tScanner sc=new Scanner(System.in);\n\tint a=sc.nextInt();\n\tint b=sc.nextInt();\n\tint h=sc.nextInt();\n\tint m=sc.nextInt();\n\tdouble angle = Math.abs(h*30+m*0.5-m*6);\n\tdouble result = Math.cos(Math.toRadians(angle));\n\tdouble x =a*a+b*b-2*a*b*result;\n\tdouble ans = Math.sqrt(x);\n\tSystem.out.println(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 angle = Math.abs(h*30+m*0.5-m*6);", "angle", "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 result = Math.cos(Math.toRadians(angle));", "result", "Math.cos(Math.toRadians(angle))", "Math.cos", "Math", "Math.toRadians(angle)", "Math.toRadians", "Math", "angle", "double x =a*a+b*b-2*a*b*result;", "x", "a*a+b*b-2*a*b*result", "a*a+b*b", "a*a", "a", "a", "b*b", "b", "b", "2*a*b*result", "b", "2*a*b*result", "2", "a", "b", "result", "double ans = Math.sqrt(x);", "ans", "Math.sqrt(x)", "Math.sqrt", "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\tScanner sc=new Scanner(System.in);\n\tint a=sc.nextInt();\n\tint b=sc.nextInt();\n\tint h=sc.nextInt();\n\tint m=sc.nextInt();\n\tdouble angle = Math.abs(h*30+m*0.5-m*6);\n\tdouble result = Math.cos(Math.toRadians(angle));\n\tdouble x =a*a+b*b-2*a*b*result;\n\tdouble ans = Math.sqrt(x);\n\tSystem.out.println(ans);\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args){\n\tScanner sc=new Scanner(System.in);\n\tint a=sc.nextInt();\n\tint b=sc.nextInt();\n\tint h=sc.nextInt();\n\tint m=sc.nextInt();\n\tdouble angle = Math.abs(h*30+m*0.5-m*6);\n\tdouble result = Math.cos(Math.toRadians(angle));\n\tdouble x =a*a+b*b-2*a*b*result;\n\tdouble ans = Math.sqrt(x);\n\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); int a=sc.nextInt(); int b=sc.nextInt(); int h=sc.nextInt(); int m=sc.nextInt(); double angle = Math.abs(h*30+m*0.5-m*6); double result = Math.cos(Math.toRadians(angle)); double x =a*a+b*b-2*a*b*result; double ans = Math.sqrt(x); System.out.println(ans); } }
[ 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, 13, 2, 13, 17, 41, 13, 2, 17, 13, 41, 13, 4, 18, 13, 4, 18, 13, 2, 13, 13, 4, 18, 13, 2, 17, 2, 13, 13, 41, 13, 2, 2, 13, 17, 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 ], [ 114, 5 ], [ 114, 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 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 46, 48 ], [ 8, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 51, 53 ], [ 8, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 62, 64 ], [ 56, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 8, 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 ], [ 85, 86 ], [ 84, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 92, 93 ], [ 92, 94 ], [ 87, 95 ], [ 97, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 97, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 8, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 105, 110 ], [ 6, 111 ], [ 111, 112 ], [ 0, 113 ], [ 113, 114 ], [ 113, 115 ] ]
[ "\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\t\tdouble a, b, h, m;\n\t a = sc.nextDouble();\n\t b = sc.nextDouble();\n\t h = sc.nextDouble();\n\t m = sc.nextDouble();\n\t \n\t double a2 = 30 * h + m * 0.5;\n\t double b2 = 6 * m;\n\t \n\t double c2 = Math.min(Math.abs(a2 - b2) , Math.abs(360 - (a2 - b2)));\n\t double pi = c2 / 180 * Math.PI;\n\t double tou = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(pi));\n\t System.out.println(tou);\n\t\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\t\tdouble a, b, h, m;\n\t a = sc.nextDouble();\n\t b = sc.nextDouble();\n\t h = sc.nextDouble();\n\t m = sc.nextDouble();\n\t \n\t double a2 = 30 * h + m * 0.5;\n\t double b2 = 6 * m;\n\t \n\t double c2 = Math.min(Math.abs(a2 - b2) , Math.abs(360 - (a2 - b2)));\n\t double pi = c2 / 180 * Math.PI;\n\t double tou = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(pi));\n\t System.out.println(tou);\n\t\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\t\tdouble a, b, h, m;\n\t a = sc.nextDouble();\n\t b = sc.nextDouble();\n\t h = sc.nextDouble();\n\t m = sc.nextDouble();\n\t \n\t double a2 = 30 * h + m * 0.5;\n\t double b2 = 6 * m;\n\t \n\t double c2 = Math.min(Math.abs(a2 - b2) , Math.abs(360 - (a2 - b2)));\n\t double pi = c2 / 180 * Math.PI;\n\t double tou = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(pi));\n\t System.out.println(tou);\n\t\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in); \n\t\tdouble a, b, h, m;\n\t a = sc.nextDouble();\n\t b = sc.nextDouble();\n\t h = sc.nextDouble();\n\t m = sc.nextDouble();\n\t \n\t double a2 = 30 * h + m * 0.5;\n\t double b2 = 6 * m;\n\t \n\t double c2 = Math.min(Math.abs(a2 - b2) , Math.abs(360 - (a2 - b2)));\n\t double pi = c2 / 180 * Math.PI;\n\t double tou = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(pi));\n\t System.out.println(tou);\n\t\n\t}", "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 a2 = 30 * h + m * 0.5;", "a2", "30 * h + m * 0.5", "30 * h", "30", "h", "m * 0.5", "m", "0.5", "double b2 = 6 * m;", "b2", "6 * m", "6", "m", "double c2 = Math.min(Math.abs(a2 - b2) , Math.abs(360 - (a2 - b2)));", "c2", "Math.min(Math.abs(a2 - b2) , Math.abs(360 - (a2 - b2)))", "Math.min", "Math", "Math.abs(a2 - b2)", "Math.abs", "Math", "a2 - b2", "a2", "b2", "Math.abs(360 - (a2 - b2))", "Math.abs", "Math", "360 - (a2 - b2)", "360", "(a2 - b2)", "a2", "b2", "double pi = c2 / 180 * Math.PI;", "pi", "c2 / 180 * Math.PI", "c2 / 180", "c2", "180", "Math.PI", "Math", "Math.PI", "double tou = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(pi));", "tou", "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", "System.out.println(tou)", "System.out.println", "System.out", "System", "System.out", "tou", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\t\tdouble a, b, h, m;\n\t a = sc.nextDouble();\n\t b = sc.nextDouble();\n\t h = sc.nextDouble();\n\t m = sc.nextDouble();\n\t \n\t double a2 = 30 * h + m * 0.5;\n\t double b2 = 6 * m;\n\t \n\t double c2 = Math.min(Math.abs(a2 - b2) , Math.abs(360 - (a2 - b2)));\n\t double pi = c2 / 180 * Math.PI;\n\t double tou = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(pi));\n\t System.out.println(tou);\n\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\t\tdouble a, b, h, m;\n\t a = sc.nextDouble();\n\t b = sc.nextDouble();\n\t h = sc.nextDouble();\n\t m = sc.nextDouble();\n\t \n\t double a2 = 30 * h + m * 0.5;\n\t double b2 = 6 * m;\n\t \n\t double c2 = Math.min(Math.abs(a2 - b2) , Math.abs(360 - (a2 - b2)));\n\t double pi = c2 / 180 * Math.PI;\n\t double tou = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(pi));\n\t System.out.println(tou);\n\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); double a, b, h, m; a = sc.nextDouble(); b = sc.nextDouble(); h = sc.nextDouble(); m = sc.nextDouble(); double a2 = 30 * h + m * 0.5; double b2 = 6 * m; double c2 = Math.min(Math.abs(a2 - b2) , Math.abs(360 - (a2 - b2))); double pi = c2 / 180 * Math.PI; double tou = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(pi)); System.out.println(tou); } }
[ 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, 20, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 4, 18, 13, 17, 0, 13, 4, 18, 13, 4, 18, 13, 17, 0, 13, 4, 18, 13, 4, 18, 13, 2, 13, 17, 0, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 4, 18, 13, 17, 0, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 13, 0, 13, 4, 18, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 187, 8 ], [ 187, 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 ], [ 11, 38 ], [ 38, 39 ], [ 38, 40 ], [ 11, 41 ], [ 41, 42 ], [ 41, 43 ], [ 11, 44 ], [ 44, 45 ], [ 44, 46 ], [ 11, 47 ], [ 47, 48 ], [ 11, 49 ], [ 49, 50 ], [ 11, 51 ], [ 51, 52 ], [ 11, 53 ], [ 53, 54 ], [ 11, 55 ], [ 55, 56 ], [ 11, 57 ], [ 57, 58 ], [ 11, 59 ], [ 59, 60 ], [ 11, 61 ], [ 61, 62 ], [ 11, 63 ], [ 63, 64 ], [ 11, 65 ], [ 65, 66 ], [ 11, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 11, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 11, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 93, 94 ], [ 93, 95 ], [ 11, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 11, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 110, 111 ], [ 111, 112 ], [ 11, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 11, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 122, 123 ], [ 121, 124 ], [ 11, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 128, 129 ], [ 127, 130 ], [ 11, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 134, 135 ], [ 133, 136 ], [ 136, 137 ], [ 137, 138 ], [ 136, 139 ], [ 11, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 143, 144 ], [ 142, 145 ], [ 145, 146 ], [ 146, 147 ], [ 145, 148 ], [ 11, 149 ], [ 149, 150 ], [ 149, 151 ], [ 151, 152 ], [ 152, 153 ], [ 151, 154 ], [ 11, 155 ], [ 155, 156 ], [ 155, 157 ], [ 157, 158 ], [ 158, 159 ], [ 157, 160 ], [ 11, 161 ], [ 161, 162 ], [ 161, 163 ], [ 163, 164 ], [ 164, 165 ], [ 163, 166 ], [ 11, 167 ], [ 167, 168 ], [ 167, 169 ], [ 169, 170 ], [ 170, 171 ], [ 11, 172 ], [ 172, 173 ], [ 172, 174 ], [ 174, 175 ], [ 175, 176 ], [ 174, 177 ], [ 11, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 180, 182 ], [ 178, 183 ], [ 9, 184 ], [ 184, 185 ], [ 0, 186 ], [ 186, 187 ], [ 186, 188 ] ]
[ "import java.util.*;\nimport java.math.BigDecimal;\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 BigDecimal AA = new BigDecimal(A);\n BigDecimal BB = new BigDecimal(B);\n BigDecimal HH = new BigDecimal(H);\n BigDecimal MM = new BigDecimal(M);\n BigDecimal ans2;\n BigDecimal kaku;\n BigDecimal mkaku;\n BigDecimal hkaku;\n BigDecimal AA2;\n BigDecimal BB2;\n BigDecimal CC;\n BigDecimal DD;\n double dkaku;\n double dans2;\n mkaku = MM.multiply(BigDecimal.valueOf(6)); \n hkaku = HH.multiply(BigDecimal.valueOf(30));\n hkaku = hkaku.add(BigDecimal.valueOf((double)M / 2));\n kaku = mkaku.subtract(hkaku);\n dkaku = Math.abs(Math.toRadians(kaku.doubleValue()));\n AA2 = AA.multiply(AA);\n BB2 = BB.multiply(BB);\n CC = AA2.add(BB2);\n DD = BigDecimal.valueOf(Math.cos(dkaku));\n DD = DD.multiply(BigDecimal.valueOf(2));\n DD = DD.multiply(AA);\n DD = DD.multiply(BB);\n ans2 = CC.subtract(DD); \n dans2 = ans2.doubleValue();\n double ans = Math.sqrt(dans2);\n System.out.println(ans);\n }\n}", "import java.util.*;", "util.*", "java", "import java.math.BigDecimal;", "BigDecimal", "java.math", "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 BigDecimal AA = new BigDecimal(A);\n BigDecimal BB = new BigDecimal(B);\n BigDecimal HH = new BigDecimal(H);\n BigDecimal MM = new BigDecimal(M);\n BigDecimal ans2;\n BigDecimal kaku;\n BigDecimal mkaku;\n BigDecimal hkaku;\n BigDecimal AA2;\n BigDecimal BB2;\n BigDecimal CC;\n BigDecimal DD;\n double dkaku;\n double dans2;\n mkaku = MM.multiply(BigDecimal.valueOf(6)); \n hkaku = HH.multiply(BigDecimal.valueOf(30));\n hkaku = hkaku.add(BigDecimal.valueOf((double)M / 2));\n kaku = mkaku.subtract(hkaku);\n dkaku = Math.abs(Math.toRadians(kaku.doubleValue()));\n AA2 = AA.multiply(AA);\n BB2 = BB.multiply(BB);\n CC = AA2.add(BB2);\n DD = BigDecimal.valueOf(Math.cos(dkaku));\n DD = DD.multiply(BigDecimal.valueOf(2));\n DD = DD.multiply(AA);\n DD = DD.multiply(BB);\n ans2 = CC.subtract(DD); \n dans2 = ans2.doubleValue();\n double ans = Math.sqrt(dans2);\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 int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n BigDecimal AA = new BigDecimal(A);\n BigDecimal BB = new BigDecimal(B);\n BigDecimal HH = new BigDecimal(H);\n BigDecimal MM = new BigDecimal(M);\n BigDecimal ans2;\n BigDecimal kaku;\n BigDecimal mkaku;\n BigDecimal hkaku;\n BigDecimal AA2;\n BigDecimal BB2;\n BigDecimal CC;\n BigDecimal DD;\n double dkaku;\n double dans2;\n mkaku = MM.multiply(BigDecimal.valueOf(6)); \n hkaku = HH.multiply(BigDecimal.valueOf(30));\n hkaku = hkaku.add(BigDecimal.valueOf((double)M / 2));\n kaku = mkaku.subtract(hkaku);\n dkaku = Math.abs(Math.toRadians(kaku.doubleValue()));\n AA2 = AA.multiply(AA);\n BB2 = BB.multiply(BB);\n CC = AA2.add(BB2);\n DD = BigDecimal.valueOf(Math.cos(dkaku));\n DD = DD.multiply(BigDecimal.valueOf(2));\n DD = DD.multiply(AA);\n DD = DD.multiply(BB);\n ans2 = CC.subtract(DD); \n dans2 = ans2.doubleValue();\n double ans = Math.sqrt(dans2);\n System.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 int M = sc.nextInt();\n BigDecimal AA = new BigDecimal(A);\n BigDecimal BB = new BigDecimal(B);\n BigDecimal HH = new BigDecimal(H);\n BigDecimal MM = new BigDecimal(M);\n BigDecimal ans2;\n BigDecimal kaku;\n BigDecimal mkaku;\n BigDecimal hkaku;\n BigDecimal AA2;\n BigDecimal BB2;\n BigDecimal CC;\n BigDecimal DD;\n double dkaku;\n double dans2;\n mkaku = MM.multiply(BigDecimal.valueOf(6)); \n hkaku = HH.multiply(BigDecimal.valueOf(30));\n hkaku = hkaku.add(BigDecimal.valueOf((double)M / 2));\n kaku = mkaku.subtract(hkaku);\n dkaku = Math.abs(Math.toRadians(kaku.doubleValue()));\n AA2 = AA.multiply(AA);\n BB2 = BB.multiply(BB);\n CC = AA2.add(BB2);\n DD = BigDecimal.valueOf(Math.cos(dkaku));\n DD = DD.multiply(BigDecimal.valueOf(2));\n DD = DD.multiply(AA);\n DD = DD.multiply(BB);\n ans2 = CC.subtract(DD); \n dans2 = ans2.doubleValue();\n double ans = Math.sqrt(dans2);\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", "BigDecimal AA = new BigDecimal(A);", "AA", "new BigDecimal(A)", "BigDecimal BB = new BigDecimal(B);", "BB", "new BigDecimal(B)", "BigDecimal HH = new BigDecimal(H);", "HH", "new BigDecimal(H)", "BigDecimal MM = new BigDecimal(M);", "MM", "new BigDecimal(M)", "BigDecimal ans2;", "ans2", "BigDecimal kaku;", "kaku", "BigDecimal mkaku;", "mkaku", "BigDecimal hkaku;", "hkaku", "BigDecimal AA2;", "AA2", "BigDecimal BB2;", "BB2", "BigDecimal CC;", "CC", "BigDecimal DD;", "DD", "double dkaku;", "dkaku", "double dans2;", "dans2", "mkaku = MM.multiply(BigDecimal.valueOf(6))", "mkaku", "MM.multiply(BigDecimal.valueOf(6))", "MM.multiply", "MM", "BigDecimal.valueOf(6)", "BigDecimal.valueOf", "BigDecimal", "6", "hkaku = HH.multiply(BigDecimal.valueOf(30))", "hkaku", "HH.multiply(BigDecimal.valueOf(30))", "HH.multiply", "HH", "BigDecimal.valueOf(30)", "BigDecimal.valueOf", "BigDecimal", "30", "hkaku = hkaku.add(BigDecimal.valueOf((double)M / 2))", "hkaku", "hkaku.add(BigDecimal.valueOf((double)M / 2))", "hkaku.add", "hkaku", "BigDecimal.valueOf((double)M / 2)", "BigDecimal.valueOf", "BigDecimal", "(double)M / 2", "(double)M", "2", "kaku = mkaku.subtract(hkaku)", "kaku", "mkaku.subtract(hkaku)", "mkaku.subtract", "mkaku", "hkaku", "dkaku = Math.abs(Math.toRadians(kaku.doubleValue()))", "dkaku", "Math.abs(Math.toRadians(kaku.doubleValue()))", "Math.abs", "Math", "Math.toRadians(kaku.doubleValue())", "Math.toRadians", "Math", "kaku.doubleValue()", "kaku.doubleValue", "kaku", "AA2 = AA.multiply(AA)", "AA2", "AA.multiply(AA)", "AA.multiply", "AA", "AA", "BB2 = BB.multiply(BB)", "BB2", "BB.multiply(BB)", "BB.multiply", "BB", "BB", "CC = AA2.add(BB2)", "CC", "AA2.add(BB2)", "AA2.add", "AA2", "BB2", "DD = BigDecimal.valueOf(Math.cos(dkaku))", "DD", "BigDecimal.valueOf(Math.cos(dkaku))", "BigDecimal.valueOf", "BigDecimal", "Math.cos(dkaku)", "Math.cos", "Math", "dkaku", "DD = DD.multiply(BigDecimal.valueOf(2))", "DD", "DD.multiply(BigDecimal.valueOf(2))", "DD.multiply", "DD", "BigDecimal.valueOf(2)", "BigDecimal.valueOf", "BigDecimal", "2", "DD = DD.multiply(AA)", "DD", "DD.multiply(AA)", "DD.multiply", "DD", "AA", "DD = DD.multiply(BB)", "DD", "DD.multiply(BB)", "DD.multiply", "DD", "BB", "ans2 = CC.subtract(DD)", "ans2", "CC.subtract(DD)", "CC.subtract", "CC", "DD", "dans2 = ans2.doubleValue()", "dans2", "ans2.doubleValue()", "ans2.doubleValue", "ans2", "double ans = Math.sqrt(dans2);", "ans", "Math.sqrt(dans2)", "Math.sqrt", "Math", "dans2", "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 BigDecimal AA = new BigDecimal(A);\n BigDecimal BB = new BigDecimal(B);\n BigDecimal HH = new BigDecimal(H);\n BigDecimal MM = new BigDecimal(M);\n BigDecimal ans2;\n BigDecimal kaku;\n BigDecimal mkaku;\n BigDecimal hkaku;\n BigDecimal AA2;\n BigDecimal BB2;\n BigDecimal CC;\n BigDecimal DD;\n double dkaku;\n double dans2;\n mkaku = MM.multiply(BigDecimal.valueOf(6)); \n hkaku = HH.multiply(BigDecimal.valueOf(30));\n hkaku = hkaku.add(BigDecimal.valueOf((double)M / 2));\n kaku = mkaku.subtract(hkaku);\n dkaku = Math.abs(Math.toRadians(kaku.doubleValue()));\n AA2 = AA.multiply(AA);\n BB2 = BB.multiply(BB);\n CC = AA2.add(BB2);\n DD = BigDecimal.valueOf(Math.cos(dkaku));\n DD = DD.multiply(BigDecimal.valueOf(2));\n DD = DD.multiply(AA);\n DD = DD.multiply(BB);\n ans2 = CC.subtract(DD); \n dans2 = ans2.doubleValue();\n double ans = Math.sqrt(dans2);\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 int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n BigDecimal AA = new BigDecimal(A);\n BigDecimal BB = new BigDecimal(B);\n BigDecimal HH = new BigDecimal(H);\n BigDecimal MM = new BigDecimal(M);\n BigDecimal ans2;\n BigDecimal kaku;\n BigDecimal mkaku;\n BigDecimal hkaku;\n BigDecimal AA2;\n BigDecimal BB2;\n BigDecimal CC;\n BigDecimal DD;\n double dkaku;\n double dans2;\n mkaku = MM.multiply(BigDecimal.valueOf(6)); \n hkaku = HH.multiply(BigDecimal.valueOf(30));\n hkaku = hkaku.add(BigDecimal.valueOf((double)M / 2));\n kaku = mkaku.subtract(hkaku);\n dkaku = Math.abs(Math.toRadians(kaku.doubleValue()));\n AA2 = AA.multiply(AA);\n BB2 = BB.multiply(BB);\n CC = AA2.add(BB2);\n DD = BigDecimal.valueOf(Math.cos(dkaku));\n DD = DD.multiply(BigDecimal.valueOf(2));\n DD = DD.multiply(AA);\n DD = DD.multiply(BB);\n ans2 = CC.subtract(DD); \n dans2 = ans2.doubleValue();\n double ans = Math.sqrt(dans2);\n System.out.println(ans);\n }\n}", "Main" ]
import java.util.*; import java.math.BigDecimal; 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(); BigDecimal AA = new BigDecimal(A); BigDecimal BB = new BigDecimal(B); BigDecimal HH = new BigDecimal(H); BigDecimal MM = new BigDecimal(M); BigDecimal ans2; BigDecimal kaku; BigDecimal mkaku; BigDecimal hkaku; BigDecimal AA2; BigDecimal BB2; BigDecimal CC; BigDecimal DD; double dkaku; double dans2; mkaku = MM.multiply(BigDecimal.valueOf(6)); hkaku = HH.multiply(BigDecimal.valueOf(30)); hkaku = hkaku.add(BigDecimal.valueOf((double)M / 2)); kaku = mkaku.subtract(hkaku); dkaku = Math.abs(Math.toRadians(kaku.doubleValue())); AA2 = AA.multiply(AA); BB2 = BB.multiply(BB); CC = AA2.add(BB2); DD = BigDecimal.valueOf(Math.cos(dkaku)); DD = DD.multiply(BigDecimal.valueOf(2)); DD = DD.multiply(AA); DD = DD.multiply(BB); ans2 = CC.subtract(DD); dans2 = ans2.doubleValue(); double ans = Math.sqrt(dans2); 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, 17, 17, 13, 2, 17, 13, 41, 13, 2, 17, 13, 41, 13, 2, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 17, 13, 4, 13, 13, 13, 4, 18, 13, 13, 23, 13, 12, 13, 30, 41, 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, 4, 18, 13, 13, 41, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 125, 5 ], [ 125, 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 ], [ 40, 41 ], [ 40, 42 ], [ 8, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 45, 47 ], [ 8, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 50, 52 ], [ 8, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 8, 63 ], [ 63, 64 ], [ 63, 65 ], [ 63, 66 ], [ 63, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 6, 71 ], [ 71, 72 ], [ 125, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 75, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 86, 90 ], [ 85, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 91, 95 ], [ 84, 96 ], [ 98, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 98, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 75, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 75, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 73, 118 ], [ 118, 119 ], [ 73, 120 ], [ 120, 121 ], [ 73, 122 ], [ 122, 123 ], [ 0, 124 ], [ 124, 125 ], [ 124, 126 ] ]
[ "//package atcoder;\n \nimport java.util.*;\n \npublic 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\t\n\t\tdouble h = 360/12*H+0.5*M;\n\t\tdouble m = 6*M;\n\t\n\t\t\tdouble kaku = h-m;\n\t\t\tif(kaku>180) {\n\t\t\t\tkaku = 360-kaku;\n\t\t\t}\n\t\t\tmat(A,B,Math.abs(kaku));\n\t\t\n\t\t\n\t\t\n\t\t}\n\t\n\tpublic static void mat(double A,double B,double shita){\n\t\t//System.out.println(shita);\n\t\tdouble kakudo = Math.toRadians(shita);\n\t\t//System.out.println(kakudo);\n\t\tdouble ans = Math.pow(A, 2)+Math.pow(B, 2)-2*A*B*Math.cos(kakudo);\n\t\tdouble Ans = Math.sqrt(ans);\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\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 h = 360/12*H+0.5*M;\n\t\tdouble m = 6*M;\n\t\n\t\t\tdouble kaku = h-m;\n\t\t\tif(kaku>180) {\n\t\t\t\tkaku = 360-kaku;\n\t\t\t}\n\t\t\tmat(A,B,Math.abs(kaku));\n\t\t\n\t\t\n\t\t\n\t\t}\n\t\n\tpublic static void mat(double A,double B,double shita){\n\t\t//System.out.println(shita);\n\t\tdouble kakudo = Math.toRadians(shita);\n\t\t//System.out.println(kakudo);\n\t\tdouble ans = Math.pow(A, 2)+Math.pow(B, 2)-2*A*B*Math.cos(kakudo);\n\t\tdouble Ans = Math.sqrt(ans);\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\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 h = 360/12*H+0.5*M;\n\t\tdouble m = 6*M;\n\t\n\t\t\tdouble kaku = h-m;\n\t\t\tif(kaku>180) {\n\t\t\t\tkaku = 360-kaku;\n\t\t\t}\n\t\t\tmat(A,B,Math.abs(kaku));\n\t\t\n\t\t\n\t\t\n\t\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\t\n\t\tdouble h = 360/12*H+0.5*M;\n\t\tdouble m = 6*M;\n\t\n\t\t\tdouble kaku = h-m;\n\t\t\tif(kaku>180) {\n\t\t\t\tkaku = 360-kaku;\n\t\t\t}\n\t\t\tmat(A,B,Math.abs(kaku));\n\t\t\n\t\t\n\t\t\n\t\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 = 360/12*H+0.5*M;", "h", "360/12*H+0.5*M", "360/12*H", "360/12", "360", "12", "H", "0.5*M", "0.5", "M", "double m = 6*M;", "m", "6*M", "6", "M", "double kaku = h-m;", "kaku", "h-m", "h", "m", "if(kaku>180) {\n\t\t\t\tkaku = 360-kaku;\n\t\t\t}", "kaku>180", "kaku", "180", "{\n\t\t\t\tkaku = 360-kaku;\n\t\t\t}", "kaku = 360-kaku", "kaku", "360-kaku", "360", "kaku", "mat(A,B,Math.abs(kaku))", "mat", "A", "B", "Math.abs(kaku)", "Math.abs", "Math", "kaku", "String[] args", "args", "public static void mat(double A,double B,double shita){\n\t\t//System.out.println(shita);\n\t\tdouble kakudo = Math.toRadians(shita);\n\t\t//System.out.println(kakudo);\n\t\tdouble ans = Math.pow(A, 2)+Math.pow(B, 2)-2*A*B*Math.cos(kakudo);\n\t\tdouble Ans = Math.sqrt(ans);\n\t\tSystem.out.println(Ans);\n\t}", "mat", "{\n\t\t//System.out.println(shita);\n\t\tdouble kakudo = Math.toRadians(shita);\n\t\t//System.out.println(kakudo);\n\t\tdouble ans = Math.pow(A, 2)+Math.pow(B, 2)-2*A*B*Math.cos(kakudo);\n\t\tdouble Ans = Math.sqrt(ans);\n\t\tSystem.out.println(Ans);\n\t}", "double kakudo = Math.toRadians(shita);", "kakudo", "Math.toRadians(shita)", "Math.toRadians", "Math", "shita", "double ans = Math.pow(A, 2)+Math.pow(B, 2)-2*A*B*Math.cos(kakudo);", "ans", "Math.pow(A, 2)+Math.pow(B, 2)-2*A*B*Math.cos(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(kakudo)", "B", "2*A*B*Math.cos(kakudo)", "2", "A", "B", "Math.cos(kakudo)", "Math.cos", "Math", "kakudo", "double 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", "double A", "A", "double B", "B", "double shita", "shita", "public 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\t\n\t\tdouble h = 360/12*H+0.5*M;\n\t\tdouble m = 6*M;\n\t\n\t\t\tdouble kaku = h-m;\n\t\t\tif(kaku>180) {\n\t\t\t\tkaku = 360-kaku;\n\t\t\t}\n\t\t\tmat(A,B,Math.abs(kaku));\n\t\t\n\t\t\n\t\t\n\t\t}\n\t\n\tpublic static void mat(double A,double B,double shita){\n\t\t//System.out.println(shita);\n\t\tdouble kakudo = Math.toRadians(shita);\n\t\t//System.out.println(kakudo);\n\t\tdouble ans = Math.pow(A, 2)+Math.pow(B, 2)-2*A*B*Math.cos(kakudo);\n\t\tdouble Ans = Math.sqrt(ans);\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\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 h = 360/12*H+0.5*M;\n\t\tdouble m = 6*M;\n\t\n\t\t\tdouble kaku = h-m;\n\t\t\tif(kaku>180) {\n\t\t\t\tkaku = 360-kaku;\n\t\t\t}\n\t\t\tmat(A,B,Math.abs(kaku));\n\t\t\n\t\t\n\t\t\n\t\t}\n\t\n\tpublic static void mat(double A,double B,double shita){\n\t\t//System.out.println(shita);\n\t\tdouble kakudo = Math.toRadians(shita);\n\t\t//System.out.println(kakudo);\n\t\tdouble ans = Math.pow(A, 2)+Math.pow(B, 2)-2*A*B*Math.cos(kakudo);\n\t\tdouble Ans = Math.sqrt(ans);\n\t\tSystem.out.println(Ans);\n\t}\n}", "Main" ]
//package atcoder; 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 h = 360/12*H+0.5*M; double m = 6*M; double kaku = h-m; if(kaku>180) { kaku = 360-kaku; } mat(A,B,Math.abs(kaku)); } public static void mat(double A,double B,double shita){ //System.out.println(shita); double kakudo = Math.toRadians(shita); //System.out.println(kakudo); double ans = Math.pow(A, 2)+Math.pow(B, 2)-2*A*B*Math.cos(kakudo); double Ans = Math.sqrt(ans); System.out.println(Ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 4, 18, 20, 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, 2, 2, 13, 2, 13, 17, 17, 17, 41, 13, 2, 2, 13, 17, 17, 41, 13, 4, 18, 13, 2, 13, 13, 0, 13, 4, 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, 13, 4, 18, 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 ], [ 13, 14 ], [ 12, 15 ], [ 15, 16 ], [ 15, 17 ], [ 9, 18 ], [ 18, 19 ], [ 116, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 22, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 22, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 22, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 22, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 49, 55 ], [ 48, 56 ], [ 22, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 22, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 69, 70 ], [ 69, 71 ], [ 22, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 22, 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 ], [ 22, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 22, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 22, 110 ], [ 110, 111 ], [ 111, 112 ], [ 20, 113 ], [ 113, 114 ], [ 0, 115 ], [ 115, 116 ], [ 115, 117 ] ]
[ "import java.io.InputStream;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tnew Main().execute(System.in);\n\t}\n\n\tpublic void execute(InputStream in) {\n\t\tScanner sc = new Scanner(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\tdouble rh = (h + (m / 60.0)) * 360 / 12.0;\n\t\tdouble rm = (m * 360 / 60.0);\n\t\tdouble r = Math.abs(rh - rm);\n\t\tr = Math.toRadians(r);\n\n\t\tdouble c = a * a + b * b - 2 * a * b * Math.cos(r);\n\t\tc = Math.sqrt(c);\n\t\t\n\t\tSystem.out.println(c);\n\t\tsc.close();\n\t}\n}", "import java.io.InputStream;", "InputStream", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tnew Main().execute(System.in);\n\t}\n\n\tpublic void execute(InputStream in) {\n\t\tScanner sc = new Scanner(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\tdouble rh = (h + (m / 60.0)) * 360 / 12.0;\n\t\tdouble rm = (m * 360 / 60.0);\n\t\tdouble r = Math.abs(rh - rm);\n\t\tr = Math.toRadians(r);\n\n\t\tdouble c = a * a + b * b - 2 * a * b * Math.cos(r);\n\t\tc = Math.sqrt(c);\n\t\t\n\t\tSystem.out.println(c);\n\t\tsc.close();\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tnew Main().execute(System.in);\n\t}", "main", "{\n\t\tnew Main().execute(System.in);\n\t}", "new Main().execute(System.in)", "new Main().execute", "new Main()", "System.in", "System", "System.in", "String[] args", "args", "public void execute(InputStream in) {\n\t\tScanner sc = new Scanner(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\tdouble rh = (h + (m / 60.0)) * 360 / 12.0;\n\t\tdouble rm = (m * 360 / 60.0);\n\t\tdouble r = Math.abs(rh - rm);\n\t\tr = Math.toRadians(r);\n\n\t\tdouble c = a * a + b * b - 2 * a * b * Math.cos(r);\n\t\tc = Math.sqrt(c);\n\t\t\n\t\tSystem.out.println(c);\n\t\tsc.close();\n\t}", "execute", "{\n\t\tScanner sc = new Scanner(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\tdouble rh = (h + (m / 60.0)) * 360 / 12.0;\n\t\tdouble rm = (m * 360 / 60.0);\n\t\tdouble r = Math.abs(rh - rm);\n\t\tr = Math.toRadians(r);\n\n\t\tdouble c = a * a + b * b - 2 * a * b * Math.cos(r);\n\t\tc = Math.sqrt(c);\n\t\t\n\t\tSystem.out.println(c);\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(in);", "sc", "new Scanner(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 rh = (h + (m / 60.0)) * 360 / 12.0;", "rh", "(h + (m / 60.0)) * 360 / 12.0", "(h + (m / 60.0)) * 360", "(h + (m / 60.0))", "h", "(m / 60.0)", "m", "60.0", "360", "12.0", "double rm = (m * 360 / 60.0);", "rm", "(m * 360 / 60.0)", "m * 360", "m", "360", "60.0", "double r = Math.abs(rh - rm);", "r", "Math.abs(rh - rm)", "Math.abs", "Math", "rh - rm", "rh", "rm", "r = Math.toRadians(r)", "r", "Math.toRadians(r)", "Math.toRadians", "Math", "r", "double c = a * a + b * b - 2 * a * b * Math.cos(r);", "c", "a * a + b * b - 2 * a * b * Math.cos(r)", "a * a + b * b", "a * a", "a", "a", "b * b", "b", "b", "2 * a * b * Math.cos(r)", "b", "2 * a * b * Math.cos(r)", "2", "a", "b", "Math.cos(r)", "Math.cos", "Math", "r", "c = Math.sqrt(c)", "c", "Math.sqrt(c)", "Math.sqrt", "Math", "c", "System.out.println(c)", "System.out.println", "System.out", "System", "System.out", "c", "sc.close()", "sc.close", "sc", "InputStream in", "in", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tnew Main().execute(System.in);\n\t}\n\n\tpublic void execute(InputStream in) {\n\t\tScanner sc = new Scanner(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\tdouble rh = (h + (m / 60.0)) * 360 / 12.0;\n\t\tdouble rm = (m * 360 / 60.0);\n\t\tdouble r = Math.abs(rh - rm);\n\t\tr = Math.toRadians(r);\n\n\t\tdouble c = a * a + b * b - 2 * a * b * Math.cos(r);\n\t\tc = Math.sqrt(c);\n\t\t\n\t\tSystem.out.println(c);\n\t\tsc.close();\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tnew Main().execute(System.in);\n\t}\n\n\tpublic void execute(InputStream in) {\n\t\tScanner sc = new Scanner(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\tdouble rh = (h + (m / 60.0)) * 360 / 12.0;\n\t\tdouble rm = (m * 360 / 60.0);\n\t\tdouble r = Math.abs(rh - rm);\n\t\tr = Math.toRadians(r);\n\n\t\tdouble c = a * a + b * b - 2 * a * b * Math.cos(r);\n\t\tc = Math.sqrt(c);\n\t\t\n\t\tSystem.out.println(c);\n\t\tsc.close();\n\t}\n}", "Main" ]
import java.io.InputStream; import java.util.Scanner; public class Main { public static void main(String[] args) { new Main().execute(System.in); } public void execute(InputStream in) { Scanner sc = new Scanner(in); int a = sc.nextInt(); int b = sc.nextInt(); int h = sc.nextInt(); int m = sc.nextInt(); double rh = (h + (m / 60.0)) * 360 / 12.0; double rm = (m * 360 / 60.0); double r = Math.abs(rh - rm); r = Math.toRadians(r); double c = a * a + b * b - 2 * a * b * Math.cos(r); c = Math.sqrt(c); System.out.println(c); sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 2, 13, 17, 17, 2, 13, 17, 41, 13, 2, 13, 17, 41, 13, 2, 13, 13, 14, 2, 13, 17, 30, 0, 13, 4, 18, 13, 2, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 17, 13, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 30, 0, 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, 4, 18, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 142, 14 ], [ 142, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 17, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 17, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 17, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 43, 49 ], [ 49, 50 ], [ 49, 51 ], [ 17, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 54, 56 ], [ 17, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 17, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 72, 73 ], [ 72, 74 ], [ 62, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 82, 84 ], [ 17, 85 ], [ 85, 86 ], [ 85, 87 ], [ 17, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 88, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 17, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 109, 113 ], [ 113, 114 ], [ 113, 115 ], [ 108, 116 ], [ 118, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 118, 122 ], [ 17, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 126, 127 ], [ 125, 128 ], [ 17, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 129, 134 ], [ 134, 135 ], [ 135, 136 ], [ 134, 137 ], [ 134, 138 ], [ 15, 139 ], [ 139, 140 ], [ 0, 141 ], [ 141, 142 ], [ 141, 143 ] ]
[ "import java.io.*;\nimport java.util.Scanner;\nimport java.util.Arrays;\nimport java.util.ArrayList;\n\npublic class Main{\n\n public static void main(String[] args){\n //START\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 longW=((H%12)*30)+(M*0.5); //้•ท้‡ใฎใƒ‡ใƒ•ใ‚ฉใƒซใƒˆใ‹ใ‚‰ใฎ่ง’ๅบฆ\n double shortW=M*6; //็Ÿญ้‡ใฎใƒ‡ใƒ•ใ‚ฉใƒซใƒˆใ‹ใ‚‰ใฎ่ง’ๅบฆ\n\n //System.out.print(longW);\n //System.out.print(\" \");\n //System.out.println(shortW);\n\n double W=longW-shortW;\n\n if(W<0){\n W=Math.abs(longW-shortW);\n }else if(W>180){\n W=360-W;\n }\n\n //System.out.println(W);\n\n double cosW=0;\n\n if(W==90){\n cosW=0;\n }else{\n cosW=Math.cos(Math.toRadians(W));\n }\n\n //System.out.println(cosW);\n\n double JIJOU=A*A+B*B-2*A*B*cosW;\n\n //System.out.println(A*A+\"ใจ\"+B*B+\"ใจ\"+2*A*B*cosW);\n //System.out.println(JIJOU);\n\n double ans=Math.sqrt(JIJOU);\n\n System.out.println(String.format(\"%.15f\", ans));\n //END\n\n }\n}\n", "import java.io.*;", "io.*", "java", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.ArrayList;", "ArrayList", "java.util", "public class Main{\n\n public static void main(String[] args){\n //START\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 longW=((H%12)*30)+(M*0.5); //้•ท้‡ใฎใƒ‡ใƒ•ใ‚ฉใƒซใƒˆใ‹ใ‚‰ใฎ่ง’ๅบฆ\n double shortW=M*6; //็Ÿญ้‡ใฎใƒ‡ใƒ•ใ‚ฉใƒซใƒˆใ‹ใ‚‰ใฎ่ง’ๅบฆ\n\n //System.out.print(longW);\n //System.out.print(\" \");\n //System.out.println(shortW);\n\n double W=longW-shortW;\n\n if(W<0){\n W=Math.abs(longW-shortW);\n }else if(W>180){\n W=360-W;\n }\n\n //System.out.println(W);\n\n double cosW=0;\n\n if(W==90){\n cosW=0;\n }else{\n cosW=Math.cos(Math.toRadians(W));\n }\n\n //System.out.println(cosW);\n\n double JIJOU=A*A+B*B-2*A*B*cosW;\n\n //System.out.println(A*A+\"ใจ\"+B*B+\"ใจ\"+2*A*B*cosW);\n //System.out.println(JIJOU);\n\n double ans=Math.sqrt(JIJOU);\n\n System.out.println(String.format(\"%.15f\", ans));\n //END\n\n }\n}", "Main", "public static void main(String[] args){\n //START\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 longW=((H%12)*30)+(M*0.5); //้•ท้‡ใฎใƒ‡ใƒ•ใ‚ฉใƒซใƒˆใ‹ใ‚‰ใฎ่ง’ๅบฆ\n double shortW=M*6; //็Ÿญ้‡ใฎใƒ‡ใƒ•ใ‚ฉใƒซใƒˆใ‹ใ‚‰ใฎ่ง’ๅบฆ\n\n //System.out.print(longW);\n //System.out.print(\" \");\n //System.out.println(shortW);\n\n double W=longW-shortW;\n\n if(W<0){\n W=Math.abs(longW-shortW);\n }else if(W>180){\n W=360-W;\n }\n\n //System.out.println(W);\n\n double cosW=0;\n\n if(W==90){\n cosW=0;\n }else{\n cosW=Math.cos(Math.toRadians(W));\n }\n\n //System.out.println(cosW);\n\n double JIJOU=A*A+B*B-2*A*B*cosW;\n\n //System.out.println(A*A+\"ใจ\"+B*B+\"ใจ\"+2*A*B*cosW);\n //System.out.println(JIJOU);\n\n double ans=Math.sqrt(JIJOU);\n\n System.out.println(String.format(\"%.15f\", ans));\n //END\n\n }", "main", "{\n //START\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 longW=((H%12)*30)+(M*0.5); //้•ท้‡ใฎใƒ‡ใƒ•ใ‚ฉใƒซใƒˆใ‹ใ‚‰ใฎ่ง’ๅบฆ\n double shortW=M*6; //็Ÿญ้‡ใฎใƒ‡ใƒ•ใ‚ฉใƒซใƒˆใ‹ใ‚‰ใฎ่ง’ๅบฆ\n\n //System.out.print(longW);\n //System.out.print(\" \");\n //System.out.println(shortW);\n\n double W=longW-shortW;\n\n if(W<0){\n W=Math.abs(longW-shortW);\n }else if(W>180){\n W=360-W;\n }\n\n //System.out.println(W);\n\n double cosW=0;\n\n if(W==90){\n cosW=0;\n }else{\n cosW=Math.cos(Math.toRadians(W));\n }\n\n //System.out.println(cosW);\n\n double JIJOU=A*A+B*B-2*A*B*cosW;\n\n //System.out.println(A*A+\"ใจ\"+B*B+\"ใจ\"+2*A*B*cosW);\n //System.out.println(JIJOU);\n\n double ans=Math.sqrt(JIJOU);\n\n System.out.println(String.format(\"%.15f\", ans));\n //END\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", "double longW=((H%12)*30)+(M*0.5);", "longW", "((H%12)*30)+(M*0.5)", "((H%12)*30)", "(H%12)", "H", "12", "30", "(M*0.5)", "M", "0.5", "double shortW=M*6;", "shortW", "M*6", "M", "6", "double W=longW-shortW;", "W", "longW-shortW", "longW", "shortW", "if(W<0){\n W=Math.abs(longW-shortW);\n }else if(W>180){\n W=360-W;\n }", "W<0", "W", "0", "{\n W=Math.abs(longW-shortW);\n }", "W=Math.abs(longW-shortW)", "W", "Math.abs(longW-shortW)", "Math.abs", "Math", "longW-shortW", "longW", "shortW", "if(W>180){\n W=360-W;\n }", "W>180", "W", "180", "{\n W=360-W;\n }", "W=360-W", "W", "360-W", "360", "W", "double cosW=0;", "cosW", "0", "if(W==90){\n cosW=0;\n }else{\n cosW=Math.cos(Math.toRadians(W));\n }", "W==90", "W", "90", "{\n cosW=0;\n }", "cosW=0", "cosW", "0", "{\n cosW=Math.cos(Math.toRadians(W));\n }", "cosW=Math.cos(Math.toRadians(W))", "cosW", "Math.cos(Math.toRadians(W))", "Math.cos", "Math", "Math.toRadians(W)", "Math.toRadians", "Math", "W", "double JIJOU=A*A+B*B-2*A*B*cosW;", "JIJOU", "A*A+B*B-2*A*B*cosW", "A*A+B*B", "A*A", "A", "A", "B*B", "B", "B", "2*A*B*cosW", "B", "2*A*B*cosW", "2", "A", "B", "cosW", "double ans=Math.sqrt(JIJOU);", "ans", "Math.sqrt(JIJOU)", "Math.sqrt", "Math", "JIJOU", "System.out.println(String.format(\"%.15f\", ans))", "System.out.println", "System.out", "System", "System.out", "String.format(\"%.15f\", ans)", "String.format", "String", "\"%.15f\"", "ans", "String[] args", "args", "public class Main{\n\n public static void main(String[] args){\n //START\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 longW=((H%12)*30)+(M*0.5); //้•ท้‡ใฎใƒ‡ใƒ•ใ‚ฉใƒซใƒˆใ‹ใ‚‰ใฎ่ง’ๅบฆ\n double shortW=M*6; //็Ÿญ้‡ใฎใƒ‡ใƒ•ใ‚ฉใƒซใƒˆใ‹ใ‚‰ใฎ่ง’ๅบฆ\n\n //System.out.print(longW);\n //System.out.print(\" \");\n //System.out.println(shortW);\n\n double W=longW-shortW;\n\n if(W<0){\n W=Math.abs(longW-shortW);\n }else if(W>180){\n W=360-W;\n }\n\n //System.out.println(W);\n\n double cosW=0;\n\n if(W==90){\n cosW=0;\n }else{\n cosW=Math.cos(Math.toRadians(W));\n }\n\n //System.out.println(cosW);\n\n double JIJOU=A*A+B*B-2*A*B*cosW;\n\n //System.out.println(A*A+\"ใจ\"+B*B+\"ใจ\"+2*A*B*cosW);\n //System.out.println(JIJOU);\n\n double ans=Math.sqrt(JIJOU);\n\n System.out.println(String.format(\"%.15f\", ans));\n //END\n\n }\n}", "public class Main{\n\n public static void main(String[] args){\n //START\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 longW=((H%12)*30)+(M*0.5); //้•ท้‡ใฎใƒ‡ใƒ•ใ‚ฉใƒซใƒˆใ‹ใ‚‰ใฎ่ง’ๅบฆ\n double shortW=M*6; //็Ÿญ้‡ใฎใƒ‡ใƒ•ใ‚ฉใƒซใƒˆใ‹ใ‚‰ใฎ่ง’ๅบฆ\n\n //System.out.print(longW);\n //System.out.print(\" \");\n //System.out.println(shortW);\n\n double W=longW-shortW;\n\n if(W<0){\n W=Math.abs(longW-shortW);\n }else if(W>180){\n W=360-W;\n }\n\n //System.out.println(W);\n\n double cosW=0;\n\n if(W==90){\n cosW=0;\n }else{\n cosW=Math.cos(Math.toRadians(W));\n }\n\n //System.out.println(cosW);\n\n double JIJOU=A*A+B*B-2*A*B*cosW;\n\n //System.out.println(A*A+\"ใจ\"+B*B+\"ใจ\"+2*A*B*cosW);\n //System.out.println(JIJOU);\n\n double ans=Math.sqrt(JIJOU);\n\n System.out.println(String.format(\"%.15f\", ans));\n //END\n\n }\n}", "Main" ]
import java.io.*; import java.util.Scanner; import java.util.Arrays; import java.util.ArrayList; public class Main{ public static void main(String[] args){ //START Scanner sc=new Scanner(System.in); int A=sc.nextInt(); int B=sc.nextInt(); int H=sc.nextInt(); int M=sc.nextInt(); double longW=((H%12)*30)+(M*0.5); //้•ท้‡ใฎใƒ‡ใƒ•ใ‚ฉใƒซใƒˆใ‹ใ‚‰ใฎ่ง’ๅบฆ double shortW=M*6; //็Ÿญ้‡ใฎใƒ‡ใƒ•ใ‚ฉใƒซใƒˆใ‹ใ‚‰ใฎ่ง’ๅบฆ //System.out.print(longW); //System.out.print(" "); //System.out.println(shortW); double W=longW-shortW; if(W<0){ W=Math.abs(longW-shortW); }else if(W>180){ W=360-W; } //System.out.println(W); double cosW=0; if(W==90){ cosW=0; }else{ cosW=Math.cos(Math.toRadians(W)); } //System.out.println(cosW); double JIJOU=A*A+B*B-2*A*B*cosW; //System.out.println(A*A+"ใจ"+B*B+"ใจ"+2*A*B*cosW); //System.out.println(JIJOU); double ans=Math.sqrt(JIJOU); System.out.println(String.format("%.15f", ans)); //END } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 2, 4, 18, 13, 17, 17, 17, 41, 13, 12, 13, 30, 41, 13, 20, 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, 13, 17, 41, 13, 2, 2, 13, 17, 2, 2, 13, 17, 17, 41, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 2, 13, 13, 2, 17, 4, 18, 13, 2, 13, 13, 4, 18, 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, 23, 13, 12, 13, 30, 14, 2, 13, 17, 29, 17, 14, 2, 13, 17, 29, 13, 30, 41, 13, 4, 13, 13, 2, 13, 17, 14, 2, 2, 13, 17, 17, 30, 29, 2, 13, 13, 30, 29, 2, 2, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 14, 2, 13, 17, 29, 17, 14, 2, 13, 17, 29, 2, 13, 13, 30, 41, 13, 2, 4, 13, 13, 2, 13, 17, 13, 0, 13, 2, 13, 13, 14, 2, 2, 13, 17, 17, 30, 0, 13, 2, 13, 13, 29, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 18, 13, 13, 14, 2, 13, 17, 29, 41, 13, 20, 2, 13, 17, 41, 13, 20, 2, 13, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 18, 13, 13, 11, 1, 41, 13, 2, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 2, 13, 2, 13, 17, 18, 13, 13, 4, 13, 13, 4, 13, 13, 4, 13, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 2, 2, 2, 13, 18, 13, 13, 2, 13, 18, 13, 13, 2, 13, 18, 13, 13, 30, 14, 2, 18, 13, 13, 18, 13, 13, 30, 0, 18, 13, 13, 18, 13, 13, 40, 13, 30, 0, 18, 13, 13, 18, 13, 13, 40, 13, 40, 13, 42, 2, 13, 18, 13, 13, 30, 0, 18, 13, 13, 18, 13, 13, 40, 13, 40, 13, 42, 2, 13, 18, 13, 13, 30, 0, 18, 13, 13, 18, 13, 13, 40, 13, 40, 13, 23, 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 ], [ 495, 8 ], [ 495, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 12, 15 ], [ 12, 16 ], [ 11, 17 ], [ 495, 18 ], [ 18, 19 ], [ 495, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 26, 28 ], [ 22, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 22, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 22, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 22, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 22, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 51, 53 ], [ 22, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 22, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 76, 77 ], [ 76, 78 ], [ 70, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 84, 85 ], [ 84, 86 ], [ 22, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 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 ], [ 22, 111 ], [ 111, 112 ], [ 112, 113 ], [ 20, 114 ], [ 114, 115 ], [ 495, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 119, 123 ], [ 123, 124 ], [ 119, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 125, 129 ], [ 129, 130 ], [ 125, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 134, 135 ], [ 134, 136 ], [ 134, 137 ], [ 137, 138 ], [ 137, 139 ], [ 131, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 141, 145 ], [ 140, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 140, 151 ], [ 151, 152 ], [ 152, 153 ], [ 154, 154 ], [ 154, 155 ], [ 154, 156 ], [ 154, 157 ], [ 116, 158 ], [ 158, 159 ], [ 116, 160 ], [ 160, 161 ], [ 495, 162 ], [ 162, 163 ], [ 162, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 165, 169 ], [ 169, 170 ], [ 165, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 171, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 171, 179 ], [ 179, 180 ], [ 180, 181 ], [ 180, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 183, 186 ], [ 186, 187 ], [ 186, 188 ], [ 182, 189 ], [ 179, 190 ], [ 190, 191 ], [ 190, 192 ], [ 192, 193 ], [ 192, 194 ], [ 179, 195 ], [ 195, 196 ], [ 196, 197 ], [ 197, 198 ], [ 197, 199 ], [ 196, 200 ], [ 195, 201 ], [ 201, 202 ], [ 202, 203 ], [ 202, 204 ], [ 204, 205 ], [ 204, 206 ], [ 179, 207 ], [ 207, 208 ], [ 208, 209 ], [ 208, 210 ], [ 162, 211 ], [ 211, 212 ], [ 162, 213 ], [ 213, 214 ], [ 495, 215 ], [ 215, 216 ], [ 215, 217 ], [ 217, 218 ], [ 218, 219 ], [ 218, 220 ], [ 220, 221 ], [ 220, 222 ], [ 217, 223 ], [ 223, 224 ], [ 224, 225 ], [ 224, 226 ], [ 223, 227 ], [ 217, 228 ], [ 228, 229 ], [ 228, 230 ], [ 231, 232 ], [ 231, 233 ], [ 217, 234 ], [ 234, 235 ], [ 234, 236 ], [ 237, 238 ], [ 237, 239 ], [ 239, 240 ], [ 239, 241 ], [ 217, 242 ], [ 242, 243 ], [ 243, 244 ], [ 244, 245 ], [ 244, 246 ], [ 242, 247 ], [ 247, 248 ], [ 247, 249 ], [ 249, 250 ], [ 249, 251 ], [ 242, 252 ], [ 252, 253 ], [ 253, 254 ], [ 242, 255 ], [ 256, 256 ], [ 256, 257 ], [ 257, 258 ], [ 258, 259 ], [ 258, 260 ], [ 257, 261 ], [ 261, 262 ], [ 261, 263 ], [ 217, 264 ], [ 264, 265 ], [ 265, 266 ], [ 266, 267 ], [ 266, 268 ], [ 268, 269 ], [ 268, 270 ], [ 264, 271 ], [ 271, 272 ], [ 271, 273 ], [ 264, 274 ], [ 274, 275 ], [ 275, 276 ], [ 264, 277 ], [ 278, 278 ], [ 278, 279 ], [ 279, 280 ], [ 280, 281 ], [ 280, 282 ], [ 282, 283 ], [ 282, 284 ], [ 284, 285 ], [ 284, 286 ], [ 279, 287 ], [ 287, 288 ], [ 287, 289 ], [ 217, 290 ], [ 290, 291 ], [ 290, 292 ], [ 217, 293 ], [ 293, 294 ], [ 293, 295 ], [ 217, 296 ], [ 296, 297 ], [ 296, 298 ], [ 296, 299 ], [ 296, 300 ], [ 215, 301 ], [ 301, 302 ], [ 495, 303 ], [ 303, 304 ], [ 303, 305 ], [ 305, 306 ], [ 306, 307 ], [ 306, 308 ], [ 305, 309 ], [ 309, 310 ], [ 309, 311 ], [ 305, 312 ], [ 312, 313 ], [ 312, 314 ], [ 305, 315 ], [ 315, 316 ], [ 317, 317 ], [ 317, 318 ], [ 318, 319 ], [ 318, 320 ], [ 320, 321 ], [ 320, 322 ], [ 317, 323 ], [ 323, 324 ], [ 323, 325 ], [ 325, 326 ], [ 325, 327 ], [ 317, 328 ], [ 328, 329 ], [ 328, 330 ], [ 330, 331 ], [ 330, 332 ], [ 315, 333 ], [ 333, 334 ], [ 334, 335 ], [ 335, 336 ], [ 336, 337 ], [ 336, 338 ], [ 335, 339 ], [ 339, 340 ], [ 339, 341 ], [ 334, 342 ], [ 342, 343 ], [ 343, 344 ], [ 344, 345 ], [ 344, 346 ], [ 343, 347 ], [ 347, 348 ], [ 347, 349 ], [ 342, 350 ], [ 350, 351 ], [ 334, 352 ], [ 352, 353 ], [ 353, 354 ], [ 354, 355 ], [ 354, 356 ], [ 353, 357 ], [ 357, 358 ], [ 357, 359 ], [ 352, 360 ], [ 360, 361 ], [ 333, 362 ], [ 362, 363 ], [ 305, 364 ], [ 364, 365 ], [ 365, 366 ], [ 365, 367 ], [ 367, 368 ], [ 367, 369 ], [ 364, 370 ], [ 370, 371 ], [ 371, 372 ], [ 372, 373 ], [ 372, 374 ], [ 371, 375 ], [ 375, 376 ], [ 375, 377 ], [ 370, 378 ], [ 378, 379 ], [ 370, 380 ], [ 380, 381 ], [ 305, 382 ], [ 382, 383 ], [ 383, 384 ], [ 383, 385 ], [ 385, 386 ], [ 385, 387 ], [ 382, 388 ], [ 388, 389 ], [ 389, 390 ], [ 390, 391 ], [ 390, 392 ], [ 389, 393 ], [ 393, 394 ], [ 393, 395 ], [ 388, 396 ], [ 396, 397 ], [ 388, 398 ], [ 398, 399 ], [ 303, 400 ], [ 400, 401 ], [ 303, 402 ], [ 402, 403 ], [ 303, 404 ], [ 404, 405 ], [ 495, 406 ], [ 406, 407 ], [ 406, 408 ], [ 408, 409 ], [ 406, 410 ], [ 410, 411 ], [ 406, 412 ], [ 412, 413 ], [ 412, 414 ], [ 414, 415 ], [ 415, 416 ], [ 415, 417 ], [ 406, 418 ], [ 418, 419 ], [ 418, 420 ], [ 420, 421 ], [ 421, 422 ], [ 422, 423 ], [ 423, 424 ], [ 423, 425 ], [ 422, 426 ], [ 426, 427 ], [ 427, 428 ], [ 428, 429 ], [ 421, 430 ], [ 430, 431 ], [ 431, 432 ], [ 432, 433 ], [ 432, 434 ], [ 434, 435 ], [ 435, 436 ], [ 436, 437 ], [ 431, 438 ], [ 438, 439 ], [ 439, 440 ], [ 439, 441 ], [ 420, 442 ], [ 442, 443 ], [ 443, 444 ], [ 444, 445 ], [ 406, 446 ], [ 446, 447 ], [ 446, 448 ], [ 448, 449 ], [ 449, 450 ], [ 450, 451 ], [ 451, 452 ], [ 450, 453 ], [ 453, 454 ], [ 406, 455 ], [ 455, 456 ], [ 455, 457 ], [ 457, 458 ], [ 458, 459 ], [ 459, 460 ], [ 460, 461 ], [ 459, 462 ], [ 462, 463 ], [ 406, 464 ], [ 464, 465 ], [ 464, 466 ], [ 466, 467 ], [ 467, 468 ], [ 468, 469 ], [ 469, 470 ], [ 468, 471 ], [ 471, 472 ], [ 406, 473 ], [ 473, 474 ], [ 473, 475 ], [ 475, 476 ], [ 476, 477 ], [ 476, 478 ], [ 475, 479 ], [ 479, 480 ], [ 480, 481 ], [ 480, 482 ], [ 482, 483 ], [ 483, 484 ], [ 484, 485 ], [ 479, 486 ], [ 486, 487 ], [ 487, 488 ], [ 487, 489 ], [ 489, 490 ], [ 490, 491 ], [ 475, 492 ], [ 492, 493 ], [ 0, 494 ], [ 494, 495 ], [ 494, 496 ] ]
[ "import java.io.*;\nimport java.util.*;\n \n \npublic class Main{\nstatic int mod = (int)(Math.pow(10, 9) + 7);\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n double a = sc.nextInt();\n double b = sc.nextInt();\n double h = sc.nextInt();\n double m = sc.nextInt();\n\n double minAngle = m*6;\n double hAngle = h*30 + m/60 * 30;\n\n double angleDist =Math.toRadians(Math.min(Math.abs(minAngle - hAngle), 360- Math.abs(minAngle - hAngle)));\n // out.println(angleDist);\n\n out.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(angleDist)));\n\n out.close();\n }\n \n static long pow(long a, long N) {\n\t if (N == 0) return 1;\n\t else if (N == 1) return a;\n\t else {\n\t\t long R = pow(a,N/2);\n\t\t if (N % 2 == 0) {\n\t\t\t return R*R;\n\t\t }\n\t\t else {\n\t\t\t return R*R*a;\n\t\t }\n\t }\n }\n \n static long powMod(long a, long N) {\n\t if (N == 0) return 1;\n\t else if (N == 1) return a % mod;\n\t else {\n\t\t long R = powMod(a,N/2) % mod;\n\t\t R *= R % mod;\n\t\t if (N % 2 == 0) {\n\t\t\t R *= a % mod;\n\t\t }\n\t\t\t return R % mod;\n\t }\n }\nstatic void mergeSort(int[] A){ // low to hi sort, single array only\n int n = A.length;\n if (n < 2) return;\n int[] l = new int[n/2];\n int[] r = new int[n - n/2];\n \n for (int i = 0; i < n/2; i++){\n l[i] = A[i];\n }\n \n for (int j = n/2; j < n; j++){\n r[j-n/2] = A[j];\n }\n \n mergeSort(l);\n mergeSort(r);\n merge(l, r, A);\n }\n \n static void merge(int[] l, int[] r, int[] a){\n int i = 0, j = 0, k = 0;\n while (i < l.length && j < r.length && k < a.length){\n if (l[i] < r[j]){\n a[k] = l[i];\n i++;\n }\n else{\n a[k] = r[j];\n j++;\n }\n k++;\n }\n while (i < l.length){\n a[k] = l[i];\n i++;\n k++;\n }\n \n while (j < r.length){\n a[k] = r[j];\n j++;\n k++;\n }\n }\n\n \n\n //-----------PrintWriter for faster output---------------------------------\n public static PrintWriter out;\n \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 \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\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }\n\n }\n //--------------------------------------------------------\n}\n\n\n\n\n", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main{\nstatic int mod = (int)(Math.pow(10, 9) + 7);\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n double a = sc.nextInt();\n double b = sc.nextInt();\n double h = sc.nextInt();\n double m = sc.nextInt();\n\n double minAngle = m*6;\n double hAngle = h*30 + m/60 * 30;\n\n double angleDist =Math.toRadians(Math.min(Math.abs(minAngle - hAngle), 360- Math.abs(minAngle - hAngle)));\n // out.println(angleDist);\n\n out.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(angleDist)));\n\n out.close();\n }\n \n static long pow(long a, long N) {\n\t if (N == 0) return 1;\n\t else if (N == 1) return a;\n\t else {\n\t\t long R = pow(a,N/2);\n\t\t if (N % 2 == 0) {\n\t\t\t return R*R;\n\t\t }\n\t\t else {\n\t\t\t return R*R*a;\n\t\t }\n\t }\n }\n \n static long powMod(long a, long N) {\n\t if (N == 0) return 1;\n\t else if (N == 1) return a % mod;\n\t else {\n\t\t long R = powMod(a,N/2) % mod;\n\t\t R *= R % mod;\n\t\t if (N % 2 == 0) {\n\t\t\t R *= a % mod;\n\t\t }\n\t\t\t return R % mod;\n\t }\n }\nstatic void mergeSort(int[] A){ // low to hi sort, single array only\n int n = A.length;\n if (n < 2) return;\n int[] l = new int[n/2];\n int[] r = new int[n - n/2];\n \n for (int i = 0; i < n/2; i++){\n l[i] = A[i];\n }\n \n for (int j = n/2; j < n; j++){\n r[j-n/2] = A[j];\n }\n \n mergeSort(l);\n mergeSort(r);\n merge(l, r, A);\n }\n \n static void merge(int[] l, int[] r, int[] a){\n int i = 0, j = 0, k = 0;\n while (i < l.length && j < r.length && k < a.length){\n if (l[i] < r[j]){\n a[k] = l[i];\n i++;\n }\n else{\n a[k] = r[j];\n j++;\n }\n k++;\n }\n while (i < l.length){\n a[k] = l[i];\n i++;\n k++;\n }\n \n while (j < r.length){\n a[k] = r[j];\n j++;\n k++;\n }\n }\n\n \n\n //-----------PrintWriter for faster output---------------------------------\n public static PrintWriter out;\n \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 \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\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }\n\n }\n //--------------------------------------------------------\n}", "Main", "static int mod = (int)(Math.pow(10, 9) + 7);", "mod", "(int)(Math.pow(10, 9) + 7)", "Math.pow(10, 9)", "Math.pow", "Math", "10", "9", "7", "//-----------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 double a = sc.nextInt();\n double b = sc.nextInt();\n double h = sc.nextInt();\n double m = sc.nextInt();\n\n double minAngle = m*6;\n double hAngle = h*30 + m/60 * 30;\n\n double angleDist =Math.toRadians(Math.min(Math.abs(minAngle - hAngle), 360- Math.abs(minAngle - hAngle)));\n // out.println(angleDist);\n\n out.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(angleDist)));\n\n out.close();\n }", "main", "{\n MyScanner sc = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n double a = sc.nextInt();\n double b = sc.nextInt();\n double h = sc.nextInt();\n double m = sc.nextInt();\n\n double minAngle = m*6;\n double hAngle = h*30 + m/60 * 30;\n\n double angleDist =Math.toRadians(Math.min(Math.abs(minAngle - hAngle), 360- Math.abs(minAngle - hAngle)));\n // out.println(angleDist);\n\n out.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(angleDist)));\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))", "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 minAngle = m*6;", "minAngle", "m*6", "m", "6", "double hAngle = h*30 + m/60 * 30;", "hAngle", "h*30 + m/60 * 30", "h*30", "h", "30", "m/60 * 30", "m/60", "m", "60", "30", "double angleDist =Math.toRadians(Math.min(Math.abs(minAngle - hAngle), 360- Math.abs(minAngle - hAngle)));", "angleDist", "Math.toRadians(Math.min(Math.abs(minAngle - hAngle), 360- Math.abs(minAngle - hAngle)))", "Math.toRadians", "Math", "Math.min(Math.abs(minAngle - hAngle), 360- Math.abs(minAngle - hAngle))", "Math.min", "Math", "Math.abs(minAngle - hAngle)", "Math.abs", "Math", "minAngle - hAngle", "minAngle", "hAngle", "360- Math.abs(minAngle - hAngle)", "360", "Math.abs(minAngle - hAngle)", "Math.abs", "Math", "minAngle - hAngle", "minAngle", "hAngle", "out.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(angleDist)))", "out.println", "out", "Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(angleDist))", "Math.sqrt", "Math", "a * a + b * b - 2 * a * b * Math.cos(angleDist)", "a * a + b * b", "a * a", "a", "a", "b * b", "b", "b", "2 * a * b * Math.cos(angleDist)", "b", "2 * a * b * Math.cos(angleDist)", "2", "a", "b", "Math.cos(angleDist)", "Math.cos", "Math", "angleDist", "out.close()", "out.close", "out", "String[] args", "args", "static long pow(long a, long N) {\n\t if (N == 0) return 1;\n\t else if (N == 1) return a;\n\t else {\n\t\t long R = pow(a,N/2);\n\t\t if (N % 2 == 0) {\n\t\t\t return R*R;\n\t\t }\n\t\t else {\n\t\t\t return R*R*a;\n\t\t }\n\t }\n }", "pow", "{\n\t if (N == 0) return 1;\n\t else if (N == 1) return a;\n\t else {\n\t\t long R = pow(a,N/2);\n\t\t if (N % 2 == 0) {\n\t\t\t return R*R;\n\t\t }\n\t\t else {\n\t\t\t return R*R*a;\n\t\t }\n\t }\n }", "if (N == 0) return 1;\n\t else if (N == 1) return a;\n\t else {\n\t\t long R = pow(a,N/2);\n\t\t if (N % 2 == 0) {\n\t\t\t return R*R;\n\t\t }\n\t\t else {\n\t\t\t return R*R*a;\n\t\t }\n\t }", "N == 0", "N", "0", "return 1;", "1", "if (N == 1) return a;\n\t else {\n\t\t long R = pow(a,N/2);\n\t\t if (N % 2 == 0) {\n\t\t\t return R*R;\n\t\t }\n\t\t else {\n\t\t\t return R*R*a;\n\t\t }\n\t }", "N == 1", "N", "1", "return a;", "a", "{\n\t\t long R = pow(a,N/2);\n\t\t if (N % 2 == 0) {\n\t\t\t return R*R;\n\t\t }\n\t\t else {\n\t\t\t return R*R*a;\n\t\t }\n\t }", "long R = pow(a,N/2);", "R", "pow(a,N/2)", "pow", "a", "N/2", "N", "2", "if (N % 2 == 0) {\n\t\t\t return R*R;\n\t\t }\n\t\t else {\n\t\t\t return R*R*a;\n\t\t }", "N % 2 == 0", "N % 2", "N", "2", "0", "{\n\t\t\t return R*R;\n\t\t }", "return R*R;", "R*R", "R", "R", "{\n\t\t\t return R*R*a;\n\t\t }", "return R*R*a;", "R*R*a", "R*R*a", "R", "R", "a", "long a", "a", "long N", "N", "static long powMod(long a, long N) {\n\t if (N == 0) return 1;\n\t else if (N == 1) return a % mod;\n\t else {\n\t\t long R = powMod(a,N/2) % mod;\n\t\t R *= R % mod;\n\t\t if (N % 2 == 0) {\n\t\t\t R *= a % mod;\n\t\t }\n\t\t\t return R % mod;\n\t }\n }", "powMod", "{\n\t if (N == 0) return 1;\n\t else if (N == 1) return a % mod;\n\t else {\n\t\t long R = powMod(a,N/2) % mod;\n\t\t R *= R % mod;\n\t\t if (N % 2 == 0) {\n\t\t\t R *= a % mod;\n\t\t }\n\t\t\t return R % mod;\n\t }\n }", "if (N == 0) return 1;\n\t else if (N == 1) return a % mod;\n\t else {\n\t\t long R = powMod(a,N/2) % mod;\n\t\t R *= R % mod;\n\t\t if (N % 2 == 0) {\n\t\t\t R *= a % mod;\n\t\t }\n\t\t\t return R % mod;\n\t }", "N == 0", "N", "0", "return 1;", "1", "if (N == 1) return a % mod;\n\t else {\n\t\t long R = powMod(a,N/2) % mod;\n\t\t R *= R % mod;\n\t\t if (N % 2 == 0) {\n\t\t\t R *= a % mod;\n\t\t }\n\t\t\t return R % mod;\n\t }", "N == 1", "N", "1", "return a % mod;", "a % mod", "a", "mod", "{\n\t\t long R = powMod(a,N/2) % mod;\n\t\t R *= R % mod;\n\t\t if (N % 2 == 0) {\n\t\t\t R *= a % mod;\n\t\t }\n\t\t\t return R % mod;\n\t }", "long R = powMod(a,N/2) % mod;", "R", "powMod(a,N/2) % mod", "powMod(a,N/2)", "powMod", "a", "N/2", "N", "2", "mod", "R *= R % mod", "R", "R % mod", "R", "mod", "if (N % 2 == 0) {\n\t\t\t R *= a % mod;\n\t\t }", "N % 2 == 0", "N % 2", "N", "2", "0", "{\n\t\t\t R *= a % mod;\n\t\t }", "R *= a % mod", "R", "a % mod", "a", "mod", "return R % mod;", "R % mod", "R", "mod", "long a", "a", "long N", "N", "static void mergeSort(int[] A){ // low to hi sort, single array only\n int n = A.length;\n if (n < 2) return;\n int[] l = new int[n/2];\n int[] r = new int[n - n/2];\n \n for (int i = 0; i < n/2; i++){\n l[i] = A[i];\n }\n \n for (int j = n/2; j < n; j++){\n r[j-n/2] = A[j];\n }\n \n mergeSort(l);\n mergeSort(r);\n merge(l, r, A);\n }", "mergeSort", "{ // low to hi sort, single array only\n int n = A.length;\n if (n < 2) return;\n int[] l = new int[n/2];\n int[] r = new int[n - n/2];\n \n for (int i = 0; i < n/2; i++){\n l[i] = A[i];\n }\n \n for (int j = n/2; j < n; j++){\n r[j-n/2] = A[j];\n }\n \n mergeSort(l);\n mergeSort(r);\n merge(l, r, A);\n }", "int n = A.length;", "n", "A.length", "A", "A.length", "if (n < 2) return;", "n < 2", "n", "2", "return;", "int[] l = new int[n/2];", "l", "new int[n/2]", "n/2", "n", "2", "int[] r = new int[n - n/2];", "r", "new int[n - n/2]", "n - n/2", "n", "n/2", "n", "2", "for (int i = 0; i < n/2; i++){\n l[i] = A[i];\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n/2", "i", "n/2", "n", "2", "i++", "i++", "i", "{\n l[i] = A[i];\n }", "{\n l[i] = A[i];\n }", "l[i] = A[i]", "l[i]", "l", "i", "A[i]", "A", "i", "for (int j = n/2; j < n; j++){\n r[j-n/2] = A[j];\n }", "int j = n/2;", "int j = n/2;", "j", "n/2", "n", "2", "j < n", "j", "n", "j++", "j++", "j", "{\n r[j-n/2] = A[j];\n }", "{\n r[j-n/2] = A[j];\n }", "r[j-n/2] = A[j]", "r[j-n/2]", "r", "j-n/2", "j", "n/2", "n", "2", "A[j]", "A", "j", "mergeSort(l)", "mergeSort", "l", "mergeSort(r)", "mergeSort", "r", "merge(l, r, A)", "merge", "l", "r", "A", "int[] A", "A", "static void merge(int[] l, int[] r, int[] a){\n int i = 0, j = 0, k = 0;\n while (i < l.length && j < r.length && k < a.length){\n if (l[i] < r[j]){\n a[k] = l[i];\n i++;\n }\n else{\n a[k] = r[j];\n j++;\n }\n k++;\n }\n while (i < l.length){\n a[k] = l[i];\n i++;\n k++;\n }\n \n while (j < r.length){\n a[k] = r[j];\n j++;\n k++;\n }\n }", "merge", "{\n int i = 0, j = 0, k = 0;\n while (i < l.length && j < r.length && k < a.length){\n if (l[i] < r[j]){\n a[k] = l[i];\n i++;\n }\n else{\n a[k] = r[j];\n j++;\n }\n k++;\n }\n while (i < l.length){\n a[k] = l[i];\n i++;\n k++;\n }\n \n while (j < r.length){\n a[k] = r[j];\n j++;\n k++;\n }\n }", "int i = 0", "i", "0", "j = 0", "j", "0", "k = 0;", "k", "0", "while (i < l.length && j < r.length && k < a.length){\n if (l[i] < r[j]){\n a[k] = l[i];\n i++;\n }\n else{\n a[k] = r[j];\n j++;\n }\n k++;\n }", "i < l.length && j < r.length && k < a.length", "i < l.length && j < r.length && k < a.length", "i < l.length", "i", "l.length", "l", "l.length", "j < r.length", "j", "r.length", "r", "r.length", "k < a.length", "k", "a.length", "a", "a.length", "{\n if (l[i] < r[j]){\n a[k] = l[i];\n i++;\n }\n else{\n a[k] = r[j];\n j++;\n }\n k++;\n }", "if (l[i] < r[j]){\n a[k] = l[i];\n i++;\n }\n else{\n a[k] = r[j];\n j++;\n }", "l[i] < r[j]", "l[i]", "l", "i", "r[j]", "r", "j", "{\n a[k] = l[i];\n i++;\n }", "a[k] = l[i]", "a[k]", "a", "k", "l[i]", "l", "i", "i++", "i", "{\n a[k] = r[j];\n j++;\n }", "a[k] = r[j]", "a[k]", "a", "k", "r[j]", "r", "j", "j++", "j", "k++", "k", "while (i < l.length){\n a[k] = l[i];\n i++;\n k++;\n }", "i < l.length", "i", "l.length", "l", "l.length", "{\n a[k] = l[i];\n i++;\n k++;\n }", "a[k] = l[i]", "a[k]", "a", "k", "l[i]", "l", "i", "i++", "i", "k++", "k", "while (j < r.length){\n a[k] = r[j];\n j++;\n k++;\n }", "j < r.length", "j", "r.length", "r", "r.length", "{\n a[k] = r[j];\n j++;\n k++;\n }", "a[k] = r[j]", "a[k]", "a", "k", "r[j]", "r", "j", "j++", "j", "k++", "k", "int[] l", "l", "int[] r", "r", "int[] a", "a", "public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public MyScanner() {\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\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }\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\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }", "nextLine", "{\n String str = \"\";\n\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }", "String str = \"\";", "str", "\"\"", "try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }", "catch (IOException e) {\n\t e.printStackTrace();\n\t }", "IOException e", "{\n\t e.printStackTrace();\n\t }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t str = br.readLine();\n\t }", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "public class Main{\nstatic int mod = (int)(Math.pow(10, 9) + 7);\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n double a = sc.nextInt();\n double b = sc.nextInt();\n double h = sc.nextInt();\n double m = sc.nextInt();\n\n double minAngle = m*6;\n double hAngle = h*30 + m/60 * 30;\n\n double angleDist =Math.toRadians(Math.min(Math.abs(minAngle - hAngle), 360- Math.abs(minAngle - hAngle)));\n // out.println(angleDist);\n\n out.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(angleDist)));\n\n out.close();\n }\n \n static long pow(long a, long N) {\n\t if (N == 0) return 1;\n\t else if (N == 1) return a;\n\t else {\n\t\t long R = pow(a,N/2);\n\t\t if (N % 2 == 0) {\n\t\t\t return R*R;\n\t\t }\n\t\t else {\n\t\t\t return R*R*a;\n\t\t }\n\t }\n }\n \n static long powMod(long a, long N) {\n\t if (N == 0) return 1;\n\t else if (N == 1) return a % mod;\n\t else {\n\t\t long R = powMod(a,N/2) % mod;\n\t\t R *= R % mod;\n\t\t if (N % 2 == 0) {\n\t\t\t R *= a % mod;\n\t\t }\n\t\t\t return R % mod;\n\t }\n }\nstatic void mergeSort(int[] A){ // low to hi sort, single array only\n int n = A.length;\n if (n < 2) return;\n int[] l = new int[n/2];\n int[] r = new int[n - n/2];\n \n for (int i = 0; i < n/2; i++){\n l[i] = A[i];\n }\n \n for (int j = n/2; j < n; j++){\n r[j-n/2] = A[j];\n }\n \n mergeSort(l);\n mergeSort(r);\n merge(l, r, A);\n }\n \n static void merge(int[] l, int[] r, int[] a){\n int i = 0, j = 0, k = 0;\n while (i < l.length && j < r.length && k < a.length){\n if (l[i] < r[j]){\n a[k] = l[i];\n i++;\n }\n else{\n a[k] = r[j];\n j++;\n }\n k++;\n }\n while (i < l.length){\n a[k] = l[i];\n i++;\n k++;\n }\n \n while (j < r.length){\n a[k] = r[j];\n j++;\n k++;\n }\n }\n\n \n\n //-----------PrintWriter for faster output---------------------------------\n public static PrintWriter out;\n \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 \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\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }\n\n }\n //--------------------------------------------------------\n}", "public class Main{\nstatic int mod = (int)(Math.pow(10, 9) + 7);\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n double a = sc.nextInt();\n double b = sc.nextInt();\n double h = sc.nextInt();\n double m = sc.nextInt();\n\n double minAngle = m*6;\n double hAngle = h*30 + m/60 * 30;\n\n double angleDist =Math.toRadians(Math.min(Math.abs(minAngle - hAngle), 360- Math.abs(minAngle - hAngle)));\n // out.println(angleDist);\n\n out.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(angleDist)));\n\n out.close();\n }\n \n static long pow(long a, long N) {\n\t if (N == 0) return 1;\n\t else if (N == 1) return a;\n\t else {\n\t\t long R = pow(a,N/2);\n\t\t if (N % 2 == 0) {\n\t\t\t return R*R;\n\t\t }\n\t\t else {\n\t\t\t return R*R*a;\n\t\t }\n\t }\n }\n \n static long powMod(long a, long N) {\n\t if (N == 0) return 1;\n\t else if (N == 1) return a % mod;\n\t else {\n\t\t long R = powMod(a,N/2) % mod;\n\t\t R *= R % mod;\n\t\t if (N % 2 == 0) {\n\t\t\t R *= a % mod;\n\t\t }\n\t\t\t return R % mod;\n\t }\n }\nstatic void mergeSort(int[] A){ // low to hi sort, single array only\n int n = A.length;\n if (n < 2) return;\n int[] l = new int[n/2];\n int[] r = new int[n - n/2];\n \n for (int i = 0; i < n/2; i++){\n l[i] = A[i];\n }\n \n for (int j = n/2; j < n; j++){\n r[j-n/2] = A[j];\n }\n \n mergeSort(l);\n mergeSort(r);\n merge(l, r, A);\n }\n \n static void merge(int[] l, int[] r, int[] a){\n int i = 0, j = 0, k = 0;\n while (i < l.length && j < r.length && k < a.length){\n if (l[i] < r[j]){\n a[k] = l[i];\n i++;\n }\n else{\n a[k] = r[j];\n j++;\n }\n k++;\n }\n while (i < l.length){\n a[k] = l[i];\n i++;\n k++;\n }\n \n while (j < r.length){\n a[k] = r[j];\n j++;\n k++;\n }\n }\n\n \n\n //-----------PrintWriter for faster output---------------------------------\n public static PrintWriter out;\n \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 \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\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }\n\n }\n //--------------------------------------------------------\n}", "Main" ]
import java.io.*; import java.util.*; public class Main{ static int mod = (int)(Math.pow(10, 9) + 7); public static void main(String[] args) { MyScanner sc = new MyScanner(); out = new PrintWriter(new BufferedOutputStream(System.out)); double a = sc.nextInt(); double b = sc.nextInt(); double h = sc.nextInt(); double m = sc.nextInt(); double minAngle = m*6; double hAngle = h*30 + m/60 * 30; double angleDist =Math.toRadians(Math.min(Math.abs(minAngle - hAngle), 360- Math.abs(minAngle - hAngle))); // out.println(angleDist); out.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(angleDist))); out.close(); } static long pow(long a, long N) { if (N == 0) return 1; else if (N == 1) return a; else { long R = pow(a,N/2); if (N % 2 == 0) { return R*R; } else { return R*R*a; } } } static long powMod(long a, long N) { if (N == 0) return 1; else if (N == 1) return a % mod; else { long R = powMod(a,N/2) % mod; R *= R % mod; if (N % 2 == 0) { R *= a % mod; } return R % mod; } } static void mergeSort(int[] A){ // low to hi sort, single array only int n = A.length; if (n < 2) return; int[] l = new int[n/2]; int[] r = new int[n - n/2]; for (int i = 0; i < n/2; i++){ l[i] = A[i]; } for (int j = n/2; j < n; j++){ r[j-n/2] = A[j]; } mergeSort(l); mergeSort(r); merge(l, r, A); } static void merge(int[] l, int[] r, int[] a){ int i = 0, j = 0, k = 0; while (i < l.length && j < r.length && k < a.length){ if (l[i] < r[j]){ a[k] = l[i]; i++; } else{ a[k] = r[j]; j++; } k++; } while (i < l.length){ a[k] = l[i]; i++; k++; } while (j < r.length){ a[k] = r[j]; j++; k++; } } //-----------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, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 17, 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, 41, 13, 2, 2, 18, 13, 13, 17, 2, 2, 2, 18, 13, 17, 17, 2, 2, 18, 13, 17, 17, 17, 2, 18, 13, 17, 17, 41, 13, 2, 2, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 2, 2, 2, 17, 18, 13, 17, 18, 13, 17, 4, 18, 13, 13, 4, 18, 18, 13, 13, 4, 18, 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 ], [ 145, 14 ], [ 145, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 21, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 25, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 36, 41 ], [ 25, 42 ], [ 42, 43 ], [ 42, 44 ], [ 25, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 46, 56 ], [ 56, 57 ], [ 57, 58 ], [ 46, 59 ], [ 60, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 68, 70 ], [ 25, 71 ], [ 71, 72 ], [ 71, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 74, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 80, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 86, 92 ], [ 79, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 25, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 106, 107 ], [ 106, 108 ], [ 101, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 109, 113 ], [ 113, 114 ], [ 113, 115 ], [ 100, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 120, 122 ], [ 117, 123 ], [ 123, 124 ], [ 123, 125 ], [ 116, 126 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 25, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 130, 135 ], [ 135, 136 ], [ 136, 137 ], [ 135, 138 ], [ 138, 139 ], [ 139, 140 ], [ 138, 141 ], [ 15, 142 ], [ 142, 143 ], [ 0, 144 ], [ 144, 145 ], [ 144, 146 ] ]
[ "import java.io.*;\nimport java.util.*;\nimport java.lang.*;\nimport java.text.DecimalFormat;\npublic class Main {\npublic static void main (String[]args) {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n DecimalFormat df = new DecimalFormat(\"0.000000000\");\n String lines = br.readLine(); \n\n String[] strs = lines.trim().split(\"\\\\s+\");\n int [] a = new int [4];\n for (int i = 0; i < strs.length; i++) {\n a[i] = Integer.parseInt(strs[i]);\n }\n\n // Cosine Law solve \n\n double radian = Math.PI * 2 * ((double)a[2] / 12.0 + ((double)a[3] / 60.0) / 12.0 - (double)a[3]/ 60.0);\n \n double ans = (double)(a[0] * a[0]+ a[1] * a[1]) - (double)(2 * a[0] *\n a[1]) * Math.cos(radian);\n System.out.println(df.format(Math.sqrt(ans)));\n\n }catch (Exception e) {\n }\n }\n }", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "import java.lang.*;", "lang.*", "java", "import java.text.DecimalFormat;", "DecimalFormat", "java.text", "public class Main {\npublic static void main (String[]args) {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n DecimalFormat df = new DecimalFormat(\"0.000000000\");\n String lines = br.readLine(); \n\n String[] strs = lines.trim().split(\"\\\\s+\");\n int [] a = new int [4];\n for (int i = 0; i < strs.length; i++) {\n a[i] = Integer.parseInt(strs[i]);\n }\n\n // Cosine Law solve \n\n double radian = Math.PI * 2 * ((double)a[2] / 12.0 + ((double)a[3] / 60.0) / 12.0 - (double)a[3]/ 60.0);\n \n double ans = (double)(a[0] * a[0]+ a[1] * a[1]) - (double)(2 * a[0] *\n a[1]) * Math.cos(radian);\n System.out.println(df.format(Math.sqrt(ans)));\n\n }catch (Exception e) {\n }\n }\n }", "Main", "public static void main (String[]args) {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n DecimalFormat df = new DecimalFormat(\"0.000000000\");\n String lines = br.readLine(); \n\n String[] strs = lines.trim().split(\"\\\\s+\");\n int [] a = new int [4];\n for (int i = 0; i < strs.length; i++) {\n a[i] = Integer.parseInt(strs[i]);\n }\n\n // Cosine Law solve \n\n double radian = Math.PI * 2 * ((double)a[2] / 12.0 + ((double)a[3] / 60.0) / 12.0 - (double)a[3]/ 60.0);\n \n double ans = (double)(a[0] * a[0]+ a[1] * a[1]) - (double)(2 * a[0] *\n a[1]) * Math.cos(radian);\n System.out.println(df.format(Math.sqrt(ans)));\n\n }catch (Exception e) {\n }\n }", "main", "{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n DecimalFormat df = new DecimalFormat(\"0.000000000\");\n String lines = br.readLine(); \n\n String[] strs = lines.trim().split(\"\\\\s+\");\n int [] a = new int [4];\n for (int i = 0; i < strs.length; i++) {\n a[i] = Integer.parseInt(strs[i]);\n }\n\n // Cosine Law solve \n\n double radian = Math.PI * 2 * ((double)a[2] / 12.0 + ((double)a[3] / 60.0) / 12.0 - (double)a[3]/ 60.0);\n \n double ans = (double)(a[0] * a[0]+ a[1] * a[1]) - (double)(2 * a[0] *\n a[1]) * Math.cos(radian);\n System.out.println(df.format(Math.sqrt(ans)));\n\n }catch (Exception e) {\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "try {\n DecimalFormat df = new DecimalFormat(\"0.000000000\");\n String lines = br.readLine(); \n\n String[] strs = lines.trim().split(\"\\\\s+\");\n int [] a = new int [4];\n for (int i = 0; i < strs.length; i++) {\n a[i] = Integer.parseInt(strs[i]);\n }\n\n // Cosine Law solve \n\n double radian = Math.PI * 2 * ((double)a[2] / 12.0 + ((double)a[3] / 60.0) / 12.0 - (double)a[3]/ 60.0);\n \n double ans = (double)(a[0] * a[0]+ a[1] * a[1]) - (double)(2 * a[0] *\n a[1]) * Math.cos(radian);\n System.out.println(df.format(Math.sqrt(ans)));\n\n }catch (Exception e) {\n }", "catch (Exception e) {\n }", "Exception e", "{\n }", "{\n DecimalFormat df = new DecimalFormat(\"0.000000000\");\n String lines = br.readLine(); \n\n String[] strs = lines.trim().split(\"\\\\s+\");\n int [] a = new int [4];\n for (int i = 0; i < strs.length; i++) {\n a[i] = Integer.parseInt(strs[i]);\n }\n\n // Cosine Law solve \n\n double radian = Math.PI * 2 * ((double)a[2] / 12.0 + ((double)a[3] / 60.0) / 12.0 - (double)a[3]/ 60.0);\n \n double ans = (double)(a[0] * a[0]+ a[1] * a[1]) - (double)(2 * a[0] *\n a[1]) * Math.cos(radian);\n System.out.println(df.format(Math.sqrt(ans)));\n\n }", "DecimalFormat df = new DecimalFormat(\"0.000000000\");", "df", "new DecimalFormat(\"0.000000000\")", "String lines = br.readLine();", "lines", "br.readLine()", "br.readLine", "br", "String[] strs = lines.trim().split(\"\\\\s+\");", "strs", "lines.trim().split(\"\\\\s+\")", "lines.trim().split", "lines.trim()", "lines.trim", "lines", "\"\\\\s+\"", "int [] a = new int [4];", "a", "new int [4]", "4", "for (int i = 0; i < strs.length; i++) {\n a[i] = Integer.parseInt(strs[i]);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < strs.length", "i", "strs.length", "strs", "strs.length", "i++", "i++", "i", "{\n a[i] = Integer.parseInt(strs[i]);\n }", "{\n a[i] = Integer.parseInt(strs[i]);\n }", "a[i] = Integer.parseInt(strs[i])", "a[i]", "a", "i", "Integer.parseInt(strs[i])", "Integer.parseInt", "Integer", "strs[i]", "strs", "i", "double radian = Math.PI * 2 * ((double)a[2] / 12.0 + ((double)a[3] / 60.0) / 12.0 - (double)a[3]/ 60.0);", "radian", "Math.PI * 2 * ((double)a[2] / 12.0 + ((double)a[3] / 60.0) / 12.0 - (double)a[3]/ 60.0)", "Math.PI * 2 * ((double)a[2] / 12.0 + ((double)a[3] / 60.0) / 12.0 - (double)a[3]/ 60.0)", "Math.PI", "Math", "Math.PI", "2", "((double)a[2] / 12.0 + ((double)a[3] / 60.0) / 12.0 - (double)a[3]/ 60.0)", "(double)a[2] / 12.0 + ((double)a[3] / 60.0) / 12.0", "(double)a[2] / 12.0", "(double)a[2]", "a", "2", "12.0", "((double)a[3] / 60.0) / 12.0", "((double)a[3] / 60.0)", "(double)a[3]", "a", "3", "60.0", "12.0", "(double)a[3]/ 60.0", "(double)a[3]", "a", "3", "60.0", "double ans = (double)(a[0] * a[0]+ a[1] * a[1]) - (double)(2 * a[0] *\n a[1]) * Math.cos(radian);", "ans", "(double)(a[0] * a[0]+ a[1] * a[1]) - (double)(2 * a[0] *\n a[1]) * Math.cos(radian)", "(double)(a[0] * a[0]+ a[1] * a[1])", "a[0] * a[0]", "a[0]", "a", "0", "a[0]", "a", "0", "a[1] * a[1]", "a[1]", "a", "1", "a[1]", "a", "1", "(double)(2 * a[0] *\n a[1]) * Math.cos(radian)", "(double)(2 * a[0] *\n a[1])", "2 * a[0] *\n a[1]", "2", "a[0]", "a", "0", "a[1]", "a", "1", "Math.cos(radian)", "Math.cos", "Math", "radian", "System.out.println(df.format(Math.sqrt(ans)))", "System.out.println", "System.out", "System", "System.out", "df.format(Math.sqrt(ans))", "df.format", "df", "Math.sqrt(ans)", "Math.sqrt", "Math", "ans", "String[]args", "args", "public class Main {\npublic static void main (String[]args) {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n DecimalFormat df = new DecimalFormat(\"0.000000000\");\n String lines = br.readLine(); \n\n String[] strs = lines.trim().split(\"\\\\s+\");\n int [] a = new int [4];\n for (int i = 0; i < strs.length; i++) {\n a[i] = Integer.parseInt(strs[i]);\n }\n\n // Cosine Law solve \n\n double radian = Math.PI * 2 * ((double)a[2] / 12.0 + ((double)a[3] / 60.0) / 12.0 - (double)a[3]/ 60.0);\n \n double ans = (double)(a[0] * a[0]+ a[1] * a[1]) - (double)(2 * a[0] *\n a[1]) * Math.cos(radian);\n System.out.println(df.format(Math.sqrt(ans)));\n\n }catch (Exception e) {\n }\n }\n }", "public class Main {\npublic static void main (String[]args) {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n DecimalFormat df = new DecimalFormat(\"0.000000000\");\n String lines = br.readLine(); \n\n String[] strs = lines.trim().split(\"\\\\s+\");\n int [] a = new int [4];\n for (int i = 0; i < strs.length; i++) {\n a[i] = Integer.parseInt(strs[i]);\n }\n\n // Cosine Law solve \n\n double radian = Math.PI * 2 * ((double)a[2] / 12.0 + ((double)a[3] / 60.0) / 12.0 - (double)a[3]/ 60.0);\n \n double ans = (double)(a[0] * a[0]+ a[1] * a[1]) - (double)(2 * a[0] *\n a[1]) * Math.cos(radian);\n System.out.println(df.format(Math.sqrt(ans)));\n\n }catch (Exception e) {\n }\n }\n }", "Main" ]
import java.io.*; import java.util.*; import java.lang.*; import java.text.DecimalFormat; public class Main { public static void main (String[]args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try { DecimalFormat df = new DecimalFormat("0.000000000"); String lines = br.readLine(); String[] strs = lines.trim().split("\\s+"); int [] a = new int [4]; for (int i = 0; i < strs.length; i++) { a[i] = Integer.parseInt(strs[i]); } // Cosine Law solve double radian = Math.PI * 2 * ((double)a[2] / 12.0 + ((double)a[3] / 60.0) / 12.0 - (double)a[3]/ 60.0); double ans = (double)(a[0] * a[0]+ a[1] * a[1]) - (double)(2 * a[0] * a[1]) * Math.cos(radian); System.out.println(df.format(Math.sqrt(ans))); }catch (Exception e) { } } }
[ 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, 13, 17, 41, 13, 4, 18, 13, 2, 13, 17, 41, 13, 17, 14, 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, 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, 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 ], [ 34, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 41, 43 ], [ 8, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 49, 50 ], [ 49, 51 ], [ 8, 52 ], [ 52, 53 ], [ 52, 54 ], [ 8, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 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 ], [ 82, 84 ], [ 55, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 96, 97 ], [ 96, 98 ], [ 91, 99 ], [ 101, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 101, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 108, 109 ], [ 108, 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 public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int A = scanner.nextInt();\n int B = scanner.nextInt();\n int H = scanner.nextInt();\n int M = scanner.nextInt();\n\n // H * (360 / 12) + M * (30 / 60);\n double theta1 = Math.toRadians(H * 30.0 + M * 0.5);\n // M * (360 / 60);\n double theta2 = Math.toRadians(M * 6.0);\n double dist = 0.0;\n if (theta1 > theta2) {\n dist = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(theta1 - theta2));\n } else {\n dist = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(theta2 - theta1));\n }\n System.out.println(dist);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int A = scanner.nextInt();\n int B = scanner.nextInt();\n int H = scanner.nextInt();\n int M = scanner.nextInt();\n\n // H * (360 / 12) + M * (30 / 60);\n double theta1 = Math.toRadians(H * 30.0 + M * 0.5);\n // M * (360 / 60);\n double theta2 = Math.toRadians(M * 6.0);\n double dist = 0.0;\n if (theta1 > theta2) {\n dist = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(theta1 - theta2));\n } else {\n dist = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(theta2 - theta1));\n }\n System.out.println(dist);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int A = scanner.nextInt();\n int B = scanner.nextInt();\n int H = scanner.nextInt();\n int M = scanner.nextInt();\n\n // H * (360 / 12) + M * (30 / 60);\n double theta1 = Math.toRadians(H * 30.0 + M * 0.5);\n // M * (360 / 60);\n double theta2 = Math.toRadians(M * 6.0);\n double dist = 0.0;\n if (theta1 > theta2) {\n dist = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(theta1 - theta2));\n } else {\n dist = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(theta2 - theta1));\n }\n System.out.println(dist);\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n\n int A = scanner.nextInt();\n int B = scanner.nextInt();\n int H = scanner.nextInt();\n int M = scanner.nextInt();\n\n // H * (360 / 12) + M * (30 / 60);\n double theta1 = Math.toRadians(H * 30.0 + M * 0.5);\n // M * (360 / 60);\n double theta2 = Math.toRadians(M * 6.0);\n double dist = 0.0;\n if (theta1 > theta2) {\n dist = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(theta1 - theta2));\n } else {\n dist = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(theta2 - theta1));\n }\n System.out.println(dist);\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 theta1 = Math.toRadians(H * 30.0 + M * 0.5);", "theta1", "Math.toRadians(H * 30.0 + M * 0.5)", "Math.toRadians", "Math", "H * 30.0 + M * 0.5", "H * 30.0", "H", "30.0", "M * 0.5", "M", "0.5", "double theta2 = Math.toRadians(M * 6.0);", "theta2", "Math.toRadians(M * 6.0)", "Math.toRadians", "Math", "M * 6.0", "M", "6.0", "double dist = 0.0;", "dist", "0.0", "if (theta1 > theta2) {\n dist = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(theta1 - theta2));\n } else {\n dist = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(theta2 - theta1));\n }", "theta1 > theta2", "theta1", "theta2", "{\n dist = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(theta1 - theta2));\n }", "dist = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(theta1 - theta2))", "dist", "Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(theta1 - theta2))", "Math.sqrt", "Math", "A * A + B * B - 2 * A * B * Math.cos(theta1 - theta2)", "A * A + B * B", "A * A", "A", "A", "B * B", "B", "B", "2 * A * B * Math.cos(theta1 - theta2)", "B", "2 * A * B * Math.cos(theta1 - theta2)", "2", "A", "B", "Math.cos(theta1 - theta2)", "Math.cos", "Math", "theta1 - theta2", "theta1", "theta2", "{\n dist = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(theta2 - theta1));\n }", "dist = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(theta2 - theta1))", "dist", "Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(theta2 - theta1))", "Math.sqrt", "Math", "A * A + B * B - 2 * A * B * Math.cos(theta2 - theta1)", "A * A + B * B", "A * A", "A", "A", "B * B", "B", "B", "2 * A * B * Math.cos(theta2 - theta1)", "B", "2 * A * B * Math.cos(theta2 - theta1)", "2", "A", "B", "Math.cos(theta2 - theta1)", "Math.cos", "Math", "theta2 - theta1", "theta2", "theta1", "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 scanner = new Scanner(System.in);\n\n int A = scanner.nextInt();\n int B = scanner.nextInt();\n int H = scanner.nextInt();\n int M = scanner.nextInt();\n\n // H * (360 / 12) + M * (30 / 60);\n double theta1 = Math.toRadians(H * 30.0 + M * 0.5);\n // M * (360 / 60);\n double theta2 = Math.toRadians(M * 6.0);\n double dist = 0.0;\n if (theta1 > theta2) {\n dist = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(theta1 - theta2));\n } else {\n dist = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(theta2 - theta1));\n }\n System.out.println(dist);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int A = scanner.nextInt();\n int B = scanner.nextInt();\n int H = scanner.nextInt();\n int M = scanner.nextInt();\n\n // H * (360 / 12) + M * (30 / 60);\n double theta1 = Math.toRadians(H * 30.0 + M * 0.5);\n // M * (360 / 60);\n double theta2 = Math.toRadians(M * 6.0);\n double dist = 0.0;\n if (theta1 > theta2) {\n dist = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(theta1 - theta2));\n } else {\n dist = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(theta2 - theta1));\n }\n System.out.println(dist);\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(); // H * (360 / 12) + M * (30 / 60); double theta1 = Math.toRadians(H * 30.0 + M * 0.5); // M * (360 / 60); double theta2 = Math.toRadians(M * 6.0); double dist = 0.0; if (theta1 > theta2) { dist = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(theta1 - theta2)); } else { dist = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(theta2 - theta1)); } System.out.println(dist); } }
[ 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, 4, 18, 13, 2, 2, 17, 13, 2, 2, 17, 13, 2, 17, 13, 14, 2, 13, 17, 0, 13, 2, 17, 13, 0, 13, 4, 18, 13, 2, 2, 2, 13, 17, 17, 18, 13, 13, 0, 13, 2, 13, 13, 0, 13, 2, 13, 13, 0, 13, 2, 2, 2, 17, 13, 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 ], [ 111, 5 ], [ 111, 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 ], [ 40, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 51, 53 ], [ 8, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 8, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 69, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 69, 74 ], [ 74, 75 ], [ 74, 76 ], [ 8, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 79, 81 ], [ 8, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 8, 87 ], [ 87, 88 ], [ 87, 89 ], [ 91, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 91, 95 ], [ 8, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 8, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 6, 108 ], [ 108, 109 ], [ 0, 110 ], [ 110, 111 ], [ 110, 112 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\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\t\tdouble x = 0d;\n\t\tdouble theta = 0d;\n\n\t\ttheta = Math.abs(6d * M - (30d * H + 0.5d * M));\n\t\tif (theta > 180d) theta = 360d - theta;\n\t\ttheta = Math.cos(theta / 360d * 2d * Math.PI);\n\n\t\tx += A * A;\n\t\tx += B * B;\n\t\tx -= 2d * A * B * theta;\n\t\tx = Math.sqrt(x);\n\n\t\tSystem.out.println(x);\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 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\t\tdouble x = 0d;\n\t\tdouble theta = 0d;\n\n\t\ttheta = Math.abs(6d * M - (30d * H + 0.5d * M));\n\t\tif (theta > 180d) theta = 360d - theta;\n\t\ttheta = Math.cos(theta / 360d * 2d * Math.PI);\n\n\t\tx += A * A;\n\t\tx += B * B;\n\t\tx -= 2d * A * B * theta;\n\t\tx = Math.sqrt(x);\n\n\t\tSystem.out.println(x);\n \t}\n}", "Main", "public static void main(String[] args) {\n\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\t\tdouble x = 0d;\n\t\tdouble theta = 0d;\n\n\t\ttheta = Math.abs(6d * M - (30d * H + 0.5d * M));\n\t\tif (theta > 180d) theta = 360d - theta;\n\t\ttheta = Math.cos(theta / 360d * 2d * Math.PI);\n\n\t\tx += A * A;\n\t\tx += B * B;\n\t\tx -= 2d * A * B * theta;\n\t\tx = Math.sqrt(x);\n\n\t\tSystem.out.println(x);\n \t}", "main", "{\n\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\t\tdouble x = 0d;\n\t\tdouble theta = 0d;\n\n\t\ttheta = Math.abs(6d * M - (30d * H + 0.5d * M));\n\t\tif (theta > 180d) theta = 360d - theta;\n\t\ttheta = Math.cos(theta / 360d * 2d * Math.PI);\n\n\t\tx += A * A;\n\t\tx += B * B;\n\t\tx -= 2d * A * B * theta;\n\t\tx = Math.sqrt(x);\n\n\t\tSystem.out.println(x);\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 x = 0d;", "x", "0d", "double theta = 0d;", "theta", "0d", "theta = Math.abs(6d * M - (30d * H + 0.5d * M))", "theta", "Math.abs(6d * M - (30d * H + 0.5d * M))", "Math.abs", "Math", "6d * M - (30d * H + 0.5d * M)", "6d * M", "6d", "M", "(30d * H + 0.5d * M)", "30d * H", "30d", "H", "0.5d * M", "0.5d", "M", "if (theta > 180d) theta = 360d - theta;", "theta > 180d", "theta", "180d", "theta = 360d - theta", "theta", "360d - theta", "360d", "theta", "theta = Math.cos(theta / 360d * 2d * Math.PI)", "theta", "Math.cos(theta / 360d * 2d * Math.PI)", "Math.cos", "Math", "theta / 360d * 2d * Math.PI", "theta / 360d * 2d * Math.PI", "theta / 360d", "theta", "360d", "2d", "Math.PI", "Math", "Math.PI", "x += A * A", "x", "A * A", "A", "A", "x += B * B", "x", "B * B", "B", "B", "x -= 2d * A * B * theta", "x", "2d * A * B * theta", "B", "2d * A * B * theta", "2d", "A", "B", "theta", "x = Math.sqrt(x)", "x", "Math.sqrt(x)", "Math.sqrt", "Math", "x", "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\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\t\tdouble x = 0d;\n\t\tdouble theta = 0d;\n\n\t\ttheta = Math.abs(6d * M - (30d * H + 0.5d * M));\n\t\tif (theta > 180d) theta = 360d - theta;\n\t\ttheta = Math.cos(theta / 360d * 2d * Math.PI);\n\n\t\tx += A * A;\n\t\tx += B * B;\n\t\tx -= 2d * A * B * theta;\n\t\tx = Math.sqrt(x);\n\n\t\tSystem.out.println(x);\n \t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\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\t\tdouble x = 0d;\n\t\tdouble theta = 0d;\n\n\t\ttheta = Math.abs(6d * M - (30d * H + 0.5d * M));\n\t\tif (theta > 180d) theta = 360d - theta;\n\t\ttheta = Math.cos(theta / 360d * 2d * Math.PI);\n\n\t\tx += A * A;\n\t\tx += B * B;\n\t\tx -= 2d * A * B * theta;\n\t\tx = Math.sqrt(x);\n\n\t\tSystem.out.println(x);\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 x = 0d; double theta = 0d; theta = Math.abs(6d * M - (30d * H + 0.5d * M)); if (theta > 180d) theta = 360d - theta; theta = Math.cos(theta / 360d * 2d * Math.PI); x += A * A; x += B * B; x -= 2d * A * B * theta; x = Math.sqrt(x); System.out.println(x); } }
[ 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, 17, 41, 13, 2, 2, 2, 13, 17, 13, 17, 41, 13, 2, 13, 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, 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 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 8, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 51, 57 ], [ 8, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 8, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 8, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 79, 81 ], [ 74, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 82, 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\n\n\npublic class Main {\n\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = Integer.parseInt(sc.next());\n\t\tint b = Integer.parseInt(sc.next());\n\t\tint h = Integer.parseInt(sc.next());\n\t\tint m = Integer.parseInt(sc.next());\n\n\t\tdouble l = m * 6;\n\t\tdouble s = (h * 60 + m) * 0.5;\n\t\tdouble kakudo = s - l;\n\t\tdouble result = Math.cos(Math.toRadians(kakudo));\n\t\tdouble rsq = (a * a) + (b * b) - (2 * a * b * result);\n\t\tSystem.out.println(Math.sqrt(rsq));\n\n\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = Integer.parseInt(sc.next());\n\t\tint b = Integer.parseInt(sc.next());\n\t\tint h = Integer.parseInt(sc.next());\n\t\tint m = Integer.parseInt(sc.next());\n\n\t\tdouble l = m * 6;\n\t\tdouble s = (h * 60 + m) * 0.5;\n\t\tdouble kakudo = s - l;\n\t\tdouble result = Math.cos(Math.toRadians(kakudo));\n\t\tdouble rsq = (a * a) + (b * b) - (2 * a * b * result);\n\t\tSystem.out.println(Math.sqrt(rsq));\n\n\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = Integer.parseInt(sc.next());\n\t\tint b = Integer.parseInt(sc.next());\n\t\tint h = Integer.parseInt(sc.next());\n\t\tint m = Integer.parseInt(sc.next());\n\n\t\tdouble l = m * 6;\n\t\tdouble s = (h * 60 + m) * 0.5;\n\t\tdouble kakudo = s - l;\n\t\tdouble result = Math.cos(Math.toRadians(kakudo));\n\t\tdouble rsq = (a * a) + (b * b) - (2 * a * b * result);\n\t\tSystem.out.println(Math.sqrt(rsq));\n\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = Integer.parseInt(sc.next());\n\t\tint b = Integer.parseInt(sc.next());\n\t\tint h = Integer.parseInt(sc.next());\n\t\tint m = Integer.parseInt(sc.next());\n\n\t\tdouble l = m * 6;\n\t\tdouble s = (h * 60 + m) * 0.5;\n\t\tdouble kakudo = s - l;\n\t\tdouble result = Math.cos(Math.toRadians(kakudo));\n\t\tdouble rsq = (a * a) + (b * b) - (2 * a * b * result);\n\t\tSystem.out.println(Math.sqrt(rsq));\n\n\n\t}", "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 l = m * 6;", "l", "m * 6", "m", "6", "double s = (h * 60 + m) * 0.5;", "s", "(h * 60 + m) * 0.5", "(h * 60 + m)", "h * 60", "h", "60", "m", "0.5", "double kakudo = s - l;", "kakudo", "s - l", "s", "l", "double result = Math.cos(Math.toRadians(kakudo));", "result", "Math.cos(Math.toRadians(kakudo))", "Math.cos", "Math", "Math.toRadians(kakudo)", "Math.toRadians", "Math", "kakudo", "double rsq = (a * a) + (b * b) - (2 * a * b * result);", "rsq", "(a * a) + (b * b) - (2 * a * b * result)", "(a * a) + (b * b)", "(a * a)", "a", "a", "(b * b)", "b", "b", "(2 * a * b * result)", "b", "2 * a * b * result", "2", "a", "b", "result", "System.out.println(Math.sqrt(rsq))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(rsq)", "Math.sqrt", "Math", "rsq", "String[] args", "args", "public class Main {\n\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = Integer.parseInt(sc.next());\n\t\tint b = Integer.parseInt(sc.next());\n\t\tint h = Integer.parseInt(sc.next());\n\t\tint m = Integer.parseInt(sc.next());\n\n\t\tdouble l = m * 6;\n\t\tdouble s = (h * 60 + m) * 0.5;\n\t\tdouble kakudo = s - l;\n\t\tdouble result = Math.cos(Math.toRadians(kakudo));\n\t\tdouble rsq = (a * a) + (b * b) - (2 * a * b * result);\n\t\tSystem.out.println(Math.sqrt(rsq));\n\n\n\t}\n}", "public class Main {\n\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = Integer.parseInt(sc.next());\n\t\tint b = Integer.parseInt(sc.next());\n\t\tint h = Integer.parseInt(sc.next());\n\t\tint m = Integer.parseInt(sc.next());\n\n\t\tdouble l = m * 6;\n\t\tdouble s = (h * 60 + m) * 0.5;\n\t\tdouble kakudo = s - l;\n\t\tdouble result = Math.cos(Math.toRadians(kakudo));\n\t\tdouble rsq = (a * a) + (b * b) - (2 * a * b * result);\n\t\tSystem.out.println(Math.sqrt(rsq));\n\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 = Integer.parseInt(sc.next()); int b = Integer.parseInt(sc.next()); int h = Integer.parseInt(sc.next()); int m = Integer.parseInt(sc.next()); double l = m * 6; double s = (h * 60 + m) * 0.5; double kakudo = s - l; double result = Math.cos(Math.toRadians(kakudo)); double rsq = (a * a) + (b * b) - (2 * a * b * result); System.out.println(Math.sqrt(rsq)); } }
[ 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, 0, 13, 2, 2, 2, 17, 13, 2, 17, 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, 4, 18, 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 ], [ 8, 35 ], [ 35, 36 ], [ 35, 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 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 58, 60 ], [ 53, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 61, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 8, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 8, 80 ], [ 80, 81 ], [ 81, 82 ], [ 6, 83 ], [ 83, 84 ], [ 0, 85 ], [ 85, 86 ], [ 85, 87 ] ]
[ "import java.util.Scanner;\n\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 h = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\t// ไธญๅฟƒ่ง’\n\t\tdouble deg = 0;\n\t\tdeg = (30 * h) + (0.5 * m) - (6 * m);\n\n\t\t// a2 = b2 + c2 - 2bcCOSdeg\n\t\tdouble ans = Math.sqrt((a*a) + (b*b) - (2*a*b*Math.cos(Math.toRadians(deg))));\n\t\tSystem.out.println(ans);\n\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 h = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\t// ไธญๅฟƒ่ง’\n\t\tdouble deg = 0;\n\t\tdeg = (30 * h) + (0.5 * m) - (6 * m);\n\n\t\t// a2 = b2 + c2 - 2bcCOSdeg\n\t\tdouble ans = Math.sqrt((a*a) + (b*b) - (2*a*b*Math.cos(Math.toRadians(deg))));\n\t\tSystem.out.println(ans);\n\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 h = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\t// ไธญๅฟƒ่ง’\n\t\tdouble deg = 0;\n\t\tdeg = (30 * h) + (0.5 * m) - (6 * m);\n\n\t\t// a2 = b2 + c2 - 2bcCOSdeg\n\t\tdouble ans = Math.sqrt((a*a) + (b*b) - (2*a*b*Math.cos(Math.toRadians(deg))));\n\t\tSystem.out.println(ans);\n\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 h = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\t// ไธญๅฟƒ่ง’\n\t\tdouble deg = 0;\n\t\tdeg = (30 * h) + (0.5 * m) - (6 * m);\n\n\t\t// a2 = b2 + c2 - 2bcCOSdeg\n\t\tdouble ans = Math.sqrt((a*a) + (b*b) - (2*a*b*Math.cos(Math.toRadians(deg))));\n\t\tSystem.out.println(ans);\n\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 h = scan.nextInt();", "h", "scan.nextInt()", "scan.nextInt", "scan", "int m = scan.nextInt();", "m", "scan.nextInt()", "scan.nextInt", "scan", "double deg = 0;", "deg", "0", "deg = (30 * h) + (0.5 * m) - (6 * m)", "deg", "(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 ans = Math.sqrt((a*a) + (b*b) - (2*a*b*Math.cos(Math.toRadians(deg))));", "ans", "Math.sqrt((a*a) + (b*b) - (2*a*b*Math.cos(Math.toRadians(deg))))", "Math.sqrt", "Math", "(a*a) + (b*b) - (2*a*b*Math.cos(Math.toRadians(deg)))", "(a*a) + (b*b)", "(a*a)", "a", "a", "(b*b)", "b", "b", "(2*a*b*Math.cos(Math.toRadians(deg)))", "b", "2*a*b*Math.cos(Math.toRadians(deg))", "2", "a", "b", "Math.cos(Math.toRadians(deg))", "Math.cos", "Math", "Math.toRadians(deg)", "Math.toRadians", "Math", "deg", "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\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 h = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\t// ไธญๅฟƒ่ง’\n\t\tdouble deg = 0;\n\t\tdeg = (30 * h) + (0.5 * m) - (6 * m);\n\n\t\t// a2 = b2 + c2 - 2bcCOSdeg\n\t\tdouble ans = Math.sqrt((a*a) + (b*b) - (2*a*b*Math.cos(Math.toRadians(deg))));\n\t\tSystem.out.println(ans);\n\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 h = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\t// ไธญๅฟƒ่ง’\n\t\tdouble deg = 0;\n\t\tdeg = (30 * h) + (0.5 * m) - (6 * m);\n\n\t\t// a2 = b2 + c2 - 2bcCOSdeg\n\t\tdouble ans = Math.sqrt((a*a) + (b*b) - (2*a*b*Math.cos(Math.toRadians(deg))));\n\t\tSystem.out.println(ans);\n\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 h = scan.nextInt(); int m = scan.nextInt(); // ไธญๅฟƒ่ง’ double deg = 0; deg = (30 * h) + (0.5 * m) - (6 * m); // a2 = b2 + c2 - 2bcCOSdeg double ans = Math.sqrt((a*a) + (b*b) - (2*a*b*Math.cos(Math.toRadians(deg)))); System.out.println(ans); scan.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 4, 13, 23, 13, 12, 13, 30, 41, 13, 20, 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, 4, 18, 13, 2, 2, 13, 17, 2, 2, 13, 17, 2, 13, 17, 41, 13, 4, 18, 13, 13, 41, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 13, 0, 13, 2, 2, 2, 13, 13, 2, 13, 13, 13, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 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 ], [ 121, 14 ], [ 121, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 15, 20 ], [ 20, 21 ], [ 121, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 28 ], [ 28, 29 ], [ 28, 30 ], [ 24, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 36, 37 ], [ 37, 38 ], [ 24, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 44, 45 ], [ 45, 46 ], [ 24, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 52, 53 ], [ 53, 54 ], [ 24, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 60, 61 ], [ 61, 62 ], [ 24, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 76, 78 ], [ 24, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 24, 85 ], [ 85, 86 ], [ 85, 87 ], [ 89, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 89, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 24, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 104, 105 ], [ 104, 106 ], [ 99, 107 ], [ 24, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 24, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 0, 120 ], [ 120, 121 ], [ 120, 122 ] ]
[ "\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n public static void main(String args[]) throws IOException{\n process();\n }\n public static void process() throws IOException{\n BufferedReader in=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(in.readLine(),\" \");\n int a=Integer.parseInt(st.nextToken());\n int b=Integer.parseInt(st.nextToken());\n int h=Integer.parseInt(st.nextToken());\n int m=Integer.parseInt(st.nextToken());\n double angle=Math.abs((m*6)-(h*30+m*0.5));\n double rad=Math.toRadians(angle);\n double ans=2*a*b*Math.cos(rad);\n ans=a*a+b*b-ans;\n ans=Math.sqrt(ans);\n System.out.println(ans);\n }\n}\n", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n public static void main(String args[]) throws IOException{\n process();\n }\n public static void process() throws IOException{\n BufferedReader in=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(in.readLine(),\" \");\n int a=Integer.parseInt(st.nextToken());\n int b=Integer.parseInt(st.nextToken());\n int h=Integer.parseInt(st.nextToken());\n int m=Integer.parseInt(st.nextToken());\n double angle=Math.abs((m*6)-(h*30+m*0.5));\n double rad=Math.toRadians(angle);\n double ans=2*a*b*Math.cos(rad);\n ans=a*a+b*b-ans;\n ans=Math.sqrt(ans);\n System.out.println(ans);\n }\n}", "Main", "public static void main(String args[]) throws IOException{\n process();\n }", "main", "{\n process();\n }", "process()", "process", "String args[]", "args", "public static void process() throws IOException{\n BufferedReader in=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(in.readLine(),\" \");\n int a=Integer.parseInt(st.nextToken());\n int b=Integer.parseInt(st.nextToken());\n int h=Integer.parseInt(st.nextToken());\n int m=Integer.parseInt(st.nextToken());\n double angle=Math.abs((m*6)-(h*30+m*0.5));\n double rad=Math.toRadians(angle);\n double ans=2*a*b*Math.cos(rad);\n ans=a*a+b*b-ans;\n ans=Math.sqrt(ans);\n System.out.println(ans);\n }", "process", "{\n BufferedReader in=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(in.readLine(),\" \");\n int a=Integer.parseInt(st.nextToken());\n int b=Integer.parseInt(st.nextToken());\n int h=Integer.parseInt(st.nextToken());\n int m=Integer.parseInt(st.nextToken());\n double angle=Math.abs((m*6)-(h*30+m*0.5));\n double rad=Math.toRadians(angle);\n double ans=2*a*b*Math.cos(rad);\n ans=a*a+b*b-ans;\n ans=Math.sqrt(ans);\n System.out.println(ans);\n }", "BufferedReader in=new BufferedReader(new InputStreamReader(System.in));", "in", "new BufferedReader(new InputStreamReader(System.in))", "StringTokenizer st=new StringTokenizer(in.readLine(),\" \");", "st", "new StringTokenizer(in.readLine(),\" \")", "int a=Integer.parseInt(st.nextToken());", "a", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "int b=Integer.parseInt(st.nextToken());", "b", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "int h=Integer.parseInt(st.nextToken());", "h", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "int m=Integer.parseInt(st.nextToken());", "m", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "double angle=Math.abs((m*6)-(h*30+m*0.5));", "angle", "Math.abs((m*6)-(h*30+m*0.5))", "Math.abs", "Math", "(m*6)-(h*30+m*0.5)", "(m*6)", "m", "6", "(h*30+m*0.5)", "h*30", "h", "30", "m*0.5", "m", "0.5", "double rad=Math.toRadians(angle);", "rad", "Math.toRadians(angle)", "Math.toRadians", "Math", "angle", "double ans=2*a*b*Math.cos(rad);", "ans", "2*a*b*Math.cos(rad)", "b", "2*a*b*Math.cos(rad)", "2", "a", "b", "Math.cos(rad)", "Math.cos", "Math", "rad", "ans=a*a+b*b-ans", "ans", "a*a+b*b-ans", "a*a+b*b", "a*a", "a", "a", "b*b", "b", "b", "ans", "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", "public class Main {\n public static void main(String args[]) throws IOException{\n process();\n }\n public static void process() throws IOException{\n BufferedReader in=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(in.readLine(),\" \");\n int a=Integer.parseInt(st.nextToken());\n int b=Integer.parseInt(st.nextToken());\n int h=Integer.parseInt(st.nextToken());\n int m=Integer.parseInt(st.nextToken());\n double angle=Math.abs((m*6)-(h*30+m*0.5));\n double rad=Math.toRadians(angle);\n double ans=2*a*b*Math.cos(rad);\n ans=a*a+b*b-ans;\n ans=Math.sqrt(ans);\n System.out.println(ans);\n }\n}", "public class Main {\n public static void main(String args[]) throws IOException{\n process();\n }\n public static void process() throws IOException{\n BufferedReader in=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(in.readLine(),\" \");\n int a=Integer.parseInt(st.nextToken());\n int b=Integer.parseInt(st.nextToken());\n int h=Integer.parseInt(st.nextToken());\n int m=Integer.parseInt(st.nextToken());\n double angle=Math.abs((m*6)-(h*30+m*0.5));\n double rad=Math.toRadians(angle);\n double ans=2*a*b*Math.cos(rad);\n ans=a*a+b*b-ans;\n ans=Math.sqrt(ans);\n System.out.println(ans);\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String args[]) throws IOException{ process(); } public static void process() throws IOException{ BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st=new StringTokenizer(in.readLine()," "); int a=Integer.parseInt(st.nextToken()); int b=Integer.parseInt(st.nextToken()); int h=Integer.parseInt(st.nextToken()); int m=Integer.parseInt(st.nextToken()); double angle=Math.abs((m*6)-(h*30+m*0.5)); double rad=Math.toRadians(angle); double ans=2*a*b*Math.cos(rad); ans=a*a+b*b-ans; 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, 2, 13, 2, 13, 17, 17, 41, 13, 2, 13, 17, 41, 13, 4, 18, 13, 2, 4, 18, 13, 2, 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 ], [ 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 ], [ 37, 38 ], [ 37, 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 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 55, 57 ], [ 51, 58 ], [ 8, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 66, 68 ], [ 61, 69 ], [ 71, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 8, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 6, 88 ], [ 88, 89 ], [ 0, 90 ], [ 90, 91 ], [ 90, 92 ] ]
[ "import java.util.*;\n \npublic 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 t1 = (h + m / 60.0) / 12.0;\n\t\tdouble t2 = m / 60.0;\n\t\t// System.out.println(t1);\n\t\t// System.out.println(t2);\n\t\tdouble r = Math.toRadians(Math.abs(t2 - t1) * 360.0);\n\t\t// System.out.println(r);\n\t\tdouble ans = a * a + b * b - 2 * a * b * Math.cos(r);\n\t\tSystem.out.println(Math.sqrt(ans));\n\t}\n}\n \n \n \n \n \n \n \n \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\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 t1 = (h + m / 60.0) / 12.0;\n\t\tdouble t2 = m / 60.0;\n\t\t// System.out.println(t1);\n\t\t// System.out.println(t2);\n\t\tdouble r = Math.toRadians(Math.abs(t2 - t1) * 360.0);\n\t\t// System.out.println(r);\n\t\tdouble ans = a * a + b * b - 2 * a * b * Math.cos(r);\n\t\tSystem.out.println(Math.sqrt(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 t1 = (h + m / 60.0) / 12.0;\n\t\tdouble t2 = m / 60.0;\n\t\t// System.out.println(t1);\n\t\t// System.out.println(t2);\n\t\tdouble r = Math.toRadians(Math.abs(t2 - t1) * 360.0);\n\t\t// System.out.println(r);\n\t\tdouble ans = a * a + b * b - 2 * a * b * Math.cos(r);\n\t\tSystem.out.println(Math.sqrt(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 t1 = (h + m / 60.0) / 12.0;\n\t\tdouble t2 = m / 60.0;\n\t\t// System.out.println(t1);\n\t\t// System.out.println(t2);\n\t\tdouble r = Math.toRadians(Math.abs(t2 - t1) * 360.0);\n\t\t// System.out.println(r);\n\t\tdouble ans = a * a + b * b - 2 * a * b * Math.cos(r);\n\t\tSystem.out.println(Math.sqrt(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 t1 = (h + m / 60.0) / 12.0;", "t1", "(h + m / 60.0) / 12.0", "(h + m / 60.0)", "h", "m / 60.0", "m", "60.0", "12.0", "double t2 = m / 60.0;", "t2", "m / 60.0", "m", "60.0", "double r = Math.toRadians(Math.abs(t2 - t1) * 360.0);", "r", "Math.toRadians(Math.abs(t2 - t1) * 360.0)", "Math.toRadians", "Math", "Math.abs(t2 - t1) * 360.0", "Math.abs(t2 - t1)", "Math.abs", "Math", "t2 - t1", "t2", "t1", "360.0", "double ans = a * a + b * b - 2 * a * b * Math.cos(r);", "ans", "a * a + b * b - 2 * a * b * Math.cos(r)", "a * a + b * b", "a * a", "a", "a", "b * b", "b", "b", "2 * a * b * Math.cos(r)", "b", "2 * a * b * Math.cos(r)", "2", "a", "b", "Math.cos(r)", "Math.cos", "Math", "r", "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\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 t1 = (h + m / 60.0) / 12.0;\n\t\tdouble t2 = m / 60.0;\n\t\t// System.out.println(t1);\n\t\t// System.out.println(t2);\n\t\tdouble r = Math.toRadians(Math.abs(t2 - t1) * 360.0);\n\t\t// System.out.println(r);\n\t\tdouble ans = a * a + b * b - 2 * a * b * Math.cos(r);\n\t\tSystem.out.println(Math.sqrt(ans));\n\t}\n}", "public 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 t1 = (h + m / 60.0) / 12.0;\n\t\tdouble t2 = m / 60.0;\n\t\t// System.out.println(t1);\n\t\t// System.out.println(t2);\n\t\tdouble r = Math.toRadians(Math.abs(t2 - t1) * 360.0);\n\t\t// System.out.println(r);\n\t\tdouble ans = a * a + b * b - 2 * a * b * Math.cos(r);\n\t\tSystem.out.println(Math.sqrt(ans));\n\t}\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 t1 = (h + m / 60.0) / 12.0; double t2 = m / 60.0; // System.out.println(t1); // System.out.println(t2); double r = Math.toRadians(Math.abs(t2 - t1) * 360.0); // System.out.println(r); double ans = a * a + b * b - 2 * a * b * Math.cos(r); 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, 4, 18, 13, 41, 13, 17, 41, 13, 2, 2, 2, 17, 13, 2, 17, 13, 2, 17, 13, 14, 2, 13, 17, 30, 14, 2, 13, 17, 30, 0, 13, 2, 17, 13, 30, 30, 14, 2, 13, 40, 17, 30, 0, 13, 2, 17, 13, 30, 41, 13, 4, 18, 13, 13, 0, 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, 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 ], [ 33, 34 ], [ 8, 35 ], [ 35, 36 ], [ 35, 37 ], [ 8, 38 ], [ 38, 39 ], [ 38, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 45, 47 ], [ 41, 48 ], [ 48, 49 ], [ 48, 50 ], [ 8, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 56, 66 ], [ 51, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 68, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 68, 79 ], [ 8, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 8, 86 ], [ 86, 87 ], [ 86, 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 ], [ 8, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 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.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ่‡ชๅ‹•็”Ÿๆˆใ•ใ‚ŒใŸใƒกใ‚ฝใƒƒใƒ‰ใƒปใ‚นใ‚ฟใƒ–\n\t\tScanner sc = new Scanner(System.in);\n\t\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\tsc.close();\n\n\t\tdouble answer = 0.00;\n\n\t\tdouble omega = 6*M - 30*H - 0.5*M ;\n//\t\tSystem.out.println(omega);\n\n\t\tif(omega >= 0) {\n\t\t\t//้•ท้‡ใฎๆ–นใŒ้€ฒใ‚€ใจใ\n\t\t\tif(omega >= 180) {\n\t\t\t\tomega = 360 - omega;\n\t\t\t}else {\n\t\t\t\t//ใใฎใพใพไฝฟใˆใ‚‹ใ‚ชใƒกใ‚ฌ\n\t\t\t}\n\t\t}else {\n\t\t\t//็Ÿญ้‡ใฎๆ–นใŒ้€ฒใ‚€ใจใ\n\t\t\tif(omega <= -180) {\n\t\t\t\tomega = 360 + omega;\n\t\t\t}else {\n\n\t\t\t}\n\t\t}\n\n\t\tdouble radian = Math.toRadians(omega);\n\t\tanswer = A*A + B*B -2*A*B*Math.cos(radian);\n\t\tanswer = Math.sqrt(answer);\n\t\tSystem.out.println(answer);\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ่‡ชๅ‹•็”Ÿๆˆใ•ใ‚ŒใŸใƒกใ‚ฝใƒƒใƒ‰ใƒปใ‚นใ‚ฟใƒ–\n\t\tScanner sc = new Scanner(System.in);\n\t\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\tsc.close();\n\n\t\tdouble answer = 0.00;\n\n\t\tdouble omega = 6*M - 30*H - 0.5*M ;\n//\t\tSystem.out.println(omega);\n\n\t\tif(omega >= 0) {\n\t\t\t//้•ท้‡ใฎๆ–นใŒ้€ฒใ‚€ใจใ\n\t\t\tif(omega >= 180) {\n\t\t\t\tomega = 360 - omega;\n\t\t\t}else {\n\t\t\t\t//ใใฎใพใพไฝฟใˆใ‚‹ใ‚ชใƒกใ‚ฌ\n\t\t\t}\n\t\t}else {\n\t\t\t//็Ÿญ้‡ใฎๆ–นใŒ้€ฒใ‚€ใจใ\n\t\t\tif(omega <= -180) {\n\t\t\t\tomega = 360 + omega;\n\t\t\t}else {\n\n\t\t\t}\n\t\t}\n\n\t\tdouble radian = Math.toRadians(omega);\n\t\tanswer = A*A + B*B -2*A*B*Math.cos(radian);\n\t\tanswer = Math.sqrt(answer);\n\t\tSystem.out.println(answer);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO ่‡ชๅ‹•็”Ÿๆˆใ•ใ‚ŒใŸใƒกใ‚ฝใƒƒใƒ‰ใƒปใ‚นใ‚ฟใƒ–\n\t\tScanner sc = new Scanner(System.in);\n\t\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\tsc.close();\n\n\t\tdouble answer = 0.00;\n\n\t\tdouble omega = 6*M - 30*H - 0.5*M ;\n//\t\tSystem.out.println(omega);\n\n\t\tif(omega >= 0) {\n\t\t\t//้•ท้‡ใฎๆ–นใŒ้€ฒใ‚€ใจใ\n\t\t\tif(omega >= 180) {\n\t\t\t\tomega = 360 - omega;\n\t\t\t}else {\n\t\t\t\t//ใใฎใพใพไฝฟใˆใ‚‹ใ‚ชใƒกใ‚ฌ\n\t\t\t}\n\t\t}else {\n\t\t\t//็Ÿญ้‡ใฎๆ–นใŒ้€ฒใ‚€ใจใ\n\t\t\tif(omega <= -180) {\n\t\t\t\tomega = 360 + omega;\n\t\t\t}else {\n\n\t\t\t}\n\t\t}\n\n\t\tdouble radian = Math.toRadians(omega);\n\t\tanswer = A*A + B*B -2*A*B*Math.cos(radian);\n\t\tanswer = Math.sqrt(answer);\n\t\tSystem.out.println(answer);\n\t}", "main", "{\n\t\t// TODO ่‡ชๅ‹•็”Ÿๆˆใ•ใ‚ŒใŸใƒกใ‚ฝใƒƒใƒ‰ใƒปใ‚นใ‚ฟใƒ–\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\tsc.close();\n\n\t\tdouble answer = 0.00;\n\n\t\tdouble omega = 6*M - 30*H - 0.5*M ;\n//\t\tSystem.out.println(omega);\n\n\t\tif(omega >= 0) {\n\t\t\t//้•ท้‡ใฎๆ–นใŒ้€ฒใ‚€ใจใ\n\t\t\tif(omega >= 180) {\n\t\t\t\tomega = 360 - omega;\n\t\t\t}else {\n\t\t\t\t//ใใฎใพใพไฝฟใˆใ‚‹ใ‚ชใƒกใ‚ฌ\n\t\t\t}\n\t\t}else {\n\t\t\t//็Ÿญ้‡ใฎๆ–นใŒ้€ฒใ‚€ใจใ\n\t\t\tif(omega <= -180) {\n\t\t\t\tomega = 360 + omega;\n\t\t\t}else {\n\n\t\t\t}\n\t\t}\n\n\t\tdouble radian = Math.toRadians(omega);\n\t\tanswer = A*A + B*B -2*A*B*Math.cos(radian);\n\t\tanswer = Math.sqrt(answer);\n\t\tSystem.out.println(answer);\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 answer = 0.00;", "answer", "0.00", "double omega = 6*M - 30*H - 0.5*M ;", "omega", "6*M - 30*H - 0.5*M", "6*M - 30*H - 0.5*M", "6*M", "6", "M", "30*H", "30", "H", "0.5*M", "0.5", "M", "if(omega >= 0) {\n\t\t\t//้•ท้‡ใฎๆ–นใŒ้€ฒใ‚€ใจใ\n\t\t\tif(omega >= 180) {\n\t\t\t\tomega = 360 - omega;\n\t\t\t}else {\n\t\t\t\t//ใใฎใพใพไฝฟใˆใ‚‹ใ‚ชใƒกใ‚ฌ\n\t\t\t}\n\t\t}else {\n\t\t\t//็Ÿญ้‡ใฎๆ–นใŒ้€ฒใ‚€ใจใ\n\t\t\tif(omega <= -180) {\n\t\t\t\tomega = 360 + omega;\n\t\t\t}else {\n\n\t\t\t}\n\t\t}", "omega >= 0", "omega", "0", "{\n\t\t\t//้•ท้‡ใฎๆ–นใŒ้€ฒใ‚€ใจใ\n\t\t\tif(omega >= 180) {\n\t\t\t\tomega = 360 - omega;\n\t\t\t}else {\n\t\t\t\t//ใใฎใพใพไฝฟใˆใ‚‹ใ‚ชใƒกใ‚ฌ\n\t\t\t}\n\t\t}", "if(omega >= 180) {\n\t\t\t\tomega = 360 - omega;\n\t\t\t}else {\n\t\t\t\t//ใใฎใพใพไฝฟใˆใ‚‹ใ‚ชใƒกใ‚ฌ\n\t\t\t}", "omega >= 180", "omega", "180", "{\n\t\t\t\tomega = 360 - omega;\n\t\t\t}", "omega = 360 - omega", "omega", "360 - omega", "360", "omega", "{\n\t\t\t\t//ใใฎใพใพไฝฟใˆใ‚‹ใ‚ชใƒกใ‚ฌ\n\t\t\t}", "{\n\t\t\t//็Ÿญ้‡ใฎๆ–นใŒ้€ฒใ‚€ใจใ\n\t\t\tif(omega <= -180) {\n\t\t\t\tomega = 360 + omega;\n\t\t\t}else {\n\n\t\t\t}\n\t\t}", "if(omega <= -180) {\n\t\t\t\tomega = 360 + omega;\n\t\t\t}else {\n\n\t\t\t}", "omega <= -180", "omega", "-180", "180", "{\n\t\t\t\tomega = 360 + omega;\n\t\t\t}", "omega = 360 + omega", "omega", "360 + omega", "360", "omega", "{\n\n\t\t\t}", "double radian = Math.toRadians(omega);", "radian", "Math.toRadians(omega)", "Math.toRadians", "Math", "omega", "answer = A*A + B*B -2*A*B*Math.cos(radian)", "answer", "A*A + B*B -2*A*B*Math.cos(radian)", "A*A + B*B", "A*A", "A", "A", "B*B", "B", "B", "2*A*B*Math.cos(radian)", "B", "2*A*B*Math.cos(radian)", "2", "A", "B", "Math.cos(radian)", "Math.cos", "Math", "radian", "answer = Math.sqrt(answer)", "answer", "Math.sqrt(answer)", "Math.sqrt", "Math", "answer", "System.out.println(answer)", "System.out.println", "System.out", "System", "System.out", "answer", "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\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\tsc.close();\n\n\t\tdouble answer = 0.00;\n\n\t\tdouble omega = 6*M - 30*H - 0.5*M ;\n//\t\tSystem.out.println(omega);\n\n\t\tif(omega >= 0) {\n\t\t\t//้•ท้‡ใฎๆ–นใŒ้€ฒใ‚€ใจใ\n\t\t\tif(omega >= 180) {\n\t\t\t\tomega = 360 - omega;\n\t\t\t}else {\n\t\t\t\t//ใใฎใพใพไฝฟใˆใ‚‹ใ‚ชใƒกใ‚ฌ\n\t\t\t}\n\t\t}else {\n\t\t\t//็Ÿญ้‡ใฎๆ–นใŒ้€ฒใ‚€ใจใ\n\t\t\tif(omega <= -180) {\n\t\t\t\tomega = 360 + omega;\n\t\t\t}else {\n\n\t\t\t}\n\t\t}\n\n\t\tdouble radian = Math.toRadians(omega);\n\t\tanswer = A*A + B*B -2*A*B*Math.cos(radian);\n\t\tanswer = Math.sqrt(answer);\n\t\tSystem.out.println(answer);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ่‡ชๅ‹•็”Ÿๆˆใ•ใ‚ŒใŸใƒกใ‚ฝใƒƒใƒ‰ใƒปใ‚นใ‚ฟใƒ–\n\t\tScanner sc = new Scanner(System.in);\n\t\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\tsc.close();\n\n\t\tdouble answer = 0.00;\n\n\t\tdouble omega = 6*M - 30*H - 0.5*M ;\n//\t\tSystem.out.println(omega);\n\n\t\tif(omega >= 0) {\n\t\t\t//้•ท้‡ใฎๆ–นใŒ้€ฒใ‚€ใจใ\n\t\t\tif(omega >= 180) {\n\t\t\t\tomega = 360 - omega;\n\t\t\t}else {\n\t\t\t\t//ใใฎใพใพไฝฟใˆใ‚‹ใ‚ชใƒกใ‚ฌ\n\t\t\t}\n\t\t}else {\n\t\t\t//็Ÿญ้‡ใฎๆ–นใŒ้€ฒใ‚€ใจใ\n\t\t\tif(omega <= -180) {\n\t\t\t\tomega = 360 + omega;\n\t\t\t}else {\n\n\t\t\t}\n\t\t}\n\n\t\tdouble radian = Math.toRadians(omega);\n\t\tanswer = A*A + B*B -2*A*B*Math.cos(radian);\n\t\tanswer = Math.sqrt(answer);\n\t\tSystem.out.println(answer);\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(); sc.close(); double answer = 0.00; double omega = 6*M - 30*H - 0.5*M ; // System.out.println(omega); if(omega >= 0) { //้•ท้‡ใฎๆ–นใŒ้€ฒใ‚€ใจใ if(omega >= 180) { omega = 360 - omega; }else { //ใใฎใพใพไฝฟใˆใ‚‹ใ‚ชใƒกใ‚ฌ } }else { //็Ÿญ้‡ใฎๆ–นใŒ้€ฒใ‚€ใจใ if(omega <= -180) { omega = 360 + omega; }else { } } double radian = Math.toRadians(omega); answer = A*A + B*B -2*A*B*Math.cos(radian); answer = Math.sqrt(answer); 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, 41, 13, 17, 41, 13, 2, 2, 13, 17, 2, 13, 17, 41, 13, 2, 13, 17, 14, 2, 13, 13, 30, 0, 13, 2, 13, 13, 14, 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 ]
[ [ 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 ], [ 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 ], [ 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 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 76, 80 ], [ 75, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 81, 85 ], [ 74, 86 ], [ 88, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 88, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 8, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 6, 105 ], [ 105, 106 ] ]
[ "import java.util.Scanner;\n \nclass Main {\n\tpublic static void main(String[] args) {\n \n\t Scanner sc = new Scanner(System.in);\n\t \n\t double A = sc.nextDouble(); // ่พบ\n\t double B = sc.nextDouble(); // ่พบ\n\t double H = sc.nextDouble(); // ๆ™‚\n\t double M = sc.nextDouble(); // ๅˆ†\n\t \n\t // ่ง’ๅบฆ\n\t double cosC = 0;\n\t double h = (H * 30) + (M * 0.5);\n\t double s = M * 6;\n\t if (h > s) { cosC = h - s; } else if (h < s) { cosC = s - h; }\n\t \n\t // ๆฎ‹ใ‚Šใฎ่พบใฎ้•ทใ• C2 = A2 + B2 - 2ABcosC\n\t double C = Math.sqrt(Math.pow(A,2)+Math.pow(B,2)-2*A*B*Math.cos(Math.toRadians(cosC)));\n\n\t System.out.println(C);\n\t \n\t }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tpublic static void main(String[] args) {\n \n\t Scanner sc = new Scanner(System.in);\n\t \n\t double A = sc.nextDouble(); // ่พบ\n\t double B = sc.nextDouble(); // ่พบ\n\t double H = sc.nextDouble(); // ๆ™‚\n\t double M = sc.nextDouble(); // ๅˆ†\n\t \n\t // ่ง’ๅบฆ\n\t double cosC = 0;\n\t double h = (H * 30) + (M * 0.5);\n\t double s = M * 6;\n\t if (h > s) { cosC = h - s; } else if (h < s) { cosC = s - h; }\n\t \n\t // ๆฎ‹ใ‚Šใฎ่พบใฎ้•ทใ• C2 = A2 + B2 - 2ABcosC\n\t double C = Math.sqrt(Math.pow(A,2)+Math.pow(B,2)-2*A*B*Math.cos(Math.toRadians(cosC)));\n\n\t System.out.println(C);\n\t \n\t }\n}", "Main", "public static void main(String[] args) {\n \n\t Scanner sc = new Scanner(System.in);\n\t \n\t double A = sc.nextDouble(); // ่พบ\n\t double B = sc.nextDouble(); // ่พบ\n\t double H = sc.nextDouble(); // ๆ™‚\n\t double M = sc.nextDouble(); // ๅˆ†\n\t \n\t // ่ง’ๅบฆ\n\t double cosC = 0;\n\t double h = (H * 30) + (M * 0.5);\n\t double s = M * 6;\n\t if (h > s) { cosC = h - s; } else if (h < s) { cosC = s - h; }\n\t \n\t // ๆฎ‹ใ‚Šใฎ่พบใฎ้•ทใ• C2 = A2 + B2 - 2ABcosC\n\t double C = Math.sqrt(Math.pow(A,2)+Math.pow(B,2)-2*A*B*Math.cos(Math.toRadians(cosC)));\n\n\t System.out.println(C);\n\t \n\t }", "main", "{\n \n\t Scanner sc = new Scanner(System.in);\n\t \n\t double A = sc.nextDouble(); // ่พบ\n\t double B = sc.nextDouble(); // ่พบ\n\t double H = sc.nextDouble(); // ๆ™‚\n\t double M = sc.nextDouble(); // ๅˆ†\n\t \n\t // ่ง’ๅบฆ\n\t double cosC = 0;\n\t double h = (H * 30) + (M * 0.5);\n\t double s = M * 6;\n\t if (h > s) { cosC = h - s; } else if (h < s) { cosC = s - h; }\n\t \n\t // ๆฎ‹ใ‚Šใฎ่พบใฎ้•ทใ• C2 = A2 + B2 - 2ABcosC\n\t double C = Math.sqrt(Math.pow(A,2)+Math.pow(B,2)-2*A*B*Math.cos(Math.toRadians(cosC)));\n\n\t System.out.println(C);\n\t \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 cosC = 0;", "cosC", "0", "double h = (H * 30) + (M * 0.5);", "h", "(H * 30) + (M * 0.5)", "(H * 30)", "H", "30", "(M * 0.5)", "M", "0.5", "double s = M * 6;", "s", "M * 6", "M", "6", "if (h > s) { cosC = h - s; } else if (h < s) { cosC = s - h; }", "h > s", "h", "s", "{ cosC = h - s; }", "cosC = h - s", "cosC", "h - s", "h", "s", "if (h < s) { cosC = s - h; }", "h < s", "h", "s", "{ cosC = s - h; }", "cosC = s - h", "cosC", "s - h", "s", "h", "double C = Math.sqrt(Math.pow(A,2)+Math.pow(B,2)-2*A*B*Math.cos(Math.toRadians(cosC)));", "C", "Math.sqrt(Math.pow(A,2)+Math.pow(B,2)-2*A*B*Math.cos(Math.toRadians(cosC)))", "Math.sqrt", "Math", "Math.pow(A,2)+Math.pow(B,2)-2*A*B*Math.cos(Math.toRadians(cosC))", "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(cosC))", "B", "2*A*B*Math.cos(Math.toRadians(cosC))", "2", "A", "B", "Math.cos(Math.toRadians(cosC))", "Math.cos", "Math", "Math.toRadians(cosC)", "Math.toRadians", "Math", "cosC", "System.out.println(C)", "System.out.println", "System.out", "System", "System.out", "C", "String[] args", "args" ]
import java.util.Scanner; 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 cosC = 0; double h = (H * 30) + (M * 0.5); double s = M * 6; if (h > s) { cosC = h - s; } else if (h < s) { cosC = s - h; } // ๆฎ‹ใ‚Šใฎ่พบใฎ้•ทใ• C2 = A2 + B2 - 2ABcosC double C = Math.sqrt(Math.pow(A,2)+Math.pow(B,2)-2*A*B*Math.cos(Math.toRadians(cosC))); 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, 2, 17, 13, 2, 17, 13, 41, 13, 2, 17, 13, 41, 13, 14, 2, 13, 13, 30, 0, 13, 4, 18, 13, 4, 18, 13, 2, 13, 13, 30, 0, 13, 4, 18, 13, 4, 18, 13, 2, 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 ], [ 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 ], [ 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 ], [ 8, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 61, 62 ], [ 61, 63 ], [ 48, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 73, 74 ], [ 73, 75 ], [ 8, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 83, 85 ], [ 78, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 86, 92 ], [ 8, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 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.Scanner;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc= new Scanner(System.in);\n int hour = sc.nextInt();\n int minute = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n double Hrad = (30 * H) + (0.5 * M) ;\n// System.out.println(Hrad);\n double Mrad = 6 * M ;\n// System.out.println(Mrad);\n double cos;\n if(Hrad >= Mrad) {\n cos = Math.cos(Math.toRadians(Hrad - Mrad));\n } else {\n cos = Math.cos(Math.toRadians(Mrad - Hrad));\n }\n double a2 = (hour * hour) + (minute * minute) -(2 * hour * minute * cos);\n double ans = Math.sqrt(a2);\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 sc= new Scanner(System.in);\n int hour = sc.nextInt();\n int minute = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n double Hrad = (30 * H) + (0.5 * M) ;\n// System.out.println(Hrad);\n double Mrad = 6 * M ;\n// System.out.println(Mrad);\n double cos;\n if(Hrad >= Mrad) {\n cos = Math.cos(Math.toRadians(Hrad - Mrad));\n } else {\n cos = Math.cos(Math.toRadians(Mrad - Hrad));\n }\n double a2 = (hour * hour) + (minute * minute) -(2 * hour * minute * cos);\n double ans = Math.sqrt(a2);\n System.out.println(ans);\n } \n}", "Main", "public static void main(String[] args) {\n Scanner sc= new Scanner(System.in);\n int hour = sc.nextInt();\n int minute = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n double Hrad = (30 * H) + (0.5 * M) ;\n// System.out.println(Hrad);\n double Mrad = 6 * M ;\n// System.out.println(Mrad);\n double cos;\n if(Hrad >= Mrad) {\n cos = Math.cos(Math.toRadians(Hrad - Mrad));\n } else {\n cos = Math.cos(Math.toRadians(Mrad - Hrad));\n }\n double a2 = (hour * hour) + (minute * minute) -(2 * hour * minute * cos);\n double ans = Math.sqrt(a2);\n System.out.println(ans);\n }", "main", "{\n Scanner sc= new Scanner(System.in);\n int hour = sc.nextInt();\n int minute = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n double Hrad = (30 * H) + (0.5 * M) ;\n// System.out.println(Hrad);\n double Mrad = 6 * M ;\n// System.out.println(Mrad);\n double cos;\n if(Hrad >= Mrad) {\n cos = Math.cos(Math.toRadians(Hrad - Mrad));\n } else {\n cos = Math.cos(Math.toRadians(Mrad - Hrad));\n }\n double a2 = (hour * hour) + (minute * minute) -(2 * hour * minute * cos);\n double ans = Math.sqrt(a2);\n System.out.println(ans);\n }", "Scanner sc= new Scanner(System.in);", "sc", "new Scanner(System.in)", "int hour = sc.nextInt();", "hour", "sc.nextInt()", "sc.nextInt", "sc", "int minute = sc.nextInt();", "minute", "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 Hrad = (30 * H) + (0.5 * M) ;", "Hrad", "(30 * H) + (0.5 * M)", "(30 * H)", "30", "H", "(0.5 * M)", "0.5", "M", "double Mrad = 6 * M ;", "Mrad", "6 * M", "6", "M", "double cos;", "cos", "if(Hrad >= Mrad) {\n cos = Math.cos(Math.toRadians(Hrad - Mrad));\n } else {\n cos = Math.cos(Math.toRadians(Mrad - Hrad));\n }", "Hrad >= Mrad", "Hrad", "Mrad", "{\n cos = Math.cos(Math.toRadians(Hrad - Mrad));\n }", "cos = Math.cos(Math.toRadians(Hrad - Mrad))", "cos", "Math.cos(Math.toRadians(Hrad - Mrad))", "Math.cos", "Math", "Math.toRadians(Hrad - Mrad)", "Math.toRadians", "Math", "Hrad - Mrad", "Hrad", "Mrad", "{\n cos = Math.cos(Math.toRadians(Mrad - Hrad));\n }", "cos = Math.cos(Math.toRadians(Mrad - Hrad))", "cos", "Math.cos(Math.toRadians(Mrad - Hrad))", "Math.cos", "Math", "Math.toRadians(Mrad - Hrad)", "Math.toRadians", "Math", "Mrad - Hrad", "Mrad", "Hrad", "double a2 = (hour * hour) + (minute * minute) -(2 * hour * minute * cos);", "a2", "(hour * hour) + (minute * minute) -(2 * hour * minute * cos)", "(hour * hour) + (minute * minute)", "(hour * hour)", "hour", "hour", "(minute * minute)", "minute", "minute", "(2 * hour * minute * cos)", "minute", "2 * hour * minute * cos", "2", "hour", "minute", "cos", "double ans = Math.sqrt(a2);", "ans", "Math.sqrt(a2)", "Math.sqrt", "Math", "a2", "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 hour = sc.nextInt();\n int minute = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n double Hrad = (30 * H) + (0.5 * M) ;\n// System.out.println(Hrad);\n double Mrad = 6 * M ;\n// System.out.println(Mrad);\n double cos;\n if(Hrad >= Mrad) {\n cos = Math.cos(Math.toRadians(Hrad - Mrad));\n } else {\n cos = Math.cos(Math.toRadians(Mrad - Hrad));\n }\n double a2 = (hour * hour) + (minute * minute) -(2 * hour * minute * cos);\n double ans = Math.sqrt(a2);\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 hour = sc.nextInt();\n int minute = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n double Hrad = (30 * H) + (0.5 * M) ;\n// System.out.println(Hrad);\n double Mrad = 6 * M ;\n// System.out.println(Mrad);\n double cos;\n if(Hrad >= Mrad) {\n cos = Math.cos(Math.toRadians(Hrad - Mrad));\n } else {\n cos = Math.cos(Math.toRadians(Mrad - Hrad));\n }\n double a2 = (hour * hour) + (minute * minute) -(2 * hour * minute * cos);\n double ans = Math.sqrt(a2);\n System.out.println(ans);\n } \n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc= new Scanner(System.in); int hour = sc.nextInt(); int minute = sc.nextInt(); int H = sc.nextInt(); int M = sc.nextInt(); double Hrad = (30 * H) + (0.5 * M) ; // System.out.println(Hrad); double Mrad = 6 * M ; // System.out.println(Mrad); double cos; if(Hrad >= Mrad) { cos = Math.cos(Math.toRadians(Hrad - Mrad)); } else { cos = Math.cos(Math.toRadians(Mrad - Hrad)); } double a2 = (hour * hour) + (minute * minute) -(2 * hour * minute * cos); double ans = Math.sqrt(a2); System.out.println(ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 2, 4, 18, 13, 13, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 30, 41, 13, 2, 2, 17, 13, 2, 17, 13, 41, 13, 2, 17, 13, 14, 2, 13, 17, 0, 13, 17, 14, 2, 13, 17, 0, 13, 17, 41, 13, 2, 4, 18, 13, 13, 13, 4, 18, 13, 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, 4, 18, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 156, 11 ], [ 156, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 14, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 14, 38 ], [ 38, 39 ], [ 38, 40 ], [ 14, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 46, 48 ], [ 41, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 53, 57 ], [ 52, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 58, 62 ], [ 49, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 41, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 76, 78 ], [ 69, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 69, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 88, 89 ], [ 88, 90 ], [ 69, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 95, 96 ], [ 95, 97 ], [ 69, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 101, 105 ], [ 100, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 106, 110 ], [ 69, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 118, 121 ], [ 118, 122 ], [ 117, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 123, 127 ], [ 116, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 129, 133 ], [ 128, 134 ], [ 134, 135 ], [ 135, 136 ], [ 134, 137 ], [ 137, 138 ], [ 138, 139 ], [ 137, 140 ], [ 69, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 141, 146 ], [ 146, 147 ], [ 147, 148 ], [ 146, 149 ], [ 14, 150 ], [ 150, 151 ], [ 151, 152 ], [ 12, 153 ], [ 153, 154 ], [ 0, 155 ], [ 155, 156 ], [ 155, 157 ] ]
[ "import java.math.BigDecimal;\nimport java.nio.ByteBuffer;\nimport java.util.*;\n\npublic class Main\n{\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// int mm = -1;\n// if (m%5 == 0)\n// {\n// mm = m/5;\n// }\n\n double ans = 0.0D;\n if (h==0 && m==0)//็Ÿญ้‡ใจ้•ท้‡ใŒ้‡ใชใฃใฆใ„ใ‚‹ใจใใฏ (ๅคง)a-(ๅฐ)b ้•ท้‡or็Ÿญ้‡ใฎๅ€คใ‚’ๅˆใ‚ใ›ใ‚‹\n {\n ans = Math.max(a,b) - Math.min(a,b);\n System.out.println(ans);\n }\n else\n {\n double kakudo1 = 30.0 * h + 0.5 * m;\n double kakudo2 = 6.0 * m;\n if (kakudo1 == 0) kakudo1 = 360.0;\n if (kakudo2 == 0) kakudo2 = 360.0;\n double kakudo3 = Math.max(kakudo1,kakudo2) - Math.min(kakudo1,kakudo2);\n double aa = Math.sqrt((Math.pow(a,2.0)) + (Math.pow(b,2.0)) - (2 * a * b * Math.cos(Math.toRadians(kakudo3))));\n System.out.println(BigDecimal.valueOf(aa));\n }\n sc.close();\n }\n}", "import java.math.BigDecimal;", "BigDecimal", "java.math", "import java.nio.ByteBuffer;", "ByteBuffer", "java.nio", "import java.util.*;", "util.*", "java", "public class Main\n{\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// int mm = -1;\n// if (m%5 == 0)\n// {\n// mm = m/5;\n// }\n\n double ans = 0.0D;\n if (h==0 && m==0)//็Ÿญ้‡ใจ้•ท้‡ใŒ้‡ใชใฃใฆใ„ใ‚‹ใจใใฏ (ๅคง)a-(ๅฐ)b ้•ท้‡or็Ÿญ้‡ใฎๅ€คใ‚’ๅˆใ‚ใ›ใ‚‹\n {\n ans = Math.max(a,b) - Math.min(a,b);\n System.out.println(ans);\n }\n else\n {\n double kakudo1 = 30.0 * h + 0.5 * m;\n double kakudo2 = 6.0 * m;\n if (kakudo1 == 0) kakudo1 = 360.0;\n if (kakudo2 == 0) kakudo2 = 360.0;\n double kakudo3 = Math.max(kakudo1,kakudo2) - Math.min(kakudo1,kakudo2);\n double aa = Math.sqrt((Math.pow(a,2.0)) + (Math.pow(b,2.0)) - (2 * a * b * Math.cos(Math.toRadians(kakudo3))));\n System.out.println(BigDecimal.valueOf(aa));\n }\n sc.close();\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// int mm = -1;\n// if (m%5 == 0)\n// {\n// mm = m/5;\n// }\n\n double ans = 0.0D;\n if (h==0 && m==0)//็Ÿญ้‡ใจ้•ท้‡ใŒ้‡ใชใฃใฆใ„ใ‚‹ใจใใฏ (ๅคง)a-(ๅฐ)b ้•ท้‡or็Ÿญ้‡ใฎๅ€คใ‚’ๅˆใ‚ใ›ใ‚‹\n {\n ans = Math.max(a,b) - Math.min(a,b);\n System.out.println(ans);\n }\n else\n {\n double kakudo1 = 30.0 * h + 0.5 * m;\n double kakudo2 = 6.0 * m;\n if (kakudo1 == 0) kakudo1 = 360.0;\n if (kakudo2 == 0) kakudo2 = 360.0;\n double kakudo3 = Math.max(kakudo1,kakudo2) - Math.min(kakudo1,kakudo2);\n double aa = Math.sqrt((Math.pow(a,2.0)) + (Math.pow(b,2.0)) - (2 * a * b * Math.cos(Math.toRadians(kakudo3))));\n System.out.println(BigDecimal.valueOf(aa));\n }\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\n// int mm = -1;\n// if (m%5 == 0)\n// {\n// mm = m/5;\n// }\n\n double ans = 0.0D;\n if (h==0 && m==0)//็Ÿญ้‡ใจ้•ท้‡ใŒ้‡ใชใฃใฆใ„ใ‚‹ใจใใฏ (ๅคง)a-(ๅฐ)b ้•ท้‡or็Ÿญ้‡ใฎๅ€คใ‚’ๅˆใ‚ใ›ใ‚‹\n {\n ans = Math.max(a,b) - Math.min(a,b);\n System.out.println(ans);\n }\n else\n {\n double kakudo1 = 30.0 * h + 0.5 * m;\n double kakudo2 = 6.0 * m;\n if (kakudo1 == 0) kakudo1 = 360.0;\n if (kakudo2 == 0) kakudo2 = 360.0;\n double kakudo3 = Math.max(kakudo1,kakudo2) - Math.min(kakudo1,kakudo2);\n double aa = Math.sqrt((Math.pow(a,2.0)) + (Math.pow(b,2.0)) - (2 * a * b * Math.cos(Math.toRadians(kakudo3))));\n System.out.println(BigDecimal.valueOf(aa));\n }\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 ans = 0.0D;", "ans", "0.0D", "if (h==0 && m==0)//็Ÿญ้‡ใจ้•ท้‡ใŒ้‡ใชใฃใฆใ„ใ‚‹ใจใใฏ (ๅคง)a-(ๅฐ)b ้•ท้‡or็Ÿญ้‡ใฎๅ€คใ‚’ๅˆใ‚ใ›ใ‚‹\n {\n ans = Math.max(a,b) - Math.min(a,b);\n System.out.println(ans);\n }\n else\n {\n double kakudo1 = 30.0 * h + 0.5 * m;\n double kakudo2 = 6.0 * m;\n if (kakudo1 == 0) kakudo1 = 360.0;\n if (kakudo2 == 0) kakudo2 = 360.0;\n double kakudo3 = Math.max(kakudo1,kakudo2) - Math.min(kakudo1,kakudo2);\n double aa = Math.sqrt((Math.pow(a,2.0)) + (Math.pow(b,2.0)) - (2 * a * b * Math.cos(Math.toRadians(kakudo3))));\n System.out.println(BigDecimal.valueOf(aa));\n }", "h==0 && m==0", "h==0", "h", "0", "m==0", "m", "0", "{\n ans = Math.max(a,b) - Math.min(a,b);\n System.out.println(ans);\n }", "ans = Math.max(a,b) - Math.min(a,b)", "ans", "Math.max(a,b) - Math.min(a,b)", "Math.max(a,b)", "Math.max", "Math", "a", "b", "Math.min(a,b)", "Math.min", "Math", "a", "b", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "{\n double kakudo1 = 30.0 * h + 0.5 * m;\n double kakudo2 = 6.0 * m;\n if (kakudo1 == 0) kakudo1 = 360.0;\n if (kakudo2 == 0) kakudo2 = 360.0;\n double kakudo3 = Math.max(kakudo1,kakudo2) - Math.min(kakudo1,kakudo2);\n double aa = Math.sqrt((Math.pow(a,2.0)) + (Math.pow(b,2.0)) - (2 * a * b * Math.cos(Math.toRadians(kakudo3))));\n System.out.println(BigDecimal.valueOf(aa));\n }", "double kakudo1 = 30.0 * h + 0.5 * m;", "kakudo1", "30.0 * h + 0.5 * m", "30.0 * h", "30.0", "h", "0.5 * m", "0.5", "m", "double kakudo2 = 6.0 * m;", "kakudo2", "6.0 * m", "6.0", "m", "if (kakudo1 == 0) kakudo1 = 360.0;", "kakudo1 == 0", "kakudo1", "0", "kakudo1 = 360.0", "kakudo1", "360.0", "if (kakudo2 == 0) kakudo2 = 360.0;", "kakudo2 == 0", "kakudo2", "0", "kakudo2 = 360.0", "kakudo2", "360.0", "double kakudo3 = Math.max(kakudo1,kakudo2) - Math.min(kakudo1,kakudo2);", "kakudo3", "Math.max(kakudo1,kakudo2) - Math.min(kakudo1,kakudo2)", "Math.max(kakudo1,kakudo2)", "Math.max", "Math", "kakudo1", "kakudo2", "Math.min(kakudo1,kakudo2)", "Math.min", "Math", "kakudo1", "kakudo2", "double aa = Math.sqrt((Math.pow(a,2.0)) + (Math.pow(b,2.0)) - (2 * a * b * Math.cos(Math.toRadians(kakudo3))));", "aa", "Math.sqrt((Math.pow(a,2.0)) + (Math.pow(b,2.0)) - (2 * a * b * Math.cos(Math.toRadians(kakudo3))))", "Math.sqrt", "Math", "(Math.pow(a,2.0)) + (Math.pow(b,2.0)) - (2 * a * b * Math.cos(Math.toRadians(kakudo3)))", "(Math.pow(a,2.0)) + (Math.pow(b,2.0))", "(Math.pow(a,2.0))", "Math.pow", "Math", "a", "2.0", "(Math.pow(b,2.0))", "Math.pow", "Math", "b", "2.0", "(2 * a * b * Math.cos(Math.toRadians(kakudo3)))", "b", "2 * a * b * Math.cos(Math.toRadians(kakudo3))", "2", "a", "b", "Math.cos(Math.toRadians(kakudo3))", "Math.cos", "Math", "Math.toRadians(kakudo3)", "Math.toRadians", "Math", "kakudo3", "System.out.println(BigDecimal.valueOf(aa))", "System.out.println", "System.out", "System", "System.out", "BigDecimal.valueOf(aa)", "BigDecimal.valueOf", "BigDecimal", "aa", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main\n{\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// int mm = -1;\n// if (m%5 == 0)\n// {\n// mm = m/5;\n// }\n\n double ans = 0.0D;\n if (h==0 && m==0)//็Ÿญ้‡ใจ้•ท้‡ใŒ้‡ใชใฃใฆใ„ใ‚‹ใจใใฏ (ๅคง)a-(ๅฐ)b ้•ท้‡or็Ÿญ้‡ใฎๅ€คใ‚’ๅˆใ‚ใ›ใ‚‹\n {\n ans = Math.max(a,b) - Math.min(a,b);\n System.out.println(ans);\n }\n else\n {\n double kakudo1 = 30.0 * h + 0.5 * m;\n double kakudo2 = 6.0 * m;\n if (kakudo1 == 0) kakudo1 = 360.0;\n if (kakudo2 == 0) kakudo2 = 360.0;\n double kakudo3 = Math.max(kakudo1,kakudo2) - Math.min(kakudo1,kakudo2);\n double aa = Math.sqrt((Math.pow(a,2.0)) + (Math.pow(b,2.0)) - (2 * a * b * Math.cos(Math.toRadians(kakudo3))));\n System.out.println(BigDecimal.valueOf(aa));\n }\n sc.close();\n }\n}", "public class Main\n{\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// int mm = -1;\n// if (m%5 == 0)\n// {\n// mm = m/5;\n// }\n\n double ans = 0.0D;\n if (h==0 && m==0)//็Ÿญ้‡ใจ้•ท้‡ใŒ้‡ใชใฃใฆใ„ใ‚‹ใจใใฏ (ๅคง)a-(ๅฐ)b ้•ท้‡or็Ÿญ้‡ใฎๅ€คใ‚’ๅˆใ‚ใ›ใ‚‹\n {\n ans = Math.max(a,b) - Math.min(a,b);\n System.out.println(ans);\n }\n else\n {\n double kakudo1 = 30.0 * h + 0.5 * m;\n double kakudo2 = 6.0 * m;\n if (kakudo1 == 0) kakudo1 = 360.0;\n if (kakudo2 == 0) kakudo2 = 360.0;\n double kakudo3 = Math.max(kakudo1,kakudo2) - Math.min(kakudo1,kakudo2);\n double aa = Math.sqrt((Math.pow(a,2.0)) + (Math.pow(b,2.0)) - (2 * a * b * Math.cos(Math.toRadians(kakudo3))));\n System.out.println(BigDecimal.valueOf(aa));\n }\n sc.close();\n }\n}", "Main" ]
import java.math.BigDecimal; import java.nio.ByteBuffer; 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(); // int mm = -1; // if (m%5 == 0) // { // mm = m/5; // } double ans = 0.0D; if (h==0 && m==0)//็Ÿญ้‡ใจ้•ท้‡ใŒ้‡ใชใฃใฆใ„ใ‚‹ใจใใฏ (ๅคง)a-(ๅฐ)b ้•ท้‡or็Ÿญ้‡ใฎๅ€คใ‚’ๅˆใ‚ใ›ใ‚‹ { ans = Math.max(a,b) - Math.min(a,b); System.out.println(ans); } else { double kakudo1 = 30.0 * h + 0.5 * m; double kakudo2 = 6.0 * m; if (kakudo1 == 0) kakudo1 = 360.0; if (kakudo2 == 0) kakudo2 = 360.0; double kakudo3 = Math.max(kakudo1,kakudo2) - Math.min(kakudo1,kakudo2); double aa = Math.sqrt((Math.pow(a,2.0)) + (Math.pow(b,2.0)) - (2 * a * b * Math.cos(Math.toRadians(kakudo3)))); System.out.println(BigDecimal.valueOf(aa)); } sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 2, 17, 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, 2, 2, 2, 2, 2, 2, 13, 2, 13, 17, 17, 2, 13, 17, 17, 17, 18, 13, 13, 41, 13, 2, 4, 18, 13, 13, 13, 41, 13, 2, 13, 2, 4, 18, 13, 13, 13, 41, 13, 4, 18, 13, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 17, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 13, 13, 2, 17, 17, 41, 13, 13, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 13, 13, 2, 17, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 13, 13, 2, 17, 17, 29, 13, 23, 13, 23, 13, 12, 13, 30, 14, 2, 13, 17, 0, 13, 2, 17, 17, 29, 2, 13, 2, 17, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 216, 5 ], [ 216, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 8, 10 ], [ 216, 11 ], [ 11, 12 ], [ 11, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 13, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 13, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 13, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 13, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 13, 37 ], [ 37, 38 ], [ 37, 39 ], [ 40, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 43, 49 ], [ 42, 50 ], [ 50, 51 ], [ 50, 52 ], [ 41, 53 ], [ 40, 54 ], [ 40, 55 ], [ 55, 56 ], [ 55, 57 ], [ 13, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 60, 65 ], [ 13, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 70, 75 ], [ 13, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 82, 86 ], [ 81, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 87, 91 ], [ 78, 92 ], [ 13, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 11, 99 ], [ 99, 100 ], [ 216, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 103, 110 ], [ 110, 111 ], [ 110, 112 ], [ 103, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 118, 119 ], [ 118, 120 ], [ 113, 121 ], [ 121, 122 ], [ 122, 123 ], [ 113, 124 ], [ 125, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 132 ], [ 132, 133 ], [ 132, 134 ], [ 103, 135 ], [ 135, 136 ], [ 135, 137 ], [ 103, 138 ], [ 138, 139 ], [ 138, 140 ], [ 103, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 141, 146 ], [ 146, 147 ], [ 146, 148 ], [ 141, 149 ], [ 149, 150 ], [ 150, 151 ], [ 141, 152 ], [ 153, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 156, 160 ], [ 160, 161 ], [ 160, 162 ], [ 103, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 163, 168 ], [ 168, 169 ], [ 168, 170 ], [ 170, 171 ], [ 170, 172 ], [ 172, 173 ], [ 172, 174 ], [ 163, 175 ], [ 175, 176 ], [ 176, 177 ], [ 163, 178 ], [ 179, 179 ], [ 179, 180 ], [ 180, 181 ], [ 180, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 182, 186 ], [ 186, 187 ], [ 186, 188 ], [ 103, 189 ], [ 189, 190 ], [ 101, 191 ], [ 191, 192 ], [ 101, 193 ], [ 193, 194 ], [ 216, 195 ], [ 195, 196 ], [ 195, 197 ], [ 197, 198 ], [ 198, 199 ], [ 199, 200 ], [ 199, 201 ], [ 198, 202 ], [ 202, 203 ], [ 202, 204 ], [ 204, 205 ], [ 204, 206 ], [ 197, 207 ], [ 207, 208 ], [ 208, 209 ], [ 208, 210 ], [ 210, 211 ], [ 210, 212 ], [ 195, 213 ], [ 213, 214 ], [ 0, 215 ], [ 215, 216 ], [ 215, 217 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tstatic long bignum = 1000000000+7;\n\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\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\tdouble degree = ((h+m/60)*30-m*6)/360*2*Math.PI;\n\t\tdouble height = Math.sin(degree)*a;\n\t\tdouble width = b-Math.cos(degree)*a;\n\n\t\tdouble ans = Math.pow(Math.pow(height, 2)+Math.pow(width, 2),0.5);\n\n\t\tSystem.out.println(ans);\n\n\t}\n\n\n\tstatic long divn(int target, int times) {//10_9+7ใฎใ‚ใพใ‚Š็ดฏไน—็‰ˆ\n\t\tint sqtimes = (int)Math.sqrt(times);\n\t\tlong ans = 1;\n\t\tfor(int i =0;i<sqtimes;i++) {\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}\n\t\tlong holder = ans;\n\t\tans = 1;\n\t\tfor(int i =0;i<sqtimes;i++) {\n\t\t\tans = (ans*holder)%(1000000000+7);\n\t\t}\n\t\tfor(int i=0;i<times - sqtimes*sqtimes;i++) {\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}\n\t\treturn ans;\n\t}\n\n\tstatic long div(long a) {//10_9+7ใฎใ‚ใพใ‚Š\n\t\tif(a<0)a+=1000000000+7;\n\t\treturn a%(1000000000+7);\n\t}\n\n}\n/*\nclass City{\n\tint order;\n\tint prefecture;\n\tint year;\n\tint number;\n\tCity(int order,int prefecture, int year){\n\t\tthis.order = order;\n\t\tthis.prefecture = prefecture;\n\t\tthis.year = year;\n\t}\n}\n*/", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tstatic long bignum = 1000000000+7;\n\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\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\tdouble degree = ((h+m/60)*30-m*6)/360*2*Math.PI;\n\t\tdouble height = Math.sin(degree)*a;\n\t\tdouble width = b-Math.cos(degree)*a;\n\n\t\tdouble ans = Math.pow(Math.pow(height, 2)+Math.pow(width, 2),0.5);\n\n\t\tSystem.out.println(ans);\n\n\t}\n\n\n\tstatic long divn(int target, int times) {//10_9+7ใฎใ‚ใพใ‚Š็ดฏไน—็‰ˆ\n\t\tint sqtimes = (int)Math.sqrt(times);\n\t\tlong ans = 1;\n\t\tfor(int i =0;i<sqtimes;i++) {\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}\n\t\tlong holder = ans;\n\t\tans = 1;\n\t\tfor(int i =0;i<sqtimes;i++) {\n\t\t\tans = (ans*holder)%(1000000000+7);\n\t\t}\n\t\tfor(int i=0;i<times - sqtimes*sqtimes;i++) {\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}\n\t\treturn ans;\n\t}\n\n\tstatic long div(long a) {//10_9+7ใฎใ‚ใพใ‚Š\n\t\tif(a<0)a+=1000000000+7;\n\t\treturn a%(1000000000+7);\n\t}\n\n}", "Main", "static long bignum = 1000000000+7;", "bignum", "1000000000+7", "1000000000", "7", "public static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\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\tdouble degree = ((h+m/60)*30-m*6)/360*2*Math.PI;\n\t\tdouble height = Math.sin(degree)*a;\n\t\tdouble width = b-Math.cos(degree)*a;\n\n\t\tdouble ans = Math.pow(Math.pow(height, 2)+Math.pow(width, 2),0.5);\n\n\t\tSystem.out.println(ans);\n\n\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\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\tdouble degree = ((h+m/60)*30-m*6)/360*2*Math.PI;\n\t\tdouble height = Math.sin(degree)*a;\n\t\tdouble width = b-Math.cos(degree)*a;\n\n\t\tdouble ans = Math.pow(Math.pow(height, 2)+Math.pow(width, 2),0.5);\n\n\t\tSystem.out.println(ans);\n\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 degree = ((h+m/60)*30-m*6)/360*2*Math.PI;", "degree", "((h+m/60)*30-m*6)/360*2*Math.PI", "((h+m/60)*30-m*6)/360*2*Math.PI", "((h+m/60)*30-m*6)/360", "((h+m/60)*30-m*6)", "(h+m/60)*30", "(h+m/60)", "h", "m/60", "m", "60", "30", "m*6", "m", "6", "360", "2", "Math.PI", "Math", "Math.PI", "double height = Math.sin(degree)*a;", "height", "Math.sin(degree)*a", "Math.sin(degree)", "Math.sin", "Math", "degree", "a", "double width = b-Math.cos(degree)*a;", "width", "b-Math.cos(degree)*a", "b", "Math.cos(degree)*a", "Math.cos(degree)", "Math.cos", "Math", "degree", "a", "double ans = Math.pow(Math.pow(height, 2)+Math.pow(width, 2),0.5);", "ans", "Math.pow(Math.pow(height, 2)+Math.pow(width, 2),0.5)", "Math.pow", "Math", "Math.pow(height, 2)+Math.pow(width, 2)", "Math.pow(height, 2)", "Math.pow", "Math", "height", "2", "Math.pow(width, 2)", "Math.pow", "Math", "width", "2", "0.5", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "static long divn(int target, int times) {//10_9+7ใฎใ‚ใพใ‚Š็ดฏไน—็‰ˆ\n\t\tint sqtimes = (int)Math.sqrt(times);\n\t\tlong ans = 1;\n\t\tfor(int i =0;i<sqtimes;i++) {\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}\n\t\tlong holder = ans;\n\t\tans = 1;\n\t\tfor(int i =0;i<sqtimes;i++) {\n\t\t\tans = (ans*holder)%(1000000000+7);\n\t\t}\n\t\tfor(int i=0;i<times - sqtimes*sqtimes;i++) {\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}\n\t\treturn ans;\n\t}", "divn", "{//10_9+7ใฎใ‚ใพใ‚Š็ดฏไน—็‰ˆ\n\t\tint sqtimes = (int)Math.sqrt(times);\n\t\tlong ans = 1;\n\t\tfor(int i =0;i<sqtimes;i++) {\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}\n\t\tlong holder = ans;\n\t\tans = 1;\n\t\tfor(int i =0;i<sqtimes;i++) {\n\t\t\tans = (ans*holder)%(1000000000+7);\n\t\t}\n\t\tfor(int i=0;i<times - sqtimes*sqtimes;i++) {\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}\n\t\treturn ans;\n\t}", "int sqtimes = (int)Math.sqrt(times);", "sqtimes", "(int)Math.sqrt(times)", "Math.sqrt", "Math", "times", "long ans = 1;", "ans", "1", "for(int i =0;i<sqtimes;i++) {\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}", "int i =0;", "int i =0;", "i", "0", "i<sqtimes", "i", "sqtimes", "i++", "i++", "i", "{\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}", "{\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}", "ans = (ans * target)%(1000000000+7)", "ans", "(ans * target)%(1000000000+7)", "(ans * target)", "ans", "target", "(1000000000+7)", "1000000000", "7", "long holder = ans;", "holder", "ans", "ans = 1", "ans", "1", "for(int i =0;i<sqtimes;i++) {\n\t\t\tans = (ans*holder)%(1000000000+7);\n\t\t}", "int i =0;", "int i =0;", "i", "0", "i<sqtimes", "i", "sqtimes", "i++", "i++", "i", "{\n\t\t\tans = (ans*holder)%(1000000000+7);\n\t\t}", "{\n\t\t\tans = (ans*holder)%(1000000000+7);\n\t\t}", "ans = (ans*holder)%(1000000000+7)", "ans", "(ans*holder)%(1000000000+7)", "(ans*holder)", "ans", "holder", "(1000000000+7)", "1000000000", "7", "for(int i=0;i<times - sqtimes*sqtimes;i++) {\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<times - sqtimes*sqtimes", "i", "times - sqtimes*sqtimes", "times", "sqtimes*sqtimes", "sqtimes", "sqtimes", "i++", "i++", "i", "{\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}", "{\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}", "ans = (ans * target)%(1000000000+7)", "ans", "(ans * target)%(1000000000+7)", "(ans * target)", "ans", "target", "(1000000000+7)", "1000000000", "7", "return ans;", "ans", "int target", "target", "int times", "times", "static long div(long a) {//10_9+7ใฎใ‚ใพใ‚Š\n\t\tif(a<0)a+=1000000000+7;\n\t\treturn a%(1000000000+7);\n\t}", "div", "{//10_9+7ใฎใ‚ใพใ‚Š\n\t\tif(a<0)a+=1000000000+7;\n\t\treturn a%(1000000000+7);\n\t}", "if(a<0)a+=1000000000+7;", "a<0", "a", "0", "a+=1000000000+7", "a", "1000000000+7", "1000000000", "7", "return a%(1000000000+7);", "a%(1000000000+7)", "a", "(1000000000+7)", "1000000000", "7", "long a", "a", "public class Main {\n\n\tstatic long bignum = 1000000000+7;\n\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\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\tdouble degree = ((h+m/60)*30-m*6)/360*2*Math.PI;\n\t\tdouble height = Math.sin(degree)*a;\n\t\tdouble width = b-Math.cos(degree)*a;\n\n\t\tdouble ans = Math.pow(Math.pow(height, 2)+Math.pow(width, 2),0.5);\n\n\t\tSystem.out.println(ans);\n\n\t}\n\n\n\tstatic long divn(int target, int times) {//10_9+7ใฎใ‚ใพใ‚Š็ดฏไน—็‰ˆ\n\t\tint sqtimes = (int)Math.sqrt(times);\n\t\tlong ans = 1;\n\t\tfor(int i =0;i<sqtimes;i++) {\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}\n\t\tlong holder = ans;\n\t\tans = 1;\n\t\tfor(int i =0;i<sqtimes;i++) {\n\t\t\tans = (ans*holder)%(1000000000+7);\n\t\t}\n\t\tfor(int i=0;i<times - sqtimes*sqtimes;i++) {\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}\n\t\treturn ans;\n\t}\n\n\tstatic long div(long a) {//10_9+7ใฎใ‚ใพใ‚Š\n\t\tif(a<0)a+=1000000000+7;\n\t\treturn a%(1000000000+7);\n\t}\n\n}", "public class Main {\n\n\tstatic long bignum = 1000000000+7;\n\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\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\tdouble degree = ((h+m/60)*30-m*6)/360*2*Math.PI;\n\t\tdouble height = Math.sin(degree)*a;\n\t\tdouble width = b-Math.cos(degree)*a;\n\n\t\tdouble ans = Math.pow(Math.pow(height, 2)+Math.pow(width, 2),0.5);\n\n\t\tSystem.out.println(ans);\n\n\t}\n\n\n\tstatic long divn(int target, int times) {//10_9+7ใฎใ‚ใพใ‚Š็ดฏไน—็‰ˆ\n\t\tint sqtimes = (int)Math.sqrt(times);\n\t\tlong ans = 1;\n\t\tfor(int i =0;i<sqtimes;i++) {\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}\n\t\tlong holder = ans;\n\t\tans = 1;\n\t\tfor(int i =0;i<sqtimes;i++) {\n\t\t\tans = (ans*holder)%(1000000000+7);\n\t\t}\n\t\tfor(int i=0;i<times - sqtimes*sqtimes;i++) {\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}\n\t\treturn ans;\n\t}\n\n\tstatic long div(long a) {//10_9+7ใฎใ‚ใพใ‚Š\n\t\tif(a<0)a+=1000000000+7;\n\t\treturn a%(1000000000+7);\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { static long bignum = 1000000000+7; 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 degree = ((h+m/60)*30-m*6)/360*2*Math.PI; double height = Math.sin(degree)*a; double width = b-Math.cos(degree)*a; double ans = Math.pow(Math.pow(height, 2)+Math.pow(width, 2),0.5); System.out.println(ans); } static long divn(int target, int times) {//10_9+7ใฎใ‚ใพใ‚Š็ดฏไน—็‰ˆ int sqtimes = (int)Math.sqrt(times); long ans = 1; for(int i =0;i<sqtimes;i++) { ans = (ans * target)%(1000000000+7); } long holder = ans; ans = 1; for(int i =0;i<sqtimes;i++) { ans = (ans*holder)%(1000000000+7); } for(int i=0;i<times - sqtimes*sqtimes;i++) { ans = (ans * target)%(1000000000+7); } return ans; } static long div(long a) {//10_9+7ใฎใ‚ใพใ‚Š if(a<0)a+=1000000000+7; return a%(1000000000+7); } } /* class City{ int order; int prefecture; int year; int number; City(int order,int prefecture, int year){ this.order = order; this.prefecture = prefecture; this.year = year; } } */
[ 7, 15, 13, 17, 6, 13, 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, 2, 17, 18, 13, 13, 2, 13, 2, 13, 17, 17, 41, 13, 2, 2, 2, 17, 18, 13, 13, 13, 17, 41, 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 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 4, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 11, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 11, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 11, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 36, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 34, 46 ], [ 11, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 51, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 49, 57 ], [ 11, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 63, 64 ], [ 63, 65 ], [ 11, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 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 ], [ 11, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 9, 95 ], [ 95, 96 ] ]
[ "import java.util.*;\nclass Main{\n static Scanner sc = new Scanner(System.in);\n public static void main(String[] args){\n double A = sc.nextDouble();\n double B = sc.nextDouble();\n double H = sc.nextDouble();\n double M = sc.nextDouble();\n double thetaH = 2*Math.PI*(H+M/60)/12;\n double thetaM = 2*Math.PI*M/60;\n double theta = Math.abs(thetaH-thetaM);\n double distance = Math.sqrt(A*A + B*B -2*A*B*Math.cos(theta));\n System.out.println(distance);\n }\n}", "import java.util.*;", "util.*", "java", "class Main{\n static Scanner sc = new Scanner(System.in);\n public static void main(String[] args){\n double A = sc.nextDouble();\n double B = sc.nextDouble();\n double H = sc.nextDouble();\n double M = sc.nextDouble();\n double thetaH = 2*Math.PI*(H+M/60)/12;\n double thetaM = 2*Math.PI*M/60;\n double theta = Math.abs(thetaH-thetaM);\n double distance = Math.sqrt(A*A + B*B -2*A*B*Math.cos(theta));\n System.out.println(distance);\n }\n}", "Main", "static Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main(String[] args){\n double A = sc.nextDouble();\n double B = sc.nextDouble();\n double H = sc.nextDouble();\n double M = sc.nextDouble();\n double thetaH = 2*Math.PI*(H+M/60)/12;\n double thetaM = 2*Math.PI*M/60;\n double theta = Math.abs(thetaH-thetaM);\n double distance = Math.sqrt(A*A + B*B -2*A*B*Math.cos(theta));\n System.out.println(distance);\n }", "main", "{\n double A = sc.nextDouble();\n double B = sc.nextDouble();\n double H = sc.nextDouble();\n double M = sc.nextDouble();\n double thetaH = 2*Math.PI*(H+M/60)/12;\n double thetaM = 2*Math.PI*M/60;\n double theta = Math.abs(thetaH-thetaM);\n double distance = Math.sqrt(A*A + B*B -2*A*B*Math.cos(theta));\n System.out.println(distance);\n }", "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 thetaH = 2*Math.PI*(H+M/60)/12;", "thetaH", "2*Math.PI*(H+M/60)/12", "2*Math.PI*(H+M/60)", "2*Math.PI*(H+M/60)", "2", "Math.PI", "Math", "Math.PI", "(H+M/60)", "H", "M/60", "M", "60", "12", "double thetaM = 2*Math.PI*M/60;", "thetaM", "2*Math.PI*M/60", "2*Math.PI*M", "2*Math.PI*M", "2", "Math.PI", "Math", "Math.PI", "M", "60", "double theta = Math.abs(thetaH-thetaM);", "theta", "Math.abs(thetaH-thetaM)", "Math.abs", "Math", "thetaH-thetaM", "thetaH", "thetaM", "double distance = Math.sqrt(A*A + B*B -2*A*B*Math.cos(theta));", "distance", "Math.sqrt(A*A + B*B -2*A*B*Math.cos(theta))", "Math.sqrt", "Math", "A*A + B*B -2*A*B*Math.cos(theta)", "A*A + B*B", "A*A", "A", "A", "B*B", "B", "B", "2*A*B*Math.cos(theta)", "B", "2*A*B*Math.cos(theta)", "2", "A", "B", "Math.cos(theta)", "Math.cos", "Math", "theta", "System.out.println(distance)", "System.out.println", "System.out", "System", "System.out", "distance", "String[] args", "args" ]
import java.util.*; class Main{ static Scanner sc = new Scanner(System.in); public static void main(String[] args){ double A = sc.nextDouble(); double B = sc.nextDouble(); double H = sc.nextDouble(); double M = sc.nextDouble(); double thetaH = 2*Math.PI*(H+M/60)/12; double thetaM = 2*Math.PI*M/60; double theta = Math.abs(thetaH-thetaM); double distance = Math.sqrt(A*A + B*B -2*A*B*Math.cos(theta)); System.out.println(distance); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 2, 2, 2, 17, 18, 13, 13, 17, 2, 13, 2, 13, 17, 41, 13, 2, 2, 2, 17, 18, 13, 13, 17, 13, 29, 4, 18, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 13, 29, 4, 18, 13, 13, 23, 13, 23, 13, 23, 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, 13, 13, 13, 4, 18, 18, 13, 13, 4, 13, 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 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 15, 17 ], [ 12, 18 ], [ 11, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 30, 32 ], [ 27, 33 ], [ 26, 34 ], [ 8, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 39, 40 ], [ 39, 41 ], [ 6, 42 ], [ 42, 43 ], [ 6, 44 ], [ 44, 45 ], [ 4, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 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 ], [ 48, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 46, 74 ], [ 74, 75 ], [ 46, 76 ], [ 76, 77 ], [ 46, 78 ], [ 78, 79 ], [ 4, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 82, 88 ], [ 88, 89 ], [ 82, 90 ], [ 90, 91 ], [ 82, 92 ], [ 92, 93 ], [ 82, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 82, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 102, 103 ], [ 82, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 82, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 82, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 116, 118 ], [ 116, 119 ], [ 82, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 120, 125 ], [ 125, 126 ], [ 125, 127 ], [ 125, 128 ], [ 125, 129 ], [ 80, 130 ], [ 130, 131 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n\tprivate static double findTheta(int h, int m) {\n \tdouble x = 2*Math.PI / 12 * (h+m/60.0);\n\t\tdouble y = 2*Math.PI / 60 * m;\n \treturn Math.abs(x-y);\n }\n \tprivate static double findC(int a, int b, double theta) {\n \tdouble c2 = a*a+b*b-2*a*b*Math.cos(theta);\n \treturn Math.sqrt(c2);\n }\n \tpublic static void main(String[] args) {\n \tScanner in = new Scanner(System.in);\n \tint a, b, h, m;\n \ta = in.nextInt();\n \tb = in.nextInt();\n \th = in.nextInt();\n \tm = in.nextInt();\n \tdouble theta = findTheta(h, m);\n \tSystem.out.println(findC(a, b, theta));\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tprivate static double findTheta(int h, int m) {\n \tdouble x = 2*Math.PI / 12 * (h+m/60.0);\n\t\tdouble y = 2*Math.PI / 60 * m;\n \treturn Math.abs(x-y);\n }\n \tprivate static double findC(int a, int b, double theta) {\n \tdouble c2 = a*a+b*b-2*a*b*Math.cos(theta);\n \treturn Math.sqrt(c2);\n }\n \tpublic static void main(String[] args) {\n \tScanner in = new Scanner(System.in);\n \tint a, b, h, m;\n \ta = in.nextInt();\n \tb = in.nextInt();\n \th = in.nextInt();\n \tm = in.nextInt();\n \tdouble theta = findTheta(h, m);\n \tSystem.out.println(findC(a, b, theta));\n }\n}", "Main", "private static double findTheta(int h, int m) {\n \tdouble x = 2*Math.PI / 12 * (h+m/60.0);\n\t\tdouble y = 2*Math.PI / 60 * m;\n \treturn Math.abs(x-y);\n }", "findTheta", "{\n \tdouble x = 2*Math.PI / 12 * (h+m/60.0);\n\t\tdouble y = 2*Math.PI / 60 * m;\n \treturn Math.abs(x-y);\n }", "double x = 2*Math.PI / 12 * (h+m/60.0);", "x", "2*Math.PI / 12 * (h+m/60.0)", "2*Math.PI / 12", "2*Math.PI", "2", "Math.PI", "Math", "Math.PI", "12", "(h+m/60.0)", "h", "m/60.0", "m", "60.0", "double y = 2*Math.PI / 60 * m;", "y", "2*Math.PI / 60 * m", "2*Math.PI / 60", "2*Math.PI", "2", "Math.PI", "Math", "Math.PI", "60", "m", "return Math.abs(x-y);", "Math.abs(x-y)", "Math.abs", "Math", "x-y", "x", "y", "int h", "h", "int m", "m", "private static double findC(int a, int b, double theta) {\n \tdouble c2 = a*a+b*b-2*a*b*Math.cos(theta);\n \treturn Math.sqrt(c2);\n }", "findC", "{\n \tdouble c2 = a*a+b*b-2*a*b*Math.cos(theta);\n \treturn Math.sqrt(c2);\n }", "double c2 = a*a+b*b-2*a*b*Math.cos(theta);", "c2", "a*a+b*b-2*a*b*Math.cos(theta)", "a*a+b*b", "a*a", "a", "a", "b*b", "b", "b", "2*a*b*Math.cos(theta)", "b", "2*a*b*Math.cos(theta)", "2", "a", "b", "Math.cos(theta)", "Math.cos", "Math", "theta", "return Math.sqrt(c2);", "Math.sqrt(c2)", "Math.sqrt", "Math", "c2", "int a", "a", "int b", "b", "double theta", "theta", "public static void main(String[] args) {\n \tScanner in = new Scanner(System.in);\n \tint a, b, h, m;\n \ta = in.nextInt();\n \tb = in.nextInt();\n \th = in.nextInt();\n \tm = in.nextInt();\n \tdouble theta = findTheta(h, m);\n \tSystem.out.println(findC(a, b, theta));\n }", "main", "{\n \tScanner in = new Scanner(System.in);\n \tint a, b, h, m;\n \ta = in.nextInt();\n \tb = in.nextInt();\n \th = in.nextInt();\n \tm = in.nextInt();\n \tdouble theta = findTheta(h, m);\n \tSystem.out.println(findC(a, b, theta));\n }", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "int a", "a", "b", "b", "h", "h", "m;", "m", "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 theta = findTheta(h, m);", "theta", "findTheta(h, m)", "findTheta", "h", "m", "System.out.println(findC(a, b, theta))", "System.out.println", "System.out", "System", "System.out", "findC(a, b, theta)", "findC", "a", "b", "theta", "String[] args", "args" ]
import java.util.Scanner; class Main { private static double findTheta(int h, int m) { double x = 2*Math.PI / 12 * (h+m/60.0); double y = 2*Math.PI / 60 * m; return Math.abs(x-y); } private static double findC(int a, int b, double theta) { double c2 = a*a+b*b-2*a*b*Math.cos(theta); return Math.sqrt(c2); } public static void main(String[] args) { Scanner in = new Scanner(System.in); int a, b, h, m; a = in.nextInt(); b = in.nextInt(); h = in.nextInt(); m = in.nextInt(); double theta = findTheta(h, m); System.out.println(findC(a, b, theta)); } }
[ 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, 13, 17, 41, 13, 4, 18, 13, 2, 2, 17, 13, 2, 13, 17, 41, 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 ]
[ [ 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 ], [ 34, 37 ], [ 37, 38 ], [ 37, 39 ], [ 8, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 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 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 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 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 6, 89 ], [ 89, 90 ] ]
[ "import java.util.*; \n\nclass Main{\npublic static void main(String[] args){\n\tScanner sc=new Scanner(System.in);\n double a=sc.nextDouble();\n double b=sc.nextDouble();\n \t\tdouble h=sc.nextDouble();\n \t\tdouble m=sc.nextDouble();\n\t\tdouble mr=Math.toRadians(m*6);\n \t\tdouble hr=Math.toRadians(30*h+m*0.5);\n double sar=Math.abs(mr-hr);\n \t\tdouble ans=Math.sqrt(a*a+b*b-2*a*b*Math.cos(sar));\n\n \tSystem.out.println(ans);\n }\n}", "import java.util.*;", "util.*", "java", "class Main{\npublic static void main(String[] args){\n\tScanner sc=new Scanner(System.in);\n double a=sc.nextDouble();\n double b=sc.nextDouble();\n \t\tdouble h=sc.nextDouble();\n \t\tdouble m=sc.nextDouble();\n\t\tdouble mr=Math.toRadians(m*6);\n \t\tdouble hr=Math.toRadians(30*h+m*0.5);\n double sar=Math.abs(mr-hr);\n \t\tdouble ans=Math.sqrt(a*a+b*b-2*a*b*Math.cos(sar));\n\n \tSystem.out.println(ans);\n }\n}", "Main", "public static void main(String[] args){\n\tScanner sc=new Scanner(System.in);\n double a=sc.nextDouble();\n double b=sc.nextDouble();\n \t\tdouble h=sc.nextDouble();\n \t\tdouble m=sc.nextDouble();\n\t\tdouble mr=Math.toRadians(m*6);\n \t\tdouble hr=Math.toRadians(30*h+m*0.5);\n double sar=Math.abs(mr-hr);\n \t\tdouble ans=Math.sqrt(a*a+b*b-2*a*b*Math.cos(sar));\n\n \tSystem.out.println(ans);\n }", "main", "{\n\tScanner sc=new Scanner(System.in);\n double a=sc.nextDouble();\n double b=sc.nextDouble();\n \t\tdouble h=sc.nextDouble();\n \t\tdouble m=sc.nextDouble();\n\t\tdouble mr=Math.toRadians(m*6);\n \t\tdouble hr=Math.toRadians(30*h+m*0.5);\n double sar=Math.abs(mr-hr);\n \t\tdouble ans=Math.sqrt(a*a+b*b-2*a*b*Math.cos(sar));\n\n \tSystem.out.println(ans);\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 mr=Math.toRadians(m*6);", "mr", "Math.toRadians(m*6)", "Math.toRadians", "Math", "m*6", "m", "6", "double hr=Math.toRadians(30*h+m*0.5);", "hr", "Math.toRadians(30*h+m*0.5)", "Math.toRadians", "Math", "30*h+m*0.5", "30*h", "30", "h", "m*0.5", "m", "0.5", "double sar=Math.abs(mr-hr);", "sar", "Math.abs(mr-hr)", "Math.abs", "Math", "mr-hr", "mr", "hr", "double ans=Math.sqrt(a*a+b*b-2*a*b*Math.cos(sar));", "ans", "Math.sqrt(a*a+b*b-2*a*b*Math.cos(sar))", "Math.sqrt", "Math", "a*a+b*b-2*a*b*Math.cos(sar)", "a*a+b*b", "a*a", "a", "a", "b*b", "b", "b", "2*a*b*Math.cos(sar)", "b", "2*a*b*Math.cos(sar)", "2", "a", "b", "Math.cos(sar)", "Math.cos", "Math", "sar", "System.out.println(ans)", "System.out.println", "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); double a=sc.nextDouble(); double b=sc.nextDouble(); double h=sc.nextDouble(); double m=sc.nextDouble(); double mr=Math.toRadians(m*6); double hr=Math.toRadians(30*h+m*0.5); double sar=Math.abs(mr-hr); double ans=Math.sqrt(a*a+b*b-2*a*b*Math.cos(sar)); System.out.println(ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 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, 17, 41, 13, 2, 2, 2, 17, 13, 17, 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, 2, 2, 13, 18, 13, 13, 17, 4, 13, 13, 12, 13, 30, 41, 13, 17, 14, 13, 30, 0, 13, 20, 0, 13, 20, 30, 0, 13, 20, 0, 13, 20, 41, 13, 17, 42, 2, 40, 13, 17, 30, 4, 13, 4, 18, 13, 4, 18, 13, 23, 13, 12, 13, 30, 4, 18, 13, 13, 23, 13, 12, 13, 30, 4, 18, 13, 13, 23, 13, 12, 13, 30, 4, 18, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 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, 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, 29, 8, 2, 13, 17, 13, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 8, 2, 13, 17, 13, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 8, 2, 13, 17, 17, 2, 17, 4, 13, 2, 13, 2, 13, 17, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 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, 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 ], [ 416, 11 ], [ 416, 12 ], [ 12, 13 ], [ 416, 14 ], [ 14, 15 ], [ 416, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 18, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 18, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 18, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 18, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 18, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 44, 50 ], [ 50, 51 ], [ 50, 52 ], [ 18, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 58, 59 ], [ 58, 60 ], [ 18, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 18, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 80, 82 ], [ 75, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 83, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 92, 98 ], [ 18, 99 ], [ 99, 100 ], [ 99, 101 ], [ 416, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 104, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 114, 115 ], [ 114, 116 ], [ 108, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 121, 122 ], [ 121, 123 ], [ 104, 124 ], [ 124, 125 ], [ 124, 126 ], [ 104, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 128, 131 ], [ 127, 132 ], [ 132, 133 ], [ 133, 134 ], [ 104, 135 ], [ 135, 136 ], [ 136, 137 ], [ 104, 138 ], [ 138, 139 ], [ 139, 140 ], [ 102, 141 ], [ 141, 142 ], [ 416, 143 ], [ 143, 144 ], [ 143, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 146, 149 ], [ 143, 150 ], [ 150, 151 ], [ 416, 152 ], [ 152, 153 ], [ 152, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 155, 158 ], [ 152, 159 ], [ 159, 160 ], [ 416, 161 ], [ 161, 162 ], [ 161, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 164, 167 ], [ 163, 168 ], [ 168, 169 ], [ 169, 170 ], [ 161, 171 ], [ 171, 172 ], [ 416, 173 ], [ 173, 174 ], [ 173, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 416, 180 ], [ 180, 181 ], [ 180, 182 ], [ 182, 183 ], [ 183, 184 ], [ 184, 185 ], [ 185, 186 ], [ 416, 187 ], [ 187, 188 ], [ 187, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 192, 193 ], [ 416, 194 ], [ 194, 195 ], [ 194, 196 ], [ 196, 197 ], [ 197, 198 ], [ 198, 199 ], [ 199, 200 ], [ 416, 201 ], [ 201, 202 ], [ 201, 203 ], [ 203, 204 ], [ 204, 205 ], [ 204, 206 ], [ 203, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 210, 212 ], [ 208, 213 ], [ 213, 214 ], [ 213, 215 ], [ 208, 216 ], [ 216, 217 ], [ 217, 218 ], [ 208, 219 ], [ 220, 220 ], [ 220, 221 ], [ 221, 222 ], [ 222, 223 ], [ 222, 224 ], [ 221, 225 ], [ 225, 226 ], [ 203, 227 ], [ 227, 228 ], [ 201, 229 ], [ 229, 230 ], [ 416, 231 ], [ 231, 232 ], [ 231, 233 ], [ 233, 234 ], [ 234, 235 ], [ 234, 236 ], [ 233, 238 ], [ 238, 239 ], [ 239, 240 ], [ 240, 241 ], [ 240, 242 ], [ 238, 243 ], [ 243, 244 ], [ 243, 245 ], [ 238, 246 ], [ 246, 247 ], [ 247, 248 ], [ 238, 249 ], [ 250, 250 ], [ 250, 251 ], [ 251, 252 ], [ 252, 253 ], [ 252, 254 ], [ 251, 255 ], [ 255, 256 ], [ 233, 257 ], [ 257, 258 ], [ 231, 259 ], [ 259, 260 ], [ 416, 261 ], [ 261, 262 ], [ 261, 263 ], [ 263, 264 ], [ 264, 265 ], [ 265, 266 ], [ 266, 267 ], [ 266, 268 ], [ 265, 269 ], [ 265, 270 ], [ 270, 271 ], [ 270, 272 ], [ 270, 273 ], [ 273, 274 ], [ 273, 275 ], [ 261, 276 ], [ 276, 277 ], [ 261, 278 ], [ 278, 279 ], [ 416, 280 ], [ 280, 281 ], [ 280, 282 ], [ 282, 283 ], [ 283, 284 ], [ 284, 285 ], [ 285, 286 ], [ 285, 287 ], [ 284, 288 ], [ 284, 289 ], [ 289, 290 ], [ 289, 291 ], [ 289, 292 ], [ 292, 293 ], [ 292, 294 ], [ 280, 295 ], [ 295, 296 ], [ 280, 297 ], [ 297, 298 ], [ 416, 299 ], [ 299, 300 ], [ 299, 301 ], [ 301, 302 ], [ 302, 303 ], [ 303, 304 ], [ 304, 305 ], [ 304, 306 ], [ 303, 307 ], [ 303, 308 ], [ 308, 309 ], [ 308, 310 ], [ 310, 311 ], [ 310, 312 ], [ 312, 313 ], [ 312, 314 ], [ 314, 315 ], [ 314, 316 ], [ 299, 317 ], [ 317, 318 ], [ 416, 319 ], [ 319, 320 ], [ 319, 321 ], [ 321, 322 ], [ 319, 323 ], [ 323, 324 ], [ 319, 325 ], [ 325, 326 ], [ 325, 327 ], [ 327, 328 ], [ 328, 329 ], [ 328, 330 ], [ 319, 331 ], [ 331, 332 ], [ 331, 333 ], [ 333, 334 ], [ 334, 335 ], [ 334, 336 ], [ 331, 337 ], [ 337, 338 ], [ 319, 339 ], [ 339, 340 ], [ 339, 341 ], [ 341, 342 ], [ 342, 343 ], [ 343, 344 ], [ 344, 345 ], [ 344, 346 ], [ 343, 347 ], [ 347, 348 ], [ 348, 349 ], [ 349, 350 ], [ 342, 351 ], [ 351, 352 ], [ 352, 353 ], [ 353, 354 ], [ 353, 355 ], [ 355, 356 ], [ 356, 357 ], [ 357, 358 ], [ 352, 359 ], [ 359, 360 ], [ 360, 361 ], [ 360, 362 ], [ 341, 363 ], [ 363, 364 ], [ 364, 365 ], [ 365, 366 ], [ 319, 367 ], [ 367, 368 ], [ 367, 369 ], [ 369, 370 ], [ 370, 371 ], [ 371, 372 ], [ 372, 373 ], [ 371, 374 ], [ 374, 375 ], [ 319, 376 ], [ 376, 377 ], [ 376, 378 ], [ 378, 379 ], [ 379, 380 ], [ 380, 381 ], [ 381, 382 ], [ 380, 383 ], [ 383, 384 ], [ 319, 385 ], [ 385, 386 ], [ 385, 387 ], [ 387, 388 ], [ 388, 389 ], [ 389, 390 ], [ 390, 391 ], [ 389, 392 ], [ 392, 393 ], [ 319, 394 ], [ 394, 395 ], [ 394, 396 ], [ 396, 397 ], [ 397, 398 ], [ 397, 399 ], [ 396, 400 ], [ 400, 401 ], [ 401, 402 ], [ 401, 403 ], [ 403, 404 ], [ 404, 405 ], [ 405, 406 ], [ 400, 407 ], [ 407, 408 ], [ 408, 409 ], [ 408, 410 ], [ 410, 411 ], [ 411, 412 ], [ 396, 413 ], [ 413, 414 ], [ 0, 415 ], [ 415, 416 ], [ 415, 417 ] ]
[ "import java.util.*;import java.io.*;import java.math.*;\npublic class Main\n{\n public static void process()throws IOException\n {\n long a=nl();\n long b=nl();\n long h=nl();\n long m=nl();\n double min=(6.0*m)%360;\n double hour=(30.0*h)%360+(min/12);\n double angle=Math.abs(min-hour);\n if(angle>180)\n angle=360-angle;\n double length=Math.sqrt((a*a)+(b*b)-(2*a*b*Math.cos(angle*Math.PI/180)));\n pn(length);\n }\n\n static AnotherReader sc;\n static PrintWriter out;\n public static void main(String[]args)throws IOException\n {\n boolean oj=true;\n //oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n if(oj){sc=new AnotherReader();out=new PrintWriter(System.out);}\n else{sc=new AnotherReader(100);out=new PrintWriter(\"output.txt\");}\n int t=1;\n // t=ni();\n while(t-->0) {process();}\n out.flush();out.close(); \n }\n\n static void pn(Object o){out.println(o);}\n static void p(Object o){out.print(o);}\n static void pni(Object o){out.println(o);out.flush();}\n static int ni()throws IOException{return sc.nextInt();}\n static long nl()throws IOException{return sc.nextLong();}\n static double nd()throws IOException{return sc.nextDouble();}\n static String nln()throws IOException{return sc.nextLine();}\n static int[] nai(int N)throws IOException{int[]A=new int[N];for(int i=0;i!=N;i++){A[i]=ni();}return A;}\n static long[] nal(int N)throws IOException{long[]A=new long[N];for(int i=0;i!=N;i++){A[i]=nl();}return A;}\n static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}\n\n/////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n static class AnotherReader{BufferedReader br; StringTokenizer st;\n AnotherReader()throws FileNotFoundException{\n br=new BufferedReader(new InputStreamReader(System.in));}\n AnotherReader(int a)throws FileNotFoundException{\n br = new BufferedReader(new FileReader(\"input.txt\"));}\n String next()throws IOException{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); } int nextInt() throws IOException{\n return Integer.parseInt(next());}\n long nextLong() throws IOException\n {return Long.parseLong(next());}\n double nextDouble()throws IOException { return Double.parseDouble(next()); }\n String nextLine() throws IOException{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}}\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "import java.math.*;", "math.*", "java", "public class Main\n{\n public static void process()throws IOException\n {\n long a=nl();\n long b=nl();\n long h=nl();\n long m=nl();\n double min=(6.0*m)%360;\n double hour=(30.0*h)%360+(min/12);\n double angle=Math.abs(min-hour);\n if(angle>180)\n angle=360-angle;\n double length=Math.sqrt((a*a)+(b*b)-(2*a*b*Math.cos(angle*Math.PI/180)));\n pn(length);\n }\n\n static AnotherReader sc;\n static PrintWriter out;\n public static void main(String[]args)throws IOException\n {\n boolean oj=true;\n //oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n if(oj){sc=new AnotherReader();out=new PrintWriter(System.out);}\n else{sc=new AnotherReader(100);out=new PrintWriter(\"output.txt\");}\n int t=1;\n // t=ni();\n while(t-->0) {process();}\n out.flush();out.close(); \n }\n\n static void pn(Object o){out.println(o);}\n static void p(Object o){out.print(o);}\n static void pni(Object o){out.println(o);out.flush();}\n static int ni()throws IOException{return sc.nextInt();}\n static long nl()throws IOException{return sc.nextLong();}\n static double nd()throws IOException{return sc.nextDouble();}\n static String nln()throws IOException{return sc.nextLine();}\n static int[] nai(int N)throws IOException{int[]A=new int[N];for(int i=0;i!=N;i++){A[i]=ni();}return A;}\n static long[] nal(int N)throws IOException{long[]A=new long[N];for(int i=0;i!=N;i++){A[i]=nl();}return A;}\n static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}\n\n/////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n static class AnotherReader{BufferedReader br; StringTokenizer st;\n AnotherReader()throws FileNotFoundException{\n br=new BufferedReader(new InputStreamReader(System.in));}\n AnotherReader(int a)throws FileNotFoundException{\n br = new BufferedReader(new FileReader(\"input.txt\"));}\n String next()throws IOException{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); } int nextInt() throws IOException{\n return Integer.parseInt(next());}\n long nextLong() throws IOException\n {return Long.parseLong(next());}\n double nextDouble()throws IOException { return Double.parseDouble(next()); }\n String nextLine() throws IOException{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}}\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}", "Main", "static AnotherReader sc;", "sc", "static PrintWriter out;", "out", "public static void process()throws IOException\n {\n long a=nl();\n long b=nl();\n long h=nl();\n long m=nl();\n double min=(6.0*m)%360;\n double hour=(30.0*h)%360+(min/12);\n double angle=Math.abs(min-hour);\n if(angle>180)\n angle=360-angle;\n double length=Math.sqrt((a*a)+(b*b)-(2*a*b*Math.cos(angle*Math.PI/180)));\n pn(length);\n }", "process", "{\n long a=nl();\n long b=nl();\n long h=nl();\n long m=nl();\n double min=(6.0*m)%360;\n double hour=(30.0*h)%360+(min/12);\n double angle=Math.abs(min-hour);\n if(angle>180)\n angle=360-angle;\n double length=Math.sqrt((a*a)+(b*b)-(2*a*b*Math.cos(angle*Math.PI/180)));\n pn(length);\n }", "long a=nl();", "a", "nl()", "nl", "long b=nl();", "b", "nl()", "nl", "long h=nl();", "h", "nl()", "nl", "long m=nl();", "m", "nl()", "nl", "double min=(6.0*m)%360;", "min", "(6.0*m)%360", "(6.0*m)", "6.0", "m", "360", "double hour=(30.0*h)%360+(min/12);", "hour", "(30.0*h)%360+(min/12)", "(30.0*h)%360", "(30.0*h)", "30.0", "h", "360", "(min/12)", "min", "12", "double angle=Math.abs(min-hour);", "angle", "Math.abs(min-hour)", "Math.abs", "Math", "min-hour", "min", "hour", "if(angle>180)\n angle=360-angle;", "angle>180", "angle", "180", "angle=360-angle", "angle", "360-angle", "360", "angle", "double length=Math.sqrt((a*a)+(b*b)-(2*a*b*Math.cos(angle*Math.PI/180)));", "length", "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", "pn(length)", "pn", "length", "public static void main(String[]args)throws IOException\n {\n boolean oj=true;\n //oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n if(oj){sc=new AnotherReader();out=new PrintWriter(System.out);}\n else{sc=new AnotherReader(100);out=new PrintWriter(\"output.txt\");}\n int t=1;\n // t=ni();\n while(t-->0) {process();}\n out.flush();out.close(); \n }", "main", "{\n boolean oj=true;\n //oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n if(oj){sc=new AnotherReader();out=new PrintWriter(System.out);}\n else{sc=new AnotherReader(100);out=new PrintWriter(\"output.txt\");}\n int t=1;\n // t=ni();\n while(t-->0) {process();}\n out.flush();out.close(); \n }", "boolean oj=true;", "oj", "true", "if(oj){sc=new AnotherReader();out=new PrintWriter(System.out);}\n else{sc=new AnotherReader(100);out=new PrintWriter(\"output.txt\");}", "oj", "{sc=new AnotherReader();out=new PrintWriter(System.out);}", "sc=new AnotherReader()", "sc", "new AnotherReader()", "out=new PrintWriter(System.out)", "out", "new PrintWriter(System.out)", "{sc=new AnotherReader(100);out=new PrintWriter(\"output.txt\");}", "sc=new AnotherReader(100)", "sc", "new AnotherReader(100)", "out=new PrintWriter(\"output.txt\")", "out", "new PrintWriter(\"output.txt\")", "int t=1;", "t", "1", "while(t-->0) {process();}", "t-->0", "t--", "t", "0", "{process();}", "process()", "process", "out.flush()", "out.flush", "out", "out.close()", "out.close", "out", "String[]args", "args", "static void pn(Object o){out.println(o);}", "pn", "{out.println(o);}", "out.println(o)", "out.println", "out", "o", "Object o", "o", "static void p(Object o){out.print(o);}", "p", "{out.print(o);}", "out.print(o)", "out.print", "out", "o", "Object o", "o", "static void pni(Object o){out.println(o);out.flush();}", "pni", "{out.println(o);out.flush();}", "out.println(o)", "out.println", "out", "o", "out.flush()", "out.flush", "out", "Object o", "o", "static int ni()throws IOException{return sc.nextInt();}", "ni", "{return sc.nextInt();}", "return sc.nextInt();", "sc.nextInt()", "sc.nextInt", "sc", "static long nl()throws IOException{return sc.nextLong();}", "nl", "{return sc.nextLong();}", "return sc.nextLong();", "sc.nextLong()", "sc.nextLong", "sc", "static double nd()throws IOException{return sc.nextDouble();}", "nd", "{return sc.nextDouble();}", "return sc.nextDouble();", "sc.nextDouble()", "sc.nextDouble", "sc", "static String nln()throws IOException{return sc.nextLine();}", "nln", "{return sc.nextLine();}", "return sc.nextLine();", "sc.nextLine()", "sc.nextLine", "sc", "static int[] nai(int N)throws IOException{int[]A=new int[N];for(int i=0;i!=N;i++){A[i]=ni();}return A;}", "nai", "{int[]A=new int[N];for(int i=0;i!=N;i++){A[i]=ni();}return A;}", "int[]A=new int[N];", "A", "new int[N]", "N", "for(int i=0;i!=N;i++){A[i]=ni();}", "int i=0;", "int i=0;", "i", "0", "i!=N", "i", "N", "i++", "i++", "i", "{A[i]=ni();}", "{A[i]=ni();}", "A[i]=ni()", "A[i]", "A", "i", "ni()", "ni", "return A;", "A", "int N", "N", "static long[] nal(int N)throws IOException{long[]A=new long[N];for(int i=0;i!=N;i++){A[i]=nl();}return A;}", "nal", "{long[]A=new long[N];for(int i=0;i!=N;i++){A[i]=nl();}return A;}", "long[]A=new long[N];", "A", "new long[N]", "N", "for(int i=0;i!=N;i++){A[i]=nl();}", "int i=0;", "int i=0;", "i", "0", "i!=N", "i", "N", "i++", "i++", "i", "{A[i]=nl();}", "{A[i]=nl();}", "A[i]=nl()", "A[i]", "A", "i", "nl()", "nl", "return A;", "A", "int N", "N", "static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}", "gcd", "{return (b==0)?a:gcd(b,a%b);}", "return (b==0)?a:gcd(b,a%b);", "(b==0)?a:gcd(b,a%b)", "(b==0)", "b", "0", "a", "gcd(b,a%b)", "gcd", "b", "a%b", "a", "b", "long a", "a", "long b", "b", "static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}", "gcd", "{return (b==0)?a:gcd(b,a%b);}", "return (b==0)?a:gcd(b,a%b);", "(b==0)?a:gcd(b,a%b)", "(b==0)", "b", "0", "a", "gcd(b,a%b)", "gcd", "b", "a%b", "a", "b", "int a", "a", "int b", "b", "static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}", "bit", "{return (n==0)?0:(1+bit(n&(n-1)));}", "return (n==0)?0:(1+bit(n&(n-1)));", "(n==0)?0:(1+bit(n&(n-1)))", "(n==0)", "n", "0", "0", "(1+bit(n&(n-1)))", "1", "bit(n&(n-1))", "bit", "n&(n-1)", "n", "(n-1)", "n", "1", "long n", "n", "static class AnotherReader{BufferedReader br; StringTokenizer st;\n AnotherReader()throws FileNotFoundException{\n br=new BufferedReader(new InputStreamReader(System.in));}\n AnotherReader(int a)throws FileNotFoundException{\n br = new BufferedReader(new FileReader(\"input.txt\"));}\n String next()throws IOException{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); } int nextInt() throws IOException{\n return Integer.parseInt(next());}\n long nextLong() throws IOException\n {return Long.parseLong(next());}\n double nextDouble()throws IOException { return Double.parseDouble(next()); }\n String nextLine() throws IOException{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}}", "AnotherReader", "BufferedReader br;", "br", "StringTokenizer st;", "st", "AnotherReader()throws FileNotFoundException{\n br=new BufferedReader(new InputStreamReader(System.in));}", "AnotherReader", "{\n br=new BufferedReader(new InputStreamReader(System.in));}", "br=new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "AnotherReader(int a)throws FileNotFoundException{\n br = new BufferedReader(new FileReader(\"input.txt\"));}", "AnotherReader", "{\n br = new BufferedReader(new FileReader(\"input.txt\"));}", "br = new BufferedReader(new FileReader(\"input.txt\"))", "br", "new BufferedReader(new FileReader(\"input.txt\"))", "int a", "a", "String next()throws IOException{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); }", "next", "{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); }", "while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}", "try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }", "catch (IOException e){ e.printStackTrace(); }", "IOException e", "{ e.printStackTrace(); }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n st = new StringTokenizer(br.readLine());}", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt() throws IOException{\n return Integer.parseInt(next());}", "nextInt", "{\n return Integer.parseInt(next());}", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong() throws IOException\n {return Long.parseLong(next());}", "nextLong", "{return Long.parseLong(next());}", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nextDouble()throws IOException { return Double.parseDouble(next()); }", "nextDouble", "{ return Double.parseDouble(next()); }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "String nextLine() throws IOException{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}", "nextLine", "{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}", "String str = \"\";", "str", "\"\"", "try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();}", "catch (IOException e){\n e.printStackTrace();}", "IOException e", "{\n e.printStackTrace();}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n str = br.readLine();}", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "public class Main\n{\n public static void process()throws IOException\n {\n long a=nl();\n long b=nl();\n long h=nl();\n long m=nl();\n double min=(6.0*m)%360;\n double hour=(30.0*h)%360+(min/12);\n double angle=Math.abs(min-hour);\n if(angle>180)\n angle=360-angle;\n double length=Math.sqrt((a*a)+(b*b)-(2*a*b*Math.cos(angle*Math.PI/180)));\n pn(length);\n }\n\n static AnotherReader sc;\n static PrintWriter out;\n public static void main(String[]args)throws IOException\n {\n boolean oj=true;\n //oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n if(oj){sc=new AnotherReader();out=new PrintWriter(System.out);}\n else{sc=new AnotherReader(100);out=new PrintWriter(\"output.txt\");}\n int t=1;\n // t=ni();\n while(t-->0) {process();}\n out.flush();out.close(); \n }\n\n static void pn(Object o){out.println(o);}\n static void p(Object o){out.print(o);}\n static void pni(Object o){out.println(o);out.flush();}\n static int ni()throws IOException{return sc.nextInt();}\n static long nl()throws IOException{return sc.nextLong();}\n static double nd()throws IOException{return sc.nextDouble();}\n static String nln()throws IOException{return sc.nextLine();}\n static int[] nai(int N)throws IOException{int[]A=new int[N];for(int i=0;i!=N;i++){A[i]=ni();}return A;}\n static long[] nal(int N)throws IOException{long[]A=new long[N];for(int i=0;i!=N;i++){A[i]=nl();}return A;}\n static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}\n\n/////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n static class AnotherReader{BufferedReader br; StringTokenizer st;\n AnotherReader()throws FileNotFoundException{\n br=new BufferedReader(new InputStreamReader(System.in));}\n AnotherReader(int a)throws FileNotFoundException{\n br = new BufferedReader(new FileReader(\"input.txt\"));}\n String next()throws IOException{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); } int nextInt() throws IOException{\n return Integer.parseInt(next());}\n long nextLong() throws IOException\n {return Long.parseLong(next());}\n double nextDouble()throws IOException { return Double.parseDouble(next()); }\n String nextLine() throws IOException{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}}\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}", "public class Main\n{\n public static void process()throws IOException\n {\n long a=nl();\n long b=nl();\n long h=nl();\n long m=nl();\n double min=(6.0*m)%360;\n double hour=(30.0*h)%360+(min/12);\n double angle=Math.abs(min-hour);\n if(angle>180)\n angle=360-angle;\n double length=Math.sqrt((a*a)+(b*b)-(2*a*b*Math.cos(angle*Math.PI/180)));\n pn(length);\n }\n\n static AnotherReader sc;\n static PrintWriter out;\n public static void main(String[]args)throws IOException\n {\n boolean oj=true;\n //oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n if(oj){sc=new AnotherReader();out=new PrintWriter(System.out);}\n else{sc=new AnotherReader(100);out=new PrintWriter(\"output.txt\");}\n int t=1;\n // t=ni();\n while(t-->0) {process();}\n out.flush();out.close(); \n }\n\n static void pn(Object o){out.println(o);}\n static void p(Object o){out.print(o);}\n static void pni(Object o){out.println(o);out.flush();}\n static int ni()throws IOException{return sc.nextInt();}\n static long nl()throws IOException{return sc.nextLong();}\n static double nd()throws IOException{return sc.nextDouble();}\n static String nln()throws IOException{return sc.nextLine();}\n static int[] nai(int N)throws IOException{int[]A=new int[N];for(int i=0;i!=N;i++){A[i]=ni();}return A;}\n static long[] nal(int N)throws IOException{long[]A=new long[N];for(int i=0;i!=N;i++){A[i]=nl();}return A;}\n static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}\n\n/////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n static class AnotherReader{BufferedReader br; StringTokenizer st;\n AnotherReader()throws FileNotFoundException{\n br=new BufferedReader(new InputStreamReader(System.in));}\n AnotherReader(int a)throws FileNotFoundException{\n br = new BufferedReader(new FileReader(\"input.txt\"));}\n String next()throws IOException{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); } int nextInt() throws IOException{\n return Integer.parseInt(next());}\n long nextLong() throws IOException\n {return Long.parseLong(next());}\n double nextDouble()throws IOException { return Double.parseDouble(next()); }\n String nextLine() throws IOException{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}}\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}", "Main" ]
import java.util.*;import java.io.*;import java.math.*; public class Main { public static void process()throws IOException { long a=nl(); long b=nl(); long h=nl(); long m=nl(); double min=(6.0*m)%360; double hour=(30.0*h)%360+(min/12); double angle=Math.abs(min-hour); if(angle>180) angle=360-angle; double length=Math.sqrt((a*a)+(b*b)-(2*a*b*Math.cos(angle*Math.PI/180))); pn(length); } static AnotherReader sc; static PrintWriter out; public static void main(String[]args)throws IOException { boolean oj=true; //oj = System.getProperty("ONLINE_JUDGE") != null; if(oj){sc=new AnotherReader();out=new PrintWriter(System.out);} else{sc=new AnotherReader(100);out=new PrintWriter("output.txt");} int t=1; // t=ni(); while(t-->0) {process();} out.flush();out.close(); } static void pn(Object o){out.println(o);} static void p(Object o){out.print(o);} static void pni(Object o){out.println(o);out.flush();} static int ni()throws IOException{return sc.nextInt();} static long nl()throws IOException{return sc.nextLong();} static double nd()throws IOException{return sc.nextDouble();} static String nln()throws IOException{return sc.nextLine();} static int[] nai(int N)throws IOException{int[]A=new int[N];for(int i=0;i!=N;i++){A[i]=ni();}return A;} static long[] nal(int N)throws IOException{long[]A=new long[N];for(int i=0;i!=N;i++){A[i]=nl();}return A;} static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);} static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);} static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));} ///////////////////////////////////////////////////////////////////////////////////////////////////////// static class AnotherReader{BufferedReader br; StringTokenizer st; AnotherReader()throws FileNotFoundException{ br=new BufferedReader(new InputStreamReader(System.in));} AnotherReader(int a)throws FileNotFoundException{ br = new BufferedReader(new FileReader("input.txt"));} String next()throws IOException{ while (st == null || !st.hasMoreElements()) {try{ st = new StringTokenizer(br.readLine());} catch (IOException e){ e.printStackTrace(); }} return st.nextToken(); } int nextInt() throws IOException{ return Integer.parseInt(next());} long nextLong() throws IOException {return Long.parseLong(next());} double nextDouble()throws IOException { return Double.parseDouble(next()); } String nextLine() throws IOException{ 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, 17, 41, 13, 0, 13, 2, 2, 2, 13, 2, 13, 17, 17, 2, 13, 17, 14, 2, 13, 17, 30, 0, 13, 2, 17, 13, 0, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 2, 13, 2, 18, 13, 13, 17, 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 ], [ 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 ], [ 8, 35 ], [ 35, 36 ], [ 8, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 40, 46 ], [ 39, 47 ], [ 47, 48 ], [ 47, 49 ], [ 8, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 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 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 8, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 8, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 6, 98 ], [ 98, 99 ], [ 0, 100 ], [ 100, 101 ], [ 100, 102 ] ]
[ "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.nextDouble();\n double b = sc.nextDouble();\n double h = sc.nextDouble();\n double m = sc.nextDouble();\n double kaku = 0;\n double ans;\n kaku = ((h + m / 60) * 30 ) - m * 6;\n if(kaku > 180){\n kaku = 360 - kaku; \n }\n \n ans = a * a + b * b - 2 * a * b * Math.cos(kaku*(Math.PI/180));\n ans = Math.sqrt(ans);\n \n \tSystem.out.println(ans);\n \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.nextDouble();\n double b = sc.nextDouble();\n double h = sc.nextDouble();\n double m = sc.nextDouble();\n double kaku = 0;\n double ans;\n kaku = ((h + m / 60) * 30 ) - m * 6;\n if(kaku > 180){\n kaku = 360 - kaku; \n }\n \n ans = a * a + b * b - 2 * a * b * Math.cos(kaku*(Math.PI/180));\n ans = Math.sqrt(ans);\n \n \tSystem.out.println(ans);\n \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.nextDouble();\n double b = sc.nextDouble();\n double h = sc.nextDouble();\n double m = sc.nextDouble();\n double kaku = 0;\n double ans;\n kaku = ((h + m / 60) * 30 ) - m * 6;\n if(kaku > 180){\n kaku = 360 - kaku; \n }\n \n ans = a * a + b * b - 2 * a * b * Math.cos(kaku*(Math.PI/180));\n ans = Math.sqrt(ans);\n \n \tSystem.out.println(ans);\n \n }", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\t// ๆ•ดๆ•ฐใฎๅ…ฅๅŠ›\n\t\tdouble a = sc.nextDouble();\n double b = sc.nextDouble();\n double h = sc.nextDouble();\n double m = sc.nextDouble();\n double kaku = 0;\n double ans;\n kaku = ((h + m / 60) * 30 ) - m * 6;\n if(kaku > 180){\n kaku = 360 - kaku; \n }\n \n ans = a * a + b * b - 2 * a * b * Math.cos(kaku*(Math.PI/180));\n ans = Math.sqrt(ans);\n \n \tSystem.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 kaku = 0;", "kaku", "0", "double ans;", "ans", "kaku = ((h + m / 60) * 30 ) - m * 6", "kaku", "((h + m / 60) * 30 ) - m * 6", "((h + m / 60) * 30 )", "(h + m / 60)", "h", "m / 60", "m", "60", "30", "m * 6", "m", "6", "if(kaku > 180){\n kaku = 360 - kaku; \n }", "kaku > 180", "kaku", "180", "{\n kaku = 360 - kaku; \n }", "kaku = 360 - kaku", "kaku", "360 - kaku", "360", "kaku", "ans = a * a + b * b - 2 * a * b * Math.cos(kaku*(Math.PI/180))", "ans", "a * a + b * b - 2 * a * b * Math.cos(kaku*(Math.PI/180))", "a * a + b * b", "a * a", "a", "a", "b * b", "b", "b", "2 * a * b * Math.cos(kaku*(Math.PI/180))", "b", "2 * a * b * Math.cos(kaku*(Math.PI/180))", "2", "a", "b", "Math.cos(kaku*(Math.PI/180))", "Math.cos", "Math", "kaku*(Math.PI/180)", "kaku", "(Math.PI/180)", "Math.PI", "Math", "Math.PI", "180", "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\t\tScanner sc = new Scanner(System.in);\n\t\t// ๆ•ดๆ•ฐใฎๅ…ฅๅŠ›\n\t\tdouble a = sc.nextDouble();\n double b = sc.nextDouble();\n double h = sc.nextDouble();\n double m = sc.nextDouble();\n double kaku = 0;\n double ans;\n kaku = ((h + m / 60) * 30 ) - m * 6;\n if(kaku > 180){\n kaku = 360 - kaku; \n }\n \n ans = a * a + b * b - 2 * a * b * Math.cos(kaku*(Math.PI/180));\n ans = Math.sqrt(ans);\n \n \tSystem.out.println(ans);\n \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.nextDouble();\n double b = sc.nextDouble();\n double h = sc.nextDouble();\n double m = sc.nextDouble();\n double kaku = 0;\n double ans;\n kaku = ((h + m / 60) * 30 ) - m * 6;\n if(kaku > 180){\n kaku = 360 - kaku; \n }\n \n ans = a * a + b * b - 2 * a * b * Math.cos(kaku*(Math.PI/180));\n ans = Math.sqrt(ans);\n \n \tSystem.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 kaku = 0; double ans; kaku = ((h + m / 60) * 30 ) - m * 6; if(kaku > 180){ kaku = 360 - kaku; } ans = a * a + b * b - 2 * a * b * Math.cos(kaku*(Math.PI/180)); 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, 17, 41, 13, 17, 0, 13, 2, 2, 17, 13, 2, 17, 13, 0, 13, 2, 17, 13, 14, 2, 13, 13, 30, 0, 13, 2, 13, 13, 30, 0, 13, 2, 13, 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, 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 ], [ 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 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 52, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 8, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 8, 77 ], [ 77, 78 ], [ 77, 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 ], [ 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;\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\tint a = sc.nextInt();\n \t\tint b = sc.nextInt();\n \t\tdouble c = sc.nextDouble();\n \t\tdouble d = sc.nextDouble();\n \t\tdouble kaku = 0;\n \t\tdouble answer = 0;\n \t\t\n \t\t\n \t\tc=30*c+0.5*d;\n \t\td=6*d;\n \t\tif(c>d) {\n \t\t\tkaku=c-d;\n \t\t}else {\n \t\t\tkaku=d-c;\n \t\t}\n \t\tkaku=Math.cos(Math.toRadians(kaku));\n \t\t\n \t\tanswer=a*a+b*b-2*a*b*kaku;\n \t\tSystem.out.println(Math.sqrt(answer));\n \t\t\n \t}\n }", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n \tpublic static void main(String[] args){\n \t\tScanner sc = new Scanner(System.in);\n \t\t// ๆ•ดๆ•ฐใฎๅ…ฅๅŠ›\n \t\tint a = sc.nextInt();\n \t\tint b = sc.nextInt();\n \t\tdouble c = sc.nextDouble();\n \t\tdouble d = sc.nextDouble();\n \t\tdouble kaku = 0;\n \t\tdouble answer = 0;\n \t\t\n \t\t\n \t\tc=30*c+0.5*d;\n \t\td=6*d;\n \t\tif(c>d) {\n \t\t\tkaku=c-d;\n \t\t}else {\n \t\t\tkaku=d-c;\n \t\t}\n \t\tkaku=Math.cos(Math.toRadians(kaku));\n \t\t\n \t\tanswer=a*a+b*b-2*a*b*kaku;\n \t\tSystem.out.println(Math.sqrt(answer));\n \t\t\n \t}\n }", "Main", "public static void main(String[] args){\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\tdouble c = sc.nextDouble();\n \t\tdouble d = sc.nextDouble();\n \t\tdouble kaku = 0;\n \t\tdouble answer = 0;\n \t\t\n \t\t\n \t\tc=30*c+0.5*d;\n \t\td=6*d;\n \t\tif(c>d) {\n \t\t\tkaku=c-d;\n \t\t}else {\n \t\t\tkaku=d-c;\n \t\t}\n \t\tkaku=Math.cos(Math.toRadians(kaku));\n \t\t\n \t\tanswer=a*a+b*b-2*a*b*kaku;\n \t\tSystem.out.println(Math.sqrt(answer));\n \t\t\n \t}", "main", "{\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\tdouble c = sc.nextDouble();\n \t\tdouble d = sc.nextDouble();\n \t\tdouble kaku = 0;\n \t\tdouble answer = 0;\n \t\t\n \t\t\n \t\tc=30*c+0.5*d;\n \t\td=6*d;\n \t\tif(c>d) {\n \t\t\tkaku=c-d;\n \t\t}else {\n \t\t\tkaku=d-c;\n \t\t}\n \t\tkaku=Math.cos(Math.toRadians(kaku));\n \t\t\n \t\tanswer=a*a+b*b-2*a*b*kaku;\n \t\tSystem.out.println(Math.sqrt(answer));\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", "double c = sc.nextDouble();", "c", "sc.nextDouble()", "sc.nextDouble", "sc", "double d = sc.nextDouble();", "d", "sc.nextDouble()", "sc.nextDouble", "sc", "double kaku = 0;", "kaku", "0", "double answer = 0;", "answer", "0", "c=30*c+0.5*d", "c", "30*c+0.5*d", "30*c", "30", "c", "0.5*d", "0.5", "d", "d=6*d", "d", "6*d", "6", "d", "if(c>d) {\n \t\t\tkaku=c-d;\n \t\t}else {\n \t\t\tkaku=d-c;\n \t\t}", "c>d", "c", "d", "{\n \t\t\tkaku=c-d;\n \t\t}", "kaku=c-d", "kaku", "c-d", "c", "d", "{\n \t\t\tkaku=d-c;\n \t\t}", "kaku=d-c", "kaku", "d-c", "d", "c", "kaku=Math.cos(Math.toRadians(kaku))", "kaku", "Math.cos(Math.toRadians(kaku))", "Math.cos", "Math", "Math.toRadians(kaku)", "Math.toRadians", "Math", "kaku", "answer=a*a+b*b-2*a*b*kaku", "answer", "a*a+b*b-2*a*b*kaku", "a*a+b*b", "a*a", "a", "a", "b*b", "b", "b", "2*a*b*kaku", "b", "2*a*b*kaku", "2", "a", "b", "kaku", "System.out.println(Math.sqrt(answer))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(answer)", "Math.sqrt", "Math", "answer", "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\tint a = sc.nextInt();\n \t\tint b = sc.nextInt();\n \t\tdouble c = sc.nextDouble();\n \t\tdouble d = sc.nextDouble();\n \t\tdouble kaku = 0;\n \t\tdouble answer = 0;\n \t\t\n \t\t\n \t\tc=30*c+0.5*d;\n \t\td=6*d;\n \t\tif(c>d) {\n \t\t\tkaku=c-d;\n \t\t}else {\n \t\t\tkaku=d-c;\n \t\t}\n \t\tkaku=Math.cos(Math.toRadians(kaku));\n \t\t\n \t\tanswer=a*a+b*b-2*a*b*kaku;\n \t\tSystem.out.println(Math.sqrt(answer));\n \t\t\n \t}\n }", "public class Main {\n \tpublic static void main(String[] args){\n \t\tScanner sc = new Scanner(System.in);\n \t\t// ๆ•ดๆ•ฐใฎๅ…ฅๅŠ›\n \t\tint a = sc.nextInt();\n \t\tint b = sc.nextInt();\n \t\tdouble c = sc.nextDouble();\n \t\tdouble d = sc.nextDouble();\n \t\tdouble kaku = 0;\n \t\tdouble answer = 0;\n \t\t\n \t\t\n \t\tc=30*c+0.5*d;\n \t\td=6*d;\n \t\tif(c>d) {\n \t\t\tkaku=c-d;\n \t\t}else {\n \t\t\tkaku=d-c;\n \t\t}\n \t\tkaku=Math.cos(Math.toRadians(kaku));\n \t\t\n \t\tanswer=a*a+b*b-2*a*b*kaku;\n \t\tSystem.out.println(Math.sqrt(answer));\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(); double c = sc.nextDouble(); double d = sc.nextDouble(); double kaku = 0; double answer = 0; c=30*c+0.5*d; d=6*d; if(c>d) { kaku=c-d; }else { kaku=d-c; } kaku=Math.cos(Math.toRadians(kaku)); answer=a*a+b*b-2*a*b*kaku; System.out.println(Math.sqrt(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, 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, 14, 2, 13, 13, 30, 14, 2, 13, 13, 30, 4, 18, 18, 13, 13, 2, 13, 13, 29, 14, 2, 13, 13, 30, 4, 18, 18, 13, 13, 2, 13, 13, 29, 14, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 29, 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 ], [ 165, 5 ], [ 165, 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 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 94, 95 ], [ 94, 96 ], [ 88, 97 ], [ 84, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 108, 109 ], [ 108, 110 ], [ 102, 111 ], [ 98, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 116, 123 ], [ 8, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 129, 130 ], [ 130, 131 ], [ 129, 132 ], [ 8, 133 ], [ 133, 134 ], [ 133, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 136, 140 ], [ 140, 141 ], [ 140, 142 ], [ 135, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 144, 148 ], [ 143, 149 ], [ 8, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 153, 154 ], [ 152, 155 ], [ 8, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 156, 161 ], [ 6, 162 ], [ 162, 163 ], [ 0, 164 ], [ 164, 165 ], [ 164, 166 ] ]
[ "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\t\tif(num1 == num2) {\n\t\t\tif(a > b) {\n\t\t\t\tSystem.out.println(a-b);\n\t\t\t\treturn;\n\t\t\t} else if (b > a) {\n\t\t\t\tSystem.out.println(b-a);\n\t\t\t\treturn;\n\t\t\t} else if (a == b) {\n\t\t\t\tSystem.out.println(0);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\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\t\tif(num1 == num2) {\n\t\t\tif(a > b) {\n\t\t\t\tSystem.out.println(a-b);\n\t\t\t\treturn;\n\t\t\t} else if (b > a) {\n\t\t\t\tSystem.out.println(b-a);\n\t\t\t\treturn;\n\t\t\t} else if (a == b) {\n\t\t\t\tSystem.out.println(0);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\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\t\tif(num1 == num2) {\n\t\t\tif(a > b) {\n\t\t\t\tSystem.out.println(a-b);\n\t\t\t\treturn;\n\t\t\t} else if (b > a) {\n\t\t\t\tSystem.out.println(b-a);\n\t\t\t\treturn;\n\t\t\t} else if (a == b) {\n\t\t\t\tSystem.out.println(0);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\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\t\tif(num1 == num2) {\n\t\t\tif(a > b) {\n\t\t\t\tSystem.out.println(a-b);\n\t\t\t\treturn;\n\t\t\t} else if (b > a) {\n\t\t\t\tSystem.out.println(b-a);\n\t\t\t\treturn;\n\t\t\t} else if (a == b) {\n\t\t\t\tSystem.out.println(0);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\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", "if(num1 == num2) {\n\t\t\tif(a > b) {\n\t\t\t\tSystem.out.println(a-b);\n\t\t\t\treturn;\n\t\t\t} else if (b > a) {\n\t\t\t\tSystem.out.println(b-a);\n\t\t\t\treturn;\n\t\t\t} else if (a == b) {\n\t\t\t\tSystem.out.println(0);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}", "num1 == num2", "num1", "num2", "{\n\t\t\tif(a > b) {\n\t\t\t\tSystem.out.println(a-b);\n\t\t\t\treturn;\n\t\t\t} else if (b > a) {\n\t\t\t\tSystem.out.println(b-a);\n\t\t\t\treturn;\n\t\t\t} else if (a == b) {\n\t\t\t\tSystem.out.println(0);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}", "if(a > b) {\n\t\t\t\tSystem.out.println(a-b);\n\t\t\t\treturn;\n\t\t\t} else if (b > a) {\n\t\t\t\tSystem.out.println(b-a);\n\t\t\t\treturn;\n\t\t\t} else if (a == b) {\n\t\t\t\tSystem.out.println(0);\n\t\t\t\treturn;\n\t\t\t}", "a > b", "a", "b", "{\n\t\t\t\tSystem.out.println(a-b);\n\t\t\t\treturn;\n\t\t\t}", "System.out.println(a-b)", "System.out.println", "System.out", "System", "System.out", "a-b", "a", "b", "return;", "if (b > a) {\n\t\t\t\tSystem.out.println(b-a);\n\t\t\t\treturn;\n\t\t\t} else if (a == b) {\n\t\t\t\tSystem.out.println(0);\n\t\t\t\treturn;\n\t\t\t}", "b > a", "b", "a", "{\n\t\t\t\tSystem.out.println(b-a);\n\t\t\t\treturn;\n\t\t\t}", "System.out.println(b-a)", "System.out.println", "System.out", "System", "System.out", "b-a", "b", "a", "return;", "if (a == b) {\n\t\t\t\tSystem.out.println(0);\n\t\t\t\treturn;\n\t\t\t}", "a == b", "a", "b", "{\n\t\t\t\tSystem.out.println(0);\n\t\t\t\treturn;\n\t\t\t}", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "return;", "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\t\tif(num1 == num2) {\n\t\t\tif(a > b) {\n\t\t\t\tSystem.out.println(a-b);\n\t\t\t\treturn;\n\t\t\t} else if (b > a) {\n\t\t\t\tSystem.out.println(b-a);\n\t\t\t\treturn;\n\t\t\t} else if (a == b) {\n\t\t\t\tSystem.out.println(0);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\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\t\tif(num1 == num2) {\n\t\t\tif(a > b) {\n\t\t\t\tSystem.out.println(a-b);\n\t\t\t\treturn;\n\t\t\t} else if (b > a) {\n\t\t\t\tSystem.out.println(b-a);\n\t\t\t\treturn;\n\t\t\t} else if (a == b) {\n\t\t\t\tSystem.out.println(0);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\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; } if(num1 == num2) { if(a > b) { System.out.println(a-b); return; } else if (b > a) { System.out.println(b-a); return; } else if (a == b) { System.out.println(0); return; } } 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, 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, 13, 17, 17, 41, 13, 2, 2, 13, 17, 17, 41, 13, 4, 18, 13, 2, 13, 13, 41, 13, 4, 18, 13, 13, 41, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 108, 11 ], [ 108, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 14, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 14, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 14, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 14, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 14, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 64, 66 ], [ 14, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 14, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 14, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 89, 90 ], [ 89, 91 ], [ 84, 92 ], [ 94, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 94, 98 ], [ 14, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 12, 105 ], [ 105, 106 ], [ 0, 107 ], [ 107, 108 ], [ 107, 109 ] ]
[ "import java.util.*;\nimport java.lang.*;\nimport java.io.*;\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 int min = h * 60 + m; //็ตŒ้Žๆ™‚้–“๏ผˆmin๏ผ‰\n double degLong = (min * 6) % 360;\n double degShort = (min * 0.5) % 360;\n double deg = Math.abs(degLong - degShort);\n double rad = Math.toRadians(deg);\n double cos = Math.cos(rad);\n double ans = Math.sqrt(a*a + b*b - 2*a*b*cos);\n System.out.println(ans);\n }\n}", "import java.util.*;", "util.*", "java", "import java.lang.*;", "lang.*", "java", "import java.io.*;", "io.*", "java", "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 int min = h * 60 + m; //็ตŒ้Žๆ™‚้–“๏ผˆmin๏ผ‰\n double degLong = (min * 6) % 360;\n double degShort = (min * 0.5) % 360;\n double deg = Math.abs(degLong - degShort);\n double rad = Math.toRadians(deg);\n double cos = Math.cos(rad);\n double ans = Math.sqrt(a*a + b*b - 2*a*b*cos);\n System.out.println(ans);\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 int min = h * 60 + m; //็ตŒ้Žๆ™‚้–“๏ผˆmin๏ผ‰\n double degLong = (min * 6) % 360;\n double degShort = (min * 0.5) % 360;\n double deg = Math.abs(degLong - degShort);\n double rad = Math.toRadians(deg);\n double cos = Math.cos(rad);\n double ans = Math.sqrt(a*a + b*b - 2*a*b*cos);\n System.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 int m = sc.nextInt();\n int min = h * 60 + m; //็ตŒ้Žๆ™‚้–“๏ผˆmin๏ผ‰\n double degLong = (min * 6) % 360;\n double degShort = (min * 0.5) % 360;\n double deg = Math.abs(degLong - degShort);\n double rad = Math.toRadians(deg);\n double cos = Math.cos(rad);\n double ans = Math.sqrt(a*a + b*b - 2*a*b*cos);\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", "int min = h * 60 + m;", "min", "h * 60 + m", "h * 60", "h", "60", "m", "double degLong = (min * 6) % 360;", "degLong", "(min * 6) % 360", "(min * 6)", "min", "6", "360", "double degShort = (min * 0.5) % 360;", "degShort", "(min * 0.5) % 360", "(min * 0.5)", "min", "0.5", "360", "double deg = Math.abs(degLong - degShort);", "deg", "Math.abs(degLong - degShort)", "Math.abs", "Math", "degLong - degShort", "degLong", "degShort", "double rad = Math.toRadians(deg);", "rad", "Math.toRadians(deg)", "Math.toRadians", "Math", "deg", "double cos = Math.cos(rad);", "cos", "Math.cos(rad)", "Math.cos", "Math", "rad", "double 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) 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 int min = h * 60 + m; //็ตŒ้Žๆ™‚้–“๏ผˆmin๏ผ‰\n double degLong = (min * 6) % 360;\n double degShort = (min * 0.5) % 360;\n double deg = Math.abs(degLong - degShort);\n double rad = Math.toRadians(deg);\n double cos = Math.cos(rad);\n double ans = Math.sqrt(a*a + b*b - 2*a*b*cos);\n System.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 int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n int min = h * 60 + m; //็ตŒ้Žๆ™‚้–“๏ผˆmin๏ผ‰\n double degLong = (min * 6) % 360;\n double degShort = (min * 0.5) % 360;\n double deg = Math.abs(degLong - degShort);\n double rad = Math.toRadians(deg);\n double cos = Math.cos(rad);\n double ans = Math.sqrt(a*a + b*b - 2*a*b*cos);\n System.out.println(ans);\n }\n}", "Main" ]
import java.util.*; import java.lang.*; import java.io.*; 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 min = h * 60 + m; //็ตŒ้Žๆ™‚้–“๏ผˆmin๏ผ‰ double degLong = (min * 6) % 360; double degShort = (min * 0.5) % 360; double deg = Math.abs(degLong - degShort); double rad = Math.toRadians(deg); double cos = Math.cos(rad); double 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, 2, 17, 13, 41, 13, 2, 17, 13, 41, 13, 4, 18, 13, 4, 18, 13, 2, 13, 13, 41, 13, 17, 0, 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 ]
[ [ 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 ], [ 45, 46 ], [ 44, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 50, 51 ], [ 50, 52 ], [ 8, 53 ], [ 53, 54 ], [ 53, 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 ], [ 71, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 8, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 6, 85 ], [ 85, 86 ] ]
[ "import java.util.Scanner;\nclass 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 \n double angH = 30*h;\n double angM = 5.5*m;\n double ang = Math.toRadians(Math.abs(angH - angM));\n double c = 0;\n c = Math.sqrt(a*a + b*b - 2*a*b*Math.cos(ang));\n System.out.print(c);\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();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n \n double angH = 30*h;\n double angM = 5.5*m;\n double ang = Math.toRadians(Math.abs(angH - angM));\n double c = 0;\n c = Math.sqrt(a*a + b*b - 2*a*b*Math.cos(ang));\n System.out.print(c);\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 \n double angH = 30*h;\n double angM = 5.5*m;\n double ang = Math.toRadians(Math.abs(angH - angM));\n double c = 0;\n c = Math.sqrt(a*a + b*b - 2*a*b*Math.cos(ang));\n System.out.print(c);\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 \n double angH = 30*h;\n double angM = 5.5*m;\n double ang = Math.toRadians(Math.abs(angH - angM));\n double c = 0;\n c = Math.sqrt(a*a + b*b - 2*a*b*Math.cos(ang));\n System.out.print(c);\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 angH = 30*h;", "angH", "30*h", "30", "h", "double angM = 5.5*m;", "angM", "5.5*m", "5.5", "m", "double ang = Math.toRadians(Math.abs(angH - angM));", "ang", "Math.toRadians(Math.abs(angH - angM))", "Math.toRadians", "Math", "Math.abs(angH - angM)", "Math.abs", "Math", "angH - angM", "angH", "angM", "double c = 0;", "c", "0", "c = Math.sqrt(a*a + b*b - 2*a*b*Math.cos(ang))", "c", "Math.sqrt(a*a + b*b - 2*a*b*Math.cos(ang))", "Math.sqrt", "Math", "a*a + b*b - 2*a*b*Math.cos(ang)", "a*a + b*b", "a*a", "a", "a", "b*b", "b", "b", "2*a*b*Math.cos(ang)", "b", "2*a*b*Math.cos(ang)", "2", "a", "b", "Math.cos(ang)", "Math.cos", "Math", "ang", "System.out.print(c)", "System.out.print", "System.out", "System", "System.out", "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(); int b = sc.nextInt(); int h = sc.nextInt(); int m = sc.nextInt(); double angH = 30*h; double angM = 5.5*m; double ang = Math.toRadians(Math.abs(angH - angM)); double c = 0; c = Math.sqrt(a*a + b*b - 2*a*b*Math.cos(ang)); System.out.print(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, 4, 18, 13, 2, 2, 2, 2, 17, 13, 17, 2, 2, 17, 13, 17, 2, 2, 17, 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, 4, 18, 13, 13, 4, 18, 18, 13, 13, 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 ], [ 34, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 38, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 37, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 8, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 61, 65 ], [ 60, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 66, 70 ], [ 59, 71 ], [ 73, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 73, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 8, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 6, 90 ], [ 90, 91 ], [ 0, 92 ], [ 92, 93 ], [ 92, 94 ] ]
[ "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(360.0*H/12.0 - 360.0*M/60.0 + 30.0*M/60.0);\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(360.0*H/12.0 - 360.0*M/60.0 + 30.0*M/60.0);\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(360.0*H/12.0 - 360.0*M/60.0 + 30.0*M/60.0);\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(360.0*H/12.0 - 360.0*M/60.0 + 30.0*M/60.0);\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(360.0*H/12.0 - 360.0*M/60.0 + 30.0*M/60.0);", "angle", "Math.abs(360.0*H/12.0 - 360.0*M/60.0 + 30.0*M/60.0)", "Math.abs", "Math", "360.0*H/12.0 - 360.0*M/60.0 + 30.0*M/60.0", "360.0*H/12.0 - 360.0*M/60.0", "360.0*H/12.0", "360.0*H", "360.0", "H", "12.0", "360.0*M/60.0", "360.0*M", "360.0", "M", "60.0", "30.0*M/60.0", "30.0*M", "30.0", "M", "60.0", "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(360.0*H/12.0 - 360.0*M/60.0 + 30.0*M/60.0);\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(360.0*H/12.0 - 360.0*M/60.0 + 30.0*M/60.0);\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(360.0*H/12.0 - 360.0*M/60.0 + 30.0*M/60.0); 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, 4, 18, 13, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 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, 17, 13, 4, 18, 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 ], [ 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 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 58, 60 ], [ 53, 61 ], [ 63, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 63, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 8, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 71, 77 ], [ 8, 78 ], [ 78, 79 ], [ 79, 80 ], [ 6, 81 ], [ 81, 82 ], [ 0, 83 ], [ 83, 84 ], [ 83, 85 ] ]
[ "\nimport 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\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\n\n\t\tdouble angle = Math.toRadians( (h * 30 + m * 0.5) - m * 6 );\n\t\tdouble ans = Math.sqrt( a * a + b * b - 2 * a * b * Math.cos(angle) );\n\n\t\tSystem.out.printf(\"%.20f %n\", ans);\n\n\n\n\n\n\t\tsc.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 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\n\n\t\tdouble angle = Math.toRadians( (h * 30 + m * 0.5) - m * 6 );\n\t\tdouble ans = Math.sqrt( a * a + b * b - 2 * a * b * Math.cos(angle) );\n\n\t\tSystem.out.printf(\"%.20f %n\", ans);\n\n\n\n\n\n\t\tsc.close();\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\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\n\n\t\tdouble angle = Math.toRadians( (h * 30 + m * 0.5) - m * 6 );\n\t\tdouble ans = Math.sqrt( a * a + b * b - 2 * a * b * Math.cos(angle) );\n\n\t\tSystem.out.printf(\"%.20f %n\", ans);\n\n\n\n\n\n\t\tsc.close();\n\n\t}", "main", "{\n\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\n\n\t\tdouble angle = Math.toRadians( (h * 30 + m * 0.5) - m * 6 );\n\t\tdouble ans = Math.sqrt( a * a + b * b - 2 * a * b * Math.cos(angle) );\n\n\t\tSystem.out.printf(\"%.20f %n\", ans);\n\n\n\n\n\n\t\tsc.close();\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 = Math.toRadians( (h * 30 + m * 0.5) - m * 6 );", "angle", "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.sqrt( a * a + b * b - 2 * a * b * Math.cos(angle) );", "ans", "Math.sqrt( a * a + b * b - 2 * a * b * Math.cos(angle) )", "Math.sqrt", "Math", "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.printf(\"%.20f %n\", ans)", "System.out.printf", "System.out", "System", "System.out", "\"%.20f %n\"", "ans", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\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\n\n\t\tdouble angle = Math.toRadians( (h * 30 + m * 0.5) - m * 6 );\n\t\tdouble ans = Math.sqrt( a * a + b * b - 2 * a * b * Math.cos(angle) );\n\n\t\tSystem.out.printf(\"%.20f %n\", ans);\n\n\n\n\n\n\t\tsc.close();\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\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\n\n\t\tdouble angle = Math.toRadians( (h * 30 + m * 0.5) - m * 6 );\n\t\tdouble ans = Math.sqrt( a * a + b * b - 2 * a * b * Math.cos(angle) );\n\n\t\tSystem.out.printf(\"%.20f %n\", ans);\n\n\n\n\n\n\t\tsc.close();\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 = Math.toRadians( (h * 30 + m * 0.5) - m * 6 ); double ans = Math.sqrt( a * a + b * b - 2 * a * b * Math.cos(angle) ); System.out.printf("%.20f %n", ans); sc.close(); } }
[ 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, 13, 17, 2, 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, 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 ], [ 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 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 8, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 8, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 65, 66 ], [ 65, 67 ], [ 8, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 75, 79 ], [ 74, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 80, 84 ], [ 73, 85 ], [ 87, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 87, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 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 public static void main(String[] args){\n final Scanner sc=new Scanner(System.in);\n\n final double A = Integer.parseInt(sc.next());\n final double B = Integer.parseInt(sc.next());\n final double H = Integer.parseInt(sc.next());\n final double M = Integer.parseInt(sc.next());\n\n double parseH = H * 30d + (30d * (M / 60d));\n double parseM = M * 6d;\n\n double ang = Math.abs(parseH - parseM);\n double ans = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) -2d * A * B * Math.cos(Math.toRadians(ang)));\n System.out.print(ans);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n final Scanner sc=new Scanner(System.in);\n\n final double A = Integer.parseInt(sc.next());\n final double B = Integer.parseInt(sc.next());\n final double H = Integer.parseInt(sc.next());\n final double M = Integer.parseInt(sc.next());\n\n double parseH = H * 30d + (30d * (M / 60d));\n double parseM = M * 6d;\n\n double ang = Math.abs(parseH - parseM);\n double ans = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) -2d * A * B * Math.cos(Math.toRadians(ang)));\n System.out.print(ans);\n }\n}", "Main", "public static void main(String[] args){\n final Scanner sc=new Scanner(System.in);\n\n final double A = Integer.parseInt(sc.next());\n final double B = Integer.parseInt(sc.next());\n final double H = Integer.parseInt(sc.next());\n final double M = Integer.parseInt(sc.next());\n\n double parseH = H * 30d + (30d * (M / 60d));\n double parseM = M * 6d;\n\n double ang = Math.abs(parseH - parseM);\n double ans = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) -2d * A * B * Math.cos(Math.toRadians(ang)));\n System.out.print(ans);\n }", "main", "{\n final Scanner sc=new Scanner(System.in);\n\n final double A = Integer.parseInt(sc.next());\n final double B = Integer.parseInt(sc.next());\n final double H = Integer.parseInt(sc.next());\n final double M = Integer.parseInt(sc.next());\n\n double parseH = H * 30d + (30d * (M / 60d));\n double parseM = M * 6d;\n\n double ang = Math.abs(parseH - parseM);\n double ans = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) -2d * A * B * Math.cos(Math.toRadians(ang)));\n System.out.print(ans);\n }", "final Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "final double A = Integer.parseInt(sc.next());", "A", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "final double B = Integer.parseInt(sc.next());", "B", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "final double H = Integer.parseInt(sc.next());", "H", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "final double M = Integer.parseInt(sc.next());", "M", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "double parseH = H * 30d + (30d * (M / 60d));", "parseH", "H * 30d + (30d * (M / 60d))", "H * 30d", "H", "30d", "(30d * (M / 60d))", "30d", "(M / 60d)", "M", "60d", "double parseM = M * 6d;", "parseM", "M * 6d", "M", "6d", "double ang = Math.abs(parseH - parseM);", "ang", "Math.abs(parseH - parseM)", "Math.abs", "Math", "parseH - parseM", "parseH", "parseM", "double ans = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) -2d * A * B * Math.cos(Math.toRadians(ang)));", "ans", "Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) -2d * A * B * Math.cos(Math.toRadians(ang)))", "Math.sqrt", "Math", "Math.pow(A, 2) + Math.pow(B, 2) -2d * A * B * Math.cos(Math.toRadians(ang))", "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", "2d * A * B * Math.cos(Math.toRadians(ang))", "B", "2d * A * B * Math.cos(Math.toRadians(ang))", "2d", "A", "B", "Math.cos(Math.toRadians(ang))", "Math.cos", "Math", "Math.toRadians(ang)", "Math.toRadians", "Math", "ang", "System.out.print(ans)", "System.out.print", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n final Scanner sc=new Scanner(System.in);\n\n final double A = Integer.parseInt(sc.next());\n final double B = Integer.parseInt(sc.next());\n final double H = Integer.parseInt(sc.next());\n final double M = Integer.parseInt(sc.next());\n\n double parseH = H * 30d + (30d * (M / 60d));\n double parseM = M * 6d;\n\n double ang = Math.abs(parseH - parseM);\n double ans = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) -2d * A * B * Math.cos(Math.toRadians(ang)));\n System.out.print(ans);\n }\n}", "public class Main{\n public static void main(String[] args){\n final Scanner sc=new Scanner(System.in);\n\n final double A = Integer.parseInt(sc.next());\n final double B = Integer.parseInt(sc.next());\n final double H = Integer.parseInt(sc.next());\n final double M = Integer.parseInt(sc.next());\n\n double parseH = H * 30d + (30d * (M / 60d));\n double parseM = M * 6d;\n\n double ang = Math.abs(parseH - parseM);\n double ans = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) -2d * A * B * Math.cos(Math.toRadians(ang)));\n System.out.print(ans);\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ final Scanner sc=new Scanner(System.in); final double A = Integer.parseInt(sc.next()); final double B = Integer.parseInt(sc.next()); final double H = Integer.parseInt(sc.next()); final double M = Integer.parseInt(sc.next()); double parseH = H * 30d + (30d * (M / 60d)); double parseM = M * 6d; double ang = Math.abs(parseH - parseM); double ans = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) -2d * A * B * Math.cos(Math.toRadians(ang))); 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, 2, 2, 4, 18, 13, 17, 18, 13, 13, 41, 13, 2, 2, 4, 18, 13, 17, 18, 13, 13, 0, 13, 2, 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, 2, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 80, 5 ], [ 80, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 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 ], [ 26, 27 ], [ 27, 28 ], [ 25, 29 ], [ 24, 30 ], [ 30, 31 ], [ 30, 32 ], [ 8, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 36, 40 ], [ 35, 41 ], [ 41, 42 ], [ 41, 43 ], [ 8, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 8, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 62, 64 ], [ 57, 65 ], [ 67, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 67, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 74, 75 ], [ 74, 76 ], [ 6, 77 ], [ 77, 78 ], [ 0, 79 ], [ 79, 80 ], [ 79, 81 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scn=new Scanner(System.in);\n\t\tint lenHour=scn.nextInt(),\n\t\t\tlenMin=scn.nextInt();\n\t\tdouble hour=scn.nextDouble()/6*Math.PI,\n\t\t\t min=scn.nextDouble()/30*Math.PI;\n\t\t\n\t\thour+=min/12;\n\t\t\n\t\tSystem.out.println(Math.sqrt(lenHour*lenHour+lenMin*lenMin-2*lenMin*lenHour*Math.cos(min-hour)));\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 scn=new Scanner(System.in);\n\t\tint lenHour=scn.nextInt(),\n\t\t\tlenMin=scn.nextInt();\n\t\tdouble hour=scn.nextDouble()/6*Math.PI,\n\t\t\t min=scn.nextDouble()/30*Math.PI;\n\t\t\n\t\thour+=min/12;\n\t\t\n\t\tSystem.out.println(Math.sqrt(lenHour*lenHour+lenMin*lenMin-2*lenMin*lenHour*Math.cos(min-hour)));\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scn=new Scanner(System.in);\n\t\tint lenHour=scn.nextInt(),\n\t\t\tlenMin=scn.nextInt();\n\t\tdouble hour=scn.nextDouble()/6*Math.PI,\n\t\t\t min=scn.nextDouble()/30*Math.PI;\n\t\t\n\t\thour+=min/12;\n\t\t\n\t\tSystem.out.println(Math.sqrt(lenHour*lenHour+lenMin*lenMin-2*lenMin*lenHour*Math.cos(min-hour)));\n\t}", "main", "{\n\t\tScanner scn=new Scanner(System.in);\n\t\tint lenHour=scn.nextInt(),\n\t\t\tlenMin=scn.nextInt();\n\t\tdouble hour=scn.nextDouble()/6*Math.PI,\n\t\t\t min=scn.nextDouble()/30*Math.PI;\n\t\t\n\t\thour+=min/12;\n\t\t\n\t\tSystem.out.println(Math.sqrt(lenHour*lenHour+lenMin*lenMin-2*lenMin*lenHour*Math.cos(min-hour)));\n\t}", "Scanner scn=new Scanner(System.in);", "scn", "new Scanner(System.in)", "int lenHour=scn.nextInt()", "lenHour", "scn.nextInt()", "scn.nextInt", "scn", "lenMin=scn.nextInt();", "lenMin", "scn.nextInt()", "scn.nextInt", "scn", "double hour=scn.nextDouble()/6*Math.PI", "hour", "scn.nextDouble()/6*Math.PI", "scn.nextDouble()/6", "scn.nextDouble()", "scn.nextDouble", "scn", "6", "Math.PI", "Math", "Math.PI", "min=scn.nextDouble()/30*Math.PI;", "min", "scn.nextDouble()/30*Math.PI", "scn.nextDouble()/30", "scn.nextDouble()", "scn.nextDouble", "scn", "30", "Math.PI", "Math", "Math.PI", "hour+=min/12", "hour", "min/12", "min", "12", "System.out.println(Math.sqrt(lenHour*lenHour+lenMin*lenMin-2*lenMin*lenHour*Math.cos(min-hour)))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(lenHour*lenHour+lenMin*lenMin-2*lenMin*lenHour*Math.cos(min-hour))", "Math.sqrt", "Math", "lenHour*lenHour+lenMin*lenMin-2*lenMin*lenHour*Math.cos(min-hour)", "lenHour*lenHour+lenMin*lenMin", "lenHour*lenHour", "lenHour", "lenHour", "lenMin*lenMin", "lenMin", "lenMin", "2*lenMin*lenHour*Math.cos(min-hour)", "lenHour", "2*lenMin*lenHour*Math.cos(min-hour)", "2", "lenMin", "lenHour", "Math.cos(min-hour)", "Math.cos", "Math", "min-hour", "min", "hour", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scn=new Scanner(System.in);\n\t\tint lenHour=scn.nextInt(),\n\t\t\tlenMin=scn.nextInt();\n\t\tdouble hour=scn.nextDouble()/6*Math.PI,\n\t\t\t min=scn.nextDouble()/30*Math.PI;\n\t\t\n\t\thour+=min/12;\n\t\t\n\t\tSystem.out.println(Math.sqrt(lenHour*lenHour+lenMin*lenMin-2*lenMin*lenHour*Math.cos(min-hour)));\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scn=new Scanner(System.in);\n\t\tint lenHour=scn.nextInt(),\n\t\t\tlenMin=scn.nextInt();\n\t\tdouble hour=scn.nextDouble()/6*Math.PI,\n\t\t\t min=scn.nextDouble()/30*Math.PI;\n\t\t\n\t\thour+=min/12;\n\t\t\n\t\tSystem.out.println(Math.sqrt(lenHour*lenHour+lenMin*lenMin-2*lenMin*lenHour*Math.cos(min-hour)));\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scn=new Scanner(System.in); int lenHour=scn.nextInt(), lenMin=scn.nextInt(); double hour=scn.nextDouble()/6*Math.PI, min=scn.nextDouble()/30*Math.PI; hour+=min/12; System.out.println(Math.sqrt(lenHour*lenHour+lenMin*lenMin-2*lenMin*lenHour*Math.cos(min-hour))); } }
[ 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, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 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 ], [ 94, 5 ], [ 94, 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 ], [ 63, 64 ], [ 62, 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 ], [ 82, 84 ], [ 8, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 6, 91 ], [ 91, 92 ], [ 0, 93 ], [ 93, 94 ], [ 93, 95 ] ]
[ "import java.util.*;\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 hour = 2*Math.PI * (H / 12.0 + M / 60.0 / 12.0);\n double min = 2*Math.PI * M / 60.0;\n// double diff = Math.abs(hour - min);\n// System.out.println(diff);\n// double degree = Math.min(diff, 360 - diff);\n// System.out.println(degree);\n double ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(hour - min));\n System.out.println(ans);\n// System.out.printf(\"%.12f\\n\", ans);\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 double hour = 2*Math.PI * (H / 12.0 + M / 60.0 / 12.0);\n double min = 2*Math.PI * M / 60.0;\n// double diff = Math.abs(hour - min);\n// System.out.println(diff);\n// double degree = Math.min(diff, 360 - diff);\n// System.out.println(degree);\n double ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(hour - min));\n System.out.println(ans);\n// System.out.printf(\"%.12f\\n\", 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 double hour = 2*Math.PI * (H / 12.0 + M / 60.0 / 12.0);\n double min = 2*Math.PI * M / 60.0;\n// double diff = Math.abs(hour - min);\n// System.out.println(diff);\n// double degree = Math.min(diff, 360 - diff);\n// System.out.println(degree);\n double ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(hour - min));\n System.out.println(ans);\n// System.out.printf(\"%.12f\\n\", 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 double hour = 2*Math.PI * (H / 12.0 + M / 60.0 / 12.0);\n double min = 2*Math.PI * M / 60.0;\n// double diff = Math.abs(hour - min);\n// System.out.println(diff);\n// double degree = Math.min(diff, 360 - diff);\n// System.out.println(degree);\n double ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(hour - min));\n System.out.println(ans);\n// System.out.printf(\"%.12f\\n\", 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 = 2*Math.PI * (H / 12.0 + M / 60.0 / 12.0);", "hour", "2*Math.PI * (H / 12.0 + M / 60.0 / 12.0)", "2*Math.PI * (H / 12.0 + M / 60.0 / 12.0)", "2", "Math.PI", "Math", "Math.PI", "(H / 12.0 + M / 60.0 / 12.0)", "H / 12.0", "H", "12.0", "M / 60.0 / 12.0", "M / 60.0 / 12.0", "M", "60.0", "12.0", "double min = 2*Math.PI * M / 60.0;", "min", "2*Math.PI * M / 60.0", "2*Math.PI * M", "2*Math.PI * M", "2", "Math.PI", "Math", "Math.PI", "M", "60.0", "double ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(hour - min));", "ans", "Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(hour - min))", "Math.sqrt", "Math", "A * A + B * B - 2 * A * B * Math.cos(hour - min)", "A * A + B * B", "A * A", "A", "A", "B * B", "B", "B", "2 * A * B * Math.cos(hour - min)", "B", "2 * A * B * Math.cos(hour - min)", "2", "A", "B", "Math.cos(hour - min)", "Math.cos", "Math", "hour - min", "hour", "min", "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 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 hour = 2*Math.PI * (H / 12.0 + M / 60.0 / 12.0);\n double min = 2*Math.PI * M / 60.0;\n// double diff = Math.abs(hour - min);\n// System.out.println(diff);\n// double degree = Math.min(diff, 360 - diff);\n// System.out.println(degree);\n double ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(hour - min));\n System.out.println(ans);\n// System.out.printf(\"%.12f\\n\", ans);\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 hour = 2*Math.PI * (H / 12.0 + M / 60.0 / 12.0);\n double min = 2*Math.PI * M / 60.0;\n// double diff = Math.abs(hour - min);\n// System.out.println(diff);\n// double degree = Math.min(diff, 360 - diff);\n// System.out.println(degree);\n double ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(hour - min));\n System.out.println(ans);\n// System.out.printf(\"%.12f\\n\", 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 hour = 2*Math.PI * (H / 12.0 + M / 60.0 / 12.0); double min = 2*Math.PI * M / 60.0; // double diff = Math.abs(hour - min); // System.out.println(diff); // double degree = Math.min(diff, 360 - diff); // System.out.println(degree); double ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(hour - min)); System.out.println(ans); // System.out.printf("%.12f\n", ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 12, 13, 30, 41, 13, 2, 2, 13, 17, 2, 13, 17, 41, 13, 2, 13, 17, 41, 13, 2, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 17, 13, 14, 2, 13, 17, 30, 0, 13, 40, 17, 41, 13, 2, 2, 2, 13, 13, 2, 13, 13, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 117, 14 ], [ 117, 15 ], [ 15, 16 ], [ 15, 17 ], [ 117, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 117, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 117, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 117, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 117, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 47, 49 ], [ 40, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 40, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 40, 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 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 40, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 86, 88 ], [ 81, 89 ], [ 91, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 91, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 40, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 40, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 38, 114 ], [ 114, 115 ], [ 0, 116 ], [ 116, 117 ], [ 116, 118 ] ]
[ "\nimport java.math.BigDecimal;\nimport java.math.MathContext;\nimport java.math.RoundingMode;\nimport java.util.Scanner;\n\npublic class Main {\n static Scanner sc = new Scanner(System.in);\n static int A = sc.nextInt();\n static int B = sc.nextInt();\n static int H = sc.nextInt();\n static int M = sc.nextInt();\n\n public static void main(String[] args) {\n //่ง’ๅบฆใ‚’ๆฑ‚ใ‚ใ‚‹\n double kHour = H * 30 + M * 0.5;\n double kMin = M * 6;\n double kakudo = kHour - kMin;\n if (kakudo > 180){\n kakudo = 360 - kakudo;\n } else if (kakudo < 0){\n kakudo *= -1;\n }\n double dC = A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudo));\n// BigDecimal x = new BigDecimal(Math.sqrt(dC));\n// MathContext mc = new MathContext(50, RoundingMode.UP);\n// BigDecimal result = x.round(mc);\n double result = Math.sqrt(dC);\n System.out.print(result);\n\n }\n\n}", "import java.math.BigDecimal;", "BigDecimal", "java.math", "import java.math.MathContext;", "MathContext", "java.math", "import java.math.RoundingMode;", "RoundingMode", "java.math", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n static Scanner sc = new Scanner(System.in);\n static int A = sc.nextInt();\n static int B = sc.nextInt();\n static int H = sc.nextInt();\n static int M = sc.nextInt();\n\n public static void main(String[] args) {\n //่ง’ๅบฆใ‚’ๆฑ‚ใ‚ใ‚‹\n double kHour = H * 30 + M * 0.5;\n double kMin = M * 6;\n double kakudo = kHour - kMin;\n if (kakudo > 180){\n kakudo = 360 - kakudo;\n } else if (kakudo < 0){\n kakudo *= -1;\n }\n double dC = A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudo));\n// BigDecimal x = new BigDecimal(Math.sqrt(dC));\n// MathContext mc = new MathContext(50, RoundingMode.UP);\n// BigDecimal result = x.round(mc);\n double result = Math.sqrt(dC);\n System.out.print(result);\n\n }\n\n}", "Main", "static Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "static int A = sc.nextInt();", "A", "sc.nextInt()", "sc.nextInt", "sc", "static int B = sc.nextInt();", "B", "sc.nextInt()", "sc.nextInt", "sc", "static int H = sc.nextInt();", "H", "sc.nextInt()", "sc.nextInt", "sc", "static int M = sc.nextInt();", "M", "sc.nextInt()", "sc.nextInt", "sc", "public static void main(String[] args) {\n //่ง’ๅบฆใ‚’ๆฑ‚ใ‚ใ‚‹\n double kHour = H * 30 + M * 0.5;\n double kMin = M * 6;\n double kakudo = kHour - kMin;\n if (kakudo > 180){\n kakudo = 360 - kakudo;\n } else if (kakudo < 0){\n kakudo *= -1;\n }\n double dC = A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudo));\n// BigDecimal x = new BigDecimal(Math.sqrt(dC));\n// MathContext mc = new MathContext(50, RoundingMode.UP);\n// BigDecimal result = x.round(mc);\n double result = Math.sqrt(dC);\n System.out.print(result);\n\n }", "main", "{\n //่ง’ๅบฆใ‚’ๆฑ‚ใ‚ใ‚‹\n double kHour = H * 30 + M * 0.5;\n double kMin = M * 6;\n double kakudo = kHour - kMin;\n if (kakudo > 180){\n kakudo = 360 - kakudo;\n } else if (kakudo < 0){\n kakudo *= -1;\n }\n double dC = A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudo));\n// BigDecimal x = new BigDecimal(Math.sqrt(dC));\n// MathContext mc = new MathContext(50, RoundingMode.UP);\n// BigDecimal result = x.round(mc);\n double result = Math.sqrt(dC);\n System.out.print(result);\n\n }", "double kHour = H * 30 + M * 0.5;", "kHour", "H * 30 + M * 0.5", "H * 30", "H", "30", "M * 0.5", "M", "0.5", "double kMin = M * 6;", "kMin", "M * 6", "M", "6", "double kakudo = kHour - kMin;", "kakudo", "kHour - kMin", "kHour", "kMin", "if (kakudo > 180){\n kakudo = 360 - kakudo;\n } else if (kakudo < 0){\n kakudo *= -1;\n }", "kakudo > 180", "kakudo", "180", "{\n kakudo = 360 - kakudo;\n }", "kakudo = 360 - kakudo", "kakudo", "360 - kakudo", "360", "kakudo", "if (kakudo < 0){\n kakudo *= -1;\n }", "kakudo < 0", "kakudo", "0", "{\n kakudo *= -1;\n }", "kakudo *= -1", "kakudo", "-1", "1", "double dC = A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudo));", "dC", "A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudo))", "A * A + B * B", "A * A", "A", "A", "B * B", "B", "B", "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", "double result = Math.sqrt(dC);", "result", "Math.sqrt(dC)", "Math.sqrt", "Math", "dC", "System.out.print(result)", "System.out.print", "System.out", "System", "System.out", "result", "String[] args", "args", "public class Main {\n static Scanner sc = new Scanner(System.in);\n static int A = sc.nextInt();\n static int B = sc.nextInt();\n static int H = sc.nextInt();\n static int M = sc.nextInt();\n\n public static void main(String[] args) {\n //่ง’ๅบฆใ‚’ๆฑ‚ใ‚ใ‚‹\n double kHour = H * 30 + M * 0.5;\n double kMin = M * 6;\n double kakudo = kHour - kMin;\n if (kakudo > 180){\n kakudo = 360 - kakudo;\n } else if (kakudo < 0){\n kakudo *= -1;\n }\n double dC = A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudo));\n// BigDecimal x = new BigDecimal(Math.sqrt(dC));\n// MathContext mc = new MathContext(50, RoundingMode.UP);\n// BigDecimal result = x.round(mc);\n double result = Math.sqrt(dC);\n System.out.print(result);\n\n }\n\n}", "public class Main {\n static Scanner sc = new Scanner(System.in);\n static int A = sc.nextInt();\n static int B = sc.nextInt();\n static int H = sc.nextInt();\n static int M = sc.nextInt();\n\n public static void main(String[] args) {\n //่ง’ๅบฆใ‚’ๆฑ‚ใ‚ใ‚‹\n double kHour = H * 30 + M * 0.5;\n double kMin = M * 6;\n double kakudo = kHour - kMin;\n if (kakudo > 180){\n kakudo = 360 - kakudo;\n } else if (kakudo < 0){\n kakudo *= -1;\n }\n double dC = A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudo));\n// BigDecimal x = new BigDecimal(Math.sqrt(dC));\n// MathContext mc = new MathContext(50, RoundingMode.UP);\n// BigDecimal result = x.round(mc);\n double result = Math.sqrt(dC);\n System.out.print(result);\n\n }\n\n}", "Main" ]
import java.math.BigDecimal; import java.math.MathContext; import java.math.RoundingMode; import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); static int A = sc.nextInt(); static int B = sc.nextInt(); static int H = sc.nextInt(); static int M = sc.nextInt(); public static void main(String[] args) { //่ง’ๅบฆใ‚’ๆฑ‚ใ‚ใ‚‹ double kHour = H * 30 + M * 0.5; double kMin = M * 6; double kakudo = kHour - kMin; if (kakudo > 180){ kakudo = 360 - kakudo; } else if (kakudo < 0){ kakudo *= -1; } double dC = A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudo)); // BigDecimal x = new BigDecimal(Math.sqrt(dC)); // MathContext mc = new MathContext(50, RoundingMode.UP); // BigDecimal result = x.round(mc); double result = Math.sqrt(dC); System.out.print(result); } }
[ 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, 4, 18, 13, 2, 2, 13, 17, 2, 13, 17, 41, 13, 4, 18, 13, 2, 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, 2, 13, 13, 41, 13, 2, 13, 13, 41, 13, 4, 18, 13, 2, 2, 13, 13, 2, 13, 13, 4, 18, 13, 17, 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 ], [ 236, 29 ], [ 236, 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 ], [ 236, 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 ], [ 90, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 97, 99 ], [ 67, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 105, 106 ], [ 105, 107 ], [ 67, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 113, 114 ], [ 112, 115 ], [ 67, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 67, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 129, 130 ], [ 128, 131 ], [ 67, 132 ], [ 132, 133 ], [ 132, 134 ], [ 134, 135 ], [ 134, 136 ], [ 136, 137 ], [ 137, 138 ], [ 136, 139 ], [ 67, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 142, 144 ], [ 67, 145 ], [ 145, 146 ], [ 145, 147 ], [ 147, 148 ], [ 147, 149 ], [ 67, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 153, 154 ], [ 152, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 155, 159 ], [ 159, 160 ], [ 159, 161 ], [ 67, 162 ], [ 162, 163 ], [ 163, 164 ], [ 162, 165 ], [ 162, 166 ], [ 65, 167 ], [ 167, 168 ], [ 65, 169 ], [ 169, 170 ], [ 65, 171 ], [ 171, 172 ], [ 236, 173 ], [ 173, 174 ], [ 173, 175 ], [ 175, 176 ], [ 173, 177 ], [ 177, 178 ], [ 173, 179 ], [ 179, 180 ], [ 179, 181 ], [ 181, 182 ], [ 182, 183 ], [ 182, 184 ], [ 179, 185 ], [ 185, 186 ], [ 173, 187 ], [ 187, 188 ], [ 187, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 192, 193 ], [ 192, 194 ], [ 191, 195 ], [ 195, 196 ], [ 196, 197 ], [ 197, 198 ], [ 190, 199 ], [ 199, 200 ], [ 200, 201 ], [ 201, 202 ], [ 201, 203 ], [ 203, 204 ], [ 204, 205 ], [ 200, 206 ], [ 206, 207 ], [ 207, 208 ], [ 207, 209 ], [ 209, 210 ], [ 210, 211 ], [ 206, 212 ], [ 212, 213 ], [ 213, 214 ], [ 213, 215 ], [ 212, 216 ], [ 216, 217 ], [ 217, 218 ], [ 206, 219 ], [ 219, 220 ], [ 219, 221 ], [ 189, 222 ], [ 222, 223 ], [ 223, 224 ], [ 224, 225 ], [ 173, 226 ], [ 226, 227 ], [ 226, 228 ], [ 228, 229 ], [ 229, 230 ], [ 230, 231 ], [ 231, 232 ], [ 230, 233 ], [ 233, 234 ], [ 0, 235 ], [ 235, 236 ], [ 235, 237 ] ]
[ "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 hr = Math.toRadians(H * 30.0 + M * 0.5);\n double mr = Math.toRadians(M * 6.0);\n double hx = A * Math.sin(hr);\n double hy = A * Math.cos(hr);\n double mx = B * Math.sin(mr);\n double my = B * Math.cos(mr);\n double dx = hx - mx;\n double dy = hy - my;\n double ans = Math.sqrt(dx * dx + dy * dy);\n out.printf(\"%.14f\", 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 hr = Math.toRadians(H * 30.0 + M * 0.5);\n double mr = Math.toRadians(M * 6.0);\n double hx = A * Math.sin(hr);\n double hy = A * Math.cos(hr);\n double mx = B * Math.sin(mr);\n double my = B * Math.cos(mr);\n double dx = hx - mx;\n double dy = hy - my;\n double ans = Math.sqrt(dx * dx + dy * dy);\n out.printf(\"%.14f\", 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 hr = Math.toRadians(H * 30.0 + M * 0.5);\n double mr = Math.toRadians(M * 6.0);\n double hx = A * Math.sin(hr);\n double hy = A * Math.cos(hr);\n double mx = B * Math.sin(mr);\n double my = B * Math.cos(mr);\n double dx = hx - mx;\n double dy = hy - my;\n double ans = Math.sqrt(dx * dx + dy * dy);\n out.printf(\"%.14f\", 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 hr = Math.toRadians(H * 30.0 + M * 0.5);\n double mr = Math.toRadians(M * 6.0);\n double hx = A * Math.sin(hr);\n double hy = A * Math.cos(hr);\n double mx = B * Math.sin(mr);\n double my = B * Math.cos(mr);\n double dx = hx - mx;\n double dy = hy - my;\n double ans = Math.sqrt(dx * dx + dy * dy);\n out.printf(\"%.14f\", 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 hr = Math.toRadians(H * 30.0 + M * 0.5);\n double mr = Math.toRadians(M * 6.0);\n double hx = A * Math.sin(hr);\n double hy = A * Math.cos(hr);\n double mx = B * Math.sin(mr);\n double my = B * Math.cos(mr);\n double dx = hx - mx;\n double dy = hy - my;\n double ans = Math.sqrt(dx * dx + dy * dy);\n out.printf(\"%.14f\", 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 hr = Math.toRadians(H * 30.0 + M * 0.5);", "hr", "Math.toRadians(H * 30.0 + M * 0.5)", "Math.toRadians", "Math", "H * 30.0 + M * 0.5", "H * 30.0", "H", "30.0", "M * 0.5", "M", "0.5", "double mr = Math.toRadians(M * 6.0);", "mr", "Math.toRadians(M * 6.0)", "Math.toRadians", "Math", "M * 6.0", "M", "6.0", "double hx = A * Math.sin(hr);", "hx", "A * Math.sin(hr)", "A", "Math.sin(hr)", "Math.sin", "Math", "hr", "double hy = A * Math.cos(hr);", "hy", "A * Math.cos(hr)", "A", "Math.cos(hr)", "Math.cos", "Math", "hr", "double mx = B * Math.sin(mr);", "mx", "B * Math.sin(mr)", "B", "Math.sin(mr)", "Math.sin", "Math", "mr", "double my = B * Math.cos(mr);", "my", "B * Math.cos(mr)", "B", "Math.cos(mr)", "Math.cos", "Math", "mr", "double dx = hx - mx;", "dx", "hx - mx", "hx", "mx", "double dy = hy - my;", "dy", "hy - my", "hy", "my", "double ans = Math.sqrt(dx * dx + dy * dy);", "ans", "Math.sqrt(dx * dx + dy * dy)", "Math.sqrt", "Math", "dx * dx + dy * dy", "dx * dx", "dx", "dx", "dy * dy", "dy", "dy", "out.printf(\"%.14f\", ans)", "out.printf", "out", "\"%.14f\"", "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 hr = Math.toRadians(H * 30.0 + M * 0.5);\n double mr = Math.toRadians(M * 6.0);\n double hx = A * Math.sin(hr);\n double hy = A * Math.cos(hr);\n double mx = B * Math.sin(mr);\n double my = B * Math.cos(mr);\n double dx = hx - mx;\n double dy = hy - my;\n double ans = Math.sqrt(dx * dx + dy * dy);\n out.printf(\"%.14f\", 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 hr = Math.toRadians(H * 30.0 + M * 0.5);\n double mr = Math.toRadians(M * 6.0);\n double hx = A * Math.sin(hr);\n double hy = A * Math.cos(hr);\n double mx = B * Math.sin(mr);\n double my = B * Math.cos(mr);\n double dx = hx - mx;\n double dy = hy - my;\n double ans = Math.sqrt(dx * dx + dy * dy);\n out.printf(\"%.14f\", 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 hr = Math.toRadians(H * 30.0 + M * 0.5); double mr = Math.toRadians(M * 6.0); double hx = A * Math.sin(hr); double hy = A * Math.cos(hr); double mx = B * Math.sin(mr); double my = B * Math.cos(mr); double dx = hx - mx; double dy = hy - my; double ans = Math.sqrt(dx * dx + dy * dy); out.printf("%.14f", 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()); } } }