node_ids
sequencelengths
4
1.4k
edge_index
sequencelengths
1
2.22k
text
sequencelengths
4
1.4k
source
stringlengths
14
427k
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 2, 13, 17, 3, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 0, 13, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 2, 2, 13, 13, 4, 18, 13, 2, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 84, 8 ], [ 84, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 19, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 19, 30 ], [ 30, 31 ], [ 30, 32 ], [ 19, 33 ], [ 33, 34 ], [ 33, 35 ], [ 19, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 36, 44 ], [ 44, 45 ], [ 45, 46 ], [ 36, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 48, 54 ], [ 54, 55 ], [ 54, 56 ], [ 48, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 19, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 77, 79 ], [ 74, 80 ], [ 9, 81 ], [ 81, 82 ], [ 0, 83 ], [ 83, 84 ], [ 83, 85 ] ]
[ "import java.util.Random;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int n;\n while (true) {\n n = scanner.nextInt();\n if (n == 0) break;\n\n int sum = 0, sum2 = 0;\n for (int i = 0; i < n; ++i) {\n int a = scanner.nextInt();\n sum += a;\n sum2 += a * a;\n }\n\n System.out.println(Math.sqrt(sum2 / (double)n - Math.pow((sum / (double)n), 2)));\n }\n }\n}\n", "import java.util.Random;", "Random", "java.util", "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 n;\n while (true) {\n n = scanner.nextInt();\n if (n == 0) break;\n\n int sum = 0, sum2 = 0;\n for (int i = 0; i < n; ++i) {\n int a = scanner.nextInt();\n sum += a;\n sum2 += a * a;\n }\n\n System.out.println(Math.sqrt(sum2 / (double)n - Math.pow((sum / (double)n), 2)));\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int n;\n while (true) {\n n = scanner.nextInt();\n if (n == 0) break;\n\n int sum = 0, sum2 = 0;\n for (int i = 0; i < n; ++i) {\n int a = scanner.nextInt();\n sum += a;\n sum2 += a * a;\n }\n\n System.out.println(Math.sqrt(sum2 / (double)n - Math.pow((sum / (double)n), 2)));\n }\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n\n int n;\n while (true) {\n n = scanner.nextInt();\n if (n == 0) break;\n\n int sum = 0, sum2 = 0;\n for (int i = 0; i < n; ++i) {\n int a = scanner.nextInt();\n sum += a;\n sum2 += a * a;\n }\n\n System.out.println(Math.sqrt(sum2 / (double)n - Math.pow((sum / (double)n), 2)));\n }\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int n;", "n", "while (true) {\n n = scanner.nextInt();\n if (n == 0) break;\n\n int sum = 0, sum2 = 0;\n for (int i = 0; i < n; ++i) {\n int a = scanner.nextInt();\n sum += a;\n sum2 += a * a;\n }\n\n System.out.println(Math.sqrt(sum2 / (double)n - Math.pow((sum / (double)n), 2)));\n }", "true", "{\n n = scanner.nextInt();\n if (n == 0) break;\n\n int sum = 0, sum2 = 0;\n for (int i = 0; i < n; ++i) {\n int a = scanner.nextInt();\n sum += a;\n sum2 += a * a;\n }\n\n System.out.println(Math.sqrt(sum2 / (double)n - Math.pow((sum / (double)n), 2)));\n }", "n = scanner.nextInt()", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "if (n == 0) break;", "n == 0", "n", "0", "break;", "int sum = 0", "sum", "0", "sum2 = 0;", "sum2", "0", "for (int i = 0; i < n; ++i) {\n int a = scanner.nextInt();\n sum += a;\n sum2 += a * a;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "++i", "++i", "i", "{\n int a = scanner.nextInt();\n sum += a;\n sum2 += a * a;\n }", "{\n int a = scanner.nextInt();\n sum += a;\n sum2 += a * a;\n }", "int a = scanner.nextInt();", "a", "scanner.nextInt()", "scanner.nextInt", "scanner", "sum += a", "sum", "a", "sum2 += a * a", "sum2", "a * a", "a", "a", "System.out.println(Math.sqrt(sum2 / (double)n - Math.pow((sum / (double)n), 2)))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(sum2 / (double)n - Math.pow((sum / (double)n), 2))", "Math.sqrt", "Math", "sum2 / (double)n - Math.pow((sum / (double)n), 2)", "sum2 / (double)n", "sum2", "(double)n", "Math.pow((sum / (double)n), 2)", "Math.pow", "Math", "(sum / (double)n)", "sum", "(double)n", "2", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int n;\n while (true) {\n n = scanner.nextInt();\n if (n == 0) break;\n\n int sum = 0, sum2 = 0;\n for (int i = 0; i < n; ++i) {\n int a = scanner.nextInt();\n sum += a;\n sum2 += a * a;\n }\n\n System.out.println(Math.sqrt(sum2 / (double)n - Math.pow((sum / (double)n), 2)));\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int n;\n while (true) {\n n = scanner.nextInt();\n if (n == 0) break;\n\n int sum = 0, sum2 = 0;\n for (int i = 0; i < n; ++i) {\n int a = scanner.nextInt();\n sum += a;\n sum2 += a * a;\n }\n\n System.out.println(Math.sqrt(sum2 / (double)n - Math.pow((sum / (double)n), 2)));\n }\n }\n}", "Main" ]
import java.util.Random; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n; while (true) { n = scanner.nextInt(); if (n == 0) break; int sum = 0, sum2 = 0; for (int i = 0; i < n; ++i) { int a = scanner.nextInt(); sum += a; sum2 += a * a; } System.out.println(Math.sqrt(sum2 / (double)n - Math.pow((sum / (double)n), 2))); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 11, 1, 30, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 20, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 41, 13, 2, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 4, 18, 18, 13, 13, 17, 4, 18, 13, 2, 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 ], [ 15, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 15, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 21, 25 ], [ 25, 26 ], [ 15, 27 ], [ 27, 28 ], [ 27, 29 ], [ 15, 31 ], [ 31, 32 ], [ 31, 33 ], [ 15, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 34, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 52, 53 ], [ 46, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 15, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 15, 64 ], [ 64, 65 ], [ 64, 66 ], [ 15, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 72, 73 ], [ 72, 74 ], [ 67, 75 ], [ 75, 76 ], [ 76, 77 ], [ 67, 78 ], [ 79, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 82, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 15, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 93, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 102, 103 ], [ 102, 104 ], [ 6, 105 ], [ 105, 106 ], [ 0, 107 ], [ 107, 108 ], [ 107, 109 ] ]
[ "import java.util.Scanner;\n\npublic class Main \n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tfor(;;)\n\t\t{\n\t\t\tint n = scanner.nextInt();\n\t\t\tif(n == 0)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tdouble[] s = new double[1000];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i=0; i<n; i++)\n\t\t\t{\n\t\t\t\ts[i] = scanner.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\t\n\t\t\tdouble m = sum/n;\n\t\t\tdouble v = 0;\n\t\t\tfor(int i=0; i<n; i++)\n\t\t\t{\n\t\t\t\tv += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\n\t\t\tSystem.out.printf(\"%1$.8f\\n\", Math.sqrt(v/n));\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main \n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tfor(;;)\n\t\t{\n\t\t\tint n = scanner.nextInt();\n\t\t\tif(n == 0)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tdouble[] s = new double[1000];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i=0; i<n; i++)\n\t\t\t{\n\t\t\t\ts[i] = scanner.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\t\n\t\t\tdouble m = sum/n;\n\t\t\tdouble v = 0;\n\t\t\tfor(int i=0; i<n; i++)\n\t\t\t{\n\t\t\t\tv += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\n\t\t\tSystem.out.printf(\"%1$.8f\\n\", Math.sqrt(v/n));\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tfor(;;)\n\t\t{\n\t\t\tint n = scanner.nextInt();\n\t\t\tif(n == 0)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tdouble[] s = new double[1000];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i=0; i<n; i++)\n\t\t\t{\n\t\t\t\ts[i] = scanner.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\t\n\t\t\tdouble m = sum/n;\n\t\t\tdouble v = 0;\n\t\t\tfor(int i=0; i<n; i++)\n\t\t\t{\n\t\t\t\tv += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\n\t\t\tSystem.out.printf(\"%1$.8f\\n\", Math.sqrt(v/n));\n\t\t}\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tfor(;;)\n\t\t{\n\t\t\tint n = scanner.nextInt();\n\t\t\tif(n == 0)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tdouble[] s = new double[1000];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i=0; i<n; i++)\n\t\t\t{\n\t\t\t\ts[i] = scanner.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\t\n\t\t\tdouble m = sum/n;\n\t\t\tdouble v = 0;\n\t\t\tfor(int i=0; i<n; i++)\n\t\t\t{\n\t\t\t\tv += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\n\t\t\tSystem.out.printf(\"%1$.8f\\n\", Math.sqrt(v/n));\n\t\t}\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "for(;;)\n\t\t{\n\t\t\tint n = scanner.nextInt();\n\t\t\tif(n == 0)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tdouble[] s = new double[1000];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i=0; i<n; i++)\n\t\t\t{\n\t\t\t\ts[i] = scanner.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\t\n\t\t\tdouble m = sum/n;\n\t\t\tdouble v = 0;\n\t\t\tfor(int i=0; i<n; i++)\n\t\t\t{\n\t\t\t\tv += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\n\t\t\tSystem.out.printf(\"%1$.8f\\n\", Math.sqrt(v/n));\n\t\t}", ";", "{\n\t\t\tint n = scanner.nextInt();\n\t\t\tif(n == 0)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tdouble[] s = new double[1000];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i=0; i<n; i++)\n\t\t\t{\n\t\t\t\ts[i] = scanner.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\t\n\t\t\tdouble m = sum/n;\n\t\t\tdouble v = 0;\n\t\t\tfor(int i=0; i<n; i++)\n\t\t\t{\n\t\t\t\tv += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\n\t\t\tSystem.out.printf(\"%1$.8f\\n\", Math.sqrt(v/n));\n\t\t}", "{\n\t\t\tint n = scanner.nextInt();\n\t\t\tif(n == 0)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tdouble[] s = new double[1000];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i=0; i<n; i++)\n\t\t\t{\n\t\t\t\ts[i] = scanner.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\t\n\t\t\tdouble m = sum/n;\n\t\t\tdouble v = 0;\n\t\t\tfor(int i=0; i<n; i++)\n\t\t\t{\n\t\t\t\tv += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\n\t\t\tSystem.out.printf(\"%1$.8f\\n\", Math.sqrt(v/n));\n\t\t}", "int n = scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "if(n == 0)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}", "n == 0", "n", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "double[] s = new double[1000];", "s", "new double[1000]", "1000", "double sum = 0;", "sum", "0", "for(int i=0; i<n; i++)\n\t\t\t{\n\t\t\t\ts[i] = scanner.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\ts[i] = scanner.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}", "{\n\t\t\t\ts[i] = scanner.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}", "s[i] = scanner.nextDouble()", "s[i]", "s", "i", "scanner.nextDouble()", "scanner.nextDouble", "scanner", "sum += s[i]", "sum", "s[i]", "s", "i", "double m = sum/n;", "m", "sum/n", "sum", "n", "double v = 0;", "v", "0", "for(int i=0; i<n; i++)\n\t\t\t{\n\t\t\t\tv += (s[i] - m) * (s[i] - m);\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tv += (s[i] - m) * (s[i] - m);\n\t\t\t}", "{\n\t\t\t\tv += (s[i] - m) * (s[i] - m);\n\t\t\t}", "v += (s[i] - m) * (s[i] - m)", "v", "(s[i] - m) * (s[i] - m)", "(s[i] - m)", "s[i]", "s", "i", "m", "(s[i] - m)", "s[i]", "s", "i", "m", "System.out.printf(\"%1$.8f\\n\", Math.sqrt(v/n))", "System.out.printf", "System.out", "System", "System.out", "\"%1$.8f\\n\"", "Math.sqrt(v/n)", "Math.sqrt", "Math", "v/n", "v", "n", "String[] args", "args", "public class Main \n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tfor(;;)\n\t\t{\n\t\t\tint n = scanner.nextInt();\n\t\t\tif(n == 0)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tdouble[] s = new double[1000];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i=0; i<n; i++)\n\t\t\t{\n\t\t\t\ts[i] = scanner.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\t\n\t\t\tdouble m = sum/n;\n\t\t\tdouble v = 0;\n\t\t\tfor(int i=0; i<n; i++)\n\t\t\t{\n\t\t\t\tv += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\n\t\t\tSystem.out.printf(\"%1$.8f\\n\", Math.sqrt(v/n));\n\t\t}\n\t}\n}", "public class Main \n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tfor(;;)\n\t\t{\n\t\t\tint n = scanner.nextInt();\n\t\t\tif(n == 0)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tdouble[] s = new double[1000];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i=0; i<n; i++)\n\t\t\t{\n\t\t\t\ts[i] = scanner.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\t\n\t\t\tdouble m = sum/n;\n\t\t\tdouble v = 0;\n\t\t\tfor(int i=0; i<n; i++)\n\t\t\t{\n\t\t\t\tv += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\n\t\t\tSystem.out.printf(\"%1$.8f\\n\", Math.sqrt(v/n));\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); for(;;) { int n = scanner.nextInt(); if(n == 0) { break; } double[] s = new double[1000]; double sum = 0; for(int i=0; i<n; i++) { s[i] = scanner.nextDouble(); sum += s[i]; } double m = sum/n; double v = 0; for(int i=0; i<n; i++) { v += (s[i] - m) * (s[i] - m); } System.out.printf("%1$.8f\n", Math.sqrt(v/n)); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 17, 11, 1, 0, 13, 17, 17, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 14, 2, 13, 17, 3, 0, 13, 17, 0, 13, 17, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 0, 18, 13, 13, 4, 18, 13, 2, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 161, 5 ], [ 161, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 13, 18 ], [ 9, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 19, 23 ], [ 23, 24 ], [ 19, 25 ], [ 25, 26 ], [ 19, 27 ], [ 27, 28 ], [ 19, 29 ], [ 29, 30 ], [ 19, 31 ], [ 31, 32 ], [ 19, 33 ], [ 33, 34 ], [ 33, 35 ], [ 19, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 37, 43 ], [ 43, 44 ], [ 44, 45 ], [ 37, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 47, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 47, 58 ], [ 58, 59 ], [ 58, 60 ], [ 47, 61 ], [ 61, 62 ], [ 61, 63 ], [ 47, 64 ], [ 64, 65 ], [ 64, 66 ], [ 47, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 73, 74 ], [ 73, 75 ], [ 68, 76 ], [ 76, 77 ], [ 77, 78 ], [ 68, 79 ], [ 80, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 86, 87 ], [ 80, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 47, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 47, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 103, 104 ], [ 103, 105 ], [ 98, 106 ], [ 106, 107 ], [ 107, 108 ], [ 98, 109 ], [ 110, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 113, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 119, 123 ], [ 47, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 128, 129 ], [ 129, 130 ], [ 128, 131 ], [ 131, 132 ], [ 131, 133 ], [ 19, 134 ], [ 134, 135 ], [ 135, 136 ], [ 19, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 137, 142 ], [ 142, 143 ], [ 142, 144 ], [ 137, 145 ], [ 145, 146 ], [ 146, 147 ], [ 137, 148 ], [ 149, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 150, 155 ], [ 155, 156 ], [ 155, 157 ], [ 6, 158 ], [ 158, 159 ], [ 0, 160 ], [ 160, 161 ], [ 160, 162 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main (String[] args)\n {\n try\n {\n Scanner sc = new Scanner(System.in);\n int i, n, sum;\n double avg, s2;\n double[] s = new double[10000];\n\n for (i = 0; true; i++)\n {\n n = sc.nextInt();\n if (n == 0) break;\n sum = 0;\n s2 = 0;\n int[] x = new int[n];\n for (int m = 0; m < n; m++)\n {\n x[m] = sc.nextInt();\n sum += x[m];\n }\n avg = (double) sum / n;\n\n for (int m = 0; m < n; m++)\n {\n s2 += (double) (x[m] - avg) * (x[m] - avg);\n }\n s[i] = Math.sqrt(s2 / n);\n }\n sc.close();\n\n for (int m = 0; m < i; m++)\n {\n System.out.println(s[m]);\n }\n }\n catch (NumberFormatException e)\n {\n System.out.println(e);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main (String[] args)\n {\n try\n {\n Scanner sc = new Scanner(System.in);\n int i, n, sum;\n double avg, s2;\n double[] s = new double[10000];\n\n for (i = 0; true; i++)\n {\n n = sc.nextInt();\n if (n == 0) break;\n sum = 0;\n s2 = 0;\n int[] x = new int[n];\n for (int m = 0; m < n; m++)\n {\n x[m] = sc.nextInt();\n sum += x[m];\n }\n avg = (double) sum / n;\n\n for (int m = 0; m < n; m++)\n {\n s2 += (double) (x[m] - avg) * (x[m] - avg);\n }\n s[i] = Math.sqrt(s2 / n);\n }\n sc.close();\n\n for (int m = 0; m < i; m++)\n {\n System.out.println(s[m]);\n }\n }\n catch (NumberFormatException e)\n {\n System.out.println(e);\n }\n }\n}", "Main", "public static void main (String[] args)\n {\n try\n {\n Scanner sc = new Scanner(System.in);\n int i, n, sum;\n double avg, s2;\n double[] s = new double[10000];\n\n for (i = 0; true; i++)\n {\n n = sc.nextInt();\n if (n == 0) break;\n sum = 0;\n s2 = 0;\n int[] x = new int[n];\n for (int m = 0; m < n; m++)\n {\n x[m] = sc.nextInt();\n sum += x[m];\n }\n avg = (double) sum / n;\n\n for (int m = 0; m < n; m++)\n {\n s2 += (double) (x[m] - avg) * (x[m] - avg);\n }\n s[i] = Math.sqrt(s2 / n);\n }\n sc.close();\n\n for (int m = 0; m < i; m++)\n {\n System.out.println(s[m]);\n }\n }\n catch (NumberFormatException e)\n {\n System.out.println(e);\n }\n }", "main", "{\n try\n {\n Scanner sc = new Scanner(System.in);\n int i, n, sum;\n double avg, s2;\n double[] s = new double[10000];\n\n for (i = 0; true; i++)\n {\n n = sc.nextInt();\n if (n == 0) break;\n sum = 0;\n s2 = 0;\n int[] x = new int[n];\n for (int m = 0; m < n; m++)\n {\n x[m] = sc.nextInt();\n sum += x[m];\n }\n avg = (double) sum / n;\n\n for (int m = 0; m < n; m++)\n {\n s2 += (double) (x[m] - avg) * (x[m] - avg);\n }\n s[i] = Math.sqrt(s2 / n);\n }\n sc.close();\n\n for (int m = 0; m < i; m++)\n {\n System.out.println(s[m]);\n }\n }\n catch (NumberFormatException e)\n {\n System.out.println(e);\n }\n }", "try\n {\n Scanner sc = new Scanner(System.in);\n int i, n, sum;\n double avg, s2;\n double[] s = new double[10000];\n\n for (i = 0; true; i++)\n {\n n = sc.nextInt();\n if (n == 0) break;\n sum = 0;\n s2 = 0;\n int[] x = new int[n];\n for (int m = 0; m < n; m++)\n {\n x[m] = sc.nextInt();\n sum += x[m];\n }\n avg = (double) sum / n;\n\n for (int m = 0; m < n; m++)\n {\n s2 += (double) (x[m] - avg) * (x[m] - avg);\n }\n s[i] = Math.sqrt(s2 / n);\n }\n sc.close();\n\n for (int m = 0; m < i; m++)\n {\n System.out.println(s[m]);\n }\n }\n catch (NumberFormatException e)\n {\n System.out.println(e);\n }", "catch (NumberFormatException e)\n {\n System.out.println(e);\n }", "NumberFormatException e", "{\n System.out.println(e);\n }", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "{\n Scanner sc = new Scanner(System.in);\n int i, n, sum;\n double avg, s2;\n double[] s = new double[10000];\n\n for (i = 0; true; i++)\n {\n n = sc.nextInt();\n if (n == 0) break;\n sum = 0;\n s2 = 0;\n int[] x = new int[n];\n for (int m = 0; m < n; m++)\n {\n x[m] = sc.nextInt();\n sum += x[m];\n }\n avg = (double) sum / n;\n\n for (int m = 0; m < n; m++)\n {\n s2 += (double) (x[m] - avg) * (x[m] - avg);\n }\n s[i] = Math.sqrt(s2 / n);\n }\n sc.close();\n\n for (int m = 0; m < i; m++)\n {\n System.out.println(s[m]);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int i", "i", "n", "n", "sum;", "sum", "double avg", "avg", "s2;", "s2", "double[] s = new double[10000];", "s", "new double[10000]", "10000", "for (i = 0; true; i++)\n {\n n = sc.nextInt();\n if (n == 0) break;\n sum = 0;\n s2 = 0;\n int[] x = new int[n];\n for (int m = 0; m < n; m++)\n {\n x[m] = sc.nextInt();\n sum += x[m];\n }\n avg = (double) sum / n;\n\n for (int m = 0; m < n; m++)\n {\n s2 += (double) (x[m] - avg) * (x[m] - avg);\n }\n s[i] = Math.sqrt(s2 / n);\n }", "i = 0;", "i = 0", "i", "0", "true", "i++", "i++", "i", "{\n n = sc.nextInt();\n if (n == 0) break;\n sum = 0;\n s2 = 0;\n int[] x = new int[n];\n for (int m = 0; m < n; m++)\n {\n x[m] = sc.nextInt();\n sum += x[m];\n }\n avg = (double) sum / n;\n\n for (int m = 0; m < n; m++)\n {\n s2 += (double) (x[m] - avg) * (x[m] - avg);\n }\n s[i] = Math.sqrt(s2 / n);\n }", "{\n n = sc.nextInt();\n if (n == 0) break;\n sum = 0;\n s2 = 0;\n int[] x = new int[n];\n for (int m = 0; m < n; m++)\n {\n x[m] = sc.nextInt();\n sum += x[m];\n }\n avg = (double) sum / n;\n\n for (int m = 0; m < n; m++)\n {\n s2 += (double) (x[m] - avg) * (x[m] - avg);\n }\n s[i] = Math.sqrt(s2 / n);\n }", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "if (n == 0) break;", "n == 0", "n", "0", "break;", "sum = 0", "sum", "0", "s2 = 0", "s2", "0", "int[] x = new int[n];", "x", "new int[n]", "n", "for (int m = 0; m < n; m++)\n {\n x[m] = sc.nextInt();\n sum += x[m];\n }", "int m = 0;", "int m = 0;", "m", "0", "m < n", "m", "n", "m++", "m++", "m", "{\n x[m] = sc.nextInt();\n sum += x[m];\n }", "{\n x[m] = sc.nextInt();\n sum += x[m];\n }", "x[m] = sc.nextInt()", "x[m]", "x", "m", "sc.nextInt()", "sc.nextInt", "sc", "sum += x[m]", "sum", "x[m]", "x", "m", "avg = (double) sum / n", "avg", "(double) sum / n", "(double) sum", "n", "for (int m = 0; m < n; m++)\n {\n s2 += (double) (x[m] - avg) * (x[m] - avg);\n }", "int m = 0;", "int m = 0;", "m", "0", "m < n", "m", "n", "m++", "m++", "m", "{\n s2 += (double) (x[m] - avg) * (x[m] - avg);\n }", "{\n s2 += (double) (x[m] - avg) * (x[m] - avg);\n }", "s2 += (double) (x[m] - avg) * (x[m] - avg)", "s2", "(double) (x[m] - avg) * (x[m] - avg)", "(double) (x[m] - avg)", "x[m]", "x", "m", "avg", "(x[m] - avg)", "x[m]", "x", "m", "avg", "s[i] = Math.sqrt(s2 / n)", "s[i]", "s", "i", "Math.sqrt(s2 / n)", "Math.sqrt", "Math", "s2 / n", "s2", "n", "sc.close()", "sc.close", "sc", "for (int m = 0; m < i; m++)\n {\n System.out.println(s[m]);\n }", "int m = 0;", "int m = 0;", "m", "0", "m < i", "m", "i", "m++", "m++", "m", "{\n System.out.println(s[m]);\n }", "{\n System.out.println(s[m]);\n }", "System.out.println(s[m])", "System.out.println", "System.out", "System", "System.out", "s[m]", "s", "m", "String[] args", "args", "public class Main {\n public static void main (String[] args)\n {\n try\n {\n Scanner sc = new Scanner(System.in);\n int i, n, sum;\n double avg, s2;\n double[] s = new double[10000];\n\n for (i = 0; true; i++)\n {\n n = sc.nextInt();\n if (n == 0) break;\n sum = 0;\n s2 = 0;\n int[] x = new int[n];\n for (int m = 0; m < n; m++)\n {\n x[m] = sc.nextInt();\n sum += x[m];\n }\n avg = (double) sum / n;\n\n for (int m = 0; m < n; m++)\n {\n s2 += (double) (x[m] - avg) * (x[m] - avg);\n }\n s[i] = Math.sqrt(s2 / n);\n }\n sc.close();\n\n for (int m = 0; m < i; m++)\n {\n System.out.println(s[m]);\n }\n }\n catch (NumberFormatException e)\n {\n System.out.println(e);\n }\n }\n}", "public class Main {\n public static void main (String[] args)\n {\n try\n {\n Scanner sc = new Scanner(System.in);\n int i, n, sum;\n double avg, s2;\n double[] s = new double[10000];\n\n for (i = 0; true; i++)\n {\n n = sc.nextInt();\n if (n == 0) break;\n sum = 0;\n s2 = 0;\n int[] x = new int[n];\n for (int m = 0; m < n; m++)\n {\n x[m] = sc.nextInt();\n sum += x[m];\n }\n avg = (double) sum / n;\n\n for (int m = 0; m < n; m++)\n {\n s2 += (double) (x[m] - avg) * (x[m] - avg);\n }\n s[i] = Math.sqrt(s2 / n);\n }\n sc.close();\n\n for (int m = 0; m < i; m++)\n {\n System.out.println(s[m]);\n }\n }\n catch (NumberFormatException e)\n {\n System.out.println(e);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main (String[] args) { try { Scanner sc = new Scanner(System.in); int i, n, sum; double avg, s2; double[] s = new double[10000]; for (i = 0; true; i++) { n = sc.nextInt(); if (n == 0) break; sum = 0; s2 = 0; int[] x = new int[n]; for (int m = 0; m < n; m++) { x[m] = sc.nextInt(); sum += x[m]; } avg = (double) sum / n; for (int m = 0; m < n; m++) { s2 += (double) (x[m] - avg) * (x[m] - avg); } s[i] = Math.sqrt(s2 / n); } sc.close(); for (int m = 0; m < i; m++) { System.out.println(s[m]); } } catch (NumberFormatException e) { System.out.println(e); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 41, 13, 41, 13, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 2, 13, 17, 3, 0, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 13, 0, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 2, 13, 13, 4, 18, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 26, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 26, 37 ], [ 37, 38 ], [ 37, 39 ], [ 26, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 40, 48 ], [ 48, 49 ], [ 49, 50 ], [ 40, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 58, 59 ], [ 52, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 26, 65 ], [ 65, 66 ], [ 65, 67 ], [ 26, 68 ], [ 68, 69 ], [ 68, 70 ], [ 26, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 76, 77 ], [ 76, 78 ], [ 71, 79 ], [ 79, 80 ], [ 80, 81 ], [ 71, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 85, 93 ], [ 26, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 102, 103 ], [ 102, 104 ], [ 8, 105 ], [ 105, 106 ], [ 106, 107 ], [ 6, 108 ], [ 108, 109 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tdouble s[]=new double[1000],t1,t2;\n\t\tint n,i;\n\t\twhile(true) {\n\t\t\tn=scan.nextInt();\n\t\t\tif(n==0) break;\n\t\t\tt1=0;\n\t\t\tfor(i=0;i<n;i++) {\n\t\t\t\ts[i]=scan.nextDouble();\n\t\t\t\tt1+=s[i];\n\t\t\t}\n\t\t\tt1/=n;\n\t\t\tt2=0;\n\t\t\tfor(i=0;i<n;i++) t2+=Math.pow(s[i]-t1, 2);\n\t\t\tSystem.out.println(Math.sqrt(t2/n));\n\t\t}\n\t\tscan.close();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tdouble s[]=new double[1000],t1,t2;\n\t\tint n,i;\n\t\twhile(true) {\n\t\t\tn=scan.nextInt();\n\t\t\tif(n==0) break;\n\t\t\tt1=0;\n\t\t\tfor(i=0;i<n;i++) {\n\t\t\t\ts[i]=scan.nextDouble();\n\t\t\t\tt1+=s[i];\n\t\t\t}\n\t\t\tt1/=n;\n\t\t\tt2=0;\n\t\t\tfor(i=0;i<n;i++) t2+=Math.pow(s[i]-t1, 2);\n\t\t\tSystem.out.println(Math.sqrt(t2/n));\n\t\t}\n\t\tscan.close();\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tdouble s[]=new double[1000],t1,t2;\n\t\tint n,i;\n\t\twhile(true) {\n\t\t\tn=scan.nextInt();\n\t\t\tif(n==0) break;\n\t\t\tt1=0;\n\t\t\tfor(i=0;i<n;i++) {\n\t\t\t\ts[i]=scan.nextDouble();\n\t\t\t\tt1+=s[i];\n\t\t\t}\n\t\t\tt1/=n;\n\t\t\tt2=0;\n\t\t\tfor(i=0;i<n;i++) t2+=Math.pow(s[i]-t1, 2);\n\t\t\tSystem.out.println(Math.sqrt(t2/n));\n\t\t}\n\t\tscan.close();\n\t}", "main", "{\n\t\tScanner scan=new Scanner(System.in);\n\t\tdouble s[]=new double[1000],t1,t2;\n\t\tint n,i;\n\t\twhile(true) {\n\t\t\tn=scan.nextInt();\n\t\t\tif(n==0) break;\n\t\t\tt1=0;\n\t\t\tfor(i=0;i<n;i++) {\n\t\t\t\ts[i]=scan.nextDouble();\n\t\t\t\tt1+=s[i];\n\t\t\t}\n\t\t\tt1/=n;\n\t\t\tt2=0;\n\t\t\tfor(i=0;i<n;i++) t2+=Math.pow(s[i]-t1, 2);\n\t\t\tSystem.out.println(Math.sqrt(t2/n));\n\t\t}\n\t\tscan.close();\n\t}", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "double s[]=new double[1000]", "s", "new double[1000]", "1000", "t1", "t1", "t2;", "t2", "int n", "n", "i;", "i", "while(true) {\n\t\t\tn=scan.nextInt();\n\t\t\tif(n==0) break;\n\t\t\tt1=0;\n\t\t\tfor(i=0;i<n;i++) {\n\t\t\t\ts[i]=scan.nextDouble();\n\t\t\t\tt1+=s[i];\n\t\t\t}\n\t\t\tt1/=n;\n\t\t\tt2=0;\n\t\t\tfor(i=0;i<n;i++) t2+=Math.pow(s[i]-t1, 2);\n\t\t\tSystem.out.println(Math.sqrt(t2/n));\n\t\t}", "true", "{\n\t\t\tn=scan.nextInt();\n\t\t\tif(n==0) break;\n\t\t\tt1=0;\n\t\t\tfor(i=0;i<n;i++) {\n\t\t\t\ts[i]=scan.nextDouble();\n\t\t\t\tt1+=s[i];\n\t\t\t}\n\t\t\tt1/=n;\n\t\t\tt2=0;\n\t\t\tfor(i=0;i<n;i++) t2+=Math.pow(s[i]-t1, 2);\n\t\t\tSystem.out.println(Math.sqrt(t2/n));\n\t\t}", "n=scan.nextInt()", "n", "scan.nextInt()", "scan.nextInt", "scan", "if(n==0) break;", "n==0", "n", "0", "break;", "t1=0", "t1", "0", "for(i=0;i<n;i++) {\n\t\t\t\ts[i]=scan.nextDouble();\n\t\t\t\tt1+=s[i];\n\t\t\t}", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\ts[i]=scan.nextDouble();\n\t\t\t\tt1+=s[i];\n\t\t\t}", "{\n\t\t\t\ts[i]=scan.nextDouble();\n\t\t\t\tt1+=s[i];\n\t\t\t}", "s[i]=scan.nextDouble()", "s[i]", "s", "i", "scan.nextDouble()", "scan.nextDouble", "scan", "t1+=s[i]", "t1", "s[i]", "s", "i", "t1/=n", "t1", "n", "t2=0", "t2", "0", "for(i=0;i<n;i++) t2+=Math.pow(s[i]-t1, 2);", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "t2+=Math.pow(s[i]-t1, 2);", "t2+=Math.pow(s[i]-t1, 2)", "t2", "Math.pow(s[i]-t1, 2)", "Math.pow", "Math", "s[i]-t1", "s[i]", "s", "i", "t1", "2", "System.out.println(Math.sqrt(t2/n))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(t2/n)", "Math.sqrt", "Math", "t2/n", "t2", "n", "scan.close()", "scan.close", "scan", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args) { Scanner scan=new Scanner(System.in); double s[]=new double[1000],t1,t2; int n,i; while(true) { n=scan.nextInt(); if(n==0) break; t1=0; for(i=0;i<n;i++) { s[i]=scan.nextDouble(); t1+=s[i]; } t1/=n; t2=0; for(i=0;i<n;i++) t2+=Math.pow(s[i]-t1, 2); System.out.println(Math.sqrt(t2/n)); } scan.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 42, 2, 0, 13, 4, 18, 13, 17, 30, 41, 13, 20, 13, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 13, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 13, 18, 13, 13, 17, 0, 13, 13, 0, 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 ], [ 111, 5 ], [ 111, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 19, 25 ], [ 18, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 34, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 52, 53 ], [ 46, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 26, 59 ], [ 59, 60 ], [ 59, 61 ], [ 26, 62 ], [ 62, 63 ], [ 62, 64 ], [ 26, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 70, 71 ], [ 70, 72 ], [ 65, 73 ], [ 73, 74 ], [ 74, 75 ], [ 65, 76 ], [ 77, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 80, 88 ], [ 26, 89 ], [ 89, 90 ], [ 89, 91 ], [ 26, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 26, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 98, 104 ], [ 8, 105 ], [ 105, 106 ], [ 106, 107 ], [ 6, 108 ], [ 108, 109 ], [ 0, 110 ], [ 110, 111 ], [ 110, 112 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n;\n\t\tdouble ave,d;\n\t\twhile((n=scan.nextInt())!=0){\n\t\t\tint[] point=new int[n];\n\t\t\tave=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tpoint[i]=scan.nextInt();\n\t\t\t\tave+=point[i];\n\t\t\t}\n\t\t\tave/=(double)n;\n\t\t\td=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\td+=(Math.pow((ave-point[i]),2));\n\t\t\t}\n\t\t\td/=(double)n;\n\t\t\td=Math.sqrt(d);\n\t\t\tSystem.out.printf(\"%.8f\\n\",d);\n\t\t}\n\t\tscan.close();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n;\n\t\tdouble ave,d;\n\t\twhile((n=scan.nextInt())!=0){\n\t\t\tint[] point=new int[n];\n\t\t\tave=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tpoint[i]=scan.nextInt();\n\t\t\t\tave+=point[i];\n\t\t\t}\n\t\t\tave/=(double)n;\n\t\t\td=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\td+=(Math.pow((ave-point[i]),2));\n\t\t\t}\n\t\t\td/=(double)n;\n\t\t\td=Math.sqrt(d);\n\t\t\tSystem.out.printf(\"%.8f\\n\",d);\n\t\t}\n\t\tscan.close();\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n;\n\t\tdouble ave,d;\n\t\twhile((n=scan.nextInt())!=0){\n\t\t\tint[] point=new int[n];\n\t\t\tave=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tpoint[i]=scan.nextInt();\n\t\t\t\tave+=point[i];\n\t\t\t}\n\t\t\tave/=(double)n;\n\t\t\td=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\td+=(Math.pow((ave-point[i]),2));\n\t\t\t}\n\t\t\td/=(double)n;\n\t\t\td=Math.sqrt(d);\n\t\t\tSystem.out.printf(\"%.8f\\n\",d);\n\t\t}\n\t\tscan.close();\n\t}", "main", "{\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n;\n\t\tdouble ave,d;\n\t\twhile((n=scan.nextInt())!=0){\n\t\t\tint[] point=new int[n];\n\t\t\tave=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tpoint[i]=scan.nextInt();\n\t\t\t\tave+=point[i];\n\t\t\t}\n\t\t\tave/=(double)n;\n\t\t\td=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\td+=(Math.pow((ave-point[i]),2));\n\t\t\t}\n\t\t\td/=(double)n;\n\t\t\td=Math.sqrt(d);\n\t\t\tSystem.out.printf(\"%.8f\\n\",d);\n\t\t}\n\t\tscan.close();\n\t}", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n;", "n", "double ave", "ave", "d;", "d", "while((n=scan.nextInt())!=0){\n\t\t\tint[] point=new int[n];\n\t\t\tave=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tpoint[i]=scan.nextInt();\n\t\t\t\tave+=point[i];\n\t\t\t}\n\t\t\tave/=(double)n;\n\t\t\td=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\td+=(Math.pow((ave-point[i]),2));\n\t\t\t}\n\t\t\td/=(double)n;\n\t\t\td=Math.sqrt(d);\n\t\t\tSystem.out.printf(\"%.8f\\n\",d);\n\t\t}", "(n=scan.nextInt())!=0", "(n=scan.nextInt())", "n", "scan.nextInt()", "scan.nextInt", "scan", "0", "{\n\t\t\tint[] point=new int[n];\n\t\t\tave=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tpoint[i]=scan.nextInt();\n\t\t\t\tave+=point[i];\n\t\t\t}\n\t\t\tave/=(double)n;\n\t\t\td=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\td+=(Math.pow((ave-point[i]),2));\n\t\t\t}\n\t\t\td/=(double)n;\n\t\t\td=Math.sqrt(d);\n\t\t\tSystem.out.printf(\"%.8f\\n\",d);\n\t\t}", "int[] point=new int[n];", "point", "new int[n]", "n", "ave=0", "ave", "0", "for(int i=0;i<n;i++){\n\t\t\t\tpoint[i]=scan.nextInt();\n\t\t\t\tave+=point[i];\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tpoint[i]=scan.nextInt();\n\t\t\t\tave+=point[i];\n\t\t\t}", "{\n\t\t\t\tpoint[i]=scan.nextInt();\n\t\t\t\tave+=point[i];\n\t\t\t}", "point[i]=scan.nextInt()", "point[i]", "point", "i", "scan.nextInt()", "scan.nextInt", "scan", "ave+=point[i]", "ave", "point[i]", "point", "i", "ave/=(double)n", "ave", "(double)n", "d=0", "d", "0", "for(int i=0;i<n;i++){\n\t\t\t\td+=(Math.pow((ave-point[i]),2));\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\td+=(Math.pow((ave-point[i]),2));\n\t\t\t}", "{\n\t\t\t\td+=(Math.pow((ave-point[i]),2));\n\t\t\t}", "d+=(Math.pow((ave-point[i]),2))", "d", "(Math.pow((ave-point[i]),2))", "Math.pow", "Math", "(ave-point[i])", "ave", "point[i]", "point", "i", "2", "d/=(double)n", "d", "(double)n", "d=Math.sqrt(d)", "d", "Math.sqrt(d)", "Math.sqrt", "Math", "d", "System.out.printf(\"%.8f\\n\",d)", "System.out.printf", "System.out", "System", "System.out", "\"%.8f\\n\"", "d", "scan.close()", "scan.close", "scan", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n;\n\t\tdouble ave,d;\n\t\twhile((n=scan.nextInt())!=0){\n\t\t\tint[] point=new int[n];\n\t\t\tave=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tpoint[i]=scan.nextInt();\n\t\t\t\tave+=point[i];\n\t\t\t}\n\t\t\tave/=(double)n;\n\t\t\td=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\td+=(Math.pow((ave-point[i]),2));\n\t\t\t}\n\t\t\td/=(double)n;\n\t\t\td=Math.sqrt(d);\n\t\t\tSystem.out.printf(\"%.8f\\n\",d);\n\t\t}\n\t\tscan.close();\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n;\n\t\tdouble ave,d;\n\t\twhile((n=scan.nextInt())!=0){\n\t\t\tint[] point=new int[n];\n\t\t\tave=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tpoint[i]=scan.nextInt();\n\t\t\t\tave+=point[i];\n\t\t\t}\n\t\t\tave/=(double)n;\n\t\t\td=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\td+=(Math.pow((ave-point[i]),2));\n\t\t\t}\n\t\t\td/=(double)n;\n\t\t\td=Math.sqrt(d);\n\t\t\tSystem.out.printf(\"%.8f\\n\",d);\n\t\t}\n\t\tscan.close();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scan=new Scanner(System.in); int n; double ave,d; while((n=scan.nextInt())!=0){ int[] point=new int[n]; ave=0; for(int i=0;i<n;i++){ point[i]=scan.nextInt(); ave+=point[i]; } ave/=(double)n; d=0; for(int i=0;i<n;i++){ d+=(Math.pow((ave-point[i]),2)); } d/=(double)n; d=Math.sqrt(d); System.out.printf("%.8f\n",d); } scan.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 2, 13, 17, 3, 0, 13, 20, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 0, 18, 13, 13, 13, 0, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 18, 13, 13, 2, 13, 13, 2, 18, 13, 13, 2, 13, 13, 4, 18, 18, 13, 13, 17, 4, 18, 13, 2, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 110, 5 ], [ 110, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 18, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 28 ], [ 18, 29 ], [ 29, 30 ], [ 29, 31 ], [ 18, 33 ], [ 33, 34 ], [ 33, 35 ], [ 18, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 36, 44 ], [ 44, 45 ], [ 45, 46 ], [ 36, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 48, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 48, 59 ], [ 59, 60 ], [ 59, 61 ], [ 18, 62 ], [ 62, 63 ], [ 62, 64 ], [ 18, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 70, 71 ], [ 70, 72 ], [ 65, 73 ], [ 73, 74 ], [ 74, 75 ], [ 65, 76 ], [ 77, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 85, 87 ], [ 80, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 92, 93 ], [ 92, 94 ], [ 18, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 95, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 104, 105 ], [ 104, 106 ], [ 6, 107 ], [ 107, 108 ], [ 0, 109 ], [ 109, 110 ], [ 109, 111 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n;\n int[] score;\n while (true) {\n n = sc.nextInt();\n if (n == 0)\n break;\n score = new int[n];\n int sum = 0;\n for (int i = 0; i < n; i++) {\n int s = sc.nextInt();\n score[i] = s;\n sum += s;\n }\n double tmp = 0;\n for (int i = 0; i < n; i++) {\n tmp += ((double)score[i] - (double)sum / n) * ((double)score[i] - (double)sum / n);\n }\n System.out.printf(\"%.8f\\n\", Math.sqrt(tmp / n));\n }\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 n;\n int[] score;\n while (true) {\n n = sc.nextInt();\n if (n == 0)\n break;\n score = new int[n];\n int sum = 0;\n for (int i = 0; i < n; i++) {\n int s = sc.nextInt();\n score[i] = s;\n sum += s;\n }\n double tmp = 0;\n for (int i = 0; i < n; i++) {\n tmp += ((double)score[i] - (double)sum / n) * ((double)score[i] - (double)sum / n);\n }\n System.out.printf(\"%.8f\\n\", Math.sqrt(tmp / n));\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n;\n int[] score;\n while (true) {\n n = sc.nextInt();\n if (n == 0)\n break;\n score = new int[n];\n int sum = 0;\n for (int i = 0; i < n; i++) {\n int s = sc.nextInt();\n score[i] = s;\n sum += s;\n }\n double tmp = 0;\n for (int i = 0; i < n; i++) {\n tmp += ((double)score[i] - (double)sum / n) * ((double)score[i] - (double)sum / n);\n }\n System.out.printf(\"%.8f\\n\", Math.sqrt(tmp / n));\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n;\n int[] score;\n while (true) {\n n = sc.nextInt();\n if (n == 0)\n break;\n score = new int[n];\n int sum = 0;\n for (int i = 0; i < n; i++) {\n int s = sc.nextInt();\n score[i] = s;\n sum += s;\n }\n double tmp = 0;\n for (int i = 0; i < n; i++) {\n tmp += ((double)score[i] - (double)sum / n) * ((double)score[i] - (double)sum / n);\n }\n System.out.printf(\"%.8f\\n\", Math.sqrt(tmp / n));\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n;", "n", "int[] score;", "score", "while (true) {\n n = sc.nextInt();\n if (n == 0)\n break;\n score = new int[n];\n int sum = 0;\n for (int i = 0; i < n; i++) {\n int s = sc.nextInt();\n score[i] = s;\n sum += s;\n }\n double tmp = 0;\n for (int i = 0; i < n; i++) {\n tmp += ((double)score[i] - (double)sum / n) * ((double)score[i] - (double)sum / n);\n }\n System.out.printf(\"%.8f\\n\", Math.sqrt(tmp / n));\n }", "true", "{\n n = sc.nextInt();\n if (n == 0)\n break;\n score = new int[n];\n int sum = 0;\n for (int i = 0; i < n; i++) {\n int s = sc.nextInt();\n score[i] = s;\n sum += s;\n }\n double tmp = 0;\n for (int i = 0; i < n; i++) {\n tmp += ((double)score[i] - (double)sum / n) * ((double)score[i] - (double)sum / n);\n }\n System.out.printf(\"%.8f\\n\", Math.sqrt(tmp / n));\n }", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "if (n == 0)\n break;", "n == 0", "n", "0", "break;", "score = new int[n]", "score", "new int[n]", "n", "int sum = 0;", "sum", "0", "for (int i = 0; i < n; i++) {\n int s = sc.nextInt();\n score[i] = s;\n sum += s;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n int s = sc.nextInt();\n score[i] = s;\n sum += s;\n }", "{\n int s = sc.nextInt();\n score[i] = s;\n sum += s;\n }", "int s = sc.nextInt();", "s", "sc.nextInt()", "sc.nextInt", "sc", "score[i] = s", "score[i]", "score", "i", "s", "sum += s", "sum", "s", "double tmp = 0;", "tmp", "0", "for (int i = 0; i < n; i++) {\n tmp += ((double)score[i] - (double)sum / n) * ((double)score[i] - (double)sum / n);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n tmp += ((double)score[i] - (double)sum / n) * ((double)score[i] - (double)sum / n);\n }", "{\n tmp += ((double)score[i] - (double)sum / n) * ((double)score[i] - (double)sum / n);\n }", "tmp += ((double)score[i] - (double)sum / n) * ((double)score[i] - (double)sum / n)", "tmp", "((double)score[i] - (double)sum / n) * ((double)score[i] - (double)sum / n)", "((double)score[i] - (double)sum / n)", "(double)score[i]", "score", "i", "(double)sum / n", "(double)sum", "n", "((double)score[i] - (double)sum / n)", "(double)score[i]", "score", "i", "(double)sum / n", "(double)sum", "n", "System.out.printf(\"%.8f\\n\", Math.sqrt(tmp / n))", "System.out.printf", "System.out", "System", "System.out", "\"%.8f\\n\"", "Math.sqrt(tmp / n)", "Math.sqrt", "Math", "tmp / n", "tmp", "n", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n;\n int[] score;\n while (true) {\n n = sc.nextInt();\n if (n == 0)\n break;\n score = new int[n];\n int sum = 0;\n for (int i = 0; i < n; i++) {\n int s = sc.nextInt();\n score[i] = s;\n sum += s;\n }\n double tmp = 0;\n for (int i = 0; i < n; i++) {\n tmp += ((double)score[i] - (double)sum / n) * ((double)score[i] - (double)sum / n);\n }\n System.out.printf(\"%.8f\\n\", Math.sqrt(tmp / n));\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n;\n int[] score;\n while (true) {\n n = sc.nextInt();\n if (n == 0)\n break;\n score = new int[n];\n int sum = 0;\n for (int i = 0; i < n; i++) {\n int s = sc.nextInt();\n score[i] = s;\n sum += s;\n }\n double tmp = 0;\n for (int i = 0; i < n; i++) {\n tmp += ((double)score[i] - (double)sum / n) * ((double)score[i] - (double)sum / n);\n }\n System.out.printf(\"%.8f\\n\", Math.sqrt(tmp / n));\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n; int[] score; while (true) { n = sc.nextInt(); if (n == 0) break; score = new int[n]; int sum = 0; for (int i = 0; i < n; i++) { int s = sc.nextInt(); score[i] = s; sum += s; } double tmp = 0; for (int i = 0; i < n; i++) { tmp += ((double)score[i] - (double)sum / n) * ((double)score[i] - (double)sum / n); } System.out.printf("%.8f\n", Math.sqrt(tmp / n)); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 42, 2, 0, 13, 4, 18, 13, 17, 30, 41, 13, 20, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 13, 28, 13, 13, 30, 0, 13, 2, 2, 13, 13, 2, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 2, 13, 13, 4, 18, 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 ], [ 8, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 15, 21 ], [ 14, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 27 ], [ 27, 28 ], [ 27, 29 ], [ 22, 30 ], [ 30, 31 ], [ 30, 32 ], [ 22, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 33, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 45, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 22, 58 ], [ 58, 59 ], [ 58, 60 ], [ 22, 61 ], [ 61, 62 ], [ 61, 63 ], [ 61, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 71, 72 ], [ 71, 73 ], [ 22, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 82, 83 ], [ 82, 84 ], [ 8, 85 ], [ 85, 86 ], [ 86, 87 ], [ 6, 88 ], [ 88, 89 ], [ 0, 90 ], [ 90, 91 ], [ 90, 92 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n;\n\t\twhile ((n = sc.nextInt()) != 0) {\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0, sd = 0;\n\t\t\t\n\t\t\tfor (int i=0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm /= n;\n\t\t\tfor (int i: s) sd += (i - m) * (i - m);\n\t\t\tSystem.out.println(Math.sqrt(sd/n));\n\t\t}\n\t\tsc.close();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n;\n\t\twhile ((n = sc.nextInt()) != 0) {\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0, sd = 0;\n\t\t\t\n\t\t\tfor (int i=0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm /= n;\n\t\t\tfor (int i: s) sd += (i - m) * (i - m);\n\t\t\tSystem.out.println(Math.sqrt(sd/n));\n\t\t}\n\t\tsc.close();\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n;\n\t\twhile ((n = sc.nextInt()) != 0) {\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0, sd = 0;\n\t\t\t\n\t\t\tfor (int i=0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm /= n;\n\t\t\tfor (int i: s) sd += (i - m) * (i - m);\n\t\t\tSystem.out.println(Math.sqrt(sd/n));\n\t\t}\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n;\n\t\twhile ((n = sc.nextInt()) != 0) {\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0, sd = 0;\n\t\t\t\n\t\t\tfor (int i=0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm /= n;\n\t\t\tfor (int i: s) sd += (i - m) * (i - m);\n\t\t\tSystem.out.println(Math.sqrt(sd/n));\n\t\t}\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n;", "n", "while ((n = sc.nextInt()) != 0) {\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0, sd = 0;\n\t\t\t\n\t\t\tfor (int i=0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm /= n;\n\t\t\tfor (int i: s) sd += (i - m) * (i - m);\n\t\t\tSystem.out.println(Math.sqrt(sd/n));\n\t\t}", "(n = sc.nextInt()) != 0", "(n = sc.nextInt())", "n", "sc.nextInt()", "sc.nextInt", "sc", "0", "{\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0, sd = 0;\n\t\t\t\n\t\t\tfor (int i=0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm /= n;\n\t\t\tfor (int i: s) sd += (i - m) * (i - m);\n\t\t\tSystem.out.println(Math.sqrt(sd/n));\n\t\t}", "int[] s = new int[n];", "s", "new int[n]", "n", "double m = 0", "m", "0", "sd = 0;", "sd", "0", "for (int i=0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}", "{\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}", "s[i] = sc.nextInt()", "s[i]", "s", "i", "sc.nextInt()", "sc.nextInt", "sc", "m += s[i]", "m", "s[i]", "s", "i", "m /= n", "m", "n", "for (int i: s) sd += (i - m) * (i - m);", "int i", "s", "sd += (i - m) * (i - m);", "sd += (i - m) * (i - m)", "sd", "(i - m) * (i - m)", "(i - m)", "i", "m", "(i - m)", "i", "m", "System.out.println(Math.sqrt(sd/n))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(sd/n)", "Math.sqrt", "Math", "sd/n", "sd", "n", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n;\n\t\twhile ((n = sc.nextInt()) != 0) {\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0, sd = 0;\n\t\t\t\n\t\t\tfor (int i=0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm /= n;\n\t\t\tfor (int i: s) sd += (i - m) * (i - m);\n\t\t\tSystem.out.println(Math.sqrt(sd/n));\n\t\t}\n\t\tsc.close();\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n;\n\t\twhile ((n = sc.nextInt()) != 0) {\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0, sd = 0;\n\t\t\t\n\t\t\tfor (int i=0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm /= n;\n\t\t\tfor (int i: s) sd += (i - m) * (i - m);\n\t\t\tSystem.out.println(Math.sqrt(sd/n));\n\t\t}\n\t\tsc.close();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n; while ((n = sc.nextInt()) != 0) { int[] s = new int[n]; double m = 0, sd = 0; for (int i=0; i < n; i++) { s[i] = sc.nextInt(); m += s[i]; } m /= n; for (int i: s) sd += (i - m) * (i - m); System.out.println(Math.sqrt(sd/n)); } sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 30, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 20, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 0, 13, 2, 13, 18, 13, 13, 0, 13, 2, 13, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 13, 2, 2, 13, 18, 13, 13, 2, 13, 18, 13, 13, 0, 13, 2, 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 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 11, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 30, 31 ], [ 31, 32 ], [ 24, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 37, 38 ], [ 33, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 43, 45 ], [ 39, 46 ], [ 46, 47 ], [ 46, 48 ], [ 39, 49 ], [ 49, 50 ], [ 49, 51 ], [ 39, 52 ], [ 52, 53 ], [ 52, 54 ], [ 39, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 39, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 39, 66 ], [ 66, 67 ], [ 66, 68 ], [ 39, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 75, 76 ], [ 75, 77 ], [ 70, 78 ], [ 78, 79 ], [ 79, 80 ], [ 70, 81 ], [ 82, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 90, 91 ], [ 90, 92 ], [ 82, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 97, 99 ], [ 39, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 102, 104 ], [ 39, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 105, 110 ], [ 110, 111 ], [ 110, 112 ], [ 105, 113 ], [ 113, 114 ], [ 114, 115 ], [ 105, 116 ], [ 117, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 125, 127 ], [ 122, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 130, 132 ], [ 39, 133 ], [ 133, 134 ], [ 133, 135 ], [ 135, 136 ], [ 135, 137 ], [ 39, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 141, 142 ], [ 140, 143 ], [ 39, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 144, 149 ], [ 9, 150 ], [ 150, 151 ] ]
[ "import java.util.Scanner;\nimport java.io.*;\n\nclass Main {\n public static void main(String[] args)throws IOException{ \n \tInputStreamReader in = new InputStreamReader(System.in);\n BufferedReader read = new BufferedReader(in);\n\n int num,count;\n \n while(true){\n \tnum = Integer.parseInt(read.readLine());\n \tif(num == 0){\n \t\tbreak;\n \t}\n \telse{\n \t\tdouble sum = 0;\n double ave = 0;\n double sum2 = 0;\n double a2 = 0;\n double deviation = 0;\n \t\t\n \t\tString line = read.readLine(); \n \t\tString [] spli = line.split(\" \");\n \t\tdouble [] x = new double [num];\n \t\t\n \t\tfor(count = 0; count < num; count++){\n \t\t\tx[count] = Double.parseDouble(spli[count]);\n \t\t\tsum = sum + x[count]; \t\t\t\n \t\t} \n \t\tave = sum/num;\n \t\tfor(count = 0; count < num; count++){\n \t\t\tsum2 = sum2 + (ave-x[count])*(ave-x[count]);\n \t\t}\n \t\ta2 = sum2/num;\n \t\tdeviation = Math.sqrt(a2);\n \t\tSystem.out.println(deviation);\n \t}\t\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.io.*;", "io.*", "java", "class Main {\n public static void main(String[] args)throws IOException{ \n \tInputStreamReader in = new InputStreamReader(System.in);\n BufferedReader read = new BufferedReader(in);\n\n int num,count;\n \n while(true){\n \tnum = Integer.parseInt(read.readLine());\n \tif(num == 0){\n \t\tbreak;\n \t}\n \telse{\n \t\tdouble sum = 0;\n double ave = 0;\n double sum2 = 0;\n double a2 = 0;\n double deviation = 0;\n \t\t\n \t\tString line = read.readLine(); \n \t\tString [] spli = line.split(\" \");\n \t\tdouble [] x = new double [num];\n \t\t\n \t\tfor(count = 0; count < num; count++){\n \t\t\tx[count] = Double.parseDouble(spli[count]);\n \t\t\tsum = sum + x[count]; \t\t\t\n \t\t} \n \t\tave = sum/num;\n \t\tfor(count = 0; count < num; count++){\n \t\t\tsum2 = sum2 + (ave-x[count])*(ave-x[count]);\n \t\t}\n \t\ta2 = sum2/num;\n \t\tdeviation = Math.sqrt(a2);\n \t\tSystem.out.println(deviation);\n \t}\t\n }\n }\n}", "Main", "public static void main(String[] args)throws IOException{ \n \tInputStreamReader in = new InputStreamReader(System.in);\n BufferedReader read = new BufferedReader(in);\n\n int num,count;\n \n while(true){\n \tnum = Integer.parseInt(read.readLine());\n \tif(num == 0){\n \t\tbreak;\n \t}\n \telse{\n \t\tdouble sum = 0;\n double ave = 0;\n double sum2 = 0;\n double a2 = 0;\n double deviation = 0;\n \t\t\n \t\tString line = read.readLine(); \n \t\tString [] spli = line.split(\" \");\n \t\tdouble [] x = new double [num];\n \t\t\n \t\tfor(count = 0; count < num; count++){\n \t\t\tx[count] = Double.parseDouble(spli[count]);\n \t\t\tsum = sum + x[count]; \t\t\t\n \t\t} \n \t\tave = sum/num;\n \t\tfor(count = 0; count < num; count++){\n \t\t\tsum2 = sum2 + (ave-x[count])*(ave-x[count]);\n \t\t}\n \t\ta2 = sum2/num;\n \t\tdeviation = Math.sqrt(a2);\n \t\tSystem.out.println(deviation);\n \t}\t\n }\n }", "main", "{ \n \tInputStreamReader in = new InputStreamReader(System.in);\n BufferedReader read = new BufferedReader(in);\n\n int num,count;\n \n while(true){\n \tnum = Integer.parseInt(read.readLine());\n \tif(num == 0){\n \t\tbreak;\n \t}\n \telse{\n \t\tdouble sum = 0;\n double ave = 0;\n double sum2 = 0;\n double a2 = 0;\n double deviation = 0;\n \t\t\n \t\tString line = read.readLine(); \n \t\tString [] spli = line.split(\" \");\n \t\tdouble [] x = new double [num];\n \t\t\n \t\tfor(count = 0; count < num; count++){\n \t\t\tx[count] = Double.parseDouble(spli[count]);\n \t\t\tsum = sum + x[count]; \t\t\t\n \t\t} \n \t\tave = sum/num;\n \t\tfor(count = 0; count < num; count++){\n \t\t\tsum2 = sum2 + (ave-x[count])*(ave-x[count]);\n \t\t}\n \t\ta2 = sum2/num;\n \t\tdeviation = Math.sqrt(a2);\n \t\tSystem.out.println(deviation);\n \t}\t\n }\n }", "InputStreamReader in = new InputStreamReader(System.in);", "in", "new InputStreamReader(System.in)", "BufferedReader read = new BufferedReader(in);", "read", "new BufferedReader(in)", "int num", "num", "count;", "count", "while(true){\n \tnum = Integer.parseInt(read.readLine());\n \tif(num == 0){\n \t\tbreak;\n \t}\n \telse{\n \t\tdouble sum = 0;\n double ave = 0;\n double sum2 = 0;\n double a2 = 0;\n double deviation = 0;\n \t\t\n \t\tString line = read.readLine(); \n \t\tString [] spli = line.split(\" \");\n \t\tdouble [] x = new double [num];\n \t\t\n \t\tfor(count = 0; count < num; count++){\n \t\t\tx[count] = Double.parseDouble(spli[count]);\n \t\t\tsum = sum + x[count]; \t\t\t\n \t\t} \n \t\tave = sum/num;\n \t\tfor(count = 0; count < num; count++){\n \t\t\tsum2 = sum2 + (ave-x[count])*(ave-x[count]);\n \t\t}\n \t\ta2 = sum2/num;\n \t\tdeviation = Math.sqrt(a2);\n \t\tSystem.out.println(deviation);\n \t}\t\n }", "true", "{\n \tnum = Integer.parseInt(read.readLine());\n \tif(num == 0){\n \t\tbreak;\n \t}\n \telse{\n \t\tdouble sum = 0;\n double ave = 0;\n double sum2 = 0;\n double a2 = 0;\n double deviation = 0;\n \t\t\n \t\tString line = read.readLine(); \n \t\tString [] spli = line.split(\" \");\n \t\tdouble [] x = new double [num];\n \t\t\n \t\tfor(count = 0; count < num; count++){\n \t\t\tx[count] = Double.parseDouble(spli[count]);\n \t\t\tsum = sum + x[count]; \t\t\t\n \t\t} \n \t\tave = sum/num;\n \t\tfor(count = 0; count < num; count++){\n \t\t\tsum2 = sum2 + (ave-x[count])*(ave-x[count]);\n \t\t}\n \t\ta2 = sum2/num;\n \t\tdeviation = Math.sqrt(a2);\n \t\tSystem.out.println(deviation);\n \t}\t\n }", "num = Integer.parseInt(read.readLine())", "num", "Integer.parseInt(read.readLine())", "Integer.parseInt", "Integer", "read.readLine()", "read.readLine", "read", "if(num == 0){\n \t\tbreak;\n \t}\n \telse{\n \t\tdouble sum = 0;\n double ave = 0;\n double sum2 = 0;\n double a2 = 0;\n double deviation = 0;\n \t\t\n \t\tString line = read.readLine(); \n \t\tString [] spli = line.split(\" \");\n \t\tdouble [] x = new double [num];\n \t\t\n \t\tfor(count = 0; count < num; count++){\n \t\t\tx[count] = Double.parseDouble(spli[count]);\n \t\t\tsum = sum + x[count]; \t\t\t\n \t\t} \n \t\tave = sum/num;\n \t\tfor(count = 0; count < num; count++){\n \t\t\tsum2 = sum2 + (ave-x[count])*(ave-x[count]);\n \t\t}\n \t\ta2 = sum2/num;\n \t\tdeviation = Math.sqrt(a2);\n \t\tSystem.out.println(deviation);\n \t}", "num == 0", "num", "0", "{\n \t\tbreak;\n \t}", "break;", "{\n \t\tdouble sum = 0;\n double ave = 0;\n double sum2 = 0;\n double a2 = 0;\n double deviation = 0;\n \t\t\n \t\tString line = read.readLine(); \n \t\tString [] spli = line.split(\" \");\n \t\tdouble [] x = new double [num];\n \t\t\n \t\tfor(count = 0; count < num; count++){\n \t\t\tx[count] = Double.parseDouble(spli[count]);\n \t\t\tsum = sum + x[count]; \t\t\t\n \t\t} \n \t\tave = sum/num;\n \t\tfor(count = 0; count < num; count++){\n \t\t\tsum2 = sum2 + (ave-x[count])*(ave-x[count]);\n \t\t}\n \t\ta2 = sum2/num;\n \t\tdeviation = Math.sqrt(a2);\n \t\tSystem.out.println(deviation);\n \t}", "double sum = 0;", "sum", "0", "double ave = 0;", "ave", "0", "double sum2 = 0;", "sum2", "0", "double a2 = 0;", "a2", "0", "double deviation = 0;", "deviation", "0", "String line = read.readLine();", "line", "read.readLine()", "read.readLine", "read", "String [] spli = line.split(\" \");", "spli", "line.split(\" \")", "line.split", "line", "\" \"", "double [] x = new double [num];", "x", "new double [num]", "num", "for(count = 0; count < num; count++){\n \t\t\tx[count] = Double.parseDouble(spli[count]);\n \t\t\tsum = sum + x[count]; \t\t\t\n \t\t}", "count = 0;", "count = 0", "count", "0", "count < num", "count", "num", "count++", "count++", "count", "{\n \t\t\tx[count] = Double.parseDouble(spli[count]);\n \t\t\tsum = sum + x[count]; \t\t\t\n \t\t}", "{\n \t\t\tx[count] = Double.parseDouble(spli[count]);\n \t\t\tsum = sum + x[count]; \t\t\t\n \t\t}", "x[count] = Double.parseDouble(spli[count])", "x[count]", "x", "count", "Double.parseDouble(spli[count])", "Double.parseDouble", "Double", "spli[count]", "spli", "count", "sum = sum + x[count]", "sum", "sum + x[count]", "sum", "x[count]", "x", "count", "ave = sum/num", "ave", "sum/num", "sum", "num", "for(count = 0; count < num; count++){\n \t\t\tsum2 = sum2 + (ave-x[count])*(ave-x[count]);\n \t\t}", "count = 0;", "count = 0", "count", "0", "count < num", "count", "num", "count++", "count++", "count", "{\n \t\t\tsum2 = sum2 + (ave-x[count])*(ave-x[count]);\n \t\t}", "{\n \t\t\tsum2 = sum2 + (ave-x[count])*(ave-x[count]);\n \t\t}", "sum2 = sum2 + (ave-x[count])*(ave-x[count])", "sum2", "sum2 + (ave-x[count])*(ave-x[count])", "sum2", "(ave-x[count])*(ave-x[count])", "(ave-x[count])", "ave", "x[count]", "x", "count", "(ave-x[count])", "ave", "x[count]", "x", "count", "a2 = sum2/num", "a2", "sum2/num", "sum2", "num", "deviation = Math.sqrt(a2)", "deviation", "Math.sqrt(a2)", "Math.sqrt", "Math", "a2", "System.out.println(deviation)", "System.out.println", "System.out", "System", "System.out", "deviation", "String[] args", "args" ]
import java.util.Scanner; import java.io.*; class Main { public static void main(String[] args)throws IOException{ InputStreamReader in = new InputStreamReader(System.in); BufferedReader read = new BufferedReader(in); int num,count; while(true){ num = Integer.parseInt(read.readLine()); if(num == 0){ break; } else{ double sum = 0; double ave = 0; double sum2 = 0; double a2 = 0; double deviation = 0; String line = read.readLine(); String [] spli = line.split(" "); double [] x = new double [num]; for(count = 0; count < num; count++){ x[count] = Double.parseDouble(spli[count]); sum = sum + x[count]; } ave = sum/num; for(count = 0; count < num; count++){ sum2 = sum2 + (ave-x[count])*(ave-x[count]); } a2 = sum2/num; deviation = Math.sqrt(a2); System.out.println(deviation); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 3, 41, 13, 17, 41, 13, 17, 41, 13, 41, 13, 41, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 0, 13, 2, 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 ], [ 115, 5 ], [ 115, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 14, 31 ], [ 31, 32 ], [ 14, 33 ], [ 33, 34 ], [ 14, 35 ], [ 35, 36 ], [ 14, 37 ], [ 37, 38 ], [ 37, 39 ], [ 14, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 41, 49 ], [ 49, 50 ], [ 50, 51 ], [ 41, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 53, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 14, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 14, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 76, 77 ], [ 76, 78 ], [ 71, 79 ], [ 79, 80 ], [ 80, 81 ], [ 71, 82 ], [ 83, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 86, 94 ], [ 14, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 97, 99 ], [ 14, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 14, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 6, 112 ], [ 112, 113 ], [ 0, 114 ], [ 114, 115 ], [ 114, 116 ] ]
[ "import java.util.Scanner;\npublic class Main{\n public static void main(String[]argc){\n Scanner sc = new Scanner(System.in);\n while(true){\n int n = sc.nextInt();\n if(n==0) break; \n double sum=0.0;\n double x=0.0;\n double a,m,y;\n int[] s = new int[n];\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n m = sum/n;\n for(int i=0;i<n;i++){\n x += Math.pow(s[i]-m,2);\n }\n y = x/n;\n a = Math.sqrt(y);\n System.out.println(a);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[]argc){\n Scanner sc = new Scanner(System.in);\n while(true){\n int n = sc.nextInt();\n if(n==0) break; \n double sum=0.0;\n double x=0.0;\n double a,m,y;\n int[] s = new int[n];\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n m = sum/n;\n for(int i=0;i<n;i++){\n x += Math.pow(s[i]-m,2);\n }\n y = x/n;\n a = Math.sqrt(y);\n System.out.println(a);\n }\n }\n}", "Main", "public static void main(String[]argc){\n Scanner sc = new Scanner(System.in);\n while(true){\n int n = sc.nextInt();\n if(n==0) break; \n double sum=0.0;\n double x=0.0;\n double a,m,y;\n int[] s = new int[n];\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n m = sum/n;\n for(int i=0;i<n;i++){\n x += Math.pow(s[i]-m,2);\n }\n y = x/n;\n a = Math.sqrt(y);\n System.out.println(a);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n while(true){\n int n = sc.nextInt();\n if(n==0) break; \n double sum=0.0;\n double x=0.0;\n double a,m,y;\n int[] s = new int[n];\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n m = sum/n;\n for(int i=0;i<n;i++){\n x += Math.pow(s[i]-m,2);\n }\n y = x/n;\n a = Math.sqrt(y);\n System.out.println(a);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n int n = sc.nextInt();\n if(n==0) break; \n double sum=0.0;\n double x=0.0;\n double a,m,y;\n int[] s = new int[n];\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n m = sum/n;\n for(int i=0;i<n;i++){\n x += Math.pow(s[i]-m,2);\n }\n y = x/n;\n a = Math.sqrt(y);\n System.out.println(a);\n }", "true", "{\n int n = sc.nextInt();\n if(n==0) break; \n double sum=0.0;\n double x=0.0;\n double a,m,y;\n int[] s = new int[n];\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n m = sum/n;\n for(int i=0;i<n;i++){\n x += Math.pow(s[i]-m,2);\n }\n y = x/n;\n a = Math.sqrt(y);\n System.out.println(a);\n }", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n==0) break;", "n==0", "n", "0", "break;", "double sum=0.0;", "sum", "0.0", "double x=0.0;", "x", "0.0", "double a", "a", "m", "m", "y;", "y", "int[] s = new int[n];", "s", "new int[n]", "n", "for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n s[i] = sc.nextInt();\n sum += s[i];\n }", "{\n s[i] = sc.nextInt();\n sum += s[i];\n }", "s[i] = sc.nextInt()", "s[i]", "s", "i", "sc.nextInt()", "sc.nextInt", "sc", "sum += s[i]", "sum", "s[i]", "s", "i", "m = sum/n", "m", "sum/n", "sum", "n", "for(int i=0;i<n;i++){\n x += Math.pow(s[i]-m,2);\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n x += Math.pow(s[i]-m,2);\n }", "{\n x += Math.pow(s[i]-m,2);\n }", "x += Math.pow(s[i]-m,2)", "x", "Math.pow(s[i]-m,2)", "Math.pow", "Math", "s[i]-m", "s[i]", "s", "i", "m", "2", "y = x/n", "y", "x/n", "x", "n", "a = Math.sqrt(y)", "a", "Math.sqrt(y)", "Math.sqrt", "Math", "y", "System.out.println(a)", "System.out.println", "System.out", "System", "System.out", "a", "String[]argc", "argc", "public class Main{\n public static void main(String[]argc){\n Scanner sc = new Scanner(System.in);\n while(true){\n int n = sc.nextInt();\n if(n==0) break; \n double sum=0.0;\n double x=0.0;\n double a,m,y;\n int[] s = new int[n];\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n m = sum/n;\n for(int i=0;i<n;i++){\n x += Math.pow(s[i]-m,2);\n }\n y = x/n;\n a = Math.sqrt(y);\n System.out.println(a);\n }\n }\n}", "public class Main{\n public static void main(String[]argc){\n Scanner sc = new Scanner(System.in);\n while(true){\n int n = sc.nextInt();\n if(n==0) break; \n double sum=0.0;\n double x=0.0;\n double a,m,y;\n int[] s = new int[n];\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n m = sum/n;\n for(int i=0;i<n;i++){\n x += Math.pow(s[i]-m,2);\n }\n y = x/n;\n a = Math.sqrt(y);\n System.out.println(a);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[]argc){ Scanner sc = new Scanner(System.in); while(true){ int n = sc.nextInt(); if(n==0) break; double sum=0.0; double x=0.0; double a,m,y; int[] s = new int[n]; for(int i=0;i<n;i++){ s[i] = sc.nextInt(); sum += s[i]; } m = sum/n; for(int i=0;i<n;i++){ x += Math.pow(s[i]-m,2); } y = x/n; a = Math.sqrt(y); System.out.println(a); } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 20, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 41, 13, 2, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 41, 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 ], [ 107, 5 ], [ 107, 6 ], [ 6, 7 ], [ 6, 8 ], [ 107, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 30 ], [ 30, 31 ], [ 30, 32 ], [ 14, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 33, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 45, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 14, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 14, 63 ], [ 63, 64 ], [ 63, 65 ], [ 14, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 66, 74 ], [ 74, 75 ], [ 75, 76 ], [ 66, 77 ], [ 78, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 81, 89 ], [ 14, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 95, 96 ], [ 95, 97 ], [ 14, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 9, 104 ], [ 104, 105 ], [ 0, 106 ], [ 106, 107 ], [ 106, 108 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tprivate static Scanner sc = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\twhile(true){\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tdouble[] s = new double[n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = sc.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\t\n\t\t\tdouble ave = sum / n;\n\t\t\tdouble psum = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tpsum += Math.pow(s[i] - ave, 2);\n\t\t\t}\n\t\t\t\n\t\t\tdouble std = Math.sqrt(psum / n);\n\t\t\tSystem.out.println(std);\n\t\t\t\n\t\t}\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tprivate static Scanner sc = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\twhile(true){\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tdouble[] s = new double[n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = sc.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\t\n\t\t\tdouble ave = sum / n;\n\t\t\tdouble psum = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tpsum += Math.pow(s[i] - ave, 2);\n\t\t\t}\n\t\t\t\n\t\t\tdouble std = Math.sqrt(psum / n);\n\t\t\tSystem.out.println(std);\n\t\t\t\n\t\t}\n\t}\n\n}", "Main", "private static Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main(String[] args) {\n\t\twhile(true){\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tdouble[] s = new double[n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = sc.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\t\n\t\t\tdouble ave = sum / n;\n\t\t\tdouble psum = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tpsum += Math.pow(s[i] - ave, 2);\n\t\t\t}\n\t\t\t\n\t\t\tdouble std = Math.sqrt(psum / n);\n\t\t\tSystem.out.println(std);\n\t\t\t\n\t\t}\n\t}", "main", "{\n\t\twhile(true){\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tdouble[] s = new double[n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = sc.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\t\n\t\t\tdouble ave = sum / n;\n\t\t\tdouble psum = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tpsum += Math.pow(s[i] - ave, 2);\n\t\t\t}\n\t\t\t\n\t\t\tdouble std = Math.sqrt(psum / n);\n\t\t\tSystem.out.println(std);\n\t\t\t\n\t\t}\n\t}", "while(true){\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tdouble[] s = new double[n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = sc.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\t\n\t\t\tdouble ave = sum / n;\n\t\t\tdouble psum = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tpsum += Math.pow(s[i] - ave, 2);\n\t\t\t}\n\t\t\t\n\t\t\tdouble std = Math.sqrt(psum / n);\n\t\t\tSystem.out.println(std);\n\t\t\t\n\t\t}", "true", "{\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tdouble[] s = new double[n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = sc.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\t\n\t\t\tdouble ave = sum / n;\n\t\t\tdouble psum = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tpsum += Math.pow(s[i] - ave, 2);\n\t\t\t}\n\t\t\t\n\t\t\tdouble std = Math.sqrt(psum / n);\n\t\t\tSystem.out.println(std);\n\t\t\t\n\t\t}", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n == 0){\n\t\t\t\tbreak;\n\t\t\t}", "n == 0", "n", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "double[] s = new double[n];", "s", "new double[n]", "n", "double sum = 0;", "sum", "0", "for(int i=0; i<n; i++){\n\t\t\t\ts[i] = sc.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\ts[i] = sc.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}", "{\n\t\t\t\ts[i] = sc.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}", "s[i] = sc.nextDouble()", "s[i]", "s", "i", "sc.nextDouble()", "sc.nextDouble", "sc", "sum += s[i]", "sum", "s[i]", "s", "i", "double ave = sum / n;", "ave", "sum / n", "sum", "n", "double psum = 0;", "psum", "0", "for(int i=0; i<n; i++){\n\t\t\t\tpsum += Math.pow(s[i] - ave, 2);\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tpsum += Math.pow(s[i] - ave, 2);\n\t\t\t}", "{\n\t\t\t\tpsum += Math.pow(s[i] - ave, 2);\n\t\t\t}", "psum += Math.pow(s[i] - ave, 2)", "psum", "Math.pow(s[i] - ave, 2)", "Math.pow", "Math", "s[i] - ave", "s[i]", "s", "i", "ave", "2", "double std = Math.sqrt(psum / n);", "std", "Math.sqrt(psum / n)", "Math.sqrt", "Math", "psum / n", "psum", "n", "System.out.println(std)", "System.out.println", "System.out", "System", "System.out", "std", "String[] args", "args", "public class Main {\n\tprivate static Scanner sc = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\twhile(true){\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tdouble[] s = new double[n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = sc.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\t\n\t\t\tdouble ave = sum / n;\n\t\t\tdouble psum = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tpsum += Math.pow(s[i] - ave, 2);\n\t\t\t}\n\t\t\t\n\t\t\tdouble std = Math.sqrt(psum / n);\n\t\t\tSystem.out.println(std);\n\t\t\t\n\t\t}\n\t}\n\n}", "public class Main {\n\tprivate static Scanner sc = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\twhile(true){\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tdouble[] s = new double[n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = sc.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\t\n\t\t\tdouble ave = sum / n;\n\t\t\tdouble psum = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tpsum += Math.pow(s[i] - ave, 2);\n\t\t\t}\n\t\t\t\n\t\t\tdouble std = Math.sqrt(psum / n);\n\t\t\tSystem.out.println(std);\n\t\t\t\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { private static Scanner sc = new Scanner(System.in); public static void main(String[] args) { while(true){ int n = sc.nextInt(); if(n == 0){ break; } double[] s = new double[n]; double sum = 0; for(int i=0; i<n; i++){ s[i] = sc.nextDouble(); sum += s[i]; } double ave = sum / n; double psum = 0; for(int i=0; i<n; i++){ psum += Math.pow(s[i] - ave, 2); } double std = Math.sqrt(psum / n); System.out.println(std); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 41, 13, 41, 13, 17, 41, 13, 17, 42, 2, 0, 13, 4, 18, 13, 17, 30, 14, 4, 18, 13, 17, 3, 0, 13, 4, 18, 13, 13, 0, 13, 17, 41, 13, 4, 18, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 18, 13, 13, 41, 13, 17, 41, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 4, 18, 13, 18, 13, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 2, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 131, 8 ], [ 131, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 13, 17 ], [ 17, 18 ], [ 13, 19 ], [ 19, 20 ], [ 19, 21 ], [ 13, 22 ], [ 22, 23 ], [ 22, 24 ], [ 13, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 26, 32 ], [ 25, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 33, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 33, 46 ], [ 46, 47 ], [ 46, 48 ], [ 33, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 51, 56 ], [ 33, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 57, 67 ], [ 67, 68 ], [ 68, 69 ], [ 57, 70 ], [ 71, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 77, 79 ], [ 33, 80 ], [ 80, 81 ], [ 80, 82 ], [ 33, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 33, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 88, 98 ], [ 98, 99 ], [ 99, 100 ], [ 88, 101 ], [ 102, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 112, 113 ], [ 112, 114 ], [ 108, 115 ], [ 105, 116 ], [ 33, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 122, 123 ], [ 123, 124 ], [ 122, 125 ], [ 125, 126 ], [ 125, 127 ], [ 9, 128 ], [ 128, 129 ], [ 0, 130 ], [ 130, 131 ], [ 130, 132 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int n=0;\n double sum=0;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"0\"))break;\n \tn=Integer.parseInt(line);\n \tsum=0;\n \tString[] str=br.readLine().split(\" \");\n \tfor(int i=0;i<str.length;i++){\n \t\tsum+=Double.parseDouble(str[i]);\n \t}\n \tdouble result=0,ave=sum/n;\n \tfor(int i=0;i<str.length;i++){\n \t\tresult+=Math.pow(Double.parseDouble(str[i])-ave,2);\n \t}\n \tSystem.out.println(Math.sqrt(result/n));\n }\n }\n }\n\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int n=0;\n double sum=0;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"0\"))break;\n \tn=Integer.parseInt(line);\n \tsum=0;\n \tString[] str=br.readLine().split(\" \");\n \tfor(int i=0;i<str.length;i++){\n \t\tsum+=Double.parseDouble(str[i]);\n \t}\n \tdouble result=0,ave=sum/n;\n \tfor(int i=0;i<str.length;i++){\n \t\tresult+=Math.pow(Double.parseDouble(str[i])-ave,2);\n \t}\n \tSystem.out.println(Math.sqrt(result/n));\n }\n }\n }\n\n\n}", "Main", "public static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int n=0;\n double sum=0;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"0\"))break;\n \tn=Integer.parseInt(line);\n \tsum=0;\n \tString[] str=br.readLine().split(\" \");\n \tfor(int i=0;i<str.length;i++){\n \t\tsum+=Double.parseDouble(str[i]);\n \t}\n \tdouble result=0,ave=sum/n;\n \tfor(int i=0;i<str.length;i++){\n \t\tresult+=Math.pow(Double.parseDouble(str[i])-ave,2);\n \t}\n \tSystem.out.println(Math.sqrt(result/n));\n }\n }\n }", "main", "{\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int n=0;\n double sum=0;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"0\"))break;\n \tn=Integer.parseInt(line);\n \tsum=0;\n \tString[] str=br.readLine().split(\" \");\n \tfor(int i=0;i<str.length;i++){\n \t\tsum+=Double.parseDouble(str[i]);\n \t}\n \tdouble result=0,ave=sum/n;\n \tfor(int i=0;i<str.length;i++){\n \t\tresult+=Math.pow(Double.parseDouble(str[i])-ave,2);\n \t}\n \tSystem.out.println(Math.sqrt(result/n));\n }\n }\n }", "try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int n=0;\n double sum=0;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"0\"))break;\n \tn=Integer.parseInt(line);\n \tsum=0;\n \tString[] str=br.readLine().split(\" \");\n \tfor(int i=0;i<str.length;i++){\n \t\tsum+=Double.parseDouble(str[i]);\n \t}\n \tdouble result=0,ave=sum/n;\n \tfor(int i=0;i<str.length;i++){\n \t\tresult+=Math.pow(Double.parseDouble(str[i])-ave,2);\n \t}\n \tSystem.out.println(Math.sqrt(result/n));\n }\n }", "{\n String line;\n int n=0;\n double sum=0;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"0\"))break;\n \tn=Integer.parseInt(line);\n \tsum=0;\n \tString[] str=br.readLine().split(\" \");\n \tfor(int i=0;i<str.length;i++){\n \t\tsum+=Double.parseDouble(str[i]);\n \t}\n \tdouble result=0,ave=sum/n;\n \tfor(int i=0;i<str.length;i++){\n \t\tresult+=Math.pow(Double.parseDouble(str[i])-ave,2);\n \t}\n \tSystem.out.println(Math.sqrt(result/n));\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in))", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in))", "new BufferedReader(new InputStreamReader(System.in))", "String line;", "line", "int n=0;", "n", "0", "double sum=0;", "sum", "0", "while ((line = br.readLine()) != null) {\n \tif(line.equals(\"0\"))break;\n \tn=Integer.parseInt(line);\n \tsum=0;\n \tString[] str=br.readLine().split(\" \");\n \tfor(int i=0;i<str.length;i++){\n \t\tsum+=Double.parseDouble(str[i]);\n \t}\n \tdouble result=0,ave=sum/n;\n \tfor(int i=0;i<str.length;i++){\n \t\tresult+=Math.pow(Double.parseDouble(str[i])-ave,2);\n \t}\n \tSystem.out.println(Math.sqrt(result/n));\n }", "(line = br.readLine()) != null", "(line = br.readLine())", "line", "br.readLine()", "br.readLine", "br", "null", "{\n \tif(line.equals(\"0\"))break;\n \tn=Integer.parseInt(line);\n \tsum=0;\n \tString[] str=br.readLine().split(\" \");\n \tfor(int i=0;i<str.length;i++){\n \t\tsum+=Double.parseDouble(str[i]);\n \t}\n \tdouble result=0,ave=sum/n;\n \tfor(int i=0;i<str.length;i++){\n \t\tresult+=Math.pow(Double.parseDouble(str[i])-ave,2);\n \t}\n \tSystem.out.println(Math.sqrt(result/n));\n }", "if(line.equals(\"0\"))break;", "line.equals(\"0\")", "line.equals", "line", "\"0\"", "break;", "n=Integer.parseInt(line)", "n", "Integer.parseInt(line)", "Integer.parseInt", "Integer", "line", "sum=0", "sum", "0", "String[] str=br.readLine().split(\" \");", "str", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "for(int i=0;i<str.length;i++){\n \t\tsum+=Double.parseDouble(str[i]);\n \t}", "int i=0;", "int i=0;", "i", "0", "i<str.length", "i", "str.length", "str", "str.length", "i++", "i++", "i", "{\n \t\tsum+=Double.parseDouble(str[i]);\n \t}", "{\n \t\tsum+=Double.parseDouble(str[i]);\n \t}", "sum+=Double.parseDouble(str[i])", "sum", "Double.parseDouble(str[i])", "Double.parseDouble", "Double", "str[i]", "str", "i", "double result=0", "result", "0", "ave=sum/n;", "ave", "sum/n", "sum", "n", "for(int i=0;i<str.length;i++){\n \t\tresult+=Math.pow(Double.parseDouble(str[i])-ave,2);\n \t}", "int i=0;", "int i=0;", "i", "0", "i<str.length", "i", "str.length", "str", "str.length", "i++", "i++", "i", "{\n \t\tresult+=Math.pow(Double.parseDouble(str[i])-ave,2);\n \t}", "{\n \t\tresult+=Math.pow(Double.parseDouble(str[i])-ave,2);\n \t}", "result+=Math.pow(Double.parseDouble(str[i])-ave,2)", "result", "Math.pow(Double.parseDouble(str[i])-ave,2)", "Math.pow", "Math", "Double.parseDouble(str[i])-ave", "Double.parseDouble(str[i])", "Double.parseDouble", "Double", "str[i]", "str", "i", "ave", "2", "System.out.println(Math.sqrt(result/n))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(result/n)", "Math.sqrt", "Math", "result/n", "result", "n", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int n=0;\n double sum=0;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"0\"))break;\n \tn=Integer.parseInt(line);\n \tsum=0;\n \tString[] str=br.readLine().split(\" \");\n \tfor(int i=0;i<str.length;i++){\n \t\tsum+=Double.parseDouble(str[i]);\n \t}\n \tdouble result=0,ave=sum/n;\n \tfor(int i=0;i<str.length;i++){\n \t\tresult+=Math.pow(Double.parseDouble(str[i])-ave,2);\n \t}\n \tSystem.out.println(Math.sqrt(result/n));\n }\n }\n }\n\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int n=0;\n double sum=0;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"0\"))break;\n \tn=Integer.parseInt(line);\n \tsum=0;\n \tString[] str=br.readLine().split(\" \");\n \tfor(int i=0;i<str.length;i++){\n \t\tsum+=Double.parseDouble(str[i]);\n \t}\n \tdouble result=0,ave=sum/n;\n \tfor(int i=0;i<str.length;i++){\n \t\tresult+=Math.pow(Double.parseDouble(str[i])-ave,2);\n \t}\n \tSystem.out.println(Math.sqrt(result/n));\n }\n }\n }\n\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { // TODO ????????????????????????????????????????????? try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) { String line; int n=0; double sum=0; while ((line = br.readLine()) != null) { if(line.equals("0"))break; n=Integer.parseInt(line); sum=0; String[] str=br.readLine().split(" "); for(int i=0;i<str.length;i++){ sum+=Double.parseDouble(str[i]); } double result=0,ave=sum/n; for(int i=0;i<str.length;i++){ result+=Math.pow(Double.parseDouble(str[i])-ave,2); } System.out.println(Math.sqrt(result/n)); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 17, 41, 13, 4, 18, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 20, 13, 41, 13, 4, 18, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 0, 13, 18, 13, 13, 41, 13, 2, 13, 13, 41, 13, 17, 28, 13, 13, 30, 30, 0, 13, 4, 18, 13, 2, 13, 13, 17, 41, 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 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 117, 11 ], [ 117, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 29, 30 ], [ 30, 31 ], [ 20, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 20, 38 ], [ 38, 39 ], [ 38, 40 ], [ 20, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 44, 49 ], [ 20, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 55, 56 ], [ 55, 57 ], [ 50, 58 ], [ 58, 59 ], [ 59, 60 ], [ 50, 61 ], [ 62, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 70, 72 ], [ 62, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 20, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 20, 83 ], [ 83, 84 ], [ 83, 85 ], [ 20, 86 ], [ 86, 87 ], [ 86, 88 ], [ 86, 89 ], [ 90, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 96, 97 ], [ 96, 98 ], [ 93, 99 ], [ 20, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 105, 106 ], [ 105, 107 ], [ 20, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 12, 114 ], [ 114, 115 ], [ 0, 116 ], [ 116, 117 ], [ 116, 118 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tint sum=0, n = Integer.parseInt(in.readLine());\n\t\t\tif(n==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] s = new int[n];\n\t\t\tString[] nums = in.readLine().split(\" \");\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = Integer.parseInt(nums[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble aveM = (double)sum/n;\n\t\t\tdouble process=0;\n\t\t\tfor(int si : s){\n\t\t\t\tprocess += (double)(Math.pow(si-aveM, 2));\n\t\t\t}\n\t\t\tdouble dev = (double) Math.sqrt(process/n);\n\t\t\tSystem.out.println(dev);\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tint sum=0, n = Integer.parseInt(in.readLine());\n\t\t\tif(n==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] s = new int[n];\n\t\t\tString[] nums = in.readLine().split(\" \");\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = Integer.parseInt(nums[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble aveM = (double)sum/n;\n\t\t\tdouble process=0;\n\t\t\tfor(int si : s){\n\t\t\t\tprocess += (double)(Math.pow(si-aveM, 2));\n\t\t\t}\n\t\t\tdouble dev = (double) Math.sqrt(process/n);\n\t\t\tSystem.out.println(dev);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tint sum=0, n = Integer.parseInt(in.readLine());\n\t\t\tif(n==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] s = new int[n];\n\t\t\tString[] nums = in.readLine().split(\" \");\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = Integer.parseInt(nums[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble aveM = (double)sum/n;\n\t\t\tdouble process=0;\n\t\t\tfor(int si : s){\n\t\t\t\tprocess += (double)(Math.pow(si-aveM, 2));\n\t\t\t}\n\t\t\tdouble dev = (double) Math.sqrt(process/n);\n\t\t\tSystem.out.println(dev);\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tint sum=0, n = Integer.parseInt(in.readLine());\n\t\t\tif(n==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] s = new int[n];\n\t\t\tString[] nums = in.readLine().split(\" \");\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = Integer.parseInt(nums[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble aveM = (double)sum/n;\n\t\t\tdouble process=0;\n\t\t\tfor(int si : s){\n\t\t\t\tprocess += (double)(Math.pow(si-aveM, 2));\n\t\t\t}\n\t\t\tdouble dev = (double) Math.sqrt(process/n);\n\t\t\tSystem.out.println(dev);\n\t\t}\n\t}", "BufferedReader in = new BufferedReader(new InputStreamReader(System.in));", "in", "new BufferedReader(new InputStreamReader(System.in))", "while(true){\n\t\t\tint sum=0, n = Integer.parseInt(in.readLine());\n\t\t\tif(n==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] s = new int[n];\n\t\t\tString[] nums = in.readLine().split(\" \");\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = Integer.parseInt(nums[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble aveM = (double)sum/n;\n\t\t\tdouble process=0;\n\t\t\tfor(int si : s){\n\t\t\t\tprocess += (double)(Math.pow(si-aveM, 2));\n\t\t\t}\n\t\t\tdouble dev = (double) Math.sqrt(process/n);\n\t\t\tSystem.out.println(dev);\n\t\t}", "true", "{\n\t\t\tint sum=0, n = Integer.parseInt(in.readLine());\n\t\t\tif(n==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] s = new int[n];\n\t\t\tString[] nums = in.readLine().split(\" \");\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = Integer.parseInt(nums[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble aveM = (double)sum/n;\n\t\t\tdouble process=0;\n\t\t\tfor(int si : s){\n\t\t\t\tprocess += (double)(Math.pow(si-aveM, 2));\n\t\t\t}\n\t\t\tdouble dev = (double) Math.sqrt(process/n);\n\t\t\tSystem.out.println(dev);\n\t\t}", "int sum=0", "sum", "0", "n = Integer.parseInt(in.readLine());", "n", "Integer.parseInt(in.readLine())", "Integer.parseInt", "Integer", "in.readLine()", "in.readLine", "in", "if(n==0){\n\t\t\t\tbreak;\n\t\t\t}", "n==0", "n", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "int[] s = new int[n];", "s", "new int[n]", "n", "String[] nums = in.readLine().split(\" \");", "nums", "in.readLine().split(\" \")", "in.readLine().split", "in.readLine()", "in.readLine", "in", "\" \"", "for(int i=0; i<n; i++){\n\t\t\t\ts[i] = Integer.parseInt(nums[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\ts[i] = Integer.parseInt(nums[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}", "{\n\t\t\t\ts[i] = Integer.parseInt(nums[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}", "s[i] = Integer.parseInt(nums[i])", "s[i]", "s", "i", "Integer.parseInt(nums[i])", "Integer.parseInt", "Integer", "nums[i]", "nums", "i", "sum += s[i]", "sum", "s[i]", "s", "i", "double aveM = (double)sum/n;", "aveM", "(double)sum/n", "(double)sum", "n", "double process=0;", "process", "0", "for(int si : s){\n\t\t\t\tprocess += (double)(Math.pow(si-aveM, 2));\n\t\t\t}", "int si", "s", "{\n\t\t\t\tprocess += (double)(Math.pow(si-aveM, 2));\n\t\t\t}", "{\n\t\t\t\tprocess += (double)(Math.pow(si-aveM, 2));\n\t\t\t}", "process += (double)(Math.pow(si-aveM, 2))", "process", "(double)(Math.pow(si-aveM, 2))", "Math.pow", "Math", "si-aveM", "si", "aveM", "2", "double dev = (double) Math.sqrt(process/n);", "dev", "(double) Math.sqrt(process/n)", "Math.sqrt", "Math", "process/n", "process", "n", "System.out.println(dev)", "System.out.println", "System.out", "System", "System.out", "dev", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tint sum=0, n = Integer.parseInt(in.readLine());\n\t\t\tif(n==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] s = new int[n];\n\t\t\tString[] nums = in.readLine().split(\" \");\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = Integer.parseInt(nums[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble aveM = (double)sum/n;\n\t\t\tdouble process=0;\n\t\t\tfor(int si : s){\n\t\t\t\tprocess += (double)(Math.pow(si-aveM, 2));\n\t\t\t}\n\t\t\tdouble dev = (double) Math.sqrt(process/n);\n\t\t\tSystem.out.println(dev);\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tint sum=0, n = Integer.parseInt(in.readLine());\n\t\t\tif(n==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] s = new int[n];\n\t\t\tString[] nums = in.readLine().split(\" \");\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = Integer.parseInt(nums[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble aveM = (double)sum/n;\n\t\t\tdouble process=0;\n\t\t\tfor(int si : s){\n\t\t\t\tprocess += (double)(Math.pow(si-aveM, 2));\n\t\t\t}\n\t\t\tdouble dev = (double) Math.sqrt(process/n);\n\t\t\tSystem.out.println(dev);\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); while(true){ int sum=0, n = Integer.parseInt(in.readLine()); if(n==0){ break; } int[] s = new int[n]; String[] nums = in.readLine().split(" "); for(int i=0; i<n; i++){ s[i] = Integer.parseInt(nums[i]); sum += s[i]; } double aveM = (double)sum/n; double process=0; for(int si : s){ process += (double)(Math.pow(si-aveM, 2)); } double dev = (double) Math.sqrt(process/n); System.out.println(dev); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 2, 13, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 0, 13, 4, 18, 13, 2, 13, 13, 29, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 20, 42, 17, 30, 0, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 0, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 4, 13, 13, 13, 0, 13, 4, 13, 13, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 170, 5 ], [ 170, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 15, 20 ], [ 20, 21 ], [ 20, 22 ], [ 15, 23 ], [ 23, 24 ], [ 24, 25 ], [ 15, 26 ], [ 27, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 30, 32 ], [ 8, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 35, 37 ], [ 8, 38 ], [ 38, 39 ], [ 6, 40 ], [ 40, 41 ], [ 6, 42 ], [ 42, 43 ], [ 170, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 55, 56 ], [ 55, 57 ], [ 50, 58 ], [ 58, 59 ], [ 59, 60 ], [ 50, 61 ], [ 62, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 65, 73 ], [ 46, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 79, 81 ], [ 46, 82 ], [ 82, 83 ], [ 44, 84 ], [ 84, 85 ], [ 44, 86 ], [ 86, 87 ], [ 44, 88 ], [ 88, 89 ], [ 170, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 96, 97 ], [ 92, 98 ], [ 98, 99 ], [ 98, 100 ], [ 92, 101 ], [ 101, 102 ], [ 101, 103 ], [ 92, 104 ], [ 104, 105 ], [ 104, 106 ], [ 92, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 113, 114 ], [ 109, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 119, 120 ], [ 109, 121 ], [ 121, 122 ], [ 121, 123 ], [ 109, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 125, 130 ], [ 130, 131 ], [ 130, 132 ], [ 125, 133 ], [ 133, 134 ], [ 134, 135 ], [ 125, 136 ], [ 137, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 138, 142 ], [ 142, 143 ], [ 143, 144 ], [ 109, 145 ], [ 145, 146 ], [ 145, 147 ], [ 147, 148 ], [ 147, 149 ], [ 147, 150 ], [ 109, 151 ], [ 151, 152 ], [ 151, 153 ], [ 153, 154 ], [ 153, 155 ], [ 153, 156 ], [ 153, 157 ], [ 109, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 158, 163 ], [ 92, 164 ], [ 164, 165 ], [ 165, 166 ], [ 90, 167 ], [ 167, 168 ], [ 0, 169 ], [ 169, 170 ], [ 169, 171 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tstatic double avg( int num, int member[] ) {\n\t\tdouble avg = 0;\n\t\tint sum = 0;\n\n\t\tfor ( int i = 0 ; i < num ; i++ ) {\n\t\t\tsum += member[i];\n\t\t}\n\n\t\tavg = (double)sum / (double)num;\n\n\t\treturn avg;\n\t}\n\n\tstatic double std_dev( int num, int member[], double avg ) {\n\t\tdouble std_dev = 0;\n\n\t\tfor ( int i = 0 ; i < num ; i++ ) {\n\t\t\tstd_dev += Math.pow( ( member[i] - avg ), 2 );\n\t\t}\n\n\t\tstd_dev = Math.sqrt( std_dev / num );\n\n\t\treturn std_dev;\n\t}\n\n\tpublic static void main(String[] args) {\n\n\t\tint student_num = 0;\n\t\tint[] score;\n\t\tdouble score_avg = 0;\n\t\tdouble std_dev = 0.0;\n\n\t\tScanner sc= new Scanner( System.in );\n\n\t\twhile( true ) {\n\n\t\t\tstudent_num = sc.nextInt();\n\n\t\t\tif( student_num == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tscore = new int[student_num];\n\n\t\t\tfor ( int i = 0; i < student_num ; i++ ) {\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tscore_avg = avg( student_num, score );\n\n\t\t\tstd_dev = std_dev( student_num, score, score_avg );\n\n\t\t\tSystem.out.println( std_dev );\n\t\t}\n\t\tsc.close();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tstatic double avg( int num, int member[] ) {\n\t\tdouble avg = 0;\n\t\tint sum = 0;\n\n\t\tfor ( int i = 0 ; i < num ; i++ ) {\n\t\t\tsum += member[i];\n\t\t}\n\n\t\tavg = (double)sum / (double)num;\n\n\t\treturn avg;\n\t}\n\n\tstatic double std_dev( int num, int member[], double avg ) {\n\t\tdouble std_dev = 0;\n\n\t\tfor ( int i = 0 ; i < num ; i++ ) {\n\t\t\tstd_dev += Math.pow( ( member[i] - avg ), 2 );\n\t\t}\n\n\t\tstd_dev = Math.sqrt( std_dev / num );\n\n\t\treturn std_dev;\n\t}\n\n\tpublic static void main(String[] args) {\n\n\t\tint student_num = 0;\n\t\tint[] score;\n\t\tdouble score_avg = 0;\n\t\tdouble std_dev = 0.0;\n\n\t\tScanner sc= new Scanner( System.in );\n\n\t\twhile( true ) {\n\n\t\t\tstudent_num = sc.nextInt();\n\n\t\t\tif( student_num == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tscore = new int[student_num];\n\n\t\t\tfor ( int i = 0; i < student_num ; i++ ) {\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tscore_avg = avg( student_num, score );\n\n\t\t\tstd_dev = std_dev( student_num, score, score_avg );\n\n\t\t\tSystem.out.println( std_dev );\n\t\t}\n\t\tsc.close();\n\t}\n}", "Main", "static double avg( int num, int member[] ) {\n\t\tdouble avg = 0;\n\t\tint sum = 0;\n\n\t\tfor ( int i = 0 ; i < num ; i++ ) {\n\t\t\tsum += member[i];\n\t\t}\n\n\t\tavg = (double)sum / (double)num;\n\n\t\treturn avg;\n\t}", "avg", "{\n\t\tdouble avg = 0;\n\t\tint sum = 0;\n\n\t\tfor ( int i = 0 ; i < num ; i++ ) {\n\t\t\tsum += member[i];\n\t\t}\n\n\t\tavg = (double)sum / (double)num;\n\n\t\treturn avg;\n\t}", "double avg = 0;", "avg", "0", "int sum = 0;", "sum", "0", "for ( int i = 0 ; i < num ; i++ ) {\n\t\t\tsum += member[i];\n\t\t}", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < num", "i", "num", "i++", "i++", "i", "{\n\t\t\tsum += member[i];\n\t\t}", "{\n\t\t\tsum += member[i];\n\t\t}", "sum += member[i]", "sum", "member[i]", "member", "i", "avg = (double)sum / (double)num", "avg", "(double)sum / (double)num", "(double)sum", "(double)num", "return avg;", "avg", "int num", "num", "int member[]", "member", "static double std_dev( int num, int member[], double avg ) {\n\t\tdouble std_dev = 0;\n\n\t\tfor ( int i = 0 ; i < num ; i++ ) {\n\t\t\tstd_dev += Math.pow( ( member[i] - avg ), 2 );\n\t\t}\n\n\t\tstd_dev = Math.sqrt( std_dev / num );\n\n\t\treturn std_dev;\n\t}", "std_dev", "{\n\t\tdouble std_dev = 0;\n\n\t\tfor ( int i = 0 ; i < num ; i++ ) {\n\t\t\tstd_dev += Math.pow( ( member[i] - avg ), 2 );\n\t\t}\n\n\t\tstd_dev = Math.sqrt( std_dev / num );\n\n\t\treturn std_dev;\n\t}", "double std_dev = 0;", "std_dev", "0", "for ( int i = 0 ; i < num ; i++ ) {\n\t\t\tstd_dev += Math.pow( ( member[i] - avg ), 2 );\n\t\t}", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < num", "i", "num", "i++", "i++", "i", "{\n\t\t\tstd_dev += Math.pow( ( member[i] - avg ), 2 );\n\t\t}", "{\n\t\t\tstd_dev += Math.pow( ( member[i] - avg ), 2 );\n\t\t}", "std_dev += Math.pow( ( member[i] - avg ), 2 )", "std_dev", "Math.pow( ( member[i] - avg ), 2 )", "Math.pow", "Math", "( member[i] - avg )", "member[i]", "member", "i", "avg", "2", "std_dev = Math.sqrt( std_dev / num )", "std_dev", "Math.sqrt( std_dev / num )", "Math.sqrt", "Math", "std_dev / num", "std_dev", "num", "return std_dev;", "std_dev", "int num", "num", "int member[]", "member", "double avg", "avg", "public static void main(String[] args) {\n\n\t\tint student_num = 0;\n\t\tint[] score;\n\t\tdouble score_avg = 0;\n\t\tdouble std_dev = 0.0;\n\n\t\tScanner sc= new Scanner( System.in );\n\n\t\twhile( true ) {\n\n\t\t\tstudent_num = sc.nextInt();\n\n\t\t\tif( student_num == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tscore = new int[student_num];\n\n\t\t\tfor ( int i = 0; i < student_num ; i++ ) {\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tscore_avg = avg( student_num, score );\n\n\t\t\tstd_dev = std_dev( student_num, score, score_avg );\n\n\t\t\tSystem.out.println( std_dev );\n\t\t}\n\t\tsc.close();\n\t}", "main", "{\n\n\t\tint student_num = 0;\n\t\tint[] score;\n\t\tdouble score_avg = 0;\n\t\tdouble std_dev = 0.0;\n\n\t\tScanner sc= new Scanner( System.in );\n\n\t\twhile( true ) {\n\n\t\t\tstudent_num = sc.nextInt();\n\n\t\t\tif( student_num == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tscore = new int[student_num];\n\n\t\t\tfor ( int i = 0; i < student_num ; i++ ) {\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tscore_avg = avg( student_num, score );\n\n\t\t\tstd_dev = std_dev( student_num, score, score_avg );\n\n\t\t\tSystem.out.println( std_dev );\n\t\t}\n\t\tsc.close();\n\t}", "int student_num = 0;", "student_num", "0", "int[] score;", "score", "double score_avg = 0;", "score_avg", "0", "double std_dev = 0.0;", "std_dev", "0.0", "Scanner sc= new Scanner( System.in );", "sc", "new Scanner( System.in )", "while( true ) {\n\n\t\t\tstudent_num = sc.nextInt();\n\n\t\t\tif( student_num == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tscore = new int[student_num];\n\n\t\t\tfor ( int i = 0; i < student_num ; i++ ) {\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tscore_avg = avg( student_num, score );\n\n\t\t\tstd_dev = std_dev( student_num, score, score_avg );\n\n\t\t\tSystem.out.println( std_dev );\n\t\t}", "true", "{\n\n\t\t\tstudent_num = sc.nextInt();\n\n\t\t\tif( student_num == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tscore = new int[student_num];\n\n\t\t\tfor ( int i = 0; i < student_num ; i++ ) {\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tscore_avg = avg( student_num, score );\n\n\t\t\tstd_dev = std_dev( student_num, score, score_avg );\n\n\t\t\tSystem.out.println( std_dev );\n\t\t}", "student_num = sc.nextInt()", "student_num", "sc.nextInt()", "sc.nextInt", "sc", "if( student_num == 0) {\n\t\t\t\tbreak;\n\t\t\t}", "student_num == 0", "student_num", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "score = new int[student_num]", "score", "new int[student_num]", "student_num", "for ( int i = 0; i < student_num ; i++ ) {\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < student_num", "i", "student_num", "i++", "i++", "i", "{\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t}", "{\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t}", "score[i] = sc.nextInt()", "score[i]", "score", "i", "sc.nextInt()", "sc.nextInt", "sc", "score_avg = avg( student_num, score )", "score_avg", "avg( student_num, score )", "avg", "student_num", "score", "std_dev = std_dev( student_num, score, score_avg )", "std_dev", "std_dev( student_num, score, score_avg )", "std_dev", "student_num", "score", "score_avg", "System.out.println( std_dev )", "System.out.println", "System.out", "System", "System.out", "std_dev", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\n\tstatic double avg( int num, int member[] ) {\n\t\tdouble avg = 0;\n\t\tint sum = 0;\n\n\t\tfor ( int i = 0 ; i < num ; i++ ) {\n\t\t\tsum += member[i];\n\t\t}\n\n\t\tavg = (double)sum / (double)num;\n\n\t\treturn avg;\n\t}\n\n\tstatic double std_dev( int num, int member[], double avg ) {\n\t\tdouble std_dev = 0;\n\n\t\tfor ( int i = 0 ; i < num ; i++ ) {\n\t\t\tstd_dev += Math.pow( ( member[i] - avg ), 2 );\n\t\t}\n\n\t\tstd_dev = Math.sqrt( std_dev / num );\n\n\t\treturn std_dev;\n\t}\n\n\tpublic static void main(String[] args) {\n\n\t\tint student_num = 0;\n\t\tint[] score;\n\t\tdouble score_avg = 0;\n\t\tdouble std_dev = 0.0;\n\n\t\tScanner sc= new Scanner( System.in );\n\n\t\twhile( true ) {\n\n\t\t\tstudent_num = sc.nextInt();\n\n\t\t\tif( student_num == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tscore = new int[student_num];\n\n\t\t\tfor ( int i = 0; i < student_num ; i++ ) {\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tscore_avg = avg( student_num, score );\n\n\t\t\tstd_dev = std_dev( student_num, score, score_avg );\n\n\t\t\tSystem.out.println( std_dev );\n\t\t}\n\t\tsc.close();\n\t}\n}", "public class Main {\n\n\tstatic double avg( int num, int member[] ) {\n\t\tdouble avg = 0;\n\t\tint sum = 0;\n\n\t\tfor ( int i = 0 ; i < num ; i++ ) {\n\t\t\tsum += member[i];\n\t\t}\n\n\t\tavg = (double)sum / (double)num;\n\n\t\treturn avg;\n\t}\n\n\tstatic double std_dev( int num, int member[], double avg ) {\n\t\tdouble std_dev = 0;\n\n\t\tfor ( int i = 0 ; i < num ; i++ ) {\n\t\t\tstd_dev += Math.pow( ( member[i] - avg ), 2 );\n\t\t}\n\n\t\tstd_dev = Math.sqrt( std_dev / num );\n\n\t\treturn std_dev;\n\t}\n\n\tpublic static void main(String[] args) {\n\n\t\tint student_num = 0;\n\t\tint[] score;\n\t\tdouble score_avg = 0;\n\t\tdouble std_dev = 0.0;\n\n\t\tScanner sc= new Scanner( System.in );\n\n\t\twhile( true ) {\n\n\t\t\tstudent_num = sc.nextInt();\n\n\t\t\tif( student_num == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tscore = new int[student_num];\n\n\t\t\tfor ( int i = 0; i < student_num ; i++ ) {\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tscore_avg = avg( student_num, score );\n\n\t\t\tstd_dev = std_dev( student_num, score, score_avg );\n\n\t\t\tSystem.out.println( std_dev );\n\t\t}\n\t\tsc.close();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { static double avg( int num, int member[] ) { double avg = 0; int sum = 0; for ( int i = 0 ; i < num ; i++ ) { sum += member[i]; } avg = (double)sum / (double)num; return avg; } static double std_dev( int num, int member[], double avg ) { double std_dev = 0; for ( int i = 0 ; i < num ; i++ ) { std_dev += Math.pow( ( member[i] - avg ), 2 ); } std_dev = Math.sqrt( std_dev / num ); return std_dev; } public static void main(String[] args) { int student_num = 0; int[] score; double score_avg = 0; double std_dev = 0.0; Scanner sc= new Scanner( System.in ); while( true ) { student_num = sc.nextInt(); if( student_num == 0) { break; } score = new int[student_num]; for ( int i = 0; i < student_num ; i++ ) { score[i] = sc.nextInt(); } score_avg = avg( student_num, score ); std_dev = std_dev( student_num, score, score_avg ); System.out.println( std_dev ); } sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 20, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 41, 13, 2, 2, 13, 17, 13, 41, 13, 17, 28, 13, 13, 30, 30, 0, 13, 4, 18, 13, 2, 13, 13, 17, 0, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 97, 5 ], [ 97, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 30 ], [ 30, 31 ], [ 30, 32 ], [ 14, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 33, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 45, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 14, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 14, 65 ], [ 65, 66 ], [ 65, 67 ], [ 14, 68 ], [ 68, 69 ], [ 68, 70 ], [ 68, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 78, 79 ], [ 78, 80 ], [ 75, 81 ], [ 14, 82 ], [ 82, 83 ], [ 82, 84 ], [ 14, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 6, 94 ], [ 94, 95 ], [ 0, 96 ], [ 96, 97 ], [ 96, 98 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tint N = sc.nextInt();\n\n\t\t\tif (N == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] scores = new int[N];\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t\tsum += scores[i];\n\t\t\t}\n\t\t\tdouble ave = sum * 1.0 / N;\n//\t\t\tSystem.out.println(ave);\n\n\t\t\tdouble bunsan = 0;\n\t\t\tfor (int score : scores) {\n\t\t\t\tbunsan += Math.pow( (score - ave) , 2);\n\t\t\t}\n\t\t\tbunsan /= N;\n\n\t\t\tSystem.out.println(Math.sqrt(bunsan));\n\n\t\t}\n\n\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tint N = sc.nextInt();\n\n\t\t\tif (N == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] scores = new int[N];\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t\tsum += scores[i];\n\t\t\t}\n\t\t\tdouble ave = sum * 1.0 / N;\n//\t\t\tSystem.out.println(ave);\n\n\t\t\tdouble bunsan = 0;\n\t\t\tfor (int score : scores) {\n\t\t\t\tbunsan += Math.pow( (score - ave) , 2);\n\t\t\t}\n\t\t\tbunsan /= N;\n\n\t\t\tSystem.out.println(Math.sqrt(bunsan));\n\n\t\t}\n\n\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tint N = sc.nextInt();\n\n\t\t\tif (N == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] scores = new int[N];\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t\tsum += scores[i];\n\t\t\t}\n\t\t\tdouble ave = sum * 1.0 / N;\n//\t\t\tSystem.out.println(ave);\n\n\t\t\tdouble bunsan = 0;\n\t\t\tfor (int score : scores) {\n\t\t\t\tbunsan += Math.pow( (score - ave) , 2);\n\t\t\t}\n\t\t\tbunsan /= N;\n\n\t\t\tSystem.out.println(Math.sqrt(bunsan));\n\n\t\t}\n\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tint N = sc.nextInt();\n\n\t\t\tif (N == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] scores = new int[N];\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t\tsum += scores[i];\n\t\t\t}\n\t\t\tdouble ave = sum * 1.0 / N;\n//\t\t\tSystem.out.println(ave);\n\n\t\t\tdouble bunsan = 0;\n\t\t\tfor (int score : scores) {\n\t\t\t\tbunsan += Math.pow( (score - ave) , 2);\n\t\t\t}\n\t\t\tbunsan /= N;\n\n\t\t\tSystem.out.println(Math.sqrt(bunsan));\n\n\t\t}\n\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (true) {\n\t\t\tint N = sc.nextInt();\n\n\t\t\tif (N == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] scores = new int[N];\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t\tsum += scores[i];\n\t\t\t}\n\t\t\tdouble ave = sum * 1.0 / N;\n//\t\t\tSystem.out.println(ave);\n\n\t\t\tdouble bunsan = 0;\n\t\t\tfor (int score : scores) {\n\t\t\t\tbunsan += Math.pow( (score - ave) , 2);\n\t\t\t}\n\t\t\tbunsan /= N;\n\n\t\t\tSystem.out.println(Math.sqrt(bunsan));\n\n\t\t}", "true", "{\n\t\t\tint N = sc.nextInt();\n\n\t\t\tif (N == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] scores = new int[N];\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t\tsum += scores[i];\n\t\t\t}\n\t\t\tdouble ave = sum * 1.0 / N;\n//\t\t\tSystem.out.println(ave);\n\n\t\t\tdouble bunsan = 0;\n\t\t\tfor (int score : scores) {\n\t\t\t\tbunsan += Math.pow( (score - ave) , 2);\n\t\t\t}\n\t\t\tbunsan /= N;\n\n\t\t\tSystem.out.println(Math.sqrt(bunsan));\n\n\t\t}", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "if (N == 0) {\n\t\t\t\tbreak;\n\t\t\t}", "N == 0", "N", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "int[] scores = new int[N];", "scores", "new int[N]", "N", "int sum = 0;", "sum", "0", "for (int i = 0; i < N; i++) {\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t\tsum += scores[i];\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t\tsum += scores[i];\n\t\t\t}", "{\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t\tsum += scores[i];\n\t\t\t}", "scores[i] = sc.nextInt()", "scores[i]", "scores", "i", "sc.nextInt()", "sc.nextInt", "sc", "sum += scores[i]", "sum", "scores[i]", "scores", "i", "double ave = sum * 1.0 / N;", "ave", "sum * 1.0 / N", "sum * 1.0", "sum", "1.0", "N", "double bunsan = 0;", "bunsan", "0", "for (int score : scores) {\n\t\t\t\tbunsan += Math.pow( (score - ave) , 2);\n\t\t\t}", "int score", "scores", "{\n\t\t\t\tbunsan += Math.pow( (score - ave) , 2);\n\t\t\t}", "{\n\t\t\t\tbunsan += Math.pow( (score - ave) , 2);\n\t\t\t}", "bunsan += Math.pow( (score - ave) , 2)", "bunsan", "Math.pow( (score - ave) , 2)", "Math.pow", "Math", "(score - ave)", "score", "ave", "2", "bunsan /= N", "bunsan", "N", "System.out.println(Math.sqrt(bunsan))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(bunsan)", "Math.sqrt", "Math", "bunsan", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tint N = sc.nextInt();\n\n\t\t\tif (N == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] scores = new int[N];\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t\tsum += scores[i];\n\t\t\t}\n\t\t\tdouble ave = sum * 1.0 / N;\n//\t\t\tSystem.out.println(ave);\n\n\t\t\tdouble bunsan = 0;\n\t\t\tfor (int score : scores) {\n\t\t\t\tbunsan += Math.pow( (score - ave) , 2);\n\t\t\t}\n\t\t\tbunsan /= N;\n\n\t\t\tSystem.out.println(Math.sqrt(bunsan));\n\n\t\t}\n\n\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tint N = sc.nextInt();\n\n\t\t\tif (N == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] scores = new int[N];\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t\tsum += scores[i];\n\t\t\t}\n\t\t\tdouble ave = sum * 1.0 / N;\n//\t\t\tSystem.out.println(ave);\n\n\t\t\tdouble bunsan = 0;\n\t\t\tfor (int score : scores) {\n\t\t\t\tbunsan += Math.pow( (score - ave) , 2);\n\t\t\t}\n\t\t\tbunsan /= N;\n\n\t\t\tSystem.out.println(Math.sqrt(bunsan));\n\n\t\t}\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); while (true) { int N = sc.nextInt(); if (N == 0) { break; } int[] scores = new int[N]; int sum = 0; for (int i = 0; i < N; i++) { scores[i] = sc.nextInt(); sum += scores[i]; } double ave = sum * 1.0 / N; // System.out.println(ave); double bunsan = 0; for (int score : scores) { bunsan += Math.pow( (score - ave) , 2); } bunsan /= N; System.out.println(Math.sqrt(bunsan)); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 17, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 2, 13, 18, 13, 13, 0, 13, 2, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 2, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 110, 5 ], [ 110, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 14, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 33, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 45, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 14, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 14, 65 ], [ 65, 66 ], [ 65, 67 ], [ 14, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 73, 74 ], [ 73, 75 ], [ 68, 76 ], [ 76, 77 ], [ 77, 78 ], [ 68, 79 ], [ 80, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 85, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 14, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 104, 105 ], [ 104, 106 ], [ 6, 107 ], [ 107, 108 ], [ 0, 109 ], [ 109, 110 ], [ 109, 111 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = scn.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdouble m = 0;\n\t\t\tint[] s = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scn.nextInt();\n\t\t\t\tm = m + s[i];\n\t\t\t}\n\t\t\tm = m / n;\n\t\t\tdouble σ = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tσ = σ + (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(σ / n));\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 scn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = scn.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdouble m = 0;\n\t\t\tint[] s = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scn.nextInt();\n\t\t\t\tm = m + s[i];\n\t\t\t}\n\t\t\tm = m / n;\n\t\t\tdouble σ = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tσ = σ + (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(σ / n));\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = scn.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdouble m = 0;\n\t\t\tint[] s = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scn.nextInt();\n\t\t\t\tm = m + s[i];\n\t\t\t}\n\t\t\tm = m / n;\n\t\t\tdouble σ = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tσ = σ + (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(σ / n));\n\t\t}\n\t}", "main", "{\n\t\tScanner scn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = scn.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdouble m = 0;\n\t\t\tint[] s = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scn.nextInt();\n\t\t\t\tm = m + s[i];\n\t\t\t}\n\t\t\tm = m / n;\n\t\t\tdouble σ = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tσ = σ + (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(σ / n));\n\t\t}\n\t}", "Scanner scn = new Scanner(System.in);", "scn", "new Scanner(System.in)", "while (true) {\n\t\t\tint n = scn.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdouble m = 0;\n\t\t\tint[] s = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scn.nextInt();\n\t\t\t\tm = m + s[i];\n\t\t\t}\n\t\t\tm = m / n;\n\t\t\tdouble σ = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tσ = σ + (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(σ / n));\n\t\t}", "true", "{\n\t\t\tint n = scn.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdouble m = 0;\n\t\t\tint[] s = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scn.nextInt();\n\t\t\t\tm = m + s[i];\n\t\t\t}\n\t\t\tm = m / n;\n\t\t\tdouble σ = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tσ = σ + (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(σ / n));\n\t\t}", "int n = scn.nextInt();", "n", "scn.nextInt()", "scn.nextInt", "scn", "if (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}", "n == 0", "n", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "double m = 0;", "m", "0", "int[] s = new int[n];", "s", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scn.nextInt();\n\t\t\t\tm = m + s[i];\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\ts[i] = scn.nextInt();\n\t\t\t\tm = m + s[i];\n\t\t\t}", "{\n\t\t\t\ts[i] = scn.nextInt();\n\t\t\t\tm = m + s[i];\n\t\t\t}", "s[i] = scn.nextInt()", "s[i]", "s", "i", "scn.nextInt()", "scn.nextInt", "scn", "m = m + s[i]", "m", "m + s[i]", "m", "s[i]", "s", "i", "m = m / n", "m", "m / n", "m", "n", "double σ = 0;", "σ", "0", "for (int i = 0; i < n; i++) {\n\t\t\t\tσ = σ + (s[i] - m) * (s[i] - m);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tσ = σ + (s[i] - m) * (s[i] - m);\n\t\t\t}", "{\n\t\t\t\tσ = σ + (s[i] - m) * (s[i] - m);\n\t\t\t}", "σ = σ + (s[i] - m) * (s[i] - m)", "σ", "σ + (s[i] - m) * (s[i] - m)", "σ", "(s[i] - m) * (s[i] - m)", "(s[i] - m)", "s[i]", "s", "i", "m", "(s[i] - m)", "s[i]", "s", "i", "m", "System.out.println(Math.sqrt(σ / n))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(σ / n)", "Math.sqrt", "Math", "σ / n", "σ", "n", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = scn.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdouble m = 0;\n\t\t\tint[] s = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scn.nextInt();\n\t\t\t\tm = m + s[i];\n\t\t\t}\n\t\t\tm = m / n;\n\t\t\tdouble σ = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tσ = σ + (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(σ / n));\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = scn.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdouble m = 0;\n\t\t\tint[] s = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scn.nextInt();\n\t\t\t\tm = m + s[i];\n\t\t\t}\n\t\t\tm = m / n;\n\t\t\tdouble σ = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tσ = σ + (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(σ / n));\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scn = new Scanner(System.in); while (true) { int n = scn.nextInt(); if (n == 0) { break; } double m = 0; int[] s = new int[n]; for (int i = 0; i < n; i++) { s[i] = scn.nextInt(); m = m + s[i]; } m = m / n; double σ = 0; for (int i = 0; i < n; i++) { σ = σ + (s[i] - m) * (s[i] - m); } System.out.println(Math.sqrt(σ / n)); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 42, 2, 0, 13, 4, 18, 13, 17, 30, 41, 13, 20, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 2, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 103, 5 ], [ 103, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 15, 21 ], [ 14, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 27 ], [ 27, 28 ], [ 27, 29 ], [ 22, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 30, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 42, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 22, 55 ], [ 55, 56 ], [ 55, 57 ], [ 22, 58 ], [ 58, 59 ], [ 58, 60 ], [ 22, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 61, 71 ], [ 71, 72 ], [ 72, 73 ], [ 61, 74 ], [ 75, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 78, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 22, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 97, 98 ], [ 97, 99 ], [ 6, 100 ], [ 100, 101 ], [ 0, 102 ], [ 102, 103 ], [ 102, 104 ] ]
[ "import java.util.Scanner;\n \npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n;\n while ((n = scan.nextInt()) != 0) {\n int[] s = new int[n];\n double m = 0;\n for (int i = 0; i < n; i++) {\n s[i] = scan.nextInt();\n m += s[i];\n }\n m /= n;\n double sum = 0;\n for(int i = 0; i < s.length; i++){\n \tsum += (s[i] - m) * (s[i] - m);\n }\n System.out.println(Math.sqrt(sum/n));\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n;\n while ((n = scan.nextInt()) != 0) {\n int[] s = new int[n];\n double m = 0;\n for (int i = 0; i < n; i++) {\n s[i] = scan.nextInt();\n m += s[i];\n }\n m /= n;\n double sum = 0;\n for(int i = 0; i < s.length; i++){\n \tsum += (s[i] - m) * (s[i] - m);\n }\n System.out.println(Math.sqrt(sum/n));\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n;\n while ((n = scan.nextInt()) != 0) {\n int[] s = new int[n];\n double m = 0;\n for (int i = 0; i < n; i++) {\n s[i] = scan.nextInt();\n m += s[i];\n }\n m /= n;\n double sum = 0;\n for(int i = 0; i < s.length; i++){\n \tsum += (s[i] - m) * (s[i] - m);\n }\n System.out.println(Math.sqrt(sum/n));\n }\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n int n;\n while ((n = scan.nextInt()) != 0) {\n int[] s = new int[n];\n double m = 0;\n for (int i = 0; i < n; i++) {\n s[i] = scan.nextInt();\n m += s[i];\n }\n m /= n;\n double sum = 0;\n for(int i = 0; i < s.length; i++){\n \tsum += (s[i] - m) * (s[i] - m);\n }\n System.out.println(Math.sqrt(sum/n));\n }\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n;", "n", "while ((n = scan.nextInt()) != 0) {\n int[] s = new int[n];\n double m = 0;\n for (int i = 0; i < n; i++) {\n s[i] = scan.nextInt();\n m += s[i];\n }\n m /= n;\n double sum = 0;\n for(int i = 0; i < s.length; i++){\n \tsum += (s[i] - m) * (s[i] - m);\n }\n System.out.println(Math.sqrt(sum/n));\n }", "(n = scan.nextInt()) != 0", "(n = scan.nextInt())", "n", "scan.nextInt()", "scan.nextInt", "scan", "0", "{\n int[] s = new int[n];\n double m = 0;\n for (int i = 0; i < n; i++) {\n s[i] = scan.nextInt();\n m += s[i];\n }\n m /= n;\n double sum = 0;\n for(int i = 0; i < s.length; i++){\n \tsum += (s[i] - m) * (s[i] - m);\n }\n System.out.println(Math.sqrt(sum/n));\n }", "int[] s = new int[n];", "s", "new int[n]", "n", "double m = 0;", "m", "0", "for (int i = 0; i < n; i++) {\n s[i] = scan.nextInt();\n m += s[i];\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n s[i] = scan.nextInt();\n m += s[i];\n }", "{\n s[i] = scan.nextInt();\n m += s[i];\n }", "s[i] = scan.nextInt()", "s[i]", "s", "i", "scan.nextInt()", "scan.nextInt", "scan", "m += s[i]", "m", "s[i]", "s", "i", "m /= n", "m", "n", "double sum = 0;", "sum", "0", "for(int i = 0; i < s.length; i++){\n \tsum += (s[i] - m) * (s[i] - m);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < s.length", "i", "s.length", "s", "s.length", "i++", "i++", "i", "{\n \tsum += (s[i] - m) * (s[i] - m);\n }", "{\n \tsum += (s[i] - m) * (s[i] - m);\n }", "sum += (s[i] - m) * (s[i] - m)", "sum", "(s[i] - m) * (s[i] - m)", "(s[i] - m)", "s[i]", "s", "i", "m", "(s[i] - m)", "s[i]", "s", "i", "m", "System.out.println(Math.sqrt(sum/n))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(sum/n)", "Math.sqrt", "Math", "sum/n", "sum", "n", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n;\n while ((n = scan.nextInt()) != 0) {\n int[] s = new int[n];\n double m = 0;\n for (int i = 0; i < n; i++) {\n s[i] = scan.nextInt();\n m += s[i];\n }\n m /= n;\n double sum = 0;\n for(int i = 0; i < s.length; i++){\n \tsum += (s[i] - m) * (s[i] - m);\n }\n System.out.println(Math.sqrt(sum/n));\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n;\n while ((n = scan.nextInt()) != 0) {\n int[] s = new int[n];\n double m = 0;\n for (int i = 0; i < n; i++) {\n s[i] = scan.nextInt();\n m += s[i];\n }\n m /= n;\n double sum = 0;\n for(int i = 0; i < s.length; i++){\n \tsum += (s[i] - m) * (s[i] - m);\n }\n System.out.println(Math.sqrt(sum/n));\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n; while ((n = scan.nextInt()) != 0) { int[] s = new int[n]; double m = 0; for (int i = 0; i < n; i++) { s[i] = scan.nextInt(); m += s[i]; } m /= n; double sum = 0; for(int i = 0; i < s.length; i++){ sum += (s[i] - m) * (s[i] - m); } System.out.println(Math.sqrt(sum/n)); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 0, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 2, 13, 18, 13, 13, 0, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 0, 13, 4, 18, 13, 2, 13, 13, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 0, 13, 17, 0, 13, 17, 0, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 29, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 39, 40 ], [ 29, 41 ], [ 41, 42 ], [ 41, 43 ], [ 29, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 45, 53 ], [ 53, 54 ], [ 54, 55 ], [ 45, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 63, 64 ], [ 57, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 29, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 29, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 82, 83 ], [ 82, 84 ], [ 77, 85 ], [ 85, 86 ], [ 86, 87 ], [ 77, 88 ], [ 89, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 94, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 29, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 110, 111 ], [ 110, 112 ], [ 29, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 29, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 29, 125 ], [ 125, 126 ], [ 125, 127 ], [ 29, 128 ], [ 128, 129 ], [ 128, 130 ], [ 29, 131 ], [ 131, 132 ], [ 131, 133 ], [ 6, 134 ], [ 134, 135 ] ]
[ "import java.util.Scanner;\n\n/**\n * @author kawakami\n *\n */\nclass Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tint num;\n\t\tdouble hen = 0;\n\t\tdouble sum = 0;\n \t\tdouble hei = 0;\n\t\tdouble ten[];\n\t\t\n\t\tString str;\n\t\t\n\t\t\n\t\t\n\t\twhile(true){\n\t\t\n\t\t\n\t\t\tnum = as.nextInt();\n\t\t\t\n\t\t\tif(num == 0){\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tten = new double[num];\n\t\t\t\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\t\t\t\t\n\t\t\t\tten[i] = as.nextDouble();\n\t\t\t\thei = hei + ten[i];\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\thei = hei / num;\n\t\t\t//System.out.println(hei);\n\t\t\t\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\t\n\t\t\t\t//System.out.println(ten[i]-hei);\n\t\t\t\tsum = sum + (ten[i]-hei)*(ten[i]-hei);\n\t\t\t\t\n\t\t\t}\n\t\t\t//System.out.println(sum);\n\t\t\t\n\t\t\then = Math.sqrt(sum/num);\n\t\t\tstr = String.valueOf(hen);\n\t\t\tSystem.out.println(str);\n\t\t\thei = 0;\n\t\t\tsum = 0;\n\t\t\then = 0;\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tint num;\n\t\tdouble hen = 0;\n\t\tdouble sum = 0;\n \t\tdouble hei = 0;\n\t\tdouble ten[];\n\t\t\n\t\tString str;\n\t\t\n\t\t\n\t\t\n\t\twhile(true){\n\t\t\n\t\t\n\t\t\tnum = as.nextInt();\n\t\t\t\n\t\t\tif(num == 0){\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tten = new double[num];\n\t\t\t\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\t\t\t\t\n\t\t\t\tten[i] = as.nextDouble();\n\t\t\t\thei = hei + ten[i];\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\thei = hei / num;\n\t\t\t//System.out.println(hei);\n\t\t\t\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\t\n\t\t\t\t//System.out.println(ten[i]-hei);\n\t\t\t\tsum = sum + (ten[i]-hei)*(ten[i]-hei);\n\t\t\t\t\n\t\t\t}\n\t\t\t//System.out.println(sum);\n\t\t\t\n\t\t\then = Math.sqrt(sum/num);\n\t\t\tstr = String.valueOf(hen);\n\t\t\tSystem.out.println(str);\n\t\t\thei = 0;\n\t\t\tsum = 0;\n\t\t\then = 0;\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}\n\n}", "Main", "/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tint num;\n\t\tdouble hen = 0;\n\t\tdouble sum = 0;\n \t\tdouble hei = 0;\n\t\tdouble ten[];\n\t\t\n\t\tString str;\n\t\t\n\t\t\n\t\t\n\t\twhile(true){\n\t\t\n\t\t\n\t\t\tnum = as.nextInt();\n\t\t\t\n\t\t\tif(num == 0){\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tten = new double[num];\n\t\t\t\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\t\t\t\t\n\t\t\t\tten[i] = as.nextDouble();\n\t\t\t\thei = hei + ten[i];\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\thei = hei / num;\n\t\t\t//System.out.println(hei);\n\t\t\t\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\t\n\t\t\t\t//System.out.println(ten[i]-hei);\n\t\t\t\tsum = sum + (ten[i]-hei)*(ten[i]-hei);\n\t\t\t\t\n\t\t\t}\n\t\t\t//System.out.println(sum);\n\t\t\t\n\t\t\then = Math.sqrt(sum/num);\n\t\t\tstr = String.valueOf(hen);\n\t\t\tSystem.out.println(str);\n\t\t\thei = 0;\n\t\t\tsum = 0;\n\t\t\then = 0;\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "main", "{\n\t\t// TODO Auto-generated method stub\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tint num;\n\t\tdouble hen = 0;\n\t\tdouble sum = 0;\n \t\tdouble hei = 0;\n\t\tdouble ten[];\n\t\t\n\t\tString str;\n\t\t\n\t\t\n\t\t\n\t\twhile(true){\n\t\t\n\t\t\n\t\t\tnum = as.nextInt();\n\t\t\t\n\t\t\tif(num == 0){\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tten = new double[num];\n\t\t\t\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\t\t\t\t\n\t\t\t\tten[i] = as.nextDouble();\n\t\t\t\thei = hei + ten[i];\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\thei = hei / num;\n\t\t\t//System.out.println(hei);\n\t\t\t\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\t\n\t\t\t\t//System.out.println(ten[i]-hei);\n\t\t\t\tsum = sum + (ten[i]-hei)*(ten[i]-hei);\n\t\t\t\t\n\t\t\t}\n\t\t\t//System.out.println(sum);\n\t\t\t\n\t\t\then = Math.sqrt(sum/num);\n\t\t\tstr = String.valueOf(hen);\n\t\t\tSystem.out.println(str);\n\t\t\thei = 0;\n\t\t\tsum = 0;\n\t\t\then = 0;\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "Scanner as = new Scanner(System.in);", "as", "new Scanner(System.in)", "int num;", "num", "double hen = 0;", "hen", "0", "double sum = 0;", "sum", "0", "double hei = 0;", "hei", "0", "double ten[];", "ten", "String str;", "str", "while(true){\n\t\t\n\t\t\n\t\t\tnum = as.nextInt();\n\t\t\t\n\t\t\tif(num == 0){\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tten = new double[num];\n\t\t\t\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\t\t\t\t\n\t\t\t\tten[i] = as.nextDouble();\n\t\t\t\thei = hei + ten[i];\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\thei = hei / num;\n\t\t\t//System.out.println(hei);\n\t\t\t\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\t\n\t\t\t\t//System.out.println(ten[i]-hei);\n\t\t\t\tsum = sum + (ten[i]-hei)*(ten[i]-hei);\n\t\t\t\t\n\t\t\t}\n\t\t\t//System.out.println(sum);\n\t\t\t\n\t\t\then = Math.sqrt(sum/num);\n\t\t\tstr = String.valueOf(hen);\n\t\t\tSystem.out.println(str);\n\t\t\thei = 0;\n\t\t\tsum = 0;\n\t\t\then = 0;\n\t\t\t\n\t\t\t\n\t\t}", "true", "{\n\t\t\n\t\t\n\t\t\tnum = as.nextInt();\n\t\t\t\n\t\t\tif(num == 0){\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tten = new double[num];\n\t\t\t\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\t\t\t\t\n\t\t\t\tten[i] = as.nextDouble();\n\t\t\t\thei = hei + ten[i];\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\thei = hei / num;\n\t\t\t//System.out.println(hei);\n\t\t\t\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\t\n\t\t\t\t//System.out.println(ten[i]-hei);\n\t\t\t\tsum = sum + (ten[i]-hei)*(ten[i]-hei);\n\t\t\t\t\n\t\t\t}\n\t\t\t//System.out.println(sum);\n\t\t\t\n\t\t\then = Math.sqrt(sum/num);\n\t\t\tstr = String.valueOf(hen);\n\t\t\tSystem.out.println(str);\n\t\t\thei = 0;\n\t\t\tsum = 0;\n\t\t\then = 0;\n\t\t\t\n\t\t\t\n\t\t}", "num = as.nextInt()", "num", "as.nextInt()", "as.nextInt", "as", "if(num == 0){\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}", "num == 0", "num", "0", "{\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}", "break;", "ten = new double[num]", "ten", "new double[num]", "num", "for(int i=0;i<num;i++){\n\t\t\t\t\t\t\t\n\t\t\t\tten[i] = as.nextDouble();\n\t\t\t\thei = hei + ten[i];\n\t\t\t\t\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<num", "i", "num", "i++", "i++", "i", "{\n\t\t\t\t\t\t\t\n\t\t\t\tten[i] = as.nextDouble();\n\t\t\t\thei = hei + ten[i];\n\t\t\t\t\n\t\t\t}", "{\n\t\t\t\t\t\t\t\n\t\t\t\tten[i] = as.nextDouble();\n\t\t\t\thei = hei + ten[i];\n\t\t\t\t\n\t\t\t}", "ten[i] = as.nextDouble()", "ten[i]", "ten", "i", "as.nextDouble()", "as.nextDouble", "as", "hei = hei + ten[i]", "hei", "hei + ten[i]", "hei", "ten[i]", "ten", "i", "hei = hei / num", "hei", "hei / num", "hei", "num", "for(int i=0;i<num;i++){\n\t\t\t\t\n\t\t\t\t//System.out.println(ten[i]-hei);\n\t\t\t\tsum = sum + (ten[i]-hei)*(ten[i]-hei);\n\t\t\t\t\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<num", "i", "num", "i++", "i++", "i", "{\n\t\t\t\t\n\t\t\t\t//System.out.println(ten[i]-hei);\n\t\t\t\tsum = sum + (ten[i]-hei)*(ten[i]-hei);\n\t\t\t\t\n\t\t\t}", "{\n\t\t\t\t\n\t\t\t\t//System.out.println(ten[i]-hei);\n\t\t\t\tsum = sum + (ten[i]-hei)*(ten[i]-hei);\n\t\t\t\t\n\t\t\t}", "sum = sum + (ten[i]-hei)*(ten[i]-hei)", "sum", "sum + (ten[i]-hei)*(ten[i]-hei)", "sum", "(ten[i]-hei)*(ten[i]-hei)", "(ten[i]-hei)", "ten[i]", "ten", "i", "hei", "(ten[i]-hei)", "ten[i]", "ten", "i", "hei", "hen = Math.sqrt(sum/num)", "hen", "Math.sqrt(sum/num)", "Math.sqrt", "Math", "sum/num", "sum", "num", "str = String.valueOf(hen)", "str", "String.valueOf(hen)", "String.valueOf", "String", "hen", "System.out.println(str)", "System.out.println", "System.out", "System", "System.out", "str", "hei = 0", "hei", "0", "sum = 0", "sum", "0", "hen = 0", "hen", "0", "String[] args", "args" ]
import java.util.Scanner; /** * @author kawakami * */ class Main { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Scanner as = new Scanner(System.in); int num; double hen = 0; double sum = 0; double hei = 0; double ten[]; String str; while(true){ num = as.nextInt(); if(num == 0){ break; } ten = new double[num]; for(int i=0;i<num;i++){ ten[i] = as.nextDouble(); hei = hei + ten[i]; } hei = hei / num; //System.out.println(hei); for(int i=0;i<num;i++){ //System.out.println(ten[i]-hei); sum = sum + (ten[i]-hei)*(ten[i]-hei); } //System.out.println(sum); hen = Math.sqrt(sum/num); str = String.valueOf(hen); System.out.println(str); hei = 0; sum = 0; hen = 0; } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 41, 13, 41, 13, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 3, 41, 13, 20, 13, 41, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 0, 18, 13, 13, 4, 18, 13, 41, 13, 2, 13, 13, 0, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 13, 2, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 108, 5 ], [ 108, 6 ], [ 6, 7 ], [ 6, 8 ], [ 108, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 11, 14 ], [ 14, 15 ], [ 11, 16 ], [ 16, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 20, 31 ], [ 31, 32 ], [ 31, 33 ], [ 20, 35 ], [ 35, 36 ], [ 35, 37 ], [ 20, 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 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 58, 59 ], [ 20, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 20, 65 ], [ 65, 66 ], [ 65, 67 ], [ 20, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 73, 74 ], [ 73, 75 ], [ 68, 76 ], [ 76, 77 ], [ 77, 78 ], [ 68, 79 ], [ 80, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 83, 91 ], [ 20, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 92, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 101, 102 ], [ 101, 103 ], [ 98, 104 ], [ 9, 105 ], [ 105, 106 ], [ 0, 107 ], [ 107, 108 ], [ 107, 109 ] ]
[ "import java.util.*;\npublic class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n \tint i, j, k;\n \t\n \twhile(true){\n int n = sc.nextInt();\n if(n == 0)\n break;\n \n int[] s = new int[n];\n double sum = 0;\n \n for (i = 0; i < n; i++) {\n sum += s[i] = sc.nextInt();\n }\n \n double m = sum/n;\n sum = 0;\n \n for (i = 0; i < n; i++) {\n sum += Math.pow(s[i]-m,2);\n }\n System.out.printf(\"%.5f\\n\",Math.pow((double)sum/n,0.5));\n }\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n \tint i, j, k;\n \t\n \twhile(true){\n int n = sc.nextInt();\n if(n == 0)\n break;\n \n int[] s = new int[n];\n double sum = 0;\n \n for (i = 0; i < n; i++) {\n sum += s[i] = sc.nextInt();\n }\n \n double m = sum/n;\n sum = 0;\n \n for (i = 0; i < n; i++) {\n sum += Math.pow(s[i]-m,2);\n }\n System.out.printf(\"%.5f\\n\",Math.pow((double)sum/n,0.5));\n }\n }\n}", "Main", "public static Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main(String[] args) throws Exception {\n \tint i, j, k;\n \t\n \twhile(true){\n int n = sc.nextInt();\n if(n == 0)\n break;\n \n int[] s = new int[n];\n double sum = 0;\n \n for (i = 0; i < n; i++) {\n sum += s[i] = sc.nextInt();\n }\n \n double m = sum/n;\n sum = 0;\n \n for (i = 0; i < n; i++) {\n sum += Math.pow(s[i]-m,2);\n }\n System.out.printf(\"%.5f\\n\",Math.pow((double)sum/n,0.5));\n }\n }", "main", "{\n \tint i, j, k;\n \t\n \twhile(true){\n int n = sc.nextInt();\n if(n == 0)\n break;\n \n int[] s = new int[n];\n double sum = 0;\n \n for (i = 0; i < n; i++) {\n sum += s[i] = sc.nextInt();\n }\n \n double m = sum/n;\n sum = 0;\n \n for (i = 0; i < n; i++) {\n sum += Math.pow(s[i]-m,2);\n }\n System.out.printf(\"%.5f\\n\",Math.pow((double)sum/n,0.5));\n }\n }", "int i", "i", "j", "j", "k;", "k", "while(true){\n int n = sc.nextInt();\n if(n == 0)\n break;\n \n int[] s = new int[n];\n double sum = 0;\n \n for (i = 0; i < n; i++) {\n sum += s[i] = sc.nextInt();\n }\n \n double m = sum/n;\n sum = 0;\n \n for (i = 0; i < n; i++) {\n sum += Math.pow(s[i]-m,2);\n }\n System.out.printf(\"%.5f\\n\",Math.pow((double)sum/n,0.5));\n }", "true", "{\n int n = sc.nextInt();\n if(n == 0)\n break;\n \n int[] s = new int[n];\n double sum = 0;\n \n for (i = 0; i < n; i++) {\n sum += s[i] = sc.nextInt();\n }\n \n double m = sum/n;\n sum = 0;\n \n for (i = 0; i < n; i++) {\n sum += Math.pow(s[i]-m,2);\n }\n System.out.printf(\"%.5f\\n\",Math.pow((double)sum/n,0.5));\n }", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n == 0)\n break;", "n == 0", "n", "0", "break;", "int[] s = new int[n];", "s", "new int[n]", "n", "double sum = 0;", "sum", "0", "for (i = 0; i < n; i++) {\n sum += s[i] = sc.nextInt();\n }", "i = 0;", "i = 0", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n sum += s[i] = sc.nextInt();\n }", "{\n sum += s[i] = sc.nextInt();\n }", "sum += s[i] = sc.nextInt()", "sum", "s[i] = sc.nextInt()", "s[i]", "s", "i", "sc.nextInt()", "sc.nextInt", "sc", "double m = sum/n;", "m", "sum/n", "sum", "n", "sum = 0", "sum", "0", "for (i = 0; i < n; i++) {\n sum += Math.pow(s[i]-m,2);\n }", "i = 0;", "i = 0", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n sum += Math.pow(s[i]-m,2);\n }", "{\n sum += Math.pow(s[i]-m,2);\n }", "sum += Math.pow(s[i]-m,2)", "sum", "Math.pow(s[i]-m,2)", "Math.pow", "Math", "s[i]-m", "s[i]", "s", "i", "m", "2", "System.out.printf(\"%.5f\\n\",Math.pow((double)sum/n,0.5))", "System.out.printf", "System.out", "System", "System.out", "\"%.5f\\n\"", "Math.pow((double)sum/n,0.5)", "Math.pow", "Math", "(double)sum/n", "(double)sum", "n", "0.5", "String[] args", "args", "public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n \tint i, j, k;\n \t\n \twhile(true){\n int n = sc.nextInt();\n if(n == 0)\n break;\n \n int[] s = new int[n];\n double sum = 0;\n \n for (i = 0; i < n; i++) {\n sum += s[i] = sc.nextInt();\n }\n \n double m = sum/n;\n sum = 0;\n \n for (i = 0; i < n; i++) {\n sum += Math.pow(s[i]-m,2);\n }\n System.out.printf(\"%.5f\\n\",Math.pow((double)sum/n,0.5));\n }\n }\n}", "public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n \tint i, j, k;\n \t\n \twhile(true){\n int n = sc.nextInt();\n if(n == 0)\n break;\n \n int[] s = new int[n];\n double sum = 0;\n \n for (i = 0; i < n; i++) {\n sum += s[i] = sc.nextInt();\n }\n \n double m = sum/n;\n sum = 0;\n \n for (i = 0; i < n; i++) {\n sum += Math.pow(s[i]-m,2);\n }\n System.out.printf(\"%.5f\\n\",Math.pow((double)sum/n,0.5));\n }\n }\n}", "Main" ]
import java.util.*; public class Main { public static Scanner sc = new Scanner(System.in); public static void main(String[] args) throws Exception { int i, j, k; while(true){ int n = sc.nextInt(); if(n == 0) break; int[] s = new int[n]; double sum = 0; for (i = 0; i < n; i++) { sum += s[i] = sc.nextInt(); } double m = sum/n; sum = 0; for (i = 0; i < n; i++) { sum += Math.pow(s[i]-m,2); } System.out.printf("%.5f\n",Math.pow((double)sum/n,0.5)); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 4, 18, 13, 14, 2, 13, 17, 3, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 18, 13, 13, 0, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 4, 18, 13, 18, 13, 13, 13, 17, 0, 13, 4, 18, 13, 2, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 133, 11 ], [ 133, 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 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 32, 33 ], [ 33, 34 ], [ 26, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 26, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 42, 47 ], [ 26, 48 ], [ 48, 49 ], [ 48, 50 ], [ 26, 51 ], [ 51, 52 ], [ 51, 53 ], [ 26, 54 ], [ 54, 55 ], [ 54, 56 ], [ 26, 57 ], [ 57, 58 ], [ 57, 59 ], [ 26, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 60, 68 ], [ 68, 69 ], [ 69, 70 ], [ 60, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 78, 79 ], [ 78, 80 ], [ 26, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 26, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 91, 92 ], [ 91, 93 ], [ 86, 94 ], [ 94, 95 ], [ 95, 96 ], [ 86, 97 ], [ 98, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 108, 109 ], [ 108, 110 ], [ 104, 111 ], [ 101, 112 ], [ 26, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 118, 119 ], [ 118, 120 ], [ 26, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 12, 130 ], [ 130, 131 ], [ 0, 132 ], [ 132, 133 ], [ 132, 134 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.text.DecimalFormat;\n\npublic class Main {\n\tpublic static void main(String[] args)throws Exception{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n \n \n DecimalFormat df = new DecimalFormat(\"0.00000\");\n while (true)\n {\n \tint n = Integer.parseInt(br.readLine());\n \tif (n == 0)\n \t\tbreak;\n \tString[] tensu = br.readLine().split(\" \");\n \t\n \tdouble sum = 0;\n \tdouble asum = 0;\n \tdouble average = 0;\n \tdouble hensa = 0;\n \tfor (int i = 0; i < n; i++)\n \t{\n \t\tsum += Double.parseDouble(tensu[i]);\n \t}\n \taverage = sum / n;\n \tfor (int i = 0; i < n; i++)\n \t{\n \t\tasum += Math.pow(Double.parseDouble(tensu[i]) - average, 2);\n \t}\n \t\n \thensa = Math.sqrt(asum / n);\n \tSystem.out.println(df.format(hensa));\n }\n \t\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.text.DecimalFormat;", "DecimalFormat", "java.text", "public class Main {\n\tpublic static void main(String[] args)throws Exception{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n \n \n DecimalFormat df = new DecimalFormat(\"0.00000\");\n while (true)\n {\n \tint n = Integer.parseInt(br.readLine());\n \tif (n == 0)\n \t\tbreak;\n \tString[] tensu = br.readLine().split(\" \");\n \t\n \tdouble sum = 0;\n \tdouble asum = 0;\n \tdouble average = 0;\n \tdouble hensa = 0;\n \tfor (int i = 0; i < n; i++)\n \t{\n \t\tsum += Double.parseDouble(tensu[i]);\n \t}\n \taverage = sum / n;\n \tfor (int i = 0; i < n; i++)\n \t{\n \t\tasum += Math.pow(Double.parseDouble(tensu[i]) - average, 2);\n \t}\n \t\n \thensa = Math.sqrt(asum / n);\n \tSystem.out.println(df.format(hensa));\n }\n \t\n\t}\n}", "Main", "public static void main(String[] args)throws Exception{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n \n \n DecimalFormat df = new DecimalFormat(\"0.00000\");\n while (true)\n {\n \tint n = Integer.parseInt(br.readLine());\n \tif (n == 0)\n \t\tbreak;\n \tString[] tensu = br.readLine().split(\" \");\n \t\n \tdouble sum = 0;\n \tdouble asum = 0;\n \tdouble average = 0;\n \tdouble hensa = 0;\n \tfor (int i = 0; i < n; i++)\n \t{\n \t\tsum += Double.parseDouble(tensu[i]);\n \t}\n \taverage = sum / n;\n \tfor (int i = 0; i < n; i++)\n \t{\n \t\tasum += Math.pow(Double.parseDouble(tensu[i]) - average, 2);\n \t}\n \t\n \thensa = Math.sqrt(asum / n);\n \tSystem.out.println(df.format(hensa));\n }\n \t\n\t}", "main", "{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n \n \n DecimalFormat df = new DecimalFormat(\"0.00000\");\n while (true)\n {\n \tint n = Integer.parseInt(br.readLine());\n \tif (n == 0)\n \t\tbreak;\n \tString[] tensu = br.readLine().split(\" \");\n \t\n \tdouble sum = 0;\n \tdouble asum = 0;\n \tdouble average = 0;\n \tdouble hensa = 0;\n \tfor (int i = 0; i < n; i++)\n \t{\n \t\tsum += Double.parseDouble(tensu[i]);\n \t}\n \taverage = sum / n;\n \tfor (int i = 0; i < n; i++)\n \t{\n \t\tasum += Math.pow(Double.parseDouble(tensu[i]) - average, 2);\n \t}\n \t\n \thensa = Math.sqrt(asum / n);\n \tSystem.out.println(df.format(hensa));\n }\n \t\n\t}", "InputStreamReader isr = new InputStreamReader(System.in);", "isr", "new InputStreamReader(System.in)", "BufferedReader br = new BufferedReader(isr);", "br", "new BufferedReader(isr)", "DecimalFormat df = new DecimalFormat(\"0.00000\");", "df", "new DecimalFormat(\"0.00000\")", "while (true)\n {\n \tint n = Integer.parseInt(br.readLine());\n \tif (n == 0)\n \t\tbreak;\n \tString[] tensu = br.readLine().split(\" \");\n \t\n \tdouble sum = 0;\n \tdouble asum = 0;\n \tdouble average = 0;\n \tdouble hensa = 0;\n \tfor (int i = 0; i < n; i++)\n \t{\n \t\tsum += Double.parseDouble(tensu[i]);\n \t}\n \taverage = sum / n;\n \tfor (int i = 0; i < n; i++)\n \t{\n \t\tasum += Math.pow(Double.parseDouble(tensu[i]) - average, 2);\n \t}\n \t\n \thensa = Math.sqrt(asum / n);\n \tSystem.out.println(df.format(hensa));\n }", "true", "{\n \tint n = Integer.parseInt(br.readLine());\n \tif (n == 0)\n \t\tbreak;\n \tString[] tensu = br.readLine().split(\" \");\n \t\n \tdouble sum = 0;\n \tdouble asum = 0;\n \tdouble average = 0;\n \tdouble hensa = 0;\n \tfor (int i = 0; i < n; i++)\n \t{\n \t\tsum += Double.parseDouble(tensu[i]);\n \t}\n \taverage = sum / n;\n \tfor (int i = 0; i < n; i++)\n \t{\n \t\tasum += Math.pow(Double.parseDouble(tensu[i]) - average, 2);\n \t}\n \t\n \thensa = Math.sqrt(asum / n);\n \tSystem.out.println(df.format(hensa));\n }", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "if (n == 0)\n \t\tbreak;", "n == 0", "n", "0", "break;", "String[] tensu = br.readLine().split(\" \");", "tensu", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "double sum = 0;", "sum", "0", "double asum = 0;", "asum", "0", "double average = 0;", "average", "0", "double hensa = 0;", "hensa", "0", "for (int i = 0; i < n; i++)\n \t{\n \t\tsum += Double.parseDouble(tensu[i]);\n \t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n \t\tsum += Double.parseDouble(tensu[i]);\n \t}", "{\n \t\tsum += Double.parseDouble(tensu[i]);\n \t}", "sum += Double.parseDouble(tensu[i])", "sum", "Double.parseDouble(tensu[i])", "Double.parseDouble", "Double", "tensu[i]", "tensu", "i", "average = sum / n", "average", "sum / n", "sum", "n", "for (int i = 0; i < n; i++)\n \t{\n \t\tasum += Math.pow(Double.parseDouble(tensu[i]) - average, 2);\n \t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n \t\tasum += Math.pow(Double.parseDouble(tensu[i]) - average, 2);\n \t}", "{\n \t\tasum += Math.pow(Double.parseDouble(tensu[i]) - average, 2);\n \t}", "asum += Math.pow(Double.parseDouble(tensu[i]) - average, 2)", "asum", "Math.pow(Double.parseDouble(tensu[i]) - average, 2)", "Math.pow", "Math", "Double.parseDouble(tensu[i]) - average", "Double.parseDouble(tensu[i])", "Double.parseDouble", "Double", "tensu[i]", "tensu", "i", "average", "2", "hensa = Math.sqrt(asum / n)", "hensa", "Math.sqrt(asum / n)", "Math.sqrt", "Math", "asum / n", "asum", "n", "System.out.println(df.format(hensa))", "System.out.println", "System.out", "System", "System.out", "df.format(hensa)", "df.format", "df", "hensa", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args)throws Exception{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n \n \n DecimalFormat df = new DecimalFormat(\"0.00000\");\n while (true)\n {\n \tint n = Integer.parseInt(br.readLine());\n \tif (n == 0)\n \t\tbreak;\n \tString[] tensu = br.readLine().split(\" \");\n \t\n \tdouble sum = 0;\n \tdouble asum = 0;\n \tdouble average = 0;\n \tdouble hensa = 0;\n \tfor (int i = 0; i < n; i++)\n \t{\n \t\tsum += Double.parseDouble(tensu[i]);\n \t}\n \taverage = sum / n;\n \tfor (int i = 0; i < n; i++)\n \t{\n \t\tasum += Math.pow(Double.parseDouble(tensu[i]) - average, 2);\n \t}\n \t\n \thensa = Math.sqrt(asum / n);\n \tSystem.out.println(df.format(hensa));\n }\n \t\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args)throws Exception{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n \n \n DecimalFormat df = new DecimalFormat(\"0.00000\");\n while (true)\n {\n \tint n = Integer.parseInt(br.readLine());\n \tif (n == 0)\n \t\tbreak;\n \tString[] tensu = br.readLine().split(\" \");\n \t\n \tdouble sum = 0;\n \tdouble asum = 0;\n \tdouble average = 0;\n \tdouble hensa = 0;\n \tfor (int i = 0; i < n; i++)\n \t{\n \t\tsum += Double.parseDouble(tensu[i]);\n \t}\n \taverage = sum / n;\n \tfor (int i = 0; i < n; i++)\n \t{\n \t\tasum += Math.pow(Double.parseDouble(tensu[i]) - average, 2);\n \t}\n \t\n \thensa = Math.sqrt(asum / n);\n \tSystem.out.println(df.format(hensa));\n }\n \t\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.text.DecimalFormat; public class Main { public static void main(String[] args)throws Exception{ InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); DecimalFormat df = new DecimalFormat("0.00000"); while (true) { int n = Integer.parseInt(br.readLine()); if (n == 0) break; String[] tensu = br.readLine().split(" "); double sum = 0; double asum = 0; double average = 0; double hensa = 0; for (int i = 0; i < n; i++) { sum += Double.parseDouble(tensu[i]); } average = sum / n; for (int i = 0; i < n; i++) { asum += Math.pow(Double.parseDouble(tensu[i]) - average, 2); } hensa = Math.sqrt(asum / n); System.out.println(df.format(hensa)); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 3, 41, 13, 20, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 2, 13, 18, 13, 13, 41, 13, 17, 41, 13, 17, 0, 13, 2, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 17, 4, 18, 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 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 14, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 44, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 14, 59 ], [ 59, 60 ], [ 59, 61 ], [ 14, 62 ], [ 62, 63 ], [ 62, 64 ], [ 14, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 14, 70 ], [ 70, 71 ], [ 70, 72 ], [ 14, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 78, 79 ], [ 78, 80 ], [ 73, 81 ], [ 81, 82 ], [ 82, 83 ], [ 73, 84 ], [ 85, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 90, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 14, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 103, 105 ], [ 14, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 106, 112 ], [ 112, 113 ], [ 113, 114 ], [ 112, 115 ], [ 6, 116 ], [ 116, 117 ], [ 0, 118 ], [ 118, 119 ], [ 118, 120 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[]arg){\n\n Scanner sc = new Scanner(System.in);\n\n while(true){\n int n = sc.nextInt();\n if(n == 0) break;\n int[] s = new int[n];\n\n int sum = 0;\n\n for(int i =0; i < n; i++){\n s[i] = sc.nextInt();\n sum = sum + s[i];\n }\n double ave = 0, var = 0;\n\n ave = sum / (double)n;\n\n double sum2 = 0;\n\n for(int k = 0; k < n; k++){\n sum2 = sum2 + (s[k] - ave) * (s[k] - ave);\n }\n\n var = sum2 / (double)n;\n\n System.out.printf(\"%.8f\\n\",Math.sqrt(var));\n\n }\n\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[]arg){\n\n Scanner sc = new Scanner(System.in);\n\n while(true){\n int n = sc.nextInt();\n if(n == 0) break;\n int[] s = new int[n];\n\n int sum = 0;\n\n for(int i =0; i < n; i++){\n s[i] = sc.nextInt();\n sum = sum + s[i];\n }\n double ave = 0, var = 0;\n\n ave = sum / (double)n;\n\n double sum2 = 0;\n\n for(int k = 0; k < n; k++){\n sum2 = sum2 + (s[k] - ave) * (s[k] - ave);\n }\n\n var = sum2 / (double)n;\n\n System.out.printf(\"%.8f\\n\",Math.sqrt(var));\n\n }\n\n }\n}", "Main", "public static void main(String[]arg){\n\n Scanner sc = new Scanner(System.in);\n\n while(true){\n int n = sc.nextInt();\n if(n == 0) break;\n int[] s = new int[n];\n\n int sum = 0;\n\n for(int i =0; i < n; i++){\n s[i] = sc.nextInt();\n sum = sum + s[i];\n }\n double ave = 0, var = 0;\n\n ave = sum / (double)n;\n\n double sum2 = 0;\n\n for(int k = 0; k < n; k++){\n sum2 = sum2 + (s[k] - ave) * (s[k] - ave);\n }\n\n var = sum2 / (double)n;\n\n System.out.printf(\"%.8f\\n\",Math.sqrt(var));\n\n }\n\n }", "main", "{\n\n Scanner sc = new Scanner(System.in);\n\n while(true){\n int n = sc.nextInt();\n if(n == 0) break;\n int[] s = new int[n];\n\n int sum = 0;\n\n for(int i =0; i < n; i++){\n s[i] = sc.nextInt();\n sum = sum + s[i];\n }\n double ave = 0, var = 0;\n\n ave = sum / (double)n;\n\n double sum2 = 0;\n\n for(int k = 0; k < n; k++){\n sum2 = sum2 + (s[k] - ave) * (s[k] - ave);\n }\n\n var = sum2 / (double)n;\n\n System.out.printf(\"%.8f\\n\",Math.sqrt(var));\n\n }\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n int n = sc.nextInt();\n if(n == 0) break;\n int[] s = new int[n];\n\n int sum = 0;\n\n for(int i =0; i < n; i++){\n s[i] = sc.nextInt();\n sum = sum + s[i];\n }\n double ave = 0, var = 0;\n\n ave = sum / (double)n;\n\n double sum2 = 0;\n\n for(int k = 0; k < n; k++){\n sum2 = sum2 + (s[k] - ave) * (s[k] - ave);\n }\n\n var = sum2 / (double)n;\n\n System.out.printf(\"%.8f\\n\",Math.sqrt(var));\n\n }", "true", "{\n int n = sc.nextInt();\n if(n == 0) break;\n int[] s = new int[n];\n\n int sum = 0;\n\n for(int i =0; i < n; i++){\n s[i] = sc.nextInt();\n sum = sum + s[i];\n }\n double ave = 0, var = 0;\n\n ave = sum / (double)n;\n\n double sum2 = 0;\n\n for(int k = 0; k < n; k++){\n sum2 = sum2 + (s[k] - ave) * (s[k] - ave);\n }\n\n var = sum2 / (double)n;\n\n System.out.printf(\"%.8f\\n\",Math.sqrt(var));\n\n }", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n == 0) break;", "n == 0", "n", "0", "break;", "int[] s = new int[n];", "s", "new int[n]", "n", "int sum = 0;", "sum", "0", "for(int i =0; i < n; i++){\n s[i] = sc.nextInt();\n sum = sum + s[i];\n }", "int i =0;", "int i =0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n s[i] = sc.nextInt();\n sum = sum + s[i];\n }", "{\n s[i] = sc.nextInt();\n sum = sum + s[i];\n }", "s[i] = sc.nextInt()", "s[i]", "s", "i", "sc.nextInt()", "sc.nextInt", "sc", "sum = sum + s[i]", "sum", "sum + s[i]", "sum", "s[i]", "s", "i", "double ave = 0", "ave", "0", "var = 0;", "var", "0", "ave = sum / (double)n", "ave", "sum / (double)n", "sum", "(double)n", "double sum2 = 0;", "sum2", "0", "for(int k = 0; k < n; k++){\n sum2 = sum2 + (s[k] - ave) * (s[k] - ave);\n }", "int k = 0;", "int k = 0;", "k", "0", "k < n", "k", "n", "k++", "k++", "k", "{\n sum2 = sum2 + (s[k] - ave) * (s[k] - ave);\n }", "{\n sum2 = sum2 + (s[k] - ave) * (s[k] - ave);\n }", "sum2 = sum2 + (s[k] - ave) * (s[k] - ave)", "sum2", "sum2 + (s[k] - ave) * (s[k] - ave)", "sum2", "(s[k] - ave) * (s[k] - ave)", "(s[k] - ave)", "s[k]", "s", "k", "ave", "(s[k] - ave)", "s[k]", "s", "k", "ave", "var = sum2 / (double)n", "var", "sum2 / (double)n", "sum2", "(double)n", "System.out.printf(\"%.8f\\n\",Math.sqrt(var))", "System.out.printf", "System.out", "System", "System.out", "\"%.8f\\n\"", "Math.sqrt(var)", "Math.sqrt", "Math", "var", "String[]arg", "arg", "public class Main{\n public static void main(String[]arg){\n\n Scanner sc = new Scanner(System.in);\n\n while(true){\n int n = sc.nextInt();\n if(n == 0) break;\n int[] s = new int[n];\n\n int sum = 0;\n\n for(int i =0; i < n; i++){\n s[i] = sc.nextInt();\n sum = sum + s[i];\n }\n double ave = 0, var = 0;\n\n ave = sum / (double)n;\n\n double sum2 = 0;\n\n for(int k = 0; k < n; k++){\n sum2 = sum2 + (s[k] - ave) * (s[k] - ave);\n }\n\n var = sum2 / (double)n;\n\n System.out.printf(\"%.8f\\n\",Math.sqrt(var));\n\n }\n\n }\n}", "public class Main{\n public static void main(String[]arg){\n\n Scanner sc = new Scanner(System.in);\n\n while(true){\n int n = sc.nextInt();\n if(n == 0) break;\n int[] s = new int[n];\n\n int sum = 0;\n\n for(int i =0; i < n; i++){\n s[i] = sc.nextInt();\n sum = sum + s[i];\n }\n double ave = 0, var = 0;\n\n ave = sum / (double)n;\n\n double sum2 = 0;\n\n for(int k = 0; k < n; k++){\n sum2 = sum2 + (s[k] - ave) * (s[k] - ave);\n }\n\n var = sum2 / (double)n;\n\n System.out.printf(\"%.8f\\n\",Math.sqrt(var));\n\n }\n\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[]arg){ Scanner sc = new Scanner(System.in); while(true){ int n = sc.nextInt(); if(n == 0) break; int[] s = new int[n]; int sum = 0; for(int i =0; i < n; i++){ s[i] = sc.nextInt(); sum = sum + s[i]; } double ave = 0, var = 0; ave = sum / (double)n; double sum2 = 0; for(int k = 0; k < n; k++){ sum2 = sum2 + (s[k] - ave) * (s[k] - ave); } var = sum2 / (double)n; System.out.printf("%.8f\n",Math.sqrt(var)); } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 12, 13, 30, 0, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 14, 2, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 0, 13, 2, 13, 13, 0, 13, 13, 41, 13, 2, 13, 13, 41, 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 ], [ 85, 5 ], [ 85, 6 ], [ 6, 7 ], [ 85, 8 ], [ 8, 9 ], [ 8, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 16, 25 ], [ 25, 26 ], [ 25, 27 ], [ 16, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 16, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 33, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 45, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 45, 56 ], [ 56, 57 ], [ 56, 58 ], [ 16, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 16, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 73, 75 ], [ 16, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 8, 82 ], [ 82, 83 ], [ 0, 84 ], [ 84, 85 ], [ 84, 86 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static Scanner sc;\n\tpublic static void main(String[] args){\n\t\tsc=new Scanner(System.in);\n\t\twhile(true){\n\t\t\tDouble n=sc.nextDouble(),hou=(double) 0,sum=(double) 0;\n\t\t\tif(n==0)break;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tDouble s=sc.nextDouble();\n\t\t\t\thou+=s*s;\n\t\t\t\tsum+=s;\n\t\t\t}\n\t\t\tDouble kin=sum/n;\n\t\t\tDouble a=Math.sqrt((hou/n)-kin*kin);\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static Scanner sc;\n\tpublic static void main(String[] args){\n\t\tsc=new Scanner(System.in);\n\t\twhile(true){\n\t\t\tDouble n=sc.nextDouble(),hou=(double) 0,sum=(double) 0;\n\t\t\tif(n==0)break;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tDouble s=sc.nextDouble();\n\t\t\t\thou+=s*s;\n\t\t\t\tsum+=s;\n\t\t\t}\n\t\t\tDouble kin=sum/n;\n\t\t\tDouble a=Math.sqrt((hou/n)-kin*kin);\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}\n\n}", "Main", "public static Scanner sc;", "sc", "public static void main(String[] args){\n\t\tsc=new Scanner(System.in);\n\t\twhile(true){\n\t\t\tDouble n=sc.nextDouble(),hou=(double) 0,sum=(double) 0;\n\t\t\tif(n==0)break;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tDouble s=sc.nextDouble();\n\t\t\t\thou+=s*s;\n\t\t\t\tsum+=s;\n\t\t\t}\n\t\t\tDouble kin=sum/n;\n\t\t\tDouble a=Math.sqrt((hou/n)-kin*kin);\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}", "main", "{\n\t\tsc=new Scanner(System.in);\n\t\twhile(true){\n\t\t\tDouble n=sc.nextDouble(),hou=(double) 0,sum=(double) 0;\n\t\t\tif(n==0)break;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tDouble s=sc.nextDouble();\n\t\t\t\thou+=s*s;\n\t\t\t\tsum+=s;\n\t\t\t}\n\t\t\tDouble kin=sum/n;\n\t\t\tDouble a=Math.sqrt((hou/n)-kin*kin);\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}", "sc=new Scanner(System.in)", "sc", "new Scanner(System.in)", "while(true){\n\t\t\tDouble n=sc.nextDouble(),hou=(double) 0,sum=(double) 0;\n\t\t\tif(n==0)break;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tDouble s=sc.nextDouble();\n\t\t\t\thou+=s*s;\n\t\t\t\tsum+=s;\n\t\t\t}\n\t\t\tDouble kin=sum/n;\n\t\t\tDouble a=Math.sqrt((hou/n)-kin*kin);\n\t\t\tSystem.out.println(a);\n\t\t}", "true", "{\n\t\t\tDouble n=sc.nextDouble(),hou=(double) 0,sum=(double) 0;\n\t\t\tif(n==0)break;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tDouble s=sc.nextDouble();\n\t\t\t\thou+=s*s;\n\t\t\t\tsum+=s;\n\t\t\t}\n\t\t\tDouble kin=sum/n;\n\t\t\tDouble a=Math.sqrt((hou/n)-kin*kin);\n\t\t\tSystem.out.println(a);\n\t\t}", "Double n=sc.nextDouble()", "n", "sc.nextDouble()", "sc.nextDouble", "sc", "hou=(double) 0", "hou", "(double) 0", "sum=(double) 0;", "sum", "(double) 0", "if(n==0)break;", "n==0", "n", "0", "break;", "for(int i=0;i<n;i++){\n\t\t\t\tDouble s=sc.nextDouble();\n\t\t\t\thou+=s*s;\n\t\t\t\tsum+=s;\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tDouble s=sc.nextDouble();\n\t\t\t\thou+=s*s;\n\t\t\t\tsum+=s;\n\t\t\t}", "{\n\t\t\t\tDouble s=sc.nextDouble();\n\t\t\t\thou+=s*s;\n\t\t\t\tsum+=s;\n\t\t\t}", "Double s=sc.nextDouble();", "s", "sc.nextDouble()", "sc.nextDouble", "sc", "hou+=s*s", "hou", "s*s", "s", "s", "sum+=s", "sum", "s", "Double kin=sum/n;", "kin", "sum/n", "sum", "n", "Double a=Math.sqrt((hou/n)-kin*kin);", "a", "Math.sqrt((hou/n)-kin*kin)", "Math.sqrt", "Math", "(hou/n)-kin*kin", "(hou/n)", "hou", "n", "kin*kin", "kin", "kin", "System.out.println(a)", "System.out.println", "System.out", "System", "System.out", "a", "String[] args", "args", "public class Main {\n\tpublic static Scanner sc;\n\tpublic static void main(String[] args){\n\t\tsc=new Scanner(System.in);\n\t\twhile(true){\n\t\t\tDouble n=sc.nextDouble(),hou=(double) 0,sum=(double) 0;\n\t\t\tif(n==0)break;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tDouble s=sc.nextDouble();\n\t\t\t\thou+=s*s;\n\t\t\t\tsum+=s;\n\t\t\t}\n\t\t\tDouble kin=sum/n;\n\t\t\tDouble a=Math.sqrt((hou/n)-kin*kin);\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}\n\n}", "public class Main {\n\tpublic static Scanner sc;\n\tpublic static void main(String[] args){\n\t\tsc=new Scanner(System.in);\n\t\twhile(true){\n\t\t\tDouble n=sc.nextDouble(),hou=(double) 0,sum=(double) 0;\n\t\t\tif(n==0)break;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tDouble s=sc.nextDouble();\n\t\t\t\thou+=s*s;\n\t\t\t\tsum+=s;\n\t\t\t}\n\t\t\tDouble kin=sum/n;\n\t\t\tDouble a=Math.sqrt((hou/n)-kin*kin);\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static Scanner sc; public static void main(String[] args){ sc=new Scanner(System.in); while(true){ Double n=sc.nextDouble(),hou=(double) 0,sum=(double) 0; if(n==0)break; for(int i=0;i<n;i++){ Double s=sc.nextDouble(); hou+=s*s; sum+=s; } Double kin=sum/n; Double a=Math.sqrt((hou/n)-kin*kin); System.out.println(a); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 4, 18, 13, 41, 13, 20, 13, 14, 2, 13, 17, 30, 3, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 0, 13, 2, 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 ], [ 119, 5 ], [ 119, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 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 ], [ 24, 26 ], [ 14, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 14, 32 ], [ 32, 33 ], [ 32, 34 ], [ 14, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 40, 41 ], [ 36, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 43, 51 ], [ 51, 52 ], [ 52, 53 ], [ 43, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 61, 62 ], [ 55, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 42, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 42, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 78, 79 ], [ 78, 80 ], [ 73, 81 ], [ 81, 82 ], [ 82, 83 ], [ 73, 84 ], [ 85, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 88, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 42, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 101, 103 ], [ 42, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 8, 113 ], [ 113, 114 ], [ 114, 115 ], [ 6, 116 ], [ 116, 117 ], [ 0, 118 ], [ 118, 119 ], [ 118, 120 ] ]
[ "import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n while(true){\n int sum=0;\n double m=0.0,a2=0.0,a1=0.0;\n int n = sc.nextInt();\n int s[] = new int[n];\n\n if(n==0){\n break;\n }else{\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n\n m = (double)sum/n;\n \n for(int i=0;i<n;i++){\n a1 += (double)(s[i]-m)*(s[i]-m);\n }\n a2 = a1/n;\n\n System.out.println(Math.sqrt(a2));\n }\n }\n\n sc.close();\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 while(true){\n int sum=0;\n double m=0.0,a2=0.0,a1=0.0;\n int n = sc.nextInt();\n int s[] = new int[n];\n\n if(n==0){\n break;\n }else{\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n\n m = (double)sum/n;\n \n for(int i=0;i<n;i++){\n a1 += (double)(s[i]-m)*(s[i]-m);\n }\n a2 = a1/n;\n\n System.out.println(Math.sqrt(a2));\n }\n }\n\n sc.close();\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n while(true){\n int sum=0;\n double m=0.0,a2=0.0,a1=0.0;\n int n = sc.nextInt();\n int s[] = new int[n];\n\n if(n==0){\n break;\n }else{\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n\n m = (double)sum/n;\n \n for(int i=0;i<n;i++){\n a1 += (double)(s[i]-m)*(s[i]-m);\n }\n a2 = a1/n;\n\n System.out.println(Math.sqrt(a2));\n }\n }\n\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n \n while(true){\n int sum=0;\n double m=0.0,a2=0.0,a1=0.0;\n int n = sc.nextInt();\n int s[] = new int[n];\n\n if(n==0){\n break;\n }else{\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n\n m = (double)sum/n;\n \n for(int i=0;i<n;i++){\n a1 += (double)(s[i]-m)*(s[i]-m);\n }\n a2 = a1/n;\n\n System.out.println(Math.sqrt(a2));\n }\n }\n\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n int sum=0;\n double m=0.0,a2=0.0,a1=0.0;\n int n = sc.nextInt();\n int s[] = new int[n];\n\n if(n==0){\n break;\n }else{\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n\n m = (double)sum/n;\n \n for(int i=0;i<n;i++){\n a1 += (double)(s[i]-m)*(s[i]-m);\n }\n a2 = a1/n;\n\n System.out.println(Math.sqrt(a2));\n }\n }", "true", "{\n int sum=0;\n double m=0.0,a2=0.0,a1=0.0;\n int n = sc.nextInt();\n int s[] = new int[n];\n\n if(n==0){\n break;\n }else{\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n\n m = (double)sum/n;\n \n for(int i=0;i<n;i++){\n a1 += (double)(s[i]-m)*(s[i]-m);\n }\n a2 = a1/n;\n\n System.out.println(Math.sqrt(a2));\n }\n }", "int sum=0;", "sum", "0", "double m=0.0", "m", "0.0", "a2=0.0", "a2", "0.0", "a1=0.0;", "a1", "0.0", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int s[] = new int[n];", "s", "new int[n]", "n", "if(n==0){\n break;\n }else{\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n\n m = (double)sum/n;\n \n for(int i=0;i<n;i++){\n a1 += (double)(s[i]-m)*(s[i]-m);\n }\n a2 = a1/n;\n\n System.out.println(Math.sqrt(a2));\n }", "n==0", "n", "0", "{\n break;\n }", "break;", "{\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n\n m = (double)sum/n;\n \n for(int i=0;i<n;i++){\n a1 += (double)(s[i]-m)*(s[i]-m);\n }\n a2 = a1/n;\n\n System.out.println(Math.sqrt(a2));\n }", "for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n s[i] = sc.nextInt();\n sum += s[i];\n }", "{\n s[i] = sc.nextInt();\n sum += s[i];\n }", "s[i] = sc.nextInt()", "s[i]", "s", "i", "sc.nextInt()", "sc.nextInt", "sc", "sum += s[i]", "sum", "s[i]", "s", "i", "m = (double)sum/n", "m", "(double)sum/n", "(double)sum", "n", "for(int i=0;i<n;i++){\n a1 += (double)(s[i]-m)*(s[i]-m);\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n a1 += (double)(s[i]-m)*(s[i]-m);\n }", "{\n a1 += (double)(s[i]-m)*(s[i]-m);\n }", "a1 += (double)(s[i]-m)*(s[i]-m)", "a1", "(double)(s[i]-m)*(s[i]-m)", "(double)(s[i]-m)", "s[i]", "s", "i", "m", "(s[i]-m)", "s[i]", "s", "i", "m", "a2 = a1/n", "a2", "a1/n", "a1", "n", "System.out.println(Math.sqrt(a2))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(a2)", "Math.sqrt", "Math", "a2", "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 \n while(true){\n int sum=0;\n double m=0.0,a2=0.0,a1=0.0;\n int n = sc.nextInt();\n int s[] = new int[n];\n\n if(n==0){\n break;\n }else{\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n\n m = (double)sum/n;\n \n for(int i=0;i<n;i++){\n a1 += (double)(s[i]-m)*(s[i]-m);\n }\n a2 = a1/n;\n\n System.out.println(Math.sqrt(a2));\n }\n }\n\n sc.close();\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n while(true){\n int sum=0;\n double m=0.0,a2=0.0,a1=0.0;\n int n = sc.nextInt();\n int s[] = new int[n];\n\n if(n==0){\n break;\n }else{\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n\n m = (double)sum/n;\n \n for(int i=0;i<n;i++){\n a1 += (double)(s[i]-m)*(s[i]-m);\n }\n a2 = a1/n;\n\n System.out.println(Math.sqrt(a2));\n }\n }\n\n sc.close();\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(true){ int sum=0; double m=0.0,a2=0.0,a1=0.0; int n = sc.nextInt(); int s[] = new int[n]; if(n==0){ break; }else{ for(int i=0;i<n;i++){ s[i] = sc.nextInt(); sum += s[i]; } m = (double)sum/n; for(int i=0;i<n;i++){ a1 += (double)(s[i]-m)*(s[i]-m); } a2 = a1/n; System.out.println(Math.sqrt(a2)); } } sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 20, 17, 42, 17, 30, 0, 13, 4, 18, 13, 14, 2, 13, 17, 3, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 0, 18, 13, 13, 4, 18, 13, 2, 13, 13, 0, 13, 17, 0, 13, 17, 40, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 143, 5 ], [ 143, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 30, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 30, 41 ], [ 41, 42 ], [ 41, 43 ], [ 30, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 45, 53 ], [ 53, 54 ], [ 54, 55 ], [ 45, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 63, 64 ], [ 57, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 30, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 30, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 80, 81 ], [ 80, 82 ], [ 75, 83 ], [ 83, 84 ], [ 84, 85 ], [ 75, 86 ], [ 87, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 90, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 30, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 108, 109 ], [ 108, 110 ], [ 30, 111 ], [ 111, 112 ], [ 111, 113 ], [ 30, 114 ], [ 114, 115 ], [ 114, 116 ], [ 30, 117 ], [ 117, 118 ], [ 8, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 124, 125 ], [ 124, 126 ], [ 119, 127 ], [ 127, 128 ], [ 128, 129 ], [ 119, 130 ], [ 131, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 137, 138 ], [ 137, 139 ], [ 6, 140 ], [ 140, 141 ], [ 0, 142 ], [ 142, 143 ], [ 142, 144 ] ]
[ "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 n = 0;\n\t\tdouble m = 0;\n\t\tdouble temp = 0;\n\t\tint count = 0;\n\t\tdouble ans[] = new double[1000];\n\t\twhile (true) {\n\t\t\tn = sc.nextInt();\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\tint s[] = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm = m / n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ttemp += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\tans[count] = Math.sqrt(temp / n);\n\t\t\tm = 0;\n\t\t\ttemp = 0;\n\t\t\tcount++;\n\t\t}\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tSystem.out.println(ans[i]);\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\tint n = 0;\n\t\tdouble m = 0;\n\t\tdouble temp = 0;\n\t\tint count = 0;\n\t\tdouble ans[] = new double[1000];\n\t\twhile (true) {\n\t\t\tn = sc.nextInt();\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\tint s[] = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm = m / n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ttemp += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\tans[count] = Math.sqrt(temp / n);\n\t\t\tm = 0;\n\t\t\ttemp = 0;\n\t\t\tcount++;\n\t\t}\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tSystem.out.println(ans[i]);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = 0;\n\t\tdouble m = 0;\n\t\tdouble temp = 0;\n\t\tint count = 0;\n\t\tdouble ans[] = new double[1000];\n\t\twhile (true) {\n\t\t\tn = sc.nextInt();\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\tint s[] = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm = m / n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ttemp += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\tans[count] = Math.sqrt(temp / n);\n\t\t\tm = 0;\n\t\t\ttemp = 0;\n\t\t\tcount++;\n\t\t}\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tSystem.out.println(ans[i]);\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = 0;\n\t\tdouble m = 0;\n\t\tdouble temp = 0;\n\t\tint count = 0;\n\t\tdouble ans[] = new double[1000];\n\t\twhile (true) {\n\t\t\tn = sc.nextInt();\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\tint s[] = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm = m / n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ttemp += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\tans[count] = Math.sqrt(temp / n);\n\t\t\tm = 0;\n\t\t\ttemp = 0;\n\t\t\tcount++;\n\t\t}\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tSystem.out.println(ans[i]);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = 0;", "n", "0", "double m = 0;", "m", "0", "double temp = 0;", "temp", "0", "int count = 0;", "count", "0", "double ans[] = new double[1000];", "ans", "new double[1000]", "1000", "while (true) {\n\t\t\tn = sc.nextInt();\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\tint s[] = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm = m / n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ttemp += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\tans[count] = Math.sqrt(temp / n);\n\t\t\tm = 0;\n\t\t\ttemp = 0;\n\t\t\tcount++;\n\t\t}", "true", "{\n\t\t\tn = sc.nextInt();\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\tint s[] = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm = m / n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ttemp += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\tans[count] = Math.sqrt(temp / n);\n\t\t\tm = 0;\n\t\t\ttemp = 0;\n\t\t\tcount++;\n\t\t}", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "if (n == 0)\n\t\t\t\tbreak;", "n == 0", "n", "0", "break;", "int s[] = new int[n];", "s", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}", "{\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}", "s[i] = sc.nextInt()", "s[i]", "s", "i", "sc.nextInt()", "sc.nextInt", "sc", "m += s[i]", "m", "s[i]", "s", "i", "m = m / n", "m", "m / n", "m", "n", "for (int i = 0; i < n; i++) {\n\t\t\t\ttemp += (s[i] - m) * (s[i] - m);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\ttemp += (s[i] - m) * (s[i] - m);\n\t\t\t}", "{\n\t\t\t\ttemp += (s[i] - m) * (s[i] - m);\n\t\t\t}", "temp += (s[i] - m) * (s[i] - m)", "temp", "(s[i] - m) * (s[i] - m)", "(s[i] - m)", "s[i]", "s", "i", "m", "(s[i] - m)", "s[i]", "s", "i", "m", "ans[count] = Math.sqrt(temp / n)", "ans[count]", "ans", "count", "Math.sqrt(temp / n)", "Math.sqrt", "Math", "temp / n", "temp", "n", "m = 0", "m", "0", "temp = 0", "temp", "0", "count++", "count", "for (int i = 0; i < count; i++) {\n\t\t\tSystem.out.println(ans[i]);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < count", "i", "count", "i++", "i++", "i", "{\n\t\t\tSystem.out.println(ans[i]);\n\t\t}", "{\n\t\t\tSystem.out.println(ans[i]);\n\t\t}", "System.out.println(ans[i])", "System.out.println", "System.out", "System", "System.out", "ans[i]", "ans", "i", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = 0;\n\t\tdouble m = 0;\n\t\tdouble temp = 0;\n\t\tint count = 0;\n\t\tdouble ans[] = new double[1000];\n\t\twhile (true) {\n\t\t\tn = sc.nextInt();\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\tint s[] = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm = m / n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ttemp += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\tans[count] = Math.sqrt(temp / n);\n\t\t\tm = 0;\n\t\t\ttemp = 0;\n\t\t\tcount++;\n\t\t}\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tSystem.out.println(ans[i]);\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 n = 0;\n\t\tdouble m = 0;\n\t\tdouble temp = 0;\n\t\tint count = 0;\n\t\tdouble ans[] = new double[1000];\n\t\twhile (true) {\n\t\t\tn = sc.nextInt();\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\tint s[] = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm = m / n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ttemp += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\tans[count] = Math.sqrt(temp / n);\n\t\t\tm = 0;\n\t\t\ttemp = 0;\n\t\t\tcount++;\n\t\t}\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tSystem.out.println(ans[i]);\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 n = 0; double m = 0; double temp = 0; int count = 0; double ans[] = new double[1000]; while (true) { n = sc.nextInt(); if (n == 0) break; int s[] = new int[n]; for (int i = 0; i < n; i++) { s[i] = sc.nextInt(); m += s[i]; } m = m / n; for (int i = 0; i < n; i++) { temp += (s[i] - m) * (s[i] - m); } ans[count] = Math.sqrt(temp / n); m = 0; temp = 0; count++; } for (int i = 0; i < count; i++) { System.out.println(ans[i]); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 0, 13, 20, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 41, 13, 2, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 4, 18, 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 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 14, 32 ], [ 32, 33 ], [ 32, 34 ], [ 14, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 53, 54 ], [ 47, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 14, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 14, 65 ], [ 65, 66 ], [ 65, 67 ], [ 14, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 73, 74 ], [ 73, 75 ], [ 68, 76 ], [ 76, 77 ], [ 77, 78 ], [ 68, 79 ], [ 80, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 83, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 14, 94 ], [ 94, 95 ], [ 94, 96 ], [ 14, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 6, 106 ], [ 106, 107 ], [ 0, 108 ], [ 108, 109 ], [ 108, 110 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n int n = sc.nextInt();\n if(n == 0){\n break;\n }\n int[] s;\n s = new int[n];\n int Sum = 0;\n for(int i = 0; i < n; i++){\n s[i] = sc.nextInt();\n Sum += s[i];\n } \n double Average = (double)Sum/n;\n double a = 0.0;\n for(int i = 0; i < n; i++){\n a += (s[i] -Average)*(s[i] -Average);\n }\n a /= n;\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 while(true){\n int n = sc.nextInt();\n if(n == 0){\n break;\n }\n int[] s;\n s = new int[n];\n int Sum = 0;\n for(int i = 0; i < n; i++){\n s[i] = sc.nextInt();\n Sum += s[i];\n } \n double Average = (double)Sum/n;\n double a = 0.0;\n for(int i = 0; i < n; i++){\n a += (s[i] -Average)*(s[i] -Average);\n }\n a /= n;\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 while(true){\n int n = sc.nextInt();\n if(n == 0){\n break;\n }\n int[] s;\n s = new int[n];\n int Sum = 0;\n for(int i = 0; i < n; i++){\n s[i] = sc.nextInt();\n Sum += s[i];\n } \n double Average = (double)Sum/n;\n double a = 0.0;\n for(int i = 0; i < n; i++){\n a += (s[i] -Average)*(s[i] -Average);\n }\n a /= n;\n System.out.println(Math.sqrt(a));\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n while(true){\n int n = sc.nextInt();\n if(n == 0){\n break;\n }\n int[] s;\n s = new int[n];\n int Sum = 0;\n for(int i = 0; i < n; i++){\n s[i] = sc.nextInt();\n Sum += s[i];\n } \n double Average = (double)Sum/n;\n double a = 0.0;\n for(int i = 0; i < n; i++){\n a += (s[i] -Average)*(s[i] -Average);\n }\n a /= n;\n System.out.println(Math.sqrt(a));\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n int n = sc.nextInt();\n if(n == 0){\n break;\n }\n int[] s;\n s = new int[n];\n int Sum = 0;\n for(int i = 0; i < n; i++){\n s[i] = sc.nextInt();\n Sum += s[i];\n } \n double Average = (double)Sum/n;\n double a = 0.0;\n for(int i = 0; i < n; i++){\n a += (s[i] -Average)*(s[i] -Average);\n }\n a /= n;\n System.out.println(Math.sqrt(a));\n }", "true", "{\n int n = sc.nextInt();\n if(n == 0){\n break;\n }\n int[] s;\n s = new int[n];\n int Sum = 0;\n for(int i = 0; i < n; i++){\n s[i] = sc.nextInt();\n Sum += s[i];\n } \n double Average = (double)Sum/n;\n double a = 0.0;\n for(int i = 0; i < n; i++){\n a += (s[i] -Average)*(s[i] -Average);\n }\n a /= n;\n System.out.println(Math.sqrt(a));\n }", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n == 0){\n break;\n }", "n == 0", "n", "0", "{\n break;\n }", "break;", "int[] s;", "s", "s = new int[n]", "s", "new int[n]", "n", "int Sum = 0;", "Sum", "0", "for(int i = 0; i < n; i++){\n s[i] = sc.nextInt();\n Sum += s[i];\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n s[i] = sc.nextInt();\n Sum += s[i];\n }", "{\n s[i] = sc.nextInt();\n Sum += s[i];\n }", "s[i] = sc.nextInt()", "s[i]", "s", "i", "sc.nextInt()", "sc.nextInt", "sc", "Sum += s[i]", "Sum", "s[i]", "s", "i", "double Average = (double)Sum/n;", "Average", "(double)Sum/n", "(double)Sum", "n", "double a = 0.0;", "a", "0.0", "for(int i = 0; i < n; i++){\n a += (s[i] -Average)*(s[i] -Average);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n a += (s[i] -Average)*(s[i] -Average);\n }", "{\n a += (s[i] -Average)*(s[i] -Average);\n }", "a += (s[i] -Average)*(s[i] -Average)", "a", "(s[i] -Average)*(s[i] -Average)", "(s[i] -Average)", "s[i]", "s", "i", "Average", "(s[i] -Average)", "s[i]", "s", "i", "Average", "a /= n", "a", "n", "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 while(true){\n int n = sc.nextInt();\n if(n == 0){\n break;\n }\n int[] s;\n s = new int[n];\n int Sum = 0;\n for(int i = 0; i < n; i++){\n s[i] = sc.nextInt();\n Sum += s[i];\n } \n double Average = (double)Sum/n;\n double a = 0.0;\n for(int i = 0; i < n; i++){\n a += (s[i] -Average)*(s[i] -Average);\n }\n a /= n;\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 while(true){\n int n = sc.nextInt();\n if(n == 0){\n break;\n }\n int[] s;\n s = new int[n];\n int Sum = 0;\n for(int i = 0; i < n; i++){\n s[i] = sc.nextInt();\n Sum += s[i];\n } \n double Average = (double)Sum/n;\n double a = 0.0;\n for(int i = 0; i < n; i++){\n a += (s[i] -Average)*(s[i] -Average);\n }\n a /= n;\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); while(true){ int n = sc.nextInt(); if(n == 0){ break; } int[] s; s = new int[n]; int Sum = 0; for(int i = 0; i < n; i++){ s[i] = sc.nextInt(); Sum += s[i]; } double Average = (double)Sum/n; double a = 0.0; for(int i = 0; i < n; i++){ a += (s[i] -Average)*(s[i] -Average); } a /= n; System.out.println(Math.sqrt(a)); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 13, 18, 13, 13, 41, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 0, 13, 2, 13, 13, 41, 13, 2, 13, 13, 41, 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 ], [ 152, 8 ], [ 152, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 18, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 26, 28 ], [ 22, 29 ], [ 29, 30 ], [ 29, 31 ], [ 22, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 22, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 22, 43 ], [ 43, 44 ], [ 43, 45 ], [ 22, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 54, 56 ], [ 47, 57 ], [ 57, 58 ], [ 58, 59 ], [ 47, 60 ], [ 61, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 67, 68 ], [ 22, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 69, 79 ], [ 79, 80 ], [ 80, 81 ], [ 69, 82 ], [ 83, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 22, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 22, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 103, 105 ], [ 96, 106 ], [ 106, 107 ], [ 107, 108 ], [ 96, 109 ], [ 110, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 113, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 119, 123 ], [ 110, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 126, 128 ], [ 22, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 131, 133 ], [ 22, 134 ], [ 134, 135 ], [ 134, 136 ], [ 136, 137 ], [ 137, 138 ], [ 136, 139 ], [ 22, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 140, 145 ], [ 145, 146 ], [ 146, 147 ], [ 145, 148 ], [ 9, 149 ], [ 149, 150 ], [ 0, 151 ], [ 151, 152 ], [ 151, 153 ] ]
[ "import java.text.DecimalFormat;\nimport java.util.Scanner;\npublic class Main {\npublic static void main(String[] args) {\n\tDecimalFormat df = new DecimalFormat( \"0.00000000 \"); \n\tScanner sc=new Scanner(System.in);\n\twhile(sc.hasNext()) {\n\t\tfloat sum=0;\n\t\tfloat sum2=0;\n\t\tfloat a = 0;\n\tint n=sc.nextInt();\n\tif(n==0) {\n\t\tbreak;\n\t}\n\tint s[]=new int[n];\n\tfor(int i=0;i<s.length;i++) {\n\t\ts[i]=sc.nextInt();\n\t}\n\tfor(int i=0;i<s.length;i++) {\n\t\tsum=sum+s[i];\n\t}\n\tfloat m=sum/n;\n\tfor(int i=0;i<s.length;i++) {\n\t\t\ta=(s[i]-m)*(s[i]-m);\n\t\t\tsum2=sum2+a;\n\t}\n\tfloat a2=sum2/n;\n\tfloat a3=(float)Math.sqrt(a2);\n\tSystem.out.println(df.format(a3));\n}\n}\n}", "import java.text.DecimalFormat;", "DecimalFormat", "java.text", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\npublic static void main(String[] args) {\n\tDecimalFormat df = new DecimalFormat( \"0.00000000 \"); \n\tScanner sc=new Scanner(System.in);\n\twhile(sc.hasNext()) {\n\t\tfloat sum=0;\n\t\tfloat sum2=0;\n\t\tfloat a = 0;\n\tint n=sc.nextInt();\n\tif(n==0) {\n\t\tbreak;\n\t}\n\tint s[]=new int[n];\n\tfor(int i=0;i<s.length;i++) {\n\t\ts[i]=sc.nextInt();\n\t}\n\tfor(int i=0;i<s.length;i++) {\n\t\tsum=sum+s[i];\n\t}\n\tfloat m=sum/n;\n\tfor(int i=0;i<s.length;i++) {\n\t\t\ta=(s[i]-m)*(s[i]-m);\n\t\t\tsum2=sum2+a;\n\t}\n\tfloat a2=sum2/n;\n\tfloat a3=(float)Math.sqrt(a2);\n\tSystem.out.println(df.format(a3));\n}\n}\n}", "Main", "public static void main(String[] args) {\n\tDecimalFormat df = new DecimalFormat( \"0.00000000 \"); \n\tScanner sc=new Scanner(System.in);\n\twhile(sc.hasNext()) {\n\t\tfloat sum=0;\n\t\tfloat sum2=0;\n\t\tfloat a = 0;\n\tint n=sc.nextInt();\n\tif(n==0) {\n\t\tbreak;\n\t}\n\tint s[]=new int[n];\n\tfor(int i=0;i<s.length;i++) {\n\t\ts[i]=sc.nextInt();\n\t}\n\tfor(int i=0;i<s.length;i++) {\n\t\tsum=sum+s[i];\n\t}\n\tfloat m=sum/n;\n\tfor(int i=0;i<s.length;i++) {\n\t\t\ta=(s[i]-m)*(s[i]-m);\n\t\t\tsum2=sum2+a;\n\t}\n\tfloat a2=sum2/n;\n\tfloat a3=(float)Math.sqrt(a2);\n\tSystem.out.println(df.format(a3));\n}\n}", "main", "{\n\tDecimalFormat df = new DecimalFormat( \"0.00000000 \"); \n\tScanner sc=new Scanner(System.in);\n\twhile(sc.hasNext()) {\n\t\tfloat sum=0;\n\t\tfloat sum2=0;\n\t\tfloat a = 0;\n\tint n=sc.nextInt();\n\tif(n==0) {\n\t\tbreak;\n\t}\n\tint s[]=new int[n];\n\tfor(int i=0;i<s.length;i++) {\n\t\ts[i]=sc.nextInt();\n\t}\n\tfor(int i=0;i<s.length;i++) {\n\t\tsum=sum+s[i];\n\t}\n\tfloat m=sum/n;\n\tfor(int i=0;i<s.length;i++) {\n\t\t\ta=(s[i]-m)*(s[i]-m);\n\t\t\tsum2=sum2+a;\n\t}\n\tfloat a2=sum2/n;\n\tfloat a3=(float)Math.sqrt(a2);\n\tSystem.out.println(df.format(a3));\n}\n}", "DecimalFormat df = new DecimalFormat( \"0.00000000 \");", "df", "new DecimalFormat( \"0.00000000 \")", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(sc.hasNext()) {\n\t\tfloat sum=0;\n\t\tfloat sum2=0;\n\t\tfloat a = 0;\n\tint n=sc.nextInt();\n\tif(n==0) {\n\t\tbreak;\n\t}\n\tint s[]=new int[n];\n\tfor(int i=0;i<s.length;i++) {\n\t\ts[i]=sc.nextInt();\n\t}\n\tfor(int i=0;i<s.length;i++) {\n\t\tsum=sum+s[i];\n\t}\n\tfloat m=sum/n;\n\tfor(int i=0;i<s.length;i++) {\n\t\t\ta=(s[i]-m)*(s[i]-m);\n\t\t\tsum2=sum2+a;\n\t}\n\tfloat a2=sum2/n;\n\tfloat a3=(float)Math.sqrt(a2);\n\tSystem.out.println(df.format(a3));\n}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\tfloat sum=0;\n\t\tfloat sum2=0;\n\t\tfloat a = 0;\n\tint n=sc.nextInt();\n\tif(n==0) {\n\t\tbreak;\n\t}\n\tint s[]=new int[n];\n\tfor(int i=0;i<s.length;i++) {\n\t\ts[i]=sc.nextInt();\n\t}\n\tfor(int i=0;i<s.length;i++) {\n\t\tsum=sum+s[i];\n\t}\n\tfloat m=sum/n;\n\tfor(int i=0;i<s.length;i++) {\n\t\t\ta=(s[i]-m)*(s[i]-m);\n\t\t\tsum2=sum2+a;\n\t}\n\tfloat a2=sum2/n;\n\tfloat a3=(float)Math.sqrt(a2);\n\tSystem.out.println(df.format(a3));\n}", "float sum=0;", "sum", "0", "float sum2=0;", "sum2", "0", "float a = 0;", "a", "0", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n==0) {\n\t\tbreak;\n\t}", "n==0", "n", "0", "{\n\t\tbreak;\n\t}", "break;", "int s[]=new int[n];", "s", "new int[n]", "n", "for(int i=0;i<s.length;i++) {\n\t\ts[i]=sc.nextInt();\n\t}", "int i=0;", "int i=0;", "i", "0", "i<s.length", "i", "s.length", "s", "s.length", "i++", "i++", "i", "{\n\t\ts[i]=sc.nextInt();\n\t}", "{\n\t\ts[i]=sc.nextInt();\n\t}", "s[i]=sc.nextInt()", "s[i]", "s", "i", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0;i<s.length;i++) {\n\t\tsum=sum+s[i];\n\t}", "int i=0;", "int i=0;", "i", "0", "i<s.length", "i", "s.length", "s", "s.length", "i++", "i++", "i", "{\n\t\tsum=sum+s[i];\n\t}", "{\n\t\tsum=sum+s[i];\n\t}", "sum=sum+s[i]", "sum", "sum+s[i]", "sum", "s[i]", "s", "i", "float m=sum/n;", "m", "sum/n", "sum", "n", "for(int i=0;i<s.length;i++) {\n\t\t\ta=(s[i]-m)*(s[i]-m);\n\t\t\tsum2=sum2+a;\n\t}", "int i=0;", "int i=0;", "i", "0", "i<s.length", "i", "s.length", "s", "s.length", "i++", "i++", "i", "{\n\t\t\ta=(s[i]-m)*(s[i]-m);\n\t\t\tsum2=sum2+a;\n\t}", "{\n\t\t\ta=(s[i]-m)*(s[i]-m);\n\t\t\tsum2=sum2+a;\n\t}", "a=(s[i]-m)*(s[i]-m)", "a", "(s[i]-m)*(s[i]-m)", "(s[i]-m)", "s[i]", "s", "i", "m", "(s[i]-m)", "s[i]", "s", "i", "m", "sum2=sum2+a", "sum2", "sum2+a", "sum2", "a", "float a2=sum2/n;", "a2", "sum2/n", "sum2", "n", "float a3=(float)Math.sqrt(a2);", "a3", "(float)Math.sqrt(a2)", "Math.sqrt", "Math", "a2", "System.out.println(df.format(a3))", "System.out.println", "System.out", "System", "System.out", "df.format(a3)", "df.format", "df", "a3", "String[] args", "args", "public class Main {\npublic static void main(String[] args) {\n\tDecimalFormat df = new DecimalFormat( \"0.00000000 \"); \n\tScanner sc=new Scanner(System.in);\n\twhile(sc.hasNext()) {\n\t\tfloat sum=0;\n\t\tfloat sum2=0;\n\t\tfloat a = 0;\n\tint n=sc.nextInt();\n\tif(n==0) {\n\t\tbreak;\n\t}\n\tint s[]=new int[n];\n\tfor(int i=0;i<s.length;i++) {\n\t\ts[i]=sc.nextInt();\n\t}\n\tfor(int i=0;i<s.length;i++) {\n\t\tsum=sum+s[i];\n\t}\n\tfloat m=sum/n;\n\tfor(int i=0;i<s.length;i++) {\n\t\t\ta=(s[i]-m)*(s[i]-m);\n\t\t\tsum2=sum2+a;\n\t}\n\tfloat a2=sum2/n;\n\tfloat a3=(float)Math.sqrt(a2);\n\tSystem.out.println(df.format(a3));\n}\n}\n}", "public class Main {\npublic static void main(String[] args) {\n\tDecimalFormat df = new DecimalFormat( \"0.00000000 \"); \n\tScanner sc=new Scanner(System.in);\n\twhile(sc.hasNext()) {\n\t\tfloat sum=0;\n\t\tfloat sum2=0;\n\t\tfloat a = 0;\n\tint n=sc.nextInt();\n\tif(n==0) {\n\t\tbreak;\n\t}\n\tint s[]=new int[n];\n\tfor(int i=0;i<s.length;i++) {\n\t\ts[i]=sc.nextInt();\n\t}\n\tfor(int i=0;i<s.length;i++) {\n\t\tsum=sum+s[i];\n\t}\n\tfloat m=sum/n;\n\tfor(int i=0;i<s.length;i++) {\n\t\t\ta=(s[i]-m)*(s[i]-m);\n\t\t\tsum2=sum2+a;\n\t}\n\tfloat a2=sum2/n;\n\tfloat a3=(float)Math.sqrt(a2);\n\tSystem.out.println(df.format(a3));\n}\n}\n}", "Main" ]
import java.text.DecimalFormat; import java.util.Scanner; public class Main { public static void main(String[] args) { DecimalFormat df = new DecimalFormat( "0.00000000 "); Scanner sc=new Scanner(System.in); while(sc.hasNext()) { float sum=0; float sum2=0; float a = 0; int n=sc.nextInt(); if(n==0) { break; } int s[]=new int[n]; for(int i=0;i<s.length;i++) { s[i]=sc.nextInt(); } for(int i=0;i<s.length;i++) { sum=sum+s[i]; } float m=sum/n; for(int i=0;i<s.length;i++) { a=(s[i]-m)*(s[i]-m); sum2=sum2+a; } float a2=sum2/n; float a3=(float)Math.sqrt(a2); System.out.println(df.format(a3)); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 42, 17, 30, 41, 13, 17, 41, 13, 17, 0, 13, 4, 18, 13, 14, 2, 13, 17, 3, 41, 13, 20, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 2, 18, 13, 13, 2, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 13, 18, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 17, 4, 18, 13, 2, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 142, 5 ], [ 142, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 16, 20 ], [ 20, 21 ], [ 20, 22 ], [ 16, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 16, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 16, 33 ], [ 33, 34 ], [ 33, 35 ], [ 16, 37 ], [ 37, 38 ], [ 37, 39 ], [ 16, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 41, 49 ], [ 49, 50 ], [ 50, 51 ], [ 41, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 58, 59 ], [ 16, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 60, 68 ], [ 68, 69 ], [ 69, 70 ], [ 60, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 16, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 82, 83 ], [ 82, 84 ], [ 77, 85 ], [ 85, 86 ], [ 86, 87 ], [ 77, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 100, 102 ], [ 93, 103 ], [ 16, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 109, 110 ], [ 109, 111 ], [ 104, 112 ], [ 112, 113 ], [ 113, 114 ], [ 104, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 118, 120 ], [ 16, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 126, 130 ], [ 130, 131 ], [ 131, 132 ], [ 130, 133 ], [ 133, 134 ], [ 133, 135 ], [ 8, 136 ], [ 136, 137 ], [ 137, 138 ], [ 6, 139 ], [ 139, 140 ], [ 0, 141 ], [ 141, 142 ], [ 141, 143 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int a;\n while(true){\n int sum1=0;\n double sum2=0;\n a=sc.nextInt();\n if(a==0) break;\n int array1[]=new int[a];\n double array2[]=new double[a];\n for(int i=0;i<a;i++) array1[i]=sc.nextInt();\n for(int i=0;i<a;i++) sum1+=array1[i];\n for(int i=0;i<a;i++) array2[i]=Math.pow((double)array1[i]-((double)sum1/a),2);\n for(int i=0;i<a;i++) sum2+=array2[i];\n System.out.println(String.format(\"%.8f\",Math.sqrt(sum2/a)));\n }\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;\n while(true){\n int sum1=0;\n double sum2=0;\n a=sc.nextInt();\n if(a==0) break;\n int array1[]=new int[a];\n double array2[]=new double[a];\n for(int i=0;i<a;i++) array1[i]=sc.nextInt();\n for(int i=0;i<a;i++) sum1+=array1[i];\n for(int i=0;i<a;i++) array2[i]=Math.pow((double)array1[i]-((double)sum1/a),2);\n for(int i=0;i<a;i++) sum2+=array2[i];\n System.out.println(String.format(\"%.8f\",Math.sqrt(sum2/a)));\n }\n sc.close();\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int a;\n while(true){\n int sum1=0;\n double sum2=0;\n a=sc.nextInt();\n if(a==0) break;\n int array1[]=new int[a];\n double array2[]=new double[a];\n for(int i=0;i<a;i++) array1[i]=sc.nextInt();\n for(int i=0;i<a;i++) sum1+=array1[i];\n for(int i=0;i<a;i++) array2[i]=Math.pow((double)array1[i]-((double)sum1/a),2);\n for(int i=0;i<a;i++) sum2+=array2[i];\n System.out.println(String.format(\"%.8f\",Math.sqrt(sum2/a)));\n }\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int a;\n while(true){\n int sum1=0;\n double sum2=0;\n a=sc.nextInt();\n if(a==0) break;\n int array1[]=new int[a];\n double array2[]=new double[a];\n for(int i=0;i<a;i++) array1[i]=sc.nextInt();\n for(int i=0;i<a;i++) sum1+=array1[i];\n for(int i=0;i<a;i++) array2[i]=Math.pow((double)array1[i]-((double)sum1/a),2);\n for(int i=0;i<a;i++) sum2+=array2[i];\n System.out.println(String.format(\"%.8f\",Math.sqrt(sum2/a)));\n }\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a;", "a", "while(true){\n int sum1=0;\n double sum2=0;\n a=sc.nextInt();\n if(a==0) break;\n int array1[]=new int[a];\n double array2[]=new double[a];\n for(int i=0;i<a;i++) array1[i]=sc.nextInt();\n for(int i=0;i<a;i++) sum1+=array1[i];\n for(int i=0;i<a;i++) array2[i]=Math.pow((double)array1[i]-((double)sum1/a),2);\n for(int i=0;i<a;i++) sum2+=array2[i];\n System.out.println(String.format(\"%.8f\",Math.sqrt(sum2/a)));\n }", "true", "{\n int sum1=0;\n double sum2=0;\n a=sc.nextInt();\n if(a==0) break;\n int array1[]=new int[a];\n double array2[]=new double[a];\n for(int i=0;i<a;i++) array1[i]=sc.nextInt();\n for(int i=0;i<a;i++) sum1+=array1[i];\n for(int i=0;i<a;i++) array2[i]=Math.pow((double)array1[i]-((double)sum1/a),2);\n for(int i=0;i<a;i++) sum2+=array2[i];\n System.out.println(String.format(\"%.8f\",Math.sqrt(sum2/a)));\n }", "int sum1=0;", "sum1", "0", "double sum2=0;", "sum2", "0", "a=sc.nextInt()", "a", "sc.nextInt()", "sc.nextInt", "sc", "if(a==0) break;", "a==0", "a", "0", "break;", "int array1[]=new int[a];", "array1", "new int[a]", "a", "double array2[]=new double[a];", "array2", "new double[a]", "a", "for(int i=0;i<a;i++) array1[i]=sc.nextInt();", "int i=0;", "int i=0;", "i", "0", "i<a", "i", "a", "i++", "i++", "i", "array1[i]=sc.nextInt();", "array1[i]=sc.nextInt()", "array1[i]", "array1", "i", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0;i<a;i++) sum1+=array1[i];", "int i=0;", "int i=0;", "i", "0", "i<a", "i", "a", "i++", "i++", "i", "sum1+=array1[i];", "sum1+=array1[i]", "sum1", "array1[i]", "array1", "i", "for(int i=0;i<a;i++) array2[i]=Math.pow((double)array1[i]-((double)sum1/a),2);", "int i=0;", "int i=0;", "i", "0", "i<a", "i", "a", "i++", "i++", "i", "array2[i]=Math.pow((double)array1[i]-((double)sum1/a),2);", "array2[i]=Math.pow((double)array1[i]-((double)sum1/a),2)", "array2[i]", "array2", "i", "Math.pow((double)array1[i]-((double)sum1/a),2)", "Math.pow", "Math", "(double)array1[i]-((double)sum1/a)", "(double)array1[i]", "array1", "i", "((double)sum1/a)", "(double)sum1", "a", "2", "for(int i=0;i<a;i++) sum2+=array2[i];", "int i=0;", "int i=0;", "i", "0", "i<a", "i", "a", "i++", "i++", "i", "sum2+=array2[i];", "sum2+=array2[i]", "sum2", "array2[i]", "array2", "i", "System.out.println(String.format(\"%.8f\",Math.sqrt(sum2/a)))", "System.out.println", "System.out", "System", "System.out", "String.format(\"%.8f\",Math.sqrt(sum2/a))", "String.format", "String", "\"%.8f\"", "Math.sqrt(sum2/a)", "Math.sqrt", "Math", "sum2/a", "sum2", "a", "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;\n while(true){\n int sum1=0;\n double sum2=0;\n a=sc.nextInt();\n if(a==0) break;\n int array1[]=new int[a];\n double array2[]=new double[a];\n for(int i=0;i<a;i++) array1[i]=sc.nextInt();\n for(int i=0;i<a;i++) sum1+=array1[i];\n for(int i=0;i<a;i++) array2[i]=Math.pow((double)array1[i]-((double)sum1/a),2);\n for(int i=0;i<a;i++) sum2+=array2[i];\n System.out.println(String.format(\"%.8f\",Math.sqrt(sum2/a)));\n }\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;\n while(true){\n int sum1=0;\n double sum2=0;\n a=sc.nextInt();\n if(a==0) break;\n int array1[]=new int[a];\n double array2[]=new double[a];\n for(int i=0;i<a;i++) array1[i]=sc.nextInt();\n for(int i=0;i<a;i++) sum1+=array1[i];\n for(int i=0;i<a;i++) array2[i]=Math.pow((double)array1[i]-((double)sum1/a),2);\n for(int i=0;i<a;i++) sum2+=array2[i];\n System.out.println(String.format(\"%.8f\",Math.sqrt(sum2/a)));\n }\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; while(true){ int sum1=0; double sum2=0; a=sc.nextInt(); if(a==0) break; int array1[]=new int[a]; double array2[]=new double[a]; for(int i=0;i<a;i++) array1[i]=sc.nextInt(); for(int i=0;i<a;i++) sum1+=array1[i]; for(int i=0;i<a;i++) array2[i]=Math.pow((double)array1[i]-((double)sum1/a),2); for(int i=0;i<a;i++) sum2+=array2[i]; System.out.println(String.format("%.8f",Math.sqrt(sum2/a))); } sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 3, 41, 13, 20, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 41, 13, 2, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 0, 13, 2, 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 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 14, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 44, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 54, 56 ], [ 14, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 14, 62 ], [ 62, 63 ], [ 62, 64 ], [ 14, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 70, 71 ], [ 70, 72 ], [ 65, 73 ], [ 73, 74 ], [ 74, 75 ], [ 65, 76 ], [ 77, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 80, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 14, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 14, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 6, 105 ], [ 105, 106 ] ]
[ "import java.util.*;\nclass Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile(true) {\n\t\t\tint n = stdIn.nextInt();\n\t\t\tif(n == 0) break;\n\t\t\tint[] s = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\ts[i] = stdIn.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = sum/(double)n;\n\t\t\tdouble a = 0.0;\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\ta += (s[i] - m)*(s[i] - m);\n\t\t\t}\n\t\t\ta= a/(double)n;\n\t\t\t\n\t\t\tSystem.out.println(Math.sqrt(a));\n\t\t\t\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile(true) {\n\t\t\tint n = stdIn.nextInt();\n\t\t\tif(n == 0) break;\n\t\t\tint[] s = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\ts[i] = stdIn.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = sum/(double)n;\n\t\t\tdouble a = 0.0;\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\ta += (s[i] - m)*(s[i] - m);\n\t\t\t}\n\t\t\ta= a/(double)n;\n\t\t\t\n\t\t\tSystem.out.println(Math.sqrt(a));\n\t\t\t\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile(true) {\n\t\t\tint n = stdIn.nextInt();\n\t\t\tif(n == 0) break;\n\t\t\tint[] s = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\ts[i] = stdIn.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = sum/(double)n;\n\t\t\tdouble a = 0.0;\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\ta += (s[i] - m)*(s[i] - m);\n\t\t\t}\n\t\t\ta= a/(double)n;\n\t\t\t\n\t\t\tSystem.out.println(Math.sqrt(a));\n\t\t\t\n\t\t}\n\t}", "main", "{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile(true) {\n\t\t\tint n = stdIn.nextInt();\n\t\t\tif(n == 0) break;\n\t\t\tint[] s = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\ts[i] = stdIn.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = sum/(double)n;\n\t\t\tdouble a = 0.0;\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\ta += (s[i] - m)*(s[i] - m);\n\t\t\t}\n\t\t\ta= a/(double)n;\n\t\t\t\n\t\t\tSystem.out.println(Math.sqrt(a));\n\t\t\t\n\t\t}\n\t}", "Scanner stdIn = new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "while(true) {\n\t\t\tint n = stdIn.nextInt();\n\t\t\tif(n == 0) break;\n\t\t\tint[] s = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\ts[i] = stdIn.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = sum/(double)n;\n\t\t\tdouble a = 0.0;\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\ta += (s[i] - m)*(s[i] - m);\n\t\t\t}\n\t\t\ta= a/(double)n;\n\t\t\t\n\t\t\tSystem.out.println(Math.sqrt(a));\n\t\t\t\n\t\t}", "true", "{\n\t\t\tint n = stdIn.nextInt();\n\t\t\tif(n == 0) break;\n\t\t\tint[] s = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\ts[i] = stdIn.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = sum/(double)n;\n\t\t\tdouble a = 0.0;\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\ta += (s[i] - m)*(s[i] - m);\n\t\t\t}\n\t\t\ta= a/(double)n;\n\t\t\t\n\t\t\tSystem.out.println(Math.sqrt(a));\n\t\t\t\n\t\t}", "int n = stdIn.nextInt();", "n", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "if(n == 0) break;", "n == 0", "n", "0", "break;", "int[] s = new int[n];", "s", "new int[n]", "n", "int sum = 0;", "sum", "0", "for(int i = 0; i < n; i++) {\n\t\t\t\ts[i] = stdIn.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\ts[i] = stdIn.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}", "{\n\t\t\t\ts[i] = stdIn.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}", "s[i] = stdIn.nextInt()", "s[i]", "s", "i", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "sum += s[i]", "sum", "s[i]", "s", "i", "double m = sum/(double)n;", "m", "sum/(double)n", "sum", "(double)n", "double a = 0.0;", "a", "0.0", "for(int i = 0; i < n; i++) {\n\t\t\t\ta += (s[i] - m)*(s[i] - m);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\ta += (s[i] - m)*(s[i] - m);\n\t\t\t}", "{\n\t\t\t\ta += (s[i] - m)*(s[i] - m);\n\t\t\t}", "a += (s[i] - m)*(s[i] - m)", "a", "(s[i] - m)*(s[i] - m)", "(s[i] - m)", "s[i]", "s", "i", "m", "(s[i] - m)", "s[i]", "s", "i", "m", "a= a/(double)n", "a", "a/(double)n", "a", "(double)n", "System.out.println(Math.sqrt(a))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(a)", "Math.sqrt", "Math", "a", "String[] args", "args" ]
import java.util.*; class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); while(true) { int n = stdIn.nextInt(); if(n == 0) break; int[] s = new int[n]; int sum = 0; for(int i = 0; i < n; i++) { s[i] = stdIn.nextInt(); sum += s[i]; } double m = sum/(double)n; double a = 0.0; for(int i = 0; i < n; i++) { a += (s[i] - m)*(s[i] - m); } a= a/(double)n; System.out.println(Math.sqrt(a)); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 17, 41, 13, 17, 42, 17, 30, 41, 13, 17, 14, 2, 2, 13, 17, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 17, 13, 3, 0, 13, 4, 18, 13, 13, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 18, 13, 13, 0, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 4, 18, 13, 18, 13, 13, 13, 17, 0, 13, 2, 13, 13, 0, 13, 4, 18, 13, 2, 13, 13, 4, 18, 4, 18, 13, 13, 17, 40, 13, 4, 18, 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 ], [ 164, 8 ], [ 164, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 11, 21 ], [ 21, 22 ], [ 21, 23 ], [ 11, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 31, 35 ], [ 30, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 36, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 42, 47 ], [ 36, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 30, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 57, 62 ], [ 54, 63 ], [ 63, 64 ], [ 63, 65 ], [ 54, 66 ], [ 66, 67 ], [ 66, 68 ], [ 54, 69 ], [ 69, 70 ], [ 69, 71 ], [ 54, 72 ], [ 72, 73 ], [ 72, 74 ], [ 54, 75 ], [ 75, 76 ], [ 75, 77 ], [ 54, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 83, 84 ], [ 83, 85 ], [ 78, 86 ], [ 86, 87 ], [ 87, 88 ], [ 78, 89 ], [ 90, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 96, 97 ], [ 96, 98 ], [ 54, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 101, 103 ], [ 54, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 109, 110 ], [ 109, 111 ], [ 104, 112 ], [ 112, 113 ], [ 113, 114 ], [ 104, 115 ], [ 116, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 120, 121 ], [ 119, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 126, 127 ], [ 126, 128 ], [ 122, 129 ], [ 119, 130 ], [ 54, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 133, 135 ], [ 54, 136 ], [ 136, 137 ], [ 136, 138 ], [ 138, 139 ], [ 139, 140 ], [ 138, 141 ], [ 141, 142 ], [ 141, 143 ], [ 54, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 146, 149 ], [ 144, 150 ], [ 26, 151 ], [ 151, 152 ], [ 11, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 153, 158 ], [ 158, 159 ], [ 159, 160 ], [ 9, 161 ], [ 161, 162 ], [ 0, 163 ], [ 163, 164 ], [ 163, 165 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t StringBuilder sb = new StringBuilder();\n\t int n = 0;\n\t int count = 0;\n\t while (true) {\n \t\tString line = \"\";\n \t\tif (count % 2 == 0) {\n\t \t\tline = br.readLine();\n\t\t\t if (\"0\".equals(line)) break;\n\n\t\t\t n = Integer.parseInt(line);\n\n \t\t} else {\n\t\t\t String[] input = br.readLine().split(\" \");\n\n\t\t \tdouble total = 0d;\n\t\t \tdouble average = 0d;\n\t\t \tdouble var = 0d;\n\t\t \tdouble foo = 0d;\n\t\t \tdouble stdev = 0d;\n\n\t\t \tfor (int i = 0; i < n; i++) {\n\t\t \t\ttotal += Double.parseDouble(input[i]);\n\t\t \t}\n\n\t\t \taverage = total / n;\n\n\t\t \tfor (int i = 0; i < n; i++) {\n\t\t \t\tvar += Math.pow(Double.parseDouble(input[i]) - average, 2);\n\t\t \t}\n\t\t \tfoo = var / n;\n\n\t\t \tstdev = Math.sqrt(var / n);\n\n\t\t \tsb.append(stdev).append(\"\\n\");\n \t\t}\n \t\tcount++;\n\t }\n\t System.out.print(sb.toString());\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t StringBuilder sb = new StringBuilder();\n\t int n = 0;\n\t int count = 0;\n\t while (true) {\n \t\tString line = \"\";\n \t\tif (count % 2 == 0) {\n\t \t\tline = br.readLine();\n\t\t\t if (\"0\".equals(line)) break;\n\n\t\t\t n = Integer.parseInt(line);\n\n \t\t} else {\n\t\t\t String[] input = br.readLine().split(\" \");\n\n\t\t \tdouble total = 0d;\n\t\t \tdouble average = 0d;\n\t\t \tdouble var = 0d;\n\t\t \tdouble foo = 0d;\n\t\t \tdouble stdev = 0d;\n\n\t\t \tfor (int i = 0; i < n; i++) {\n\t\t \t\ttotal += Double.parseDouble(input[i]);\n\t\t \t}\n\n\t\t \taverage = total / n;\n\n\t\t \tfor (int i = 0; i < n; i++) {\n\t\t \t\tvar += Math.pow(Double.parseDouble(input[i]) - average, 2);\n\t\t \t}\n\t\t \tfoo = var / n;\n\n\t\t \tstdev = Math.sqrt(var / n);\n\n\t\t \tsb.append(stdev).append(\"\\n\");\n \t\t}\n \t\tcount++;\n\t }\n\t System.out.print(sb.toString());\n\t}\n}", "Main", "public static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t StringBuilder sb = new StringBuilder();\n\t int n = 0;\n\t int count = 0;\n\t while (true) {\n \t\tString line = \"\";\n \t\tif (count % 2 == 0) {\n\t \t\tline = br.readLine();\n\t\t\t if (\"0\".equals(line)) break;\n\n\t\t\t n = Integer.parseInt(line);\n\n \t\t} else {\n\t\t\t String[] input = br.readLine().split(\" \");\n\n\t\t \tdouble total = 0d;\n\t\t \tdouble average = 0d;\n\t\t \tdouble var = 0d;\n\t\t \tdouble foo = 0d;\n\t\t \tdouble stdev = 0d;\n\n\t\t \tfor (int i = 0; i < n; i++) {\n\t\t \t\ttotal += Double.parseDouble(input[i]);\n\t\t \t}\n\n\t\t \taverage = total / n;\n\n\t\t \tfor (int i = 0; i < n; i++) {\n\t\t \t\tvar += Math.pow(Double.parseDouble(input[i]) - average, 2);\n\t\t \t}\n\t\t \tfoo = var / n;\n\n\t\t \tstdev = Math.sqrt(var / n);\n\n\t\t \tsb.append(stdev).append(\"\\n\");\n \t\t}\n \t\tcount++;\n\t }\n\t System.out.print(sb.toString());\n\t}", "main", "{\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t StringBuilder sb = new StringBuilder();\n\t int n = 0;\n\t int count = 0;\n\t while (true) {\n \t\tString line = \"\";\n \t\tif (count % 2 == 0) {\n\t \t\tline = br.readLine();\n\t\t\t if (\"0\".equals(line)) break;\n\n\t\t\t n = Integer.parseInt(line);\n\n \t\t} else {\n\t\t\t String[] input = br.readLine().split(\" \");\n\n\t\t \tdouble total = 0d;\n\t\t \tdouble average = 0d;\n\t\t \tdouble var = 0d;\n\t\t \tdouble foo = 0d;\n\t\t \tdouble stdev = 0d;\n\n\t\t \tfor (int i = 0; i < n; i++) {\n\t\t \t\ttotal += Double.parseDouble(input[i]);\n\t\t \t}\n\n\t\t \taverage = total / n;\n\n\t\t \tfor (int i = 0; i < n; i++) {\n\t\t \t\tvar += Math.pow(Double.parseDouble(input[i]) - average, 2);\n\t\t \t}\n\t\t \tfoo = var / n;\n\n\t\t \tstdev = Math.sqrt(var / n);\n\n\t\t \tsb.append(stdev).append(\"\\n\");\n \t\t}\n \t\tcount++;\n\t }\n\t System.out.print(sb.toString());\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "int n = 0;", "n", "0", "int count = 0;", "count", "0", "while (true) {\n \t\tString line = \"\";\n \t\tif (count % 2 == 0) {\n\t \t\tline = br.readLine();\n\t\t\t if (\"0\".equals(line)) break;\n\n\t\t\t n = Integer.parseInt(line);\n\n \t\t} else {\n\t\t\t String[] input = br.readLine().split(\" \");\n\n\t\t \tdouble total = 0d;\n\t\t \tdouble average = 0d;\n\t\t \tdouble var = 0d;\n\t\t \tdouble foo = 0d;\n\t\t \tdouble stdev = 0d;\n\n\t\t \tfor (int i = 0; i < n; i++) {\n\t\t \t\ttotal += Double.parseDouble(input[i]);\n\t\t \t}\n\n\t\t \taverage = total / n;\n\n\t\t \tfor (int i = 0; i < n; i++) {\n\t\t \t\tvar += Math.pow(Double.parseDouble(input[i]) - average, 2);\n\t\t \t}\n\t\t \tfoo = var / n;\n\n\t\t \tstdev = Math.sqrt(var / n);\n\n\t\t \tsb.append(stdev).append(\"\\n\");\n \t\t}\n \t\tcount++;\n\t }", "true", "{\n \t\tString line = \"\";\n \t\tif (count % 2 == 0) {\n\t \t\tline = br.readLine();\n\t\t\t if (\"0\".equals(line)) break;\n\n\t\t\t n = Integer.parseInt(line);\n\n \t\t} else {\n\t\t\t String[] input = br.readLine().split(\" \");\n\n\t\t \tdouble total = 0d;\n\t\t \tdouble average = 0d;\n\t\t \tdouble var = 0d;\n\t\t \tdouble foo = 0d;\n\t\t \tdouble stdev = 0d;\n\n\t\t \tfor (int i = 0; i < n; i++) {\n\t\t \t\ttotal += Double.parseDouble(input[i]);\n\t\t \t}\n\n\t\t \taverage = total / n;\n\n\t\t \tfor (int i = 0; i < n; i++) {\n\t\t \t\tvar += Math.pow(Double.parseDouble(input[i]) - average, 2);\n\t\t \t}\n\t\t \tfoo = var / n;\n\n\t\t \tstdev = Math.sqrt(var / n);\n\n\t\t \tsb.append(stdev).append(\"\\n\");\n \t\t}\n \t\tcount++;\n\t }", "String line = \"\";", "line", "\"\"", "if (count % 2 == 0) {\n\t \t\tline = br.readLine();\n\t\t\t if (\"0\".equals(line)) break;\n\n\t\t\t n = Integer.parseInt(line);\n\n \t\t} else {\n\t\t\t String[] input = br.readLine().split(\" \");\n\n\t\t \tdouble total = 0d;\n\t\t \tdouble average = 0d;\n\t\t \tdouble var = 0d;\n\t\t \tdouble foo = 0d;\n\t\t \tdouble stdev = 0d;\n\n\t\t \tfor (int i = 0; i < n; i++) {\n\t\t \t\ttotal += Double.parseDouble(input[i]);\n\t\t \t}\n\n\t\t \taverage = total / n;\n\n\t\t \tfor (int i = 0; i < n; i++) {\n\t\t \t\tvar += Math.pow(Double.parseDouble(input[i]) - average, 2);\n\t\t \t}\n\t\t \tfoo = var / n;\n\n\t\t \tstdev = Math.sqrt(var / n);\n\n\t\t \tsb.append(stdev).append(\"\\n\");\n \t\t}", "count % 2 == 0", "count % 2", "count", "2", "0", "{\n\t \t\tline = br.readLine();\n\t\t\t if (\"0\".equals(line)) break;\n\n\t\t\t n = Integer.parseInt(line);\n\n \t\t}", "line = br.readLine()", "line", "br.readLine()", "br.readLine", "br", "if (\"0\".equals(line)) break;", "\"0\".equals(line)", "\"0\".equals", "\"0\"", "line", "break;", "n = Integer.parseInt(line)", "n", "Integer.parseInt(line)", "Integer.parseInt", "Integer", "line", "{\n\t\t\t String[] input = br.readLine().split(\" \");\n\n\t\t \tdouble total = 0d;\n\t\t \tdouble average = 0d;\n\t\t \tdouble var = 0d;\n\t\t \tdouble foo = 0d;\n\t\t \tdouble stdev = 0d;\n\n\t\t \tfor (int i = 0; i < n; i++) {\n\t\t \t\ttotal += Double.parseDouble(input[i]);\n\t\t \t}\n\n\t\t \taverage = total / n;\n\n\t\t \tfor (int i = 0; i < n; i++) {\n\t\t \t\tvar += Math.pow(Double.parseDouble(input[i]) - average, 2);\n\t\t \t}\n\t\t \tfoo = var / n;\n\n\t\t \tstdev = Math.sqrt(var / n);\n\n\t\t \tsb.append(stdev).append(\"\\n\");\n \t\t}", "String[] input = br.readLine().split(\" \");", "input", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "double total = 0d;", "total", "0d", "double average = 0d;", "average", "0d", "double var = 0d;", "var", "0d", "double foo = 0d;", "foo", "0d", "double stdev = 0d;", "stdev", "0d", "for (int i = 0; i < n; i++) {\n\t\t \t\ttotal += Double.parseDouble(input[i]);\n\t\t \t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t \t\ttotal += Double.parseDouble(input[i]);\n\t\t \t}", "{\n\t\t \t\ttotal += Double.parseDouble(input[i]);\n\t\t \t}", "total += Double.parseDouble(input[i])", "total", "Double.parseDouble(input[i])", "Double.parseDouble", "Double", "input[i]", "input", "i", "average = total / n", "average", "total / n", "total", "n", "for (int i = 0; i < n; i++) {\n\t\t \t\tvar += Math.pow(Double.parseDouble(input[i]) - average, 2);\n\t\t \t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t \t\tvar += Math.pow(Double.parseDouble(input[i]) - average, 2);\n\t\t \t}", "{\n\t\t \t\tvar += Math.pow(Double.parseDouble(input[i]) - average, 2);\n\t\t \t}", "var += Math.pow(Double.parseDouble(input[i]) - average, 2)", "var", "Math.pow(Double.parseDouble(input[i]) - average, 2)", "Math.pow", "Math", "Double.parseDouble(input[i]) - average", "Double.parseDouble(input[i])", "Double.parseDouble", "Double", "input[i]", "input", "i", "average", "2", "foo = var / n", "foo", "var / n", "var", "n", "stdev = Math.sqrt(var / n)", "stdev", "Math.sqrt(var / n)", "Math.sqrt", "Math", "var / n", "var", "n", "sb.append(stdev).append(\"\\n\")", "sb.append(stdev).append", "sb.append(stdev)", "sb.append", "sb", "stdev", "\"\\n\"", "count++", "count", "System.out.print(sb.toString())", "System.out.print", "System.out", "System", "System.out", "sb.toString()", "sb.toString", "sb", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t StringBuilder sb = new StringBuilder();\n\t int n = 0;\n\t int count = 0;\n\t while (true) {\n \t\tString line = \"\";\n \t\tif (count % 2 == 0) {\n\t \t\tline = br.readLine();\n\t\t\t if (\"0\".equals(line)) break;\n\n\t\t\t n = Integer.parseInt(line);\n\n \t\t} else {\n\t\t\t String[] input = br.readLine().split(\" \");\n\n\t\t \tdouble total = 0d;\n\t\t \tdouble average = 0d;\n\t\t \tdouble var = 0d;\n\t\t \tdouble foo = 0d;\n\t\t \tdouble stdev = 0d;\n\n\t\t \tfor (int i = 0; i < n; i++) {\n\t\t \t\ttotal += Double.parseDouble(input[i]);\n\t\t \t}\n\n\t\t \taverage = total / n;\n\n\t\t \tfor (int i = 0; i < n; i++) {\n\t\t \t\tvar += Math.pow(Double.parseDouble(input[i]) - average, 2);\n\t\t \t}\n\t\t \tfoo = var / n;\n\n\t\t \tstdev = Math.sqrt(var / n);\n\n\t\t \tsb.append(stdev).append(\"\\n\");\n \t\t}\n \t\tcount++;\n\t }\n\t System.out.print(sb.toString());\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t StringBuilder sb = new StringBuilder();\n\t int n = 0;\n\t int count = 0;\n\t while (true) {\n \t\tString line = \"\";\n \t\tif (count % 2 == 0) {\n\t \t\tline = br.readLine();\n\t\t\t if (\"0\".equals(line)) break;\n\n\t\t\t n = Integer.parseInt(line);\n\n \t\t} else {\n\t\t\t String[] input = br.readLine().split(\" \");\n\n\t\t \tdouble total = 0d;\n\t\t \tdouble average = 0d;\n\t\t \tdouble var = 0d;\n\t\t \tdouble foo = 0d;\n\t\t \tdouble stdev = 0d;\n\n\t\t \tfor (int i = 0; i < n; i++) {\n\t\t \t\ttotal += Double.parseDouble(input[i]);\n\t\t \t}\n\n\t\t \taverage = total / n;\n\n\t\t \tfor (int i = 0; i < n; i++) {\n\t\t \t\tvar += Math.pow(Double.parseDouble(input[i]) - average, 2);\n\t\t \t}\n\t\t \tfoo = var / n;\n\n\t\t \tstdev = Math.sqrt(var / n);\n\n\t\t \tsb.append(stdev).append(\"\\n\");\n \t\t}\n \t\tcount++;\n\t }\n\t System.out.print(sb.toString());\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); int n = 0; int count = 0; while (true) { String line = ""; if (count % 2 == 0) { line = br.readLine(); if ("0".equals(line)) break; n = Integer.parseInt(line); } else { String[] input = br.readLine().split(" "); double total = 0d; double average = 0d; double var = 0d; double foo = 0d; double stdev = 0d; for (int i = 0; i < n; i++) { total += Double.parseDouble(input[i]); } average = total / n; for (int i = 0; i < n; i++) { var += Math.pow(Double.parseDouble(input[i]) - average, 2); } foo = var / n; stdev = Math.sqrt(var / n); sb.append(stdev).append("\n"); } count++; } System.out.print(sb.toString()); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 20, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 13, 2, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 103, 5 ], [ 103, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 30 ], [ 30, 31 ], [ 30, 32 ], [ 14, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 33, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 45, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 14, 58 ], [ 58, 59 ], [ 58, 60 ], [ 14, 61 ], [ 61, 62 ], [ 61, 63 ], [ 14, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 69, 70 ], [ 69, 71 ], [ 64, 72 ], [ 72, 73 ], [ 73, 74 ], [ 64, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 79, 87 ], [ 14, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 88, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 97, 98 ], [ 97, 99 ], [ 6, 100 ], [ 100, 101 ], [ 0, 102 ], [ 102, 103 ], [ 102, 104 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n while (true) {\n int n = stdin.nextInt();\n if (n == 0) {\n break;\n }\n\n int[] arr = new int[n];\n double m = 0;\n for (int i = 0; i < n; i++) {\n arr[i] = stdin.nextInt();\n m += arr[i];\n }\n m /= n;\n\n double a = 0;\n for (int i = 0; i < n; i++) {\n a += Math.pow(arr[i] - m, 2);\n }\n\n System.out.printf(\"%f%n\", Math.sqrt(a / n));\n }\n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n while (true) {\n int n = stdin.nextInt();\n if (n == 0) {\n break;\n }\n\n int[] arr = new int[n];\n double m = 0;\n for (int i = 0; i < n; i++) {\n arr[i] = stdin.nextInt();\n m += arr[i];\n }\n m /= n;\n\n double a = 0;\n for (int i = 0; i < n; i++) {\n a += Math.pow(arr[i] - m, 2);\n }\n\n System.out.printf(\"%f%n\", Math.sqrt(a / n));\n }\n }\n\n}", "Main", "public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n while (true) {\n int n = stdin.nextInt();\n if (n == 0) {\n break;\n }\n\n int[] arr = new int[n];\n double m = 0;\n for (int i = 0; i < n; i++) {\n arr[i] = stdin.nextInt();\n m += arr[i];\n }\n m /= n;\n\n double a = 0;\n for (int i = 0; i < n; i++) {\n a += Math.pow(arr[i] - m, 2);\n }\n\n System.out.printf(\"%f%n\", Math.sqrt(a / n));\n }\n }", "main", "{\n Scanner stdin = new Scanner(System.in);\n while (true) {\n int n = stdin.nextInt();\n if (n == 0) {\n break;\n }\n\n int[] arr = new int[n];\n double m = 0;\n for (int i = 0; i < n; i++) {\n arr[i] = stdin.nextInt();\n m += arr[i];\n }\n m /= n;\n\n double a = 0;\n for (int i = 0; i < n; i++) {\n a += Math.pow(arr[i] - m, 2);\n }\n\n System.out.printf(\"%f%n\", Math.sqrt(a / n));\n }\n }", "Scanner stdin = new Scanner(System.in);", "stdin", "new Scanner(System.in)", "while (true) {\n int n = stdin.nextInt();\n if (n == 0) {\n break;\n }\n\n int[] arr = new int[n];\n double m = 0;\n for (int i = 0; i < n; i++) {\n arr[i] = stdin.nextInt();\n m += arr[i];\n }\n m /= n;\n\n double a = 0;\n for (int i = 0; i < n; i++) {\n a += Math.pow(arr[i] - m, 2);\n }\n\n System.out.printf(\"%f%n\", Math.sqrt(a / n));\n }", "true", "{\n int n = stdin.nextInt();\n if (n == 0) {\n break;\n }\n\n int[] arr = new int[n];\n double m = 0;\n for (int i = 0; i < n; i++) {\n arr[i] = stdin.nextInt();\n m += arr[i];\n }\n m /= n;\n\n double a = 0;\n for (int i = 0; i < n; i++) {\n a += Math.pow(arr[i] - m, 2);\n }\n\n System.out.printf(\"%f%n\", Math.sqrt(a / n));\n }", "int n = stdin.nextInt();", "n", "stdin.nextInt()", "stdin.nextInt", "stdin", "if (n == 0) {\n break;\n }", "n == 0", "n", "0", "{\n break;\n }", "break;", "int[] arr = new int[n];", "arr", "new int[n]", "n", "double m = 0;", "m", "0", "for (int i = 0; i < n; i++) {\n arr[i] = stdin.nextInt();\n m += arr[i];\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n arr[i] = stdin.nextInt();\n m += arr[i];\n }", "{\n arr[i] = stdin.nextInt();\n m += arr[i];\n }", "arr[i] = stdin.nextInt()", "arr[i]", "arr", "i", "stdin.nextInt()", "stdin.nextInt", "stdin", "m += arr[i]", "m", "arr[i]", "arr", "i", "m /= n", "m", "n", "double a = 0;", "a", "0", "for (int i = 0; i < n; i++) {\n a += Math.pow(arr[i] - m, 2);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n a += Math.pow(arr[i] - m, 2);\n }", "{\n a += Math.pow(arr[i] - m, 2);\n }", "a += Math.pow(arr[i] - m, 2)", "a", "Math.pow(arr[i] - m, 2)", "Math.pow", "Math", "arr[i] - m", "arr[i]", "arr", "i", "m", "2", "System.out.printf(\"%f%n\", Math.sqrt(a / n))", "System.out.printf", "System.out", "System", "System.out", "\"%f%n\"", "Math.sqrt(a / n)", "Math.sqrt", "Math", "a / n", "a", "n", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n while (true) {\n int n = stdin.nextInt();\n if (n == 0) {\n break;\n }\n\n int[] arr = new int[n];\n double m = 0;\n for (int i = 0; i < n; i++) {\n arr[i] = stdin.nextInt();\n m += arr[i];\n }\n m /= n;\n\n double a = 0;\n for (int i = 0; i < n; i++) {\n a += Math.pow(arr[i] - m, 2);\n }\n\n System.out.printf(\"%f%n\", Math.sqrt(a / n));\n }\n }\n\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n while (true) {\n int n = stdin.nextInt();\n if (n == 0) {\n break;\n }\n\n int[] arr = new int[n];\n double m = 0;\n for (int i = 0; i < n; i++) {\n arr[i] = stdin.nextInt();\n m += arr[i];\n }\n m /= n;\n\n double a = 0;\n for (int i = 0; i < n; i++) {\n a += Math.pow(arr[i] - m, 2);\n }\n\n System.out.printf(\"%f%n\", Math.sqrt(a / n));\n }\n }\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner stdin = new Scanner(System.in); while (true) { int n = stdin.nextInt(); if (n == 0) { break; } int[] arr = new int[n]; double m = 0; for (int i = 0; i < n; i++) { arr[i] = stdin.nextInt(); m += arr[i]; } m /= n; double a = 0; for (int i = 0; i < n; i++) { a += Math.pow(arr[i] - m, 2); } System.out.printf("%f%n", Math.sqrt(a / n)); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 29, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 4, 13, 13, 13, 41, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 0, 13, 2, 13, 13, 29, 4, 18, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 20, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 0, 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 ], [ 161, 5 ], [ 161, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 12, 17 ], [ 17, 18 ], [ 17, 19 ], [ 12, 20 ], [ 20, 21 ], [ 21, 22 ], [ 12, 23 ], [ 24, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 27, 29 ], [ 8, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 6, 34 ], [ 34, 35 ], [ 6, 36 ], [ 36, 37 ], [ 161, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 43, 46 ], [ 40, 47 ], [ 47, 48 ], [ 40, 49 ], [ 49, 50 ], [ 49, 51 ], [ 40, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 52, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 67, 75 ], [ 40, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 78, 80 ], [ 40, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 38, 86 ], [ 86, 87 ], [ 38, 88 ], [ 88, 89 ], [ 161, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 96, 97 ], [ 96, 98 ], [ 92, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 107, 108 ], [ 108, 109 ], [ 101, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 114, 115 ], [ 101, 116 ], [ 116, 117 ], [ 116, 118 ], [ 101, 120 ], [ 120, 121 ], [ 101, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 127, 128 ], [ 127, 129 ], [ 122, 130 ], [ 130, 131 ], [ 131, 132 ], [ 122, 133 ], [ 134, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 135, 139 ], [ 139, 140 ], [ 140, 141 ], [ 139, 142 ], [ 142, 143 ], [ 143, 144 ], [ 101, 145 ], [ 145, 146 ], [ 145, 147 ], [ 147, 148 ], [ 148, 149 ], [ 147, 150 ], [ 147, 151 ], [ 101, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 152, 157 ], [ 90, 158 ], [ 158, 159 ], [ 0, 160 ], [ 160, 161 ], [ 160, 162 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public double calcAverage(int[] buf, int num) {\n double sum = 0;\n for (int i = 0; i < num; i++) {\n sum += (double)buf[i];\n }\n\n return sum/(double)num;\n }\n public double calcSD(int[] buf, int num) {\n double average = calcAverage(buf, num);\n double bunsan;\n double sum = 0.0;\n\n for (int i = 0; i < num; i++) {\n sum += Math.pow((double)buf[i] - average, 2.0);\n }\n bunsan = sum / (double)num;\n return Math.sqrt(bunsan);\n }\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n Main app = new Main();\n\n while (true) {\n int num = Integer.parseInt(scan.next());\n if (num == 0) {\n break;\n }\n int[] score = new int[num];\n double sd;\n for (int i = 0; i < num; i++) {\n score[i] = Integer.parseInt(scan.next());\n }\n\n sd = app.calcSD(score, num);\n System.out.println(sd);\n }\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public double calcAverage(int[] buf, int num) {\n double sum = 0;\n for (int i = 0; i < num; i++) {\n sum += (double)buf[i];\n }\n\n return sum/(double)num;\n }\n public double calcSD(int[] buf, int num) {\n double average = calcAverage(buf, num);\n double bunsan;\n double sum = 0.0;\n\n for (int i = 0; i < num; i++) {\n sum += Math.pow((double)buf[i] - average, 2.0);\n }\n bunsan = sum / (double)num;\n return Math.sqrt(bunsan);\n }\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n Main app = new Main();\n\n while (true) {\n int num = Integer.parseInt(scan.next());\n if (num == 0) {\n break;\n }\n int[] score = new int[num];\n double sd;\n for (int i = 0; i < num; i++) {\n score[i] = Integer.parseInt(scan.next());\n }\n\n sd = app.calcSD(score, num);\n System.out.println(sd);\n }\n }\n}", "Main", "public double calcAverage(int[] buf, int num) {\n double sum = 0;\n for (int i = 0; i < num; i++) {\n sum += (double)buf[i];\n }\n\n return sum/(double)num;\n }", "calcAverage", "{\n double sum = 0;\n for (int i = 0; i < num; i++) {\n sum += (double)buf[i];\n }\n\n return sum/(double)num;\n }", "double sum = 0;", "sum", "0", "for (int i = 0; i < num; i++) {\n sum += (double)buf[i];\n }", "int i = 0;", "int i = 0;", "i", "0", "i < num", "i", "num", "i++", "i++", "i", "{\n sum += (double)buf[i];\n }", "{\n sum += (double)buf[i];\n }", "sum += (double)buf[i]", "sum", "(double)buf[i]", "buf", "i", "return sum/(double)num;", "sum/(double)num", "sum", "(double)num", "int[] buf", "buf", "int num", "num", "public double calcSD(int[] buf, int num) {\n double average = calcAverage(buf, num);\n double bunsan;\n double sum = 0.0;\n\n for (int i = 0; i < num; i++) {\n sum += Math.pow((double)buf[i] - average, 2.0);\n }\n bunsan = sum / (double)num;\n return Math.sqrt(bunsan);\n }", "calcSD", "{\n double average = calcAverage(buf, num);\n double bunsan;\n double sum = 0.0;\n\n for (int i = 0; i < num; i++) {\n sum += Math.pow((double)buf[i] - average, 2.0);\n }\n bunsan = sum / (double)num;\n return Math.sqrt(bunsan);\n }", "double average = calcAverage(buf, num);", "average", "calcAverage(buf, num)", "calcAverage", "buf", "num", "double bunsan;", "bunsan", "double sum = 0.0;", "sum", "0.0", "for (int i = 0; i < num; i++) {\n sum += Math.pow((double)buf[i] - average, 2.0);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < num", "i", "num", "i++", "i++", "i", "{\n sum += Math.pow((double)buf[i] - average, 2.0);\n }", "{\n sum += Math.pow((double)buf[i] - average, 2.0);\n }", "sum += Math.pow((double)buf[i] - average, 2.0)", "sum", "Math.pow((double)buf[i] - average, 2.0)", "Math.pow", "Math", "(double)buf[i] - average", "(double)buf[i]", "buf", "i", "average", "2.0", "bunsan = sum / (double)num", "bunsan", "sum / (double)num", "sum", "(double)num", "return Math.sqrt(bunsan);", "Math.sqrt(bunsan)", "Math.sqrt", "Math", "bunsan", "int[] buf", "buf", "int num", "num", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n Main app = new Main();\n\n while (true) {\n int num = Integer.parseInt(scan.next());\n if (num == 0) {\n break;\n }\n int[] score = new int[num];\n double sd;\n for (int i = 0; i < num; i++) {\n score[i] = Integer.parseInt(scan.next());\n }\n\n sd = app.calcSD(score, num);\n System.out.println(sd);\n }\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n Main app = new Main();\n\n while (true) {\n int num = Integer.parseInt(scan.next());\n if (num == 0) {\n break;\n }\n int[] score = new int[num];\n double sd;\n for (int i = 0; i < num; i++) {\n score[i] = Integer.parseInt(scan.next());\n }\n\n sd = app.calcSD(score, num);\n System.out.println(sd);\n }\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "Main app = new Main();", "app", "new Main()", "while (true) {\n int num = Integer.parseInt(scan.next());\n if (num == 0) {\n break;\n }\n int[] score = new int[num];\n double sd;\n for (int i = 0; i < num; i++) {\n score[i] = Integer.parseInt(scan.next());\n }\n\n sd = app.calcSD(score, num);\n System.out.println(sd);\n }", "true", "{\n int num = Integer.parseInt(scan.next());\n if (num == 0) {\n break;\n }\n int[] score = new int[num];\n double sd;\n for (int i = 0; i < num; i++) {\n score[i] = Integer.parseInt(scan.next());\n }\n\n sd = app.calcSD(score, num);\n System.out.println(sd);\n }", "int num = Integer.parseInt(scan.next());", "num", "Integer.parseInt(scan.next())", "Integer.parseInt", "Integer", "scan.next()", "scan.next", "scan", "if (num == 0) {\n break;\n }", "num == 0", "num", "0", "{\n break;\n }", "break;", "int[] score = new int[num];", "score", "new int[num]", "num", "double sd;", "sd", "for (int i = 0; i < num; i++) {\n score[i] = Integer.parseInt(scan.next());\n }", "int i = 0;", "int i = 0;", "i", "0", "i < num", "i", "num", "i++", "i++", "i", "{\n score[i] = Integer.parseInt(scan.next());\n }", "{\n score[i] = Integer.parseInt(scan.next());\n }", "score[i] = Integer.parseInt(scan.next())", "score[i]", "score", "i", "Integer.parseInt(scan.next())", "Integer.parseInt", "Integer", "scan.next()", "scan.next", "scan", "sd = app.calcSD(score, num)", "sd", "app.calcSD(score, num)", "app.calcSD", "app", "score", "num", "System.out.println(sd)", "System.out.println", "System.out", "System", "System.out", "sd", "String[] args", "args", "public class Main {\n public double calcAverage(int[] buf, int num) {\n double sum = 0;\n for (int i = 0; i < num; i++) {\n sum += (double)buf[i];\n }\n\n return sum/(double)num;\n }\n public double calcSD(int[] buf, int num) {\n double average = calcAverage(buf, num);\n double bunsan;\n double sum = 0.0;\n\n for (int i = 0; i < num; i++) {\n sum += Math.pow((double)buf[i] - average, 2.0);\n }\n bunsan = sum / (double)num;\n return Math.sqrt(bunsan);\n }\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n Main app = new Main();\n\n while (true) {\n int num = Integer.parseInt(scan.next());\n if (num == 0) {\n break;\n }\n int[] score = new int[num];\n double sd;\n for (int i = 0; i < num; i++) {\n score[i] = Integer.parseInt(scan.next());\n }\n\n sd = app.calcSD(score, num);\n System.out.println(sd);\n }\n }\n}", "public class Main {\n public double calcAverage(int[] buf, int num) {\n double sum = 0;\n for (int i = 0; i < num; i++) {\n sum += (double)buf[i];\n }\n\n return sum/(double)num;\n }\n public double calcSD(int[] buf, int num) {\n double average = calcAverage(buf, num);\n double bunsan;\n double sum = 0.0;\n\n for (int i = 0; i < num; i++) {\n sum += Math.pow((double)buf[i] - average, 2.0);\n }\n bunsan = sum / (double)num;\n return Math.sqrt(bunsan);\n }\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n Main app = new Main();\n\n while (true) {\n int num = Integer.parseInt(scan.next());\n if (num == 0) {\n break;\n }\n int[] score = new int[num];\n double sd;\n for (int i = 0; i < num; i++) {\n score[i] = Integer.parseInt(scan.next());\n }\n\n sd = app.calcSD(score, num);\n System.out.println(sd);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public double calcAverage(int[] buf, int num) { double sum = 0; for (int i = 0; i < num; i++) { sum += (double)buf[i]; } return sum/(double)num; } public double calcSD(int[] buf, int num) { double average = calcAverage(buf, num); double bunsan; double sum = 0.0; for (int i = 0; i < num; i++) { sum += Math.pow((double)buf[i] - average, 2.0); } bunsan = sum / (double)num; return Math.sqrt(bunsan); } public static void main(String[] args) { Scanner scan = new Scanner(System.in); Main app = new Main(); while (true) { int num = Integer.parseInt(scan.next()); if (num == 0) { break; } int[] score = new int[num]; double sd; for (int i = 0; i < num; i++) { score[i] = Integer.parseInt(scan.next()); } sd = app.calcSD(score, num); System.out.println(sd); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 12, 13, 30, 0, 13, 20, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 0, 18, 18, 36, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 4, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 0, 13, 18, 13, 13, 29, 4, 18, 13, 13, 17, 12, 13, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 0, 13, 18, 13, 13, 29, 0, 13, 18, 13, 13, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 2, 13, 17, 29, 41, 13, 20, 4, 18, 13, 13, 4, 18, 18, 13, 13, 4, 18, 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 ], [ 9, 10 ], [ 7, 11 ], [ 11, 12 ], [ 11, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 11, 18 ], [ 18, 19 ], [ 7, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 30, 32 ], [ 23, 33 ], [ 33, 34 ], [ 34, 35 ], [ 23, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 37, 43 ], [ 43, 44 ], [ 44, 45 ], [ 20, 46 ], [ 46, 47 ], [ 7, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 50, 55 ], [ 55, 56 ], [ 55, 57 ], [ 50, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 58, 68 ], [ 68, 69 ], [ 69, 70 ], [ 58, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 74, 82 ], [ 50, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 50, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 89, 93 ], [ 7, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 107, 109 ], [ 100, 110 ], [ 110, 111 ], [ 111, 112 ], [ 100, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 116, 118 ], [ 96, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 122, 124 ], [ 0, 125 ], [ 169, 126 ], [ 169, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 129, 133 ], [ 133, 134 ], [ 129, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 141, 142 ], [ 137, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 137, 148 ], [ 148, 149 ], [ 148, 150 ], [ 137, 151 ], [ 151, 152 ], [ 152, 153 ], [ 151, 154 ], [ 137, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 155, 160 ], [ 160, 161 ], [ 161, 162 ], [ 137, 163 ], [ 163, 164 ], [ 164, 165 ], [ 127, 166 ], [ 166, 167 ], [ 0, 168 ], [ 168, 169 ], [ 168, 170 ] ]
[ "\nimport java.io.*;\nimport java.util.*;\n\n\nclass ProgrammingTestDataSet{\n\tint[] score;\n\tProgrammingTestDataSet(int numPersons){\n\t\tscore = new int[numPersons];\n\t}\n\tpublic void readScore(Scanner scan){\n\t\tfor(int i=0; i < score.length; i++)\n\t\t\tthis.score[i] = scan.nextInt();\n\t}\n\tpublic double StandardDeviation(){\n\t\tdouble mean = calcMean();\n\t\tdouble result = 0.0;\n\t\tfor(int i=0; i<score.length; i++)\n\t\t\tresult += Math.pow(score[i] - mean, 2);\n\t\tresult /= score.length;\n\t\treturn Math.pow(result, 0.5);\n\t}\n\tdouble calcMean(){\n\t\tdouble result = 0.0;\n\t\tfor(int i=0; i<score.length; i++)\n\t\t\tresult += score[i];\n\t\treturn result /= score.length;\n\t}\n}\npublic class Main{\n\tpublic static void main(String args[]){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint scannedInt;\n\t\twhile(true){\n\t\t\tscannedInt = scan.nextInt();\n\t\t\tif(scannedInt==0)\n\t\t\t\treturn;\n\t\t\tProgrammingTestDataSet dataset = new ProgrammingTestDataSet(scannedInt);\n\t\t\tdataset.readScore(scan);\n\t\t\tSystem.out.println(dataset.StandardDeviation());\n\t\t\tscan.nextLine();\n\t\t}\n\t}\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "class ProgrammingTestDataSet{\n\tint[] score;\n\tProgrammingTestDataSet(int numPersons){\n\t\tscore = new int[numPersons];\n\t}\n\tpublic void readScore(Scanner scan){\n\t\tfor(int i=0; i < score.length; i++)\n\t\t\tthis.score[i] = scan.nextInt();\n\t}\n\tpublic double StandardDeviation(){\n\t\tdouble mean = calcMean();\n\t\tdouble result = 0.0;\n\t\tfor(int i=0; i<score.length; i++)\n\t\t\tresult += Math.pow(score[i] - mean, 2);\n\t\tresult /= score.length;\n\t\treturn Math.pow(result, 0.5);\n\t}\n\tdouble calcMean(){\n\t\tdouble result = 0.0;\n\t\tfor(int i=0; i<score.length; i++)\n\t\t\tresult += score[i];\n\t\treturn result /= score.length;\n\t}\n}", "ProgrammingTestDataSet", "int[] score;", "score", "ProgrammingTestDataSet(int numPersons){\n\t\tscore = new int[numPersons];\n\t}", "ProgrammingTestDataSet", "{\n\t\tscore = new int[numPersons];\n\t}", "score = new int[numPersons]", "score", "new int[numPersons]", "numPersons", "int numPersons", "numPersons", "public void readScore(Scanner scan){\n\t\tfor(int i=0; i < score.length; i++)\n\t\t\tthis.score[i] = scan.nextInt();\n\t}", "readScore", "{\n\t\tfor(int i=0; i < score.length; i++)\n\t\t\tthis.score[i] = scan.nextInt();\n\t}", "for(int i=0; i < score.length; i++)\n\t\t\tthis.score[i] = scan.nextInt();", "int i=0;", "int i=0;", "i", "0", "i < score.length", "i", "score.length", "score", "score.length", "i++", "i++", "i", "this.score[i] = scan.nextInt();", "this.score[i] = scan.nextInt()", "this.score[i]", "this.score", "this", "this.score", "i", "scan.nextInt()", "scan.nextInt", "scan", "Scanner scan", "scan", "public double StandardDeviation(){\n\t\tdouble mean = calcMean();\n\t\tdouble result = 0.0;\n\t\tfor(int i=0; i<score.length; i++)\n\t\t\tresult += Math.pow(score[i] - mean, 2);\n\t\tresult /= score.length;\n\t\treturn Math.pow(result, 0.5);\n\t}", "StandardDeviation", "{\n\t\tdouble mean = calcMean();\n\t\tdouble result = 0.0;\n\t\tfor(int i=0; i<score.length; i++)\n\t\t\tresult += Math.pow(score[i] - mean, 2);\n\t\tresult /= score.length;\n\t\treturn Math.pow(result, 0.5);\n\t}", "double mean = calcMean();", "mean", "calcMean()", "calcMean", "double result = 0.0;", "result", "0.0", "for(int i=0; i<score.length; i++)\n\t\t\tresult += Math.pow(score[i] - mean, 2);", "int i=0;", "int i=0;", "i", "0", "i<score.length", "i", "score.length", "score", "score.length", "i++", "i++", "i", "result += Math.pow(score[i] - mean, 2);", "result += Math.pow(score[i] - mean, 2)", "result", "Math.pow(score[i] - mean, 2)", "Math.pow", "Math", "score[i] - mean", "score[i]", "score", "i", "mean", "2", "result /= score.length", "result", "score.length", "score", "score.length", "return Math.pow(result, 0.5);", "Math.pow(result, 0.5)", "Math.pow", "Math", "result", "0.5", "double calcMean(){\n\t\tdouble result = 0.0;\n\t\tfor(int i=0; i<score.length; i++)\n\t\t\tresult += score[i];\n\t\treturn result /= score.length;\n\t}", "calcMean", "{\n\t\tdouble result = 0.0;\n\t\tfor(int i=0; i<score.length; i++)\n\t\t\tresult += score[i];\n\t\treturn result /= score.length;\n\t}", "double result = 0.0;", "result", "0.0", "for(int i=0; i<score.length; i++)\n\t\t\tresult += score[i];", "int i=0;", "int i=0;", "i", "0", "i<score.length", "i", "score.length", "score", "score.length", "i++", "i++", "i", "result += score[i];", "result += score[i]", "result", "score[i]", "score", "i", "return result /= score.length;", "result /= score.length", "result", "score.length", "score", "score.length", "public class Main{\n\tpublic static void main(String args[]){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint scannedInt;\n\t\twhile(true){\n\t\t\tscannedInt = scan.nextInt();\n\t\t\tif(scannedInt==0)\n\t\t\t\treturn;\n\t\t\tProgrammingTestDataSet dataset = new ProgrammingTestDataSet(scannedInt);\n\t\t\tdataset.readScore(scan);\n\t\t\tSystem.out.println(dataset.StandardDeviation());\n\t\t\tscan.nextLine();\n\t\t}\n\t}\n}", "Main", "public static void main(String args[]){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint scannedInt;\n\t\twhile(true){\n\t\t\tscannedInt = scan.nextInt();\n\t\t\tif(scannedInt==0)\n\t\t\t\treturn;\n\t\t\tProgrammingTestDataSet dataset = new ProgrammingTestDataSet(scannedInt);\n\t\t\tdataset.readScore(scan);\n\t\t\tSystem.out.println(dataset.StandardDeviation());\n\t\t\tscan.nextLine();\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint scannedInt;\n\t\twhile(true){\n\t\t\tscannedInt = scan.nextInt();\n\t\t\tif(scannedInt==0)\n\t\t\t\treturn;\n\t\t\tProgrammingTestDataSet dataset = new ProgrammingTestDataSet(scannedInt);\n\t\t\tdataset.readScore(scan);\n\t\t\tSystem.out.println(dataset.StandardDeviation());\n\t\t\tscan.nextLine();\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int scannedInt;", "scannedInt", "while(true){\n\t\t\tscannedInt = scan.nextInt();\n\t\t\tif(scannedInt==0)\n\t\t\t\treturn;\n\t\t\tProgrammingTestDataSet dataset = new ProgrammingTestDataSet(scannedInt);\n\t\t\tdataset.readScore(scan);\n\t\t\tSystem.out.println(dataset.StandardDeviation());\n\t\t\tscan.nextLine();\n\t\t}", "true", "{\n\t\t\tscannedInt = scan.nextInt();\n\t\t\tif(scannedInt==0)\n\t\t\t\treturn;\n\t\t\tProgrammingTestDataSet dataset = new ProgrammingTestDataSet(scannedInt);\n\t\t\tdataset.readScore(scan);\n\t\t\tSystem.out.println(dataset.StandardDeviation());\n\t\t\tscan.nextLine();\n\t\t}", "scannedInt = scan.nextInt()", "scannedInt", "scan.nextInt()", "scan.nextInt", "scan", "if(scannedInt==0)\n\t\t\t\treturn;", "scannedInt==0", "scannedInt", "0", "return;", "ProgrammingTestDataSet dataset = new ProgrammingTestDataSet(scannedInt);", "dataset", "new ProgrammingTestDataSet(scannedInt)", "dataset.readScore(scan)", "dataset.readScore", "dataset", "scan", "System.out.println(dataset.StandardDeviation())", "System.out.println", "System.out", "System", "System.out", "dataset.StandardDeviation()", "dataset.StandardDeviation", "dataset", "scan.nextLine()", "scan.nextLine", "scan", "String args[]", "args", "public class Main{\n\tpublic static void main(String args[]){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint scannedInt;\n\t\twhile(true){\n\t\t\tscannedInt = scan.nextInt();\n\t\t\tif(scannedInt==0)\n\t\t\t\treturn;\n\t\t\tProgrammingTestDataSet dataset = new ProgrammingTestDataSet(scannedInt);\n\t\t\tdataset.readScore(scan);\n\t\t\tSystem.out.println(dataset.StandardDeviation());\n\t\t\tscan.nextLine();\n\t\t}\n\t}\n}", "public class Main{\n\tpublic static void main(String args[]){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint scannedInt;\n\t\twhile(true){\n\t\t\tscannedInt = scan.nextInt();\n\t\t\tif(scannedInt==0)\n\t\t\t\treturn;\n\t\t\tProgrammingTestDataSet dataset = new ProgrammingTestDataSet(scannedInt);\n\t\t\tdataset.readScore(scan);\n\t\t\tSystem.out.println(dataset.StandardDeviation());\n\t\t\tscan.nextLine();\n\t\t}\n\t}\n}", "Main" ]
import java.io.*; import java.util.*; class ProgrammingTestDataSet{ int[] score; ProgrammingTestDataSet(int numPersons){ score = new int[numPersons]; } public void readScore(Scanner scan){ for(int i=0; i < score.length; i++) this.score[i] = scan.nextInt(); } public double StandardDeviation(){ double mean = calcMean(); double result = 0.0; for(int i=0; i<score.length; i++) result += Math.pow(score[i] - mean, 2); result /= score.length; return Math.pow(result, 0.5); } double calcMean(){ double result = 0.0; for(int i=0; i<score.length; i++) result += score[i]; return result /= score.length; } } public class Main{ public static void main(String args[]){ Scanner scan = new Scanner(System.in); int scannedInt; while(true){ scannedInt = scan.nextInt(); if(scannedInt==0) return; ProgrammingTestDataSet dataset = new ProgrammingTestDataSet(scannedInt); dataset.readScore(scan); System.out.println(dataset.StandardDeviation()); scan.nextLine(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 4, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 4, 13, 13, 17, 0, 13, 18, 13, 13, 0, 13, 4, 18, 13, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 18, 13, 13, 29, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 154, 5 ], [ 154, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 27, 28 ], [ 17, 29 ], [ 29, 30 ], [ 29, 31 ], [ 17, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 33, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 17, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 17, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 8, 64 ], [ 64, 65 ], [ 65, 66 ], [ 6, 67 ], [ 67, 68 ], [ 154, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 82, 84 ], [ 75, 85 ], [ 85, 86 ], [ 86, 87 ], [ 75, 88 ], [ 89, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 99, 100 ], [ 99, 101 ], [ 92, 102 ], [ 71, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 71, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 71, 114 ], [ 114, 115 ], [ 69, 116 ], [ 116, 117 ], [ 154, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 131, 133 ], [ 124, 134 ], [ 134, 135 ], [ 135, 136 ], [ 124, 137 ], [ 138, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 141, 142 ], [ 141, 143 ], [ 120, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 146, 148 ], [ 120, 149 ], [ 149, 150 ], [ 118, 151 ], [ 151, 152 ], [ 0, 153 ], [ 153, 154 ], [ 153, 155 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tdouble dev = 0.0;\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tdo {\n\t\t\tint n = sc.nextInt();\n\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] grade = new int[n];\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tgrade[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tdev = deviation(grade);\n\n\t\t\tSystem.out.println(dev);\n\n\n\t\t}while(true);\n\n\t\tsc.close();\n\t}\n\n\tprivate static double deviation(int[] grade) {\n\t\tdouble deviation = 0;\n\n\t\tfor (int i = 0; i < grade.length; i++) {\n\t\t\tdeviation += Math.pow( grade[i] - average(grade) , 2);\n\t\t}\n\n\t\tdeviation /= grade.length;\n\t\tdeviation = Math.sqrt(deviation);\n\t\treturn deviation;\n\t}\n\n\tpublic static double average(int[] grade) {\n\t\tdouble average = 0;\n\n\t\tfor (int i = 0; i < grade.length; i++) {\n\t\t\taverage += grade[i];\n\t\t}\n\n\t\taverage /= grade.length;\n\n\t\treturn average;\n\t}\n\n\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tdouble dev = 0.0;\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tdo {\n\t\t\tint n = sc.nextInt();\n\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] grade = new int[n];\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tgrade[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tdev = deviation(grade);\n\n\t\t\tSystem.out.println(dev);\n\n\n\t\t}while(true);\n\n\t\tsc.close();\n\t}\n\n\tprivate static double deviation(int[] grade) {\n\t\tdouble deviation = 0;\n\n\t\tfor (int i = 0; i < grade.length; i++) {\n\t\t\tdeviation += Math.pow( grade[i] - average(grade) , 2);\n\t\t}\n\n\t\tdeviation /= grade.length;\n\t\tdeviation = Math.sqrt(deviation);\n\t\treturn deviation;\n\t}\n\n\tpublic static double average(int[] grade) {\n\t\tdouble average = 0;\n\n\t\tfor (int i = 0; i < grade.length; i++) {\n\t\t\taverage += grade[i];\n\t\t}\n\n\t\taverage /= grade.length;\n\n\t\treturn average;\n\t}\n\n\n}", "Main", "public static void main(String[] args) {\n\t\tdouble dev = 0.0;\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tdo {\n\t\t\tint n = sc.nextInt();\n\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] grade = new int[n];\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tgrade[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tdev = deviation(grade);\n\n\t\t\tSystem.out.println(dev);\n\n\n\t\t}while(true);\n\n\t\tsc.close();\n\t}", "main", "{\n\t\tdouble dev = 0.0;\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tdo {\n\t\t\tint n = sc.nextInt();\n\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] grade = new int[n];\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tgrade[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tdev = deviation(grade);\n\n\t\t\tSystem.out.println(dev);\n\n\n\t\t}while(true);\n\n\t\tsc.close();\n\t}", "double dev = 0.0;", "dev", "0.0", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "do {\n\t\t\tint n = sc.nextInt();\n\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] grade = new int[n];\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tgrade[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tdev = deviation(grade);\n\n\t\t\tSystem.out.println(dev);\n\n\n\t\t}while(true);", "true", "{\n\t\t\tint n = sc.nextInt();\n\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] grade = new int[n];\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tgrade[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tdev = deviation(grade);\n\n\t\t\tSystem.out.println(dev);\n\n\n\t\t}", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}", "n == 0", "n", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "int[] grade = new int[n];", "grade", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n\t\t\t\tgrade[i] = sc.nextInt();\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tgrade[i] = sc.nextInt();\n\t\t\t}", "{\n\t\t\t\tgrade[i] = sc.nextInt();\n\t\t\t}", "grade[i] = sc.nextInt()", "grade[i]", "grade", "i", "sc.nextInt()", "sc.nextInt", "sc", "dev = deviation(grade)", "dev", "deviation(grade)", "deviation", "grade", "System.out.println(dev)", "System.out.println", "System.out", "System", "System.out", "dev", "sc.close()", "sc.close", "sc", "String[] args", "args", "private static double deviation(int[] grade) {\n\t\tdouble deviation = 0;\n\n\t\tfor (int i = 0; i < grade.length; i++) {\n\t\t\tdeviation += Math.pow( grade[i] - average(grade) , 2);\n\t\t}\n\n\t\tdeviation /= grade.length;\n\t\tdeviation = Math.sqrt(deviation);\n\t\treturn deviation;\n\t}", "deviation", "{\n\t\tdouble deviation = 0;\n\n\t\tfor (int i = 0; i < grade.length; i++) {\n\t\t\tdeviation += Math.pow( grade[i] - average(grade) , 2);\n\t\t}\n\n\t\tdeviation /= grade.length;\n\t\tdeviation = Math.sqrt(deviation);\n\t\treturn deviation;\n\t}", "double deviation = 0;", "deviation", "0", "for (int i = 0; i < grade.length; i++) {\n\t\t\tdeviation += Math.pow( grade[i] - average(grade) , 2);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < grade.length", "i", "grade.length", "grade", "grade.length", "i++", "i++", "i", "{\n\t\t\tdeviation += Math.pow( grade[i] - average(grade) , 2);\n\t\t}", "{\n\t\t\tdeviation += Math.pow( grade[i] - average(grade) , 2);\n\t\t}", "deviation += Math.pow( grade[i] - average(grade) , 2)", "deviation", "Math.pow( grade[i] - average(grade) , 2)", "Math.pow", "Math", "grade[i] - average(grade)", "grade[i]", "grade", "i", "average(grade)", "average", "grade", "2", "deviation /= grade.length", "deviation", "grade.length", "grade", "grade.length", "deviation = Math.sqrt(deviation)", "deviation", "Math.sqrt(deviation)", "Math.sqrt", "Math", "deviation", "return deviation;", "deviation", "int[] grade", "grade", "public static double average(int[] grade) {\n\t\tdouble average = 0;\n\n\t\tfor (int i = 0; i < grade.length; i++) {\n\t\t\taverage += grade[i];\n\t\t}\n\n\t\taverage /= grade.length;\n\n\t\treturn average;\n\t}", "average", "{\n\t\tdouble average = 0;\n\n\t\tfor (int i = 0; i < grade.length; i++) {\n\t\t\taverage += grade[i];\n\t\t}\n\n\t\taverage /= grade.length;\n\n\t\treturn average;\n\t}", "double average = 0;", "average", "0", "for (int i = 0; i < grade.length; i++) {\n\t\t\taverage += grade[i];\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < grade.length", "i", "grade.length", "grade", "grade.length", "i++", "i++", "i", "{\n\t\t\taverage += grade[i];\n\t\t}", "{\n\t\t\taverage += grade[i];\n\t\t}", "average += grade[i]", "average", "grade[i]", "grade", "i", "average /= grade.length", "average", "grade.length", "grade", "grade.length", "return average;", "average", "int[] grade", "grade", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tdouble dev = 0.0;\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tdo {\n\t\t\tint n = sc.nextInt();\n\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] grade = new int[n];\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tgrade[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tdev = deviation(grade);\n\n\t\t\tSystem.out.println(dev);\n\n\n\t\t}while(true);\n\n\t\tsc.close();\n\t}\n\n\tprivate static double deviation(int[] grade) {\n\t\tdouble deviation = 0;\n\n\t\tfor (int i = 0; i < grade.length; i++) {\n\t\t\tdeviation += Math.pow( grade[i] - average(grade) , 2);\n\t\t}\n\n\t\tdeviation /= grade.length;\n\t\tdeviation = Math.sqrt(deviation);\n\t\treturn deviation;\n\t}\n\n\tpublic static double average(int[] grade) {\n\t\tdouble average = 0;\n\n\t\tfor (int i = 0; i < grade.length; i++) {\n\t\t\taverage += grade[i];\n\t\t}\n\n\t\taverage /= grade.length;\n\n\t\treturn average;\n\t}\n\n\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tdouble dev = 0.0;\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tdo {\n\t\t\tint n = sc.nextInt();\n\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] grade = new int[n];\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tgrade[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tdev = deviation(grade);\n\n\t\t\tSystem.out.println(dev);\n\n\n\t\t}while(true);\n\n\t\tsc.close();\n\t}\n\n\tprivate static double deviation(int[] grade) {\n\t\tdouble deviation = 0;\n\n\t\tfor (int i = 0; i < grade.length; i++) {\n\t\t\tdeviation += Math.pow( grade[i] - average(grade) , 2);\n\t\t}\n\n\t\tdeviation /= grade.length;\n\t\tdeviation = Math.sqrt(deviation);\n\t\treturn deviation;\n\t}\n\n\tpublic static double average(int[] grade) {\n\t\tdouble average = 0;\n\n\t\tfor (int i = 0; i < grade.length; i++) {\n\t\t\taverage += grade[i];\n\t\t}\n\n\t\taverage /= grade.length;\n\n\t\treturn average;\n\t}\n\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { double dev = 0.0; Scanner sc = new Scanner(System.in); do { int n = sc.nextInt(); if (n == 0) { break; } int[] grade = new int[n]; for (int i = 0; i < n; i++) { grade[i] = sc.nextInt(); } dev = deviation(grade); System.out.println(dev); }while(true); sc.close(); } private static double deviation(int[] grade) { double deviation = 0; for (int i = 0; i < grade.length; i++) { deviation += Math.pow( grade[i] - average(grade) , 2); } deviation /= grade.length; deviation = Math.sqrt(deviation); return deviation; } public static double average(int[] grade) { double average = 0; for (int i = 0; i < grade.length; i++) { average += grade[i]; } average /= grade.length; return average; } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 17, 41, 13, 20, 13, 41, 13, 41, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 4, 18, 13, 2, 18, 13, 13, 13, 17, 13, 0, 13, 4, 18, 13, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 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 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 20, 32 ], [ 32, 33 ], [ 32, 34 ], [ 20, 35 ], [ 35, 36 ], [ 35, 37 ], [ 20, 39 ], [ 39, 40 ], [ 20, 41 ], [ 41, 42 ], [ 20, 43 ], [ 43, 44 ], [ 43, 45 ], [ 20, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 51, 52 ], [ 51, 53 ], [ 46, 54 ], [ 54, 55 ], [ 55, 56 ], [ 46, 57 ], [ 58, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 64, 65 ], [ 58, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 20, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 20, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 81, 82 ], [ 81, 83 ], [ 76, 84 ], [ 84, 85 ], [ 85, 86 ], [ 76, 87 ], [ 88, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 92, 100 ], [ 91, 101 ], [ 20, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 20, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 11, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 120, 121 ], [ 112, 122 ], [ 122, 123 ], [ 123, 124 ], [ 112, 125 ], [ 126, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 127, 132 ], [ 127, 133 ], [ 133, 134 ], [ 134, 135 ], [ 133, 136 ], [ 11, 137 ], [ 137, 138 ], [ 138, 139 ], [ 9, 140 ], [ 140, 141 ], [ 0, 142 ], [ 142, 143 ], [ 142, 144 ] ]
[ "import java.util.Scanner;\nimport java.util.ArrayList;\n\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<Double> data = new ArrayList<>();\n\t\twhile (true) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m;\n\t\t\tdouble a;\n\t\t\tdouble sigma = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tm = (double) sum / n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsigma += Math.pow(s[i] - m, 2) / n;\n\t\t\t}\n\t\t\ta = Math.sqrt(sigma);\n\t\t\tdata.add(a);\n\t\t}\n\t\tfor (int i = 0; i < data.size(); i++) {\n\t\t\tSystem.out.printf(\"%f%n\", data.get(i));\n\t\t}\n\t\tsc.close();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.ArrayList;", "ArrayList", "java.util", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<Double> data = new ArrayList<>();\n\t\twhile (true) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m;\n\t\t\tdouble a;\n\t\t\tdouble sigma = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tm = (double) sum / n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsigma += Math.pow(s[i] - m, 2) / n;\n\t\t\t}\n\t\t\ta = Math.sqrt(sigma);\n\t\t\tdata.add(a);\n\t\t}\n\t\tfor (int i = 0; i < data.size(); i++) {\n\t\t\tSystem.out.printf(\"%f%n\", data.get(i));\n\t\t}\n\t\tsc.close();\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<Double> data = new ArrayList<>();\n\t\twhile (true) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m;\n\t\t\tdouble a;\n\t\t\tdouble sigma = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tm = (double) sum / n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsigma += Math.pow(s[i] - m, 2) / n;\n\t\t\t}\n\t\t\ta = Math.sqrt(sigma);\n\t\t\tdata.add(a);\n\t\t}\n\t\tfor (int i = 0; i < data.size(); i++) {\n\t\t\tSystem.out.printf(\"%f%n\", data.get(i));\n\t\t}\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<Double> data = new ArrayList<>();\n\t\twhile (true) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m;\n\t\t\tdouble a;\n\t\t\tdouble sigma = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tm = (double) sum / n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsigma += Math.pow(s[i] - m, 2) / n;\n\t\t\t}\n\t\t\ta = Math.sqrt(sigma);\n\t\t\tdata.add(a);\n\t\t}\n\t\tfor (int i = 0; i < data.size(); i++) {\n\t\t\tSystem.out.printf(\"%f%n\", data.get(i));\n\t\t}\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "ArrayList<Double> data = new ArrayList<>();", "data", "new ArrayList<>()", "while (true) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m;\n\t\t\tdouble a;\n\t\t\tdouble sigma = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tm = (double) sum / n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsigma += Math.pow(s[i] - m, 2) / n;\n\t\t\t}\n\t\t\ta = Math.sqrt(sigma);\n\t\t\tdata.add(a);\n\t\t}", "true", "{\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m;\n\t\t\tdouble a;\n\t\t\tdouble sigma = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tm = (double) sum / n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsigma += Math.pow(s[i] - m, 2) / n;\n\t\t\t}\n\t\t\ta = Math.sqrt(sigma);\n\t\t\tdata.add(a);\n\t\t}", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}", "n == 0", "n", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "int sum = 0;", "sum", "0", "int[] s = new int[n];", "s", "new int[n]", "n", "double m;", "m", "double a;", "a", "double sigma = 0;", "sigma", "0", "for (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}", "{\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}", "s[i] = sc.nextInt()", "s[i]", "s", "i", "sc.nextInt()", "sc.nextInt", "sc", "sum += s[i]", "sum", "s[i]", "s", "i", "m = (double) sum / n", "m", "(double) sum / n", "(double) sum", "n", "for (int i = 0; i < n; i++) {\n\t\t\t\tsigma += Math.pow(s[i] - m, 2) / n;\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tsigma += Math.pow(s[i] - m, 2) / n;\n\t\t\t}", "{\n\t\t\t\tsigma += Math.pow(s[i] - m, 2) / n;\n\t\t\t}", "sigma += Math.pow(s[i] - m, 2) / n", "sigma", "Math.pow(s[i] - m, 2) / n", "Math.pow(s[i] - m, 2)", "Math.pow", "Math", "s[i] - m", "s[i]", "s", "i", "m", "2", "n", "a = Math.sqrt(sigma)", "a", "Math.sqrt(sigma)", "Math.sqrt", "Math", "sigma", "data.add(a)", "data.add", "data", "a", "for (int i = 0; i < data.size(); i++) {\n\t\t\tSystem.out.printf(\"%f%n\", data.get(i));\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < data.size()", "i", "data.size()", "data.size", "data", "i++", "i++", "i", "{\n\t\t\tSystem.out.printf(\"%f%n\", data.get(i));\n\t\t}", "{\n\t\t\tSystem.out.printf(\"%f%n\", data.get(i));\n\t\t}", "System.out.printf(\"%f%n\", data.get(i))", "System.out.printf", "System.out", "System", "System.out", "\"%f%n\"", "data.get(i)", "data.get", "data", "i", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<Double> data = new ArrayList<>();\n\t\twhile (true) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m;\n\t\t\tdouble a;\n\t\t\tdouble sigma = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tm = (double) sum / n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsigma += Math.pow(s[i] - m, 2) / n;\n\t\t\t}\n\t\t\ta = Math.sqrt(sigma);\n\t\t\tdata.add(a);\n\t\t}\n\t\tfor (int i = 0; i < data.size(); i++) {\n\t\t\tSystem.out.printf(\"%f%n\", data.get(i));\n\t\t}\n\t\tsc.close();\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<Double> data = new ArrayList<>();\n\t\twhile (true) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m;\n\t\t\tdouble a;\n\t\t\tdouble sigma = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tm = (double) sum / n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsigma += Math.pow(s[i] - m, 2) / n;\n\t\t\t}\n\t\t\ta = Math.sqrt(sigma);\n\t\t\tdata.add(a);\n\t\t}\n\t\tfor (int i = 0; i < data.size(); i++) {\n\t\t\tSystem.out.printf(\"%f%n\", data.get(i));\n\t\t}\n\t\tsc.close();\n\t}\n}", "Main" ]
import java.util.Scanner; import java.util.ArrayList; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); ArrayList<Double> data = new ArrayList<>(); while (true) { int n = sc.nextInt(); if (n == 0) { break; } int sum = 0; int[] s = new int[n]; double m; double a; double sigma = 0; for (int i = 0; i < n; i++) { s[i] = sc.nextInt(); sum += s[i]; } m = (double) sum / n; for (int i = 0; i < n; i++) { sigma += Math.pow(s[i] - m, 2) / n; } a = Math.sqrt(sigma); data.add(a); } for (int i = 0; i < data.size(); i++) { System.out.printf("%f%n", data.get(i)); } sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 20, 41, 13, 20, 42, 2, 13, 17, 30, 0, 13, 17, 0, 13, 17, 0, 13, 17, 0, 13, 17, 0, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 13, 0, 13, 13, 0, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 4, 18, 13, 13, 13, 17, 0, 13, 13, 0, 13, 4, 18, 13, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 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 ], [ 158, 8 ], [ 158, 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 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 11, 26 ], [ 26, 27 ], [ 26, 28 ], [ 11, 29 ], [ 29, 30 ], [ 29, 31 ], [ 11, 32 ], [ 32, 33 ], [ 32, 34 ], [ 11, 35 ], [ 35, 36 ], [ 35, 37 ], [ 11, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 46, 48 ], [ 42, 49 ], [ 49, 50 ], [ 49, 51 ], [ 42, 52 ], [ 52, 53 ], [ 52, 54 ], [ 42, 55 ], [ 55, 56 ], [ 55, 57 ], [ 42, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 58, 66 ], [ 66, 67 ], [ 67, 68 ], [ 58, 69 ], [ 70, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 70, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 70, 80 ], [ 80, 81 ], [ 80, 82 ], [ 42, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 42, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 93, 94 ], [ 93, 95 ], [ 88, 96 ], [ 96, 97 ], [ 97, 98 ], [ 88, 99 ], [ 100, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 106, 111 ], [ 103, 112 ], [ 42, 113 ], [ 113, 114 ], [ 113, 115 ], [ 42, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 119, 120 ], [ 118, 121 ], [ 42, 122 ], [ 122, 123 ], [ 123, 124 ], [ 122, 125 ], [ 42, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 129, 130 ], [ 11, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 131, 136 ], [ 136, 137 ], [ 136, 138 ], [ 138, 139 ], [ 139, 140 ], [ 131, 141 ], [ 141, 142 ], [ 142, 143 ], [ 131, 144 ], [ 145, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 146, 151 ], [ 151, 152 ], [ 152, 153 ], [ 151, 154 ], [ 9, 155 ], [ 155, 156 ], [ 0, 157 ], [ 157, 158 ], [ 157, 159 ] ]
[ "import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint intLoop = scan.nextInt();\n\t\tdouble dbAve = 0;\n\t\tint intTemp = 0;\n\t\tdouble dbVariance = 0;\n\t\tdouble dbDeviation = 0;\n\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\tArrayList<Double> devList = new ArrayList<Double>();\n\t\twhile (intLoop != 0) {\n\t\t\tdbAve = 0;\n\t\t\tintTemp = 0;\n\t\t\tdbVariance = 0;\n\t\t\tdbDeviation = 0;\n\t\t\tlist = new ArrayList<Integer>();\n\t\t\tfor (int i = 0; i < intLoop; i++) {\n\t\t\t\tintTemp = scan.nextInt();\n\t\t\t\tlist.add(intTemp);\n\t\t\t\tdbAve += intTemp;\n\t\t\t}\n\t\t\tdbAve = dbAve / intLoop;\n\t\t\tfor (int i = 0; i < intLoop; i++) {\n\t\t\t\tdbVariance += Math.pow(list.get(i) - dbAve, 2);\n\t\t\t}\n\t\t\tdbVariance /= intLoop;\n\t\t\tdbDeviation = Math.sqrt(dbVariance);\n\t\t\tdevList.add(dbDeviation);\n\t\t\tintLoop = scan.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < devList.size(); i++){\n\t\t\tSystem.out.println(devList.get(i));\n\t\t}\n\t}\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint intLoop = scan.nextInt();\n\t\tdouble dbAve = 0;\n\t\tint intTemp = 0;\n\t\tdouble dbVariance = 0;\n\t\tdouble dbDeviation = 0;\n\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\tArrayList<Double> devList = new ArrayList<Double>();\n\t\twhile (intLoop != 0) {\n\t\t\tdbAve = 0;\n\t\t\tintTemp = 0;\n\t\t\tdbVariance = 0;\n\t\t\tdbDeviation = 0;\n\t\t\tlist = new ArrayList<Integer>();\n\t\t\tfor (int i = 0; i < intLoop; i++) {\n\t\t\t\tintTemp = scan.nextInt();\n\t\t\t\tlist.add(intTemp);\n\t\t\t\tdbAve += intTemp;\n\t\t\t}\n\t\t\tdbAve = dbAve / intLoop;\n\t\t\tfor (int i = 0; i < intLoop; i++) {\n\t\t\t\tdbVariance += Math.pow(list.get(i) - dbAve, 2);\n\t\t\t}\n\t\t\tdbVariance /= intLoop;\n\t\t\tdbDeviation = Math.sqrt(dbVariance);\n\t\t\tdevList.add(dbDeviation);\n\t\t\tintLoop = scan.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < devList.size(); i++){\n\t\t\tSystem.out.println(devList.get(i));\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint intLoop = scan.nextInt();\n\t\tdouble dbAve = 0;\n\t\tint intTemp = 0;\n\t\tdouble dbVariance = 0;\n\t\tdouble dbDeviation = 0;\n\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\tArrayList<Double> devList = new ArrayList<Double>();\n\t\twhile (intLoop != 0) {\n\t\t\tdbAve = 0;\n\t\t\tintTemp = 0;\n\t\t\tdbVariance = 0;\n\t\t\tdbDeviation = 0;\n\t\t\tlist = new ArrayList<Integer>();\n\t\t\tfor (int i = 0; i < intLoop; i++) {\n\t\t\t\tintTemp = scan.nextInt();\n\t\t\t\tlist.add(intTemp);\n\t\t\t\tdbAve += intTemp;\n\t\t\t}\n\t\t\tdbAve = dbAve / intLoop;\n\t\t\tfor (int i = 0; i < intLoop; i++) {\n\t\t\t\tdbVariance += Math.pow(list.get(i) - dbAve, 2);\n\t\t\t}\n\t\t\tdbVariance /= intLoop;\n\t\t\tdbDeviation = Math.sqrt(dbVariance);\n\t\t\tdevList.add(dbDeviation);\n\t\t\tintLoop = scan.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < devList.size(); i++){\n\t\t\tSystem.out.println(devList.get(i));\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint intLoop = scan.nextInt();\n\t\tdouble dbAve = 0;\n\t\tint intTemp = 0;\n\t\tdouble dbVariance = 0;\n\t\tdouble dbDeviation = 0;\n\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\tArrayList<Double> devList = new ArrayList<Double>();\n\t\twhile (intLoop != 0) {\n\t\t\tdbAve = 0;\n\t\t\tintTemp = 0;\n\t\t\tdbVariance = 0;\n\t\t\tdbDeviation = 0;\n\t\t\tlist = new ArrayList<Integer>();\n\t\t\tfor (int i = 0; i < intLoop; i++) {\n\t\t\t\tintTemp = scan.nextInt();\n\t\t\t\tlist.add(intTemp);\n\t\t\t\tdbAve += intTemp;\n\t\t\t}\n\t\t\tdbAve = dbAve / intLoop;\n\t\t\tfor (int i = 0; i < intLoop; i++) {\n\t\t\t\tdbVariance += Math.pow(list.get(i) - dbAve, 2);\n\t\t\t}\n\t\t\tdbVariance /= intLoop;\n\t\t\tdbDeviation = Math.sqrt(dbVariance);\n\t\t\tdevList.add(dbDeviation);\n\t\t\tintLoop = scan.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < devList.size(); i++){\n\t\t\tSystem.out.println(devList.get(i));\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int intLoop = scan.nextInt();", "intLoop", "scan.nextInt()", "scan.nextInt", "scan", "double dbAve = 0;", "dbAve", "0", "int intTemp = 0;", "intTemp", "0", "double dbVariance = 0;", "dbVariance", "0", "double dbDeviation = 0;", "dbDeviation", "0", "ArrayList<Integer> list = new ArrayList<Integer>();", "list", "new ArrayList<Integer>()", "ArrayList<Double> devList = new ArrayList<Double>();", "devList", "new ArrayList<Double>()", "while (intLoop != 0) {\n\t\t\tdbAve = 0;\n\t\t\tintTemp = 0;\n\t\t\tdbVariance = 0;\n\t\t\tdbDeviation = 0;\n\t\t\tlist = new ArrayList<Integer>();\n\t\t\tfor (int i = 0; i < intLoop; i++) {\n\t\t\t\tintTemp = scan.nextInt();\n\t\t\t\tlist.add(intTemp);\n\t\t\t\tdbAve += intTemp;\n\t\t\t}\n\t\t\tdbAve = dbAve / intLoop;\n\t\t\tfor (int i = 0; i < intLoop; i++) {\n\t\t\t\tdbVariance += Math.pow(list.get(i) - dbAve, 2);\n\t\t\t}\n\t\t\tdbVariance /= intLoop;\n\t\t\tdbDeviation = Math.sqrt(dbVariance);\n\t\t\tdevList.add(dbDeviation);\n\t\t\tintLoop = scan.nextInt();\n\t\t}", "intLoop != 0", "intLoop", "0", "{\n\t\t\tdbAve = 0;\n\t\t\tintTemp = 0;\n\t\t\tdbVariance = 0;\n\t\t\tdbDeviation = 0;\n\t\t\tlist = new ArrayList<Integer>();\n\t\t\tfor (int i = 0; i < intLoop; i++) {\n\t\t\t\tintTemp = scan.nextInt();\n\t\t\t\tlist.add(intTemp);\n\t\t\t\tdbAve += intTemp;\n\t\t\t}\n\t\t\tdbAve = dbAve / intLoop;\n\t\t\tfor (int i = 0; i < intLoop; i++) {\n\t\t\t\tdbVariance += Math.pow(list.get(i) - dbAve, 2);\n\t\t\t}\n\t\t\tdbVariance /= intLoop;\n\t\t\tdbDeviation = Math.sqrt(dbVariance);\n\t\t\tdevList.add(dbDeviation);\n\t\t\tintLoop = scan.nextInt();\n\t\t}", "dbAve = 0", "dbAve", "0", "intTemp = 0", "intTemp", "0", "dbVariance = 0", "dbVariance", "0", "dbDeviation = 0", "dbDeviation", "0", "list = new ArrayList<Integer>()", "list", "new ArrayList<Integer>()", "for (int i = 0; i < intLoop; i++) {\n\t\t\t\tintTemp = scan.nextInt();\n\t\t\t\tlist.add(intTemp);\n\t\t\t\tdbAve += intTemp;\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < intLoop", "i", "intLoop", "i++", "i++", "i", "{\n\t\t\t\tintTemp = scan.nextInt();\n\t\t\t\tlist.add(intTemp);\n\t\t\t\tdbAve += intTemp;\n\t\t\t}", "{\n\t\t\t\tintTemp = scan.nextInt();\n\t\t\t\tlist.add(intTemp);\n\t\t\t\tdbAve += intTemp;\n\t\t\t}", "intTemp = scan.nextInt()", "intTemp", "scan.nextInt()", "scan.nextInt", "scan", "list.add(intTemp)", "list.add", "list", "intTemp", "dbAve += intTemp", "dbAve", "intTemp", "dbAve = dbAve / intLoop", "dbAve", "dbAve / intLoop", "dbAve", "intLoop", "for (int i = 0; i < intLoop; i++) {\n\t\t\t\tdbVariance += Math.pow(list.get(i) - dbAve, 2);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < intLoop", "i", "intLoop", "i++", "i++", "i", "{\n\t\t\t\tdbVariance += Math.pow(list.get(i) - dbAve, 2);\n\t\t\t}", "{\n\t\t\t\tdbVariance += Math.pow(list.get(i) - dbAve, 2);\n\t\t\t}", "dbVariance += Math.pow(list.get(i) - dbAve, 2)", "dbVariance", "Math.pow(list.get(i) - dbAve, 2)", "Math.pow", "Math", "list.get(i) - dbAve", "list.get(i)", "list.get", "list", "i", "dbAve", "2", "dbVariance /= intLoop", "dbVariance", "intLoop", "dbDeviation = Math.sqrt(dbVariance)", "dbDeviation", "Math.sqrt(dbVariance)", "Math.sqrt", "Math", "dbVariance", "devList.add(dbDeviation)", "devList.add", "devList", "dbDeviation", "intLoop = scan.nextInt()", "intLoop", "scan.nextInt()", "scan.nextInt", "scan", "for(int i = 0; i < devList.size(); i++){\n\t\t\tSystem.out.println(devList.get(i));\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < devList.size()", "i", "devList.size()", "devList.size", "devList", "i++", "i++", "i", "{\n\t\t\tSystem.out.println(devList.get(i));\n\t\t}", "{\n\t\t\tSystem.out.println(devList.get(i));\n\t\t}", "System.out.println(devList.get(i))", "System.out.println", "System.out", "System", "System.out", "devList.get(i)", "devList.get", "devList", "i", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint intLoop = scan.nextInt();\n\t\tdouble dbAve = 0;\n\t\tint intTemp = 0;\n\t\tdouble dbVariance = 0;\n\t\tdouble dbDeviation = 0;\n\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\tArrayList<Double> devList = new ArrayList<Double>();\n\t\twhile (intLoop != 0) {\n\t\t\tdbAve = 0;\n\t\t\tintTemp = 0;\n\t\t\tdbVariance = 0;\n\t\t\tdbDeviation = 0;\n\t\t\tlist = new ArrayList<Integer>();\n\t\t\tfor (int i = 0; i < intLoop; i++) {\n\t\t\t\tintTemp = scan.nextInt();\n\t\t\t\tlist.add(intTemp);\n\t\t\t\tdbAve += intTemp;\n\t\t\t}\n\t\t\tdbAve = dbAve / intLoop;\n\t\t\tfor (int i = 0; i < intLoop; i++) {\n\t\t\t\tdbVariance += Math.pow(list.get(i) - dbAve, 2);\n\t\t\t}\n\t\t\tdbVariance /= intLoop;\n\t\t\tdbDeviation = Math.sqrt(dbVariance);\n\t\t\tdevList.add(dbDeviation);\n\t\t\tintLoop = scan.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < devList.size(); i++){\n\t\t\tSystem.out.println(devList.get(i));\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint intLoop = scan.nextInt();\n\t\tdouble dbAve = 0;\n\t\tint intTemp = 0;\n\t\tdouble dbVariance = 0;\n\t\tdouble dbDeviation = 0;\n\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\tArrayList<Double> devList = new ArrayList<Double>();\n\t\twhile (intLoop != 0) {\n\t\t\tdbAve = 0;\n\t\t\tintTemp = 0;\n\t\t\tdbVariance = 0;\n\t\t\tdbDeviation = 0;\n\t\t\tlist = new ArrayList<Integer>();\n\t\t\tfor (int i = 0; i < intLoop; i++) {\n\t\t\t\tintTemp = scan.nextInt();\n\t\t\t\tlist.add(intTemp);\n\t\t\t\tdbAve += intTemp;\n\t\t\t}\n\t\t\tdbAve = dbAve / intLoop;\n\t\t\tfor (int i = 0; i < intLoop; i++) {\n\t\t\t\tdbVariance += Math.pow(list.get(i) - dbAve, 2);\n\t\t\t}\n\t\t\tdbVariance /= intLoop;\n\t\t\tdbDeviation = Math.sqrt(dbVariance);\n\t\t\tdevList.add(dbDeviation);\n\t\t\tintLoop = scan.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < devList.size(); i++){\n\t\t\tSystem.out.println(devList.get(i));\n\t\t}\n\t}\n}", "Main" ]
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int intLoop = scan.nextInt(); double dbAve = 0; int intTemp = 0; double dbVariance = 0; double dbDeviation = 0; ArrayList<Integer> list = new ArrayList<Integer>(); ArrayList<Double> devList = new ArrayList<Double>(); while (intLoop != 0) { dbAve = 0; intTemp = 0; dbVariance = 0; dbDeviation = 0; list = new ArrayList<Integer>(); for (int i = 0; i < intLoop; i++) { intTemp = scan.nextInt(); list.add(intTemp); dbAve += intTemp; } dbAve = dbAve / intLoop; for (int i = 0; i < intLoop; i++) { dbVariance += Math.pow(list.get(i) - dbAve, 2); } dbVariance /= intLoop; dbDeviation = Math.sqrt(dbVariance); devList.add(dbDeviation); intLoop = scan.nextInt(); } for(int i = 0; i < devList.size(); i++){ System.out.println(devList.get(i)); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 0, 13, 18, 13, 13, 0, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 0, 13, 4, 18, 13, 2, 13, 13, 17, 4, 18, 4, 18, 13, 4, 18, 13, 13, 13, 4, 18, 13, 4, 18, 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 ], [ 155, 8 ], [ 155, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 12, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 19, 23 ], [ 23, 24 ], [ 23, 25 ], [ 19, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 19, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 40, 41 ], [ 41, 42 ], [ 34, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 34, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 51, 56 ], [ 34, 57 ], [ 57, 58 ], [ 57, 59 ], [ 34, 61 ], [ 61, 62 ], [ 61, 63 ], [ 34, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 69, 70 ], [ 69, 71 ], [ 64, 72 ], [ 72, 73 ], [ 73, 74 ], [ 64, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 84, 85 ], [ 84, 86 ], [ 76, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 89, 91 ], [ 34, 92 ], [ 92, 93 ], [ 92, 94 ], [ 34, 95 ], [ 95, 96 ], [ 95, 97 ], [ 34, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 103, 104 ], [ 103, 105 ], [ 98, 106 ], [ 106, 107 ], [ 107, 108 ], [ 98, 109 ], [ 110, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 113, 121 ], [ 34, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 125, 126 ], [ 124, 127 ], [ 127, 128 ], [ 127, 129 ], [ 124, 130 ], [ 34, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 133, 136 ], [ 136, 137 ], [ 137, 138 ], [ 136, 139 ], [ 131, 140 ], [ 19, 141 ], [ 141, 142 ], [ 142, 143 ], [ 19, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 144, 149 ], [ 149, 150 ], [ 150, 151 ], [ 9, 152 ], [ 152, 153 ], [ 0, 154 ], [ 154, 155 ], [ 154, 156 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\twhile (true) {\n\t\t\t\tfinal int n = Integer.parseInt(input.readLine());\n\t\t\t\tif (n == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfinal String[] line = input.readLine().split(\" \");\n\t\t\t\tint[] scores = new int[n];\n\t\t\t\tdouble average = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tscores[i] = Integer.parseInt(line[i]);\n\t\t\t\t\taverage += scores[i];\n\t\t\t\t}\n\t\t\t\taverage /= n;\n\n\t\t\t\tdouble deviation = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tdeviation += Math.pow(scores[i] - average, 2);\n\t\t\t\t}\n\t\t\t\tdeviation = Math.pow(deviation / n, 0.5);\n\t\t\t\tanswer.append(String.valueOf(deviation)).append(lb);\n\t\t\t}\n\t\t\tinput.close();\n\t\t\t\n\t\t\tSystem.out.print(answer.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\twhile (true) {\n\t\t\t\tfinal int n = Integer.parseInt(input.readLine());\n\t\t\t\tif (n == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfinal String[] line = input.readLine().split(\" \");\n\t\t\t\tint[] scores = new int[n];\n\t\t\t\tdouble average = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tscores[i] = Integer.parseInt(line[i]);\n\t\t\t\t\taverage += scores[i];\n\t\t\t\t}\n\t\t\t\taverage /= n;\n\n\t\t\t\tdouble deviation = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tdeviation += Math.pow(scores[i] - average, 2);\n\t\t\t\t}\n\t\t\t\tdeviation = Math.pow(deviation / n, 0.5);\n\t\t\t\tanswer.append(String.valueOf(deviation)).append(lb);\n\t\t\t}\n\t\t\tinput.close();\n\t\t\t\n\t\t\tSystem.out.print(answer.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\twhile (true) {\n\t\t\t\tfinal int n = Integer.parseInt(input.readLine());\n\t\t\t\tif (n == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfinal String[] line = input.readLine().split(\" \");\n\t\t\t\tint[] scores = new int[n];\n\t\t\t\tdouble average = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tscores[i] = Integer.parseInt(line[i]);\n\t\t\t\t\taverage += scores[i];\n\t\t\t\t}\n\t\t\t\taverage /= n;\n\n\t\t\t\tdouble deviation = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tdeviation += Math.pow(scores[i] - average, 2);\n\t\t\t\t}\n\t\t\t\tdeviation = Math.pow(deviation / n, 0.5);\n\t\t\t\tanswer.append(String.valueOf(deviation)).append(lb);\n\t\t\t}\n\t\t\tinput.close();\n\t\t\t\n\t\t\tSystem.out.print(answer.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "main", "{\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\twhile (true) {\n\t\t\t\tfinal int n = Integer.parseInt(input.readLine());\n\t\t\t\tif (n == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfinal String[] line = input.readLine().split(\" \");\n\t\t\t\tint[] scores = new int[n];\n\t\t\t\tdouble average = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tscores[i] = Integer.parseInt(line[i]);\n\t\t\t\t\taverage += scores[i];\n\t\t\t\t}\n\t\t\t\taverage /= n;\n\n\t\t\t\tdouble deviation = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tdeviation += Math.pow(scores[i] - average, 2);\n\t\t\t\t}\n\t\t\t\tdeviation = Math.pow(deviation / n, 0.5);\n\t\t\t\tanswer.append(String.valueOf(deviation)).append(lb);\n\t\t\t}\n\t\t\tinput.close();\n\t\t\t\n\t\t\tSystem.out.print(answer.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "try {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\twhile (true) {\n\t\t\t\tfinal int n = Integer.parseInt(input.readLine());\n\t\t\t\tif (n == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfinal String[] line = input.readLine().split(\" \");\n\t\t\t\tint[] scores = new int[n];\n\t\t\t\tdouble average = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tscores[i] = Integer.parseInt(line[i]);\n\t\t\t\t\taverage += scores[i];\n\t\t\t\t}\n\t\t\t\taverage /= n;\n\n\t\t\t\tdouble deviation = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tdeviation += Math.pow(scores[i] - average, 2);\n\t\t\t\t}\n\t\t\t\tdeviation = Math.pow(deviation / n, 0.5);\n\t\t\t\tanswer.append(String.valueOf(deviation)).append(lb);\n\t\t\t}\n\t\t\tinput.close();\n\t\t\t\n\t\t\tSystem.out.print(answer.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}", "catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}", "Exception e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\twhile (true) {\n\t\t\t\tfinal int n = Integer.parseInt(input.readLine());\n\t\t\t\tif (n == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfinal String[] line = input.readLine().split(\" \");\n\t\t\t\tint[] scores = new int[n];\n\t\t\t\tdouble average = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tscores[i] = Integer.parseInt(line[i]);\n\t\t\t\t\taverage += scores[i];\n\t\t\t\t}\n\t\t\t\taverage /= n;\n\n\t\t\t\tdouble deviation = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tdeviation += Math.pow(scores[i] - average, 2);\n\t\t\t\t}\n\t\t\t\tdeviation = Math.pow(deviation / n, 0.5);\n\t\t\t\tanswer.append(String.valueOf(deviation)).append(lb);\n\t\t\t}\n\t\t\tinput.close();\n\t\t\t\n\t\t\tSystem.out.print(answer.toString());\n\t\t}", "BufferedReader input = new BufferedReader(new InputStreamReader(System.in));", "input", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder answer = new StringBuilder();", "answer", "new StringBuilder()", "String lb = System.getProperty(\"line.separator\");", "lb", "System.getProperty(\"line.separator\")", "System.getProperty", "System", "\"line.separator\"", "while (true) {\n\t\t\t\tfinal int n = Integer.parseInt(input.readLine());\n\t\t\t\tif (n == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfinal String[] line = input.readLine().split(\" \");\n\t\t\t\tint[] scores = new int[n];\n\t\t\t\tdouble average = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tscores[i] = Integer.parseInt(line[i]);\n\t\t\t\t\taverage += scores[i];\n\t\t\t\t}\n\t\t\t\taverage /= n;\n\n\t\t\t\tdouble deviation = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tdeviation += Math.pow(scores[i] - average, 2);\n\t\t\t\t}\n\t\t\t\tdeviation = Math.pow(deviation / n, 0.5);\n\t\t\t\tanswer.append(String.valueOf(deviation)).append(lb);\n\t\t\t}", "true", "{\n\t\t\t\tfinal int n = Integer.parseInt(input.readLine());\n\t\t\t\tif (n == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfinal String[] line = input.readLine().split(\" \");\n\t\t\t\tint[] scores = new int[n];\n\t\t\t\tdouble average = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tscores[i] = Integer.parseInt(line[i]);\n\t\t\t\t\taverage += scores[i];\n\t\t\t\t}\n\t\t\t\taverage /= n;\n\n\t\t\t\tdouble deviation = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tdeviation += Math.pow(scores[i] - average, 2);\n\t\t\t\t}\n\t\t\t\tdeviation = Math.pow(deviation / n, 0.5);\n\t\t\t\tanswer.append(String.valueOf(deviation)).append(lb);\n\t\t\t}", "final int n = Integer.parseInt(input.readLine());", "n", "Integer.parseInt(input.readLine())", "Integer.parseInt", "Integer", "input.readLine()", "input.readLine", "input", "if (n == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}", "n == 0", "n", "0", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "final String[] line = input.readLine().split(\" \");", "line", "input.readLine().split(\" \")", "input.readLine().split", "input.readLine()", "input.readLine", "input", "\" \"", "int[] scores = new int[n];", "scores", "new int[n]", "n", "double average = 0;", "average", "0", "for (int i = 0; i < n; i++) {\n\t\t\t\t\tscores[i] = Integer.parseInt(line[i]);\n\t\t\t\t\taverage += scores[i];\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\t\tscores[i] = Integer.parseInt(line[i]);\n\t\t\t\t\taverage += scores[i];\n\t\t\t\t}", "{\n\t\t\t\t\tscores[i] = Integer.parseInt(line[i]);\n\t\t\t\t\taverage += scores[i];\n\t\t\t\t}", "scores[i] = Integer.parseInt(line[i])", "scores[i]", "scores", "i", "Integer.parseInt(line[i])", "Integer.parseInt", "Integer", "line[i]", "line", "i", "average += scores[i]", "average", "scores[i]", "scores", "i", "average /= n", "average", "n", "double deviation = 0;", "deviation", "0", "for (int i = 0; i < n; i++) {\n\t\t\t\t\tdeviation += Math.pow(scores[i] - average, 2);\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\t\tdeviation += Math.pow(scores[i] - average, 2);\n\t\t\t\t}", "{\n\t\t\t\t\tdeviation += Math.pow(scores[i] - average, 2);\n\t\t\t\t}", "deviation += Math.pow(scores[i] - average, 2)", "deviation", "Math.pow(scores[i] - average, 2)", "Math.pow", "Math", "scores[i] - average", "scores[i]", "scores", "i", "average", "2", "deviation = Math.pow(deviation / n, 0.5)", "deviation", "Math.pow(deviation / n, 0.5)", "Math.pow", "Math", "deviation / n", "deviation", "n", "0.5", "answer.append(String.valueOf(deviation)).append(lb)", "answer.append(String.valueOf(deviation)).append", "answer.append(String.valueOf(deviation))", "answer.append", "answer", "String.valueOf(deviation)", "String.valueOf", "String", "deviation", "lb", "input.close()", "input.close", "input", "System.out.print(answer.toString())", "System.out.print", "System.out", "System", "System.out", "answer.toString()", "answer.toString", "answer", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\twhile (true) {\n\t\t\t\tfinal int n = Integer.parseInt(input.readLine());\n\t\t\t\tif (n == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfinal String[] line = input.readLine().split(\" \");\n\t\t\t\tint[] scores = new int[n];\n\t\t\t\tdouble average = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tscores[i] = Integer.parseInt(line[i]);\n\t\t\t\t\taverage += scores[i];\n\t\t\t\t}\n\t\t\t\taverage /= n;\n\n\t\t\t\tdouble deviation = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tdeviation += Math.pow(scores[i] - average, 2);\n\t\t\t\t}\n\t\t\t\tdeviation = Math.pow(deviation / n, 0.5);\n\t\t\t\tanswer.append(String.valueOf(deviation)).append(lb);\n\t\t\t}\n\t\t\tinput.close();\n\t\t\t\n\t\t\tSystem.out.print(answer.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\twhile (true) {\n\t\t\t\tfinal int n = Integer.parseInt(input.readLine());\n\t\t\t\tif (n == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfinal String[] line = input.readLine().split(\" \");\n\t\t\t\tint[] scores = new int[n];\n\t\t\t\tdouble average = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tscores[i] = Integer.parseInt(line[i]);\n\t\t\t\t\taverage += scores[i];\n\t\t\t\t}\n\t\t\t\taverage /= n;\n\n\t\t\t\tdouble deviation = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tdeviation += Math.pow(scores[i] - average, 2);\n\t\t\t\t}\n\t\t\t\tdeviation = Math.pow(deviation / n, 0.5);\n\t\t\t\tanswer.append(String.valueOf(deviation)).append(lb);\n\t\t\t}\n\t\t\tinput.close();\n\t\t\t\n\t\t\tSystem.out.print(answer.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { try { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); StringBuilder answer = new StringBuilder(); String lb = System.getProperty("line.separator"); while (true) { final int n = Integer.parseInt(input.readLine()); if (n == 0) { break; } final String[] line = input.readLine().split(" "); int[] scores = new int[n]; double average = 0; for (int i = 0; i < n; i++) { scores[i] = Integer.parseInt(line[i]); average += scores[i]; } average /= n; double deviation = 0; for (int i = 0; i < n; i++) { deviation += Math.pow(scores[i] - average, 2); } deviation = Math.pow(deviation / n, 0.5); answer.append(String.valueOf(deviation)).append(lb); } input.close(); System.out.print(answer.toString()); } catch (Exception e) { e.printStackTrace(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 11, 1, 30, 30, 0, 13, 4, 18, 13, 0, 13, 17, 0, 13, 17, 0, 13, 17, 14, 2, 13, 17, 30, 3, 0, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 0, 13, 13, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 17, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 27, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 27, 33 ], [ 33, 34 ], [ 33, 35 ], [ 27, 36 ], [ 36, 37 ], [ 36, 38 ], [ 27, 39 ], [ 39, 40 ], [ 39, 41 ], [ 27, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 27, 48 ], [ 48, 49 ], [ 48, 50 ], [ 27, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 52, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 70, 71 ], [ 64, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 27, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 79, 81 ], [ 27, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 87, 88 ], [ 87, 89 ], [ 82, 90 ], [ 90, 91 ], [ 91, 92 ], [ 82, 93 ], [ 94, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 97, 105 ], [ 27, 106 ], [ 106, 107 ], [ 106, 108 ], [ 27, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 27, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 120, 124 ], [ 6, 125 ], [ 125, 126 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args){\n \tScanner scan = new Scanner(System.in);\n \tint n;\n \tint total;\n \tdouble hyouzyun;\n \tdouble m;\n \tdouble a;\n \tdouble[] student;\n \t\n \tfor(;;){\n \t\tn = scan.nextInt();\n \t\ttotal = 0;\n \t\thyouzyun = 0.0;\n \t\ta = 0.0;\n \t\t\n \t\tif(n == 0){\n \t\tbreak;\n \t\t}\n \t\tstudent = new double[n]; \n \t\tfor(int i = 0; i < n; i++){\n \t\t\tstudent[i] = scan.nextDouble();\n \t\t\ttotal += student[i];\n \t\t}\n \t\tm = (double)total / (double)n;\n \t\t\n \t\tfor(int i = 0; i < n; i++){\n \t\t\ta += Math.pow((student[i] - m), 2);\n \t\t}\n \t\ta /= n;\n \t\thyouzyun = Math.sqrt(a);\n \t\t\n \t\tSystem.out.println(String.format(\"%.8f\", hyouzyun));\n \t}\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String[] args){\n \tScanner scan = new Scanner(System.in);\n \tint n;\n \tint total;\n \tdouble hyouzyun;\n \tdouble m;\n \tdouble a;\n \tdouble[] student;\n \t\n \tfor(;;){\n \t\tn = scan.nextInt();\n \t\ttotal = 0;\n \t\thyouzyun = 0.0;\n \t\ta = 0.0;\n \t\t\n \t\tif(n == 0){\n \t\tbreak;\n \t\t}\n \t\tstudent = new double[n]; \n \t\tfor(int i = 0; i < n; i++){\n \t\t\tstudent[i] = scan.nextDouble();\n \t\t\ttotal += student[i];\n \t\t}\n \t\tm = (double)total / (double)n;\n \t\t\n \t\tfor(int i = 0; i < n; i++){\n \t\t\ta += Math.pow((student[i] - m), 2);\n \t\t}\n \t\ta /= n;\n \t\thyouzyun = Math.sqrt(a);\n \t\t\n \t\tSystem.out.println(String.format(\"%.8f\", hyouzyun));\n \t}\n }\n}", "Main", "public static void main(String[] args){\n \tScanner scan = new Scanner(System.in);\n \tint n;\n \tint total;\n \tdouble hyouzyun;\n \tdouble m;\n \tdouble a;\n \tdouble[] student;\n \t\n \tfor(;;){\n \t\tn = scan.nextInt();\n \t\ttotal = 0;\n \t\thyouzyun = 0.0;\n \t\ta = 0.0;\n \t\t\n \t\tif(n == 0){\n \t\tbreak;\n \t\t}\n \t\tstudent = new double[n]; \n \t\tfor(int i = 0; i < n; i++){\n \t\t\tstudent[i] = scan.nextDouble();\n \t\t\ttotal += student[i];\n \t\t}\n \t\tm = (double)total / (double)n;\n \t\t\n \t\tfor(int i = 0; i < n; i++){\n \t\t\ta += Math.pow((student[i] - m), 2);\n \t\t}\n \t\ta /= n;\n \t\thyouzyun = Math.sqrt(a);\n \t\t\n \t\tSystem.out.println(String.format(\"%.8f\", hyouzyun));\n \t}\n }", "main", "{\n \tScanner scan = new Scanner(System.in);\n \tint n;\n \tint total;\n \tdouble hyouzyun;\n \tdouble m;\n \tdouble a;\n \tdouble[] student;\n \t\n \tfor(;;){\n \t\tn = scan.nextInt();\n \t\ttotal = 0;\n \t\thyouzyun = 0.0;\n \t\ta = 0.0;\n \t\t\n \t\tif(n == 0){\n \t\tbreak;\n \t\t}\n \t\tstudent = new double[n]; \n \t\tfor(int i = 0; i < n; i++){\n \t\t\tstudent[i] = scan.nextDouble();\n \t\t\ttotal += student[i];\n \t\t}\n \t\tm = (double)total / (double)n;\n \t\t\n \t\tfor(int i = 0; i < n; i++){\n \t\t\ta += Math.pow((student[i] - m), 2);\n \t\t}\n \t\ta /= n;\n \t\thyouzyun = Math.sqrt(a);\n \t\t\n \t\tSystem.out.println(String.format(\"%.8f\", hyouzyun));\n \t}\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n;", "n", "int total;", "total", "double hyouzyun;", "hyouzyun", "double m;", "m", "double a;", "a", "double[] student;", "student", "for(;;){\n \t\tn = scan.nextInt();\n \t\ttotal = 0;\n \t\thyouzyun = 0.0;\n \t\ta = 0.0;\n \t\t\n \t\tif(n == 0){\n \t\tbreak;\n \t\t}\n \t\tstudent = new double[n]; \n \t\tfor(int i = 0; i < n; i++){\n \t\t\tstudent[i] = scan.nextDouble();\n \t\t\ttotal += student[i];\n \t\t}\n \t\tm = (double)total / (double)n;\n \t\t\n \t\tfor(int i = 0; i < n; i++){\n \t\t\ta += Math.pow((student[i] - m), 2);\n \t\t}\n \t\ta /= n;\n \t\thyouzyun = Math.sqrt(a);\n \t\t\n \t\tSystem.out.println(String.format(\"%.8f\", hyouzyun));\n \t}", ";", "{\n \t\tn = scan.nextInt();\n \t\ttotal = 0;\n \t\thyouzyun = 0.0;\n \t\ta = 0.0;\n \t\t\n \t\tif(n == 0){\n \t\tbreak;\n \t\t}\n \t\tstudent = new double[n]; \n \t\tfor(int i = 0; i < n; i++){\n \t\t\tstudent[i] = scan.nextDouble();\n \t\t\ttotal += student[i];\n \t\t}\n \t\tm = (double)total / (double)n;\n \t\t\n \t\tfor(int i = 0; i < n; i++){\n \t\t\ta += Math.pow((student[i] - m), 2);\n \t\t}\n \t\ta /= n;\n \t\thyouzyun = Math.sqrt(a);\n \t\t\n \t\tSystem.out.println(String.format(\"%.8f\", hyouzyun));\n \t}", "{\n \t\tn = scan.nextInt();\n \t\ttotal = 0;\n \t\thyouzyun = 0.0;\n \t\ta = 0.0;\n \t\t\n \t\tif(n == 0){\n \t\tbreak;\n \t\t}\n \t\tstudent = new double[n]; \n \t\tfor(int i = 0; i < n; i++){\n \t\t\tstudent[i] = scan.nextDouble();\n \t\t\ttotal += student[i];\n \t\t}\n \t\tm = (double)total / (double)n;\n \t\t\n \t\tfor(int i = 0; i < n; i++){\n \t\t\ta += Math.pow((student[i] - m), 2);\n \t\t}\n \t\ta /= n;\n \t\thyouzyun = Math.sqrt(a);\n \t\t\n \t\tSystem.out.println(String.format(\"%.8f\", hyouzyun));\n \t}", "n = scan.nextInt()", "n", "scan.nextInt()", "scan.nextInt", "scan", "total = 0", "total", "0", "hyouzyun = 0.0", "hyouzyun", "0.0", "a = 0.0", "a", "0.0", "if(n == 0){\n \t\tbreak;\n \t\t}", "n == 0", "n", "0", "{\n \t\tbreak;\n \t\t}", "break;", "student = new double[n]", "student", "new double[n]", "n", "for(int i = 0; i < n; i++){\n \t\t\tstudent[i] = scan.nextDouble();\n \t\t\ttotal += student[i];\n \t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n \t\t\tstudent[i] = scan.nextDouble();\n \t\t\ttotal += student[i];\n \t\t}", "{\n \t\t\tstudent[i] = scan.nextDouble();\n \t\t\ttotal += student[i];\n \t\t}", "student[i] = scan.nextDouble()", "student[i]", "student", "i", "scan.nextDouble()", "scan.nextDouble", "scan", "total += student[i]", "total", "student[i]", "student", "i", "m = (double)total / (double)n", "m", "(double)total / (double)n", "(double)total", "(double)n", "for(int i = 0; i < n; i++){\n \t\t\ta += Math.pow((student[i] - m), 2);\n \t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n \t\t\ta += Math.pow((student[i] - m), 2);\n \t\t}", "{\n \t\t\ta += Math.pow((student[i] - m), 2);\n \t\t}", "a += Math.pow((student[i] - m), 2)", "a", "Math.pow((student[i] - m), 2)", "Math.pow", "Math", "(student[i] - m)", "student[i]", "student", "i", "m", "2", "a /= n", "a", "n", "hyouzyun = Math.sqrt(a)", "hyouzyun", "Math.sqrt(a)", "Math.sqrt", "Math", "a", "System.out.println(String.format(\"%.8f\", hyouzyun))", "System.out.println", "System.out", "System", "System.out", "String.format(\"%.8f\", hyouzyun)", "String.format", "String", "\"%.8f\"", "hyouzyun", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n; int total; double hyouzyun; double m; double a; double[] student; for(;;){ n = scan.nextInt(); total = 0; hyouzyun = 0.0; a = 0.0; if(n == 0){ break; } student = new double[n]; for(int i = 0; i < n; i++){ student[i] = scan.nextDouble(); total += student[i]; } m = (double)total / (double)n; for(int i = 0; i < n; i++){ a += Math.pow((student[i] - m), 2); } a /= n; hyouzyun = Math.sqrt(a); System.out.println(String.format("%.8f", hyouzyun)); } } }
[ 7, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 11, 1, 30, 30, 0, 13, 4, 18, 13, 14, 2, 13, 17, 3, 0, 13, 20, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 13, 0, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 13, 4, 18, 13, 23, 13, 23, 13, 12, 13, 30, 4, 18, 20, 18, 13, 13, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 144, 2 ], [ 144, 3 ], [ 3, 4 ], [ 3, 5 ], [ 5, 6 ], [ 6, 7 ], [ 6, 8 ], [ 5, 9 ], [ 9, 10 ], [ 5, 11 ], [ 11, 12 ], [ 5, 13 ], [ 13, 14 ], [ 5, 15 ], [ 15, 16 ], [ 5, 17 ], [ 17, 18 ], [ 5, 19 ], [ 19, 20 ], [ 19, 21 ], [ 22, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 22, 33 ], [ 33, 34 ], [ 33, 35 ], [ 22, 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 ], [ 22, 57 ], [ 57, 58 ], [ 57, 59 ], [ 22, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 60, 68 ], [ 68, 69 ], [ 69, 70 ], [ 60, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 22, 78 ], [ 78, 79 ], [ 78, 80 ], [ 22, 81 ], [ 81, 82 ], [ 81, 83 ], [ 22, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 89, 90 ], [ 89, 91 ], [ 84, 92 ], [ 92, 93 ], [ 93, 94 ], [ 84, 95 ], [ 96, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 99, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 22, 110 ], [ 110, 111 ], [ 110, 112 ], [ 22, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 118, 119 ], [ 119, 120 ], [ 118, 121 ], [ 5, 122 ], [ 122, 123 ], [ 123, 124 ], [ 3, 125 ], [ 125, 126 ], [ 3, 127 ], [ 127, 128 ], [ 144, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 132, 135 ], [ 135, 136 ], [ 135, 137 ], [ 132, 138 ], [ 138, 139 ], [ 138, 140 ], [ 129, 141 ], [ 141, 142 ], [ 0, 143 ], [ 143, 144 ], [ 143, 145 ] ]
[ "public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int n;\n double[] s;\n int i;\n double a, ave;\n\n for(;;){\n n = sc.nextInt();\n if(n == 0)break;\n s = new double[n];\n for(i = 0;i < n;i++){\n s[i] = sc.nextDouble();\n }\n\n ave = 0.0;\n for(i = 0;i < n;i++){\n ave += (double)s[i];\n }\n ave /= (double)n;\n\n a = 0.0;\n for(i = 0;i < n;i++){\n a += (s[i] - ave) * (s[i] - ave);\n }\n a /= (double)n;\n System.out.println(Math.sqrt(a));\n }\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}", "public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int n;\n double[] s;\n int i;\n double a, ave;\n\n for(;;){\n n = sc.nextInt();\n if(n == 0)break;\n s = new double[n];\n for(i = 0;i < n;i++){\n s[i] = sc.nextDouble();\n }\n\n ave = 0.0;\n for(i = 0;i < n;i++){\n ave += (double)s[i];\n }\n ave /= (double)n;\n\n a = 0.0;\n for(i = 0;i < n;i++){\n a += (s[i] - ave) * (s[i] - ave);\n }\n a /= (double)n;\n System.out.println(Math.sqrt(a));\n }\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}", "Main", "public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int n;\n double[] s;\n int i;\n double a, ave;\n\n for(;;){\n n = sc.nextInt();\n if(n == 0)break;\n s = new double[n];\n for(i = 0;i < n;i++){\n s[i] = sc.nextDouble();\n }\n\n ave = 0.0;\n for(i = 0;i < n;i++){\n ave += (double)s[i];\n }\n ave /= (double)n;\n\n a = 0.0;\n for(i = 0;i < n;i++){\n a += (s[i] - ave) * (s[i] - ave);\n }\n a /= (double)n;\n System.out.println(Math.sqrt(a));\n }\n\n sc.close();\n }", "run", "{\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int n;\n double[] s;\n int i;\n double a, ave;\n\n for(;;){\n n = sc.nextInt();\n if(n == 0)break;\n s = new double[n];\n for(i = 0;i < n;i++){\n s[i] = sc.nextDouble();\n }\n\n ave = 0.0;\n for(i = 0;i < n;i++){\n ave += (double)s[i];\n }\n ave /= (double)n;\n\n a = 0.0;\n for(i = 0;i < n;i++){\n a += (s[i] - ave) * (s[i] - ave);\n }\n a /= (double)n;\n System.out.println(Math.sqrt(a));\n }\n\n sc.close();\n }", "java.util.Scanner sc = new java.util.Scanner(in);", "sc", "new java.util.Scanner(in)", "int n;", "n", "double[] s;", "s", "int i;", "i", "double a", "a", "ave;", "ave", "for(;;){\n n = sc.nextInt();\n if(n == 0)break;\n s = new double[n];\n for(i = 0;i < n;i++){\n s[i] = sc.nextDouble();\n }\n\n ave = 0.0;\n for(i = 0;i < n;i++){\n ave += (double)s[i];\n }\n ave /= (double)n;\n\n a = 0.0;\n for(i = 0;i < n;i++){\n a += (s[i] - ave) * (s[i] - ave);\n }\n a /= (double)n;\n System.out.println(Math.sqrt(a));\n }", ";", "{\n n = sc.nextInt();\n if(n == 0)break;\n s = new double[n];\n for(i = 0;i < n;i++){\n s[i] = sc.nextDouble();\n }\n\n ave = 0.0;\n for(i = 0;i < n;i++){\n ave += (double)s[i];\n }\n ave /= (double)n;\n\n a = 0.0;\n for(i = 0;i < n;i++){\n a += (s[i] - ave) * (s[i] - ave);\n }\n a /= (double)n;\n System.out.println(Math.sqrt(a));\n }", "{\n n = sc.nextInt();\n if(n == 0)break;\n s = new double[n];\n for(i = 0;i < n;i++){\n s[i] = sc.nextDouble();\n }\n\n ave = 0.0;\n for(i = 0;i < n;i++){\n ave += (double)s[i];\n }\n ave /= (double)n;\n\n a = 0.0;\n for(i = 0;i < n;i++){\n a += (s[i] - ave) * (s[i] - ave);\n }\n a /= (double)n;\n System.out.println(Math.sqrt(a));\n }", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n == 0)break;", "n == 0", "n", "0", "break;", "s = new double[n]", "s", "new double[n]", "n", "for(i = 0;i < n;i++){\n s[i] = sc.nextDouble();\n }", "i = 0;", "i = 0", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n s[i] = sc.nextDouble();\n }", "{\n s[i] = sc.nextDouble();\n }", "s[i] = sc.nextDouble()", "s[i]", "s", "i", "sc.nextDouble()", "sc.nextDouble", "sc", "ave = 0.0", "ave", "0.0", "for(i = 0;i < n;i++){\n ave += (double)s[i];\n }", "i = 0;", "i = 0", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n ave += (double)s[i];\n }", "{\n ave += (double)s[i];\n }", "ave += (double)s[i]", "ave", "(double)s[i]", "s", "i", "ave /= (double)n", "ave", "(double)n", "a = 0.0", "a", "0.0", "for(i = 0;i < n;i++){\n a += (s[i] - ave) * (s[i] - ave);\n }", "i = 0;", "i = 0", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n a += (s[i] - ave) * (s[i] - ave);\n }", "{\n a += (s[i] - ave) * (s[i] - ave);\n }", "a += (s[i] - ave) * (s[i] - ave)", "a", "(s[i] - ave) * (s[i] - ave)", "(s[i] - ave)", "s[i]", "s", "i", "ave", "(s[i] - ave)", "s[i]", "s", "i", "ave", "a /= (double)n", "a", "(double)n", "System.out.println(Math.sqrt(a))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(a)", "Math.sqrt", "Math", "a", "sc.close()", "sc.close", "sc", "java.io.InputStream in", "in", "java.io.PrintStream out", "out", "public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }", "main", "{\n (new Main()).run(System.in, System.out);\n }", "(new Main()).run(System.in, System.out)", "(new Main()).run", "(new Main())", "System.in", "System", "System.in", "System.out", "System", "System.out", "String[] args", "args", "public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int n;\n double[] s;\n int i;\n double a, ave;\n\n for(;;){\n n = sc.nextInt();\n if(n == 0)break;\n s = new double[n];\n for(i = 0;i < n;i++){\n s[i] = sc.nextDouble();\n }\n\n ave = 0.0;\n for(i = 0;i < n;i++){\n ave += (double)s[i];\n }\n ave /= (double)n;\n\n a = 0.0;\n for(i = 0;i < n;i++){\n a += (s[i] - ave) * (s[i] - ave);\n }\n a /= (double)n;\n System.out.println(Math.sqrt(a));\n }\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}", "public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int n;\n double[] s;\n int i;\n double a, ave;\n\n for(;;){\n n = sc.nextInt();\n if(n == 0)break;\n s = new double[n];\n for(i = 0;i < n;i++){\n s[i] = sc.nextDouble();\n }\n\n ave = 0.0;\n for(i = 0;i < n;i++){\n ave += (double)s[i];\n }\n ave /= (double)n;\n\n a = 0.0;\n for(i = 0;i < n;i++){\n a += (s[i] - ave) * (s[i] - ave);\n }\n a /= (double)n;\n System.out.println(Math.sqrt(a));\n }\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}", "Main" ]
public class Main{ public void run(java.io.InputStream in, java.io.PrintStream out){ java.util.Scanner sc = new java.util.Scanner(in); /*answer*/ int n; double[] s; int i; double a, ave; for(;;){ n = sc.nextInt(); if(n == 0)break; s = new double[n]; for(i = 0;i < n;i++){ s[i] = sc.nextDouble(); } ave = 0.0; for(i = 0;i < n;i++){ ave += (double)s[i]; } ave /= (double)n; a = 0.0; for(i = 0;i < n;i++){ a += (s[i] - ave) * (s[i] - ave); } a /= (double)n; System.out.println(Math.sqrt(a)); } sc.close(); } public static void main(String[] args){ (new Main()).run(System.in, System.out); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 42, 17, 30, 0, 13, 4, 18, 13, 4, 18, 13, 14, 2, 13, 17, 3, 0, 13, 17, 0, 13, 17, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 18, 13, 13, 0, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 2, 4, 18, 13, 18, 13, 13, 13, 2, 4, 18, 13, 18, 13, 13, 13, 13, 4, 18, 18, 13, 13, 17, 4, 18, 13, 13, 4, 18, 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 ], [ 152, 11 ], [ 152, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 14, 22 ], [ 22, 23 ], [ 14, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 14, 28 ], [ 28, 29 ], [ 14, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 30, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 49, 50 ], [ 50, 51 ], [ 43, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 43, 57 ], [ 57, 58 ], [ 57, 59 ], [ 43, 60 ], [ 60, 61 ], [ 60, 62 ], [ 43, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 43, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 43, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 79, 80 ], [ 79, 81 ], [ 74, 82 ], [ 82, 83 ], [ 83, 84 ], [ 74, 85 ], [ 86, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 92, 93 ], [ 92, 94 ], [ 43, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 97, 99 ], [ 43, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 105, 106 ], [ 105, 107 ], [ 100, 108 ], [ 108, 109 ], [ 109, 110 ], [ 100, 111 ], [ 112, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 118, 121 ], [ 121, 122 ], [ 121, 123 ], [ 117, 124 ], [ 116, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 129, 130 ], [ 129, 131 ], [ 125, 132 ], [ 115, 133 ], [ 43, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 134, 139 ], [ 134, 140 ], [ 140, 141 ], [ 141, 142 ], [ 140, 143 ], [ 43, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 12, 149 ], [ 149, 150 ], [ 0, 151 ], [ 151, 152 ], [ 151, 153 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n\n\npublic class Main{\n\tpublic static void main(String[] args){\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tint num;\n\t\tint sum;\n\t\tdouble div, m;\n\t\tString str;\n\t\tString[] array_str;\n\n\t\ttry{\n\n\t\t\twhile(true){\n\t\t\tnum=Integer.parseInt(reader.readLine());\n\t\t\tif(num==0)break;\n\t\t\tsum=0;\n\t\t\tdiv=0;//??????????????§?????????\n\t\t\tstr=reader.readLine();\n\t\t\tarray_str=str.split(\" \");\n\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\tsum+=Integer.parseInt(array_str[i]);\n\t\t\t}\n\t\t\tm=(double)sum/num;//??????\n\n\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\tdiv+=(Double.parseDouble(array_str[i])-m)*(Double.parseDouble(array_str[i])-m)/num;\n\t\t\t}System.out.printf(\"%.8f\", Math.sqrt(div));\n\t\t\tSystem.out.println();\n\n\t\t\t}//while???????????°?????????\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.print(e);\n\t\t}\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main{\n\tpublic static void main(String[] args){\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tint num;\n\t\tint sum;\n\t\tdouble div, m;\n\t\tString str;\n\t\tString[] array_str;\n\n\t\ttry{\n\n\t\t\twhile(true){\n\t\t\tnum=Integer.parseInt(reader.readLine());\n\t\t\tif(num==0)break;\n\t\t\tsum=0;\n\t\t\tdiv=0;//??????????????§?????????\n\t\t\tstr=reader.readLine();\n\t\t\tarray_str=str.split(\" \");\n\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\tsum+=Integer.parseInt(array_str[i]);\n\t\t\t}\n\t\t\tm=(double)sum/num;//??????\n\n\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\tdiv+=(Double.parseDouble(array_str[i])-m)*(Double.parseDouble(array_str[i])-m)/num;\n\t\t\t}System.out.printf(\"%.8f\", Math.sqrt(div));\n\t\t\tSystem.out.println();\n\n\t\t\t}//while???????????°?????????\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.print(e);\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args){\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tint num;\n\t\tint sum;\n\t\tdouble div, m;\n\t\tString str;\n\t\tString[] array_str;\n\n\t\ttry{\n\n\t\t\twhile(true){\n\t\t\tnum=Integer.parseInt(reader.readLine());\n\t\t\tif(num==0)break;\n\t\t\tsum=0;\n\t\t\tdiv=0;//??????????????§?????????\n\t\t\tstr=reader.readLine();\n\t\t\tarray_str=str.split(\" \");\n\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\tsum+=Integer.parseInt(array_str[i]);\n\t\t\t}\n\t\t\tm=(double)sum/num;//??????\n\n\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\tdiv+=(Double.parseDouble(array_str[i])-m)*(Double.parseDouble(array_str[i])-m)/num;\n\t\t\t}System.out.printf(\"%.8f\", Math.sqrt(div));\n\t\t\tSystem.out.println();\n\n\t\t\t}//while???????????°?????????\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.print(e);\n\t\t}\n\t}", "main", "{\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tint num;\n\t\tint sum;\n\t\tdouble div, m;\n\t\tString str;\n\t\tString[] array_str;\n\n\t\ttry{\n\n\t\t\twhile(true){\n\t\t\tnum=Integer.parseInt(reader.readLine());\n\t\t\tif(num==0)break;\n\t\t\tsum=0;\n\t\t\tdiv=0;//??????????????§?????????\n\t\t\tstr=reader.readLine();\n\t\t\tarray_str=str.split(\" \");\n\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\tsum+=Integer.parseInt(array_str[i]);\n\t\t\t}\n\t\t\tm=(double)sum/num;//??????\n\n\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\tdiv+=(Double.parseDouble(array_str[i])-m)*(Double.parseDouble(array_str[i])-m)/num;\n\t\t\t}System.out.printf(\"%.8f\", Math.sqrt(div));\n\t\t\tSystem.out.println();\n\n\t\t\t}//while???????????°?????????\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.print(e);\n\t\t}\n\t}", "BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "int num;", "num", "int sum;", "sum", "double div", "div", "m;", "m", "String str;", "str", "String[] array_str;", "array_str", "try{\n\n\t\t\twhile(true){\n\t\t\tnum=Integer.parseInt(reader.readLine());\n\t\t\tif(num==0)break;\n\t\t\tsum=0;\n\t\t\tdiv=0;//??????????????§?????????\n\t\t\tstr=reader.readLine();\n\t\t\tarray_str=str.split(\" \");\n\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\tsum+=Integer.parseInt(array_str[i]);\n\t\t\t}\n\t\t\tm=(double)sum/num;//??????\n\n\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\tdiv+=(Double.parseDouble(array_str[i])-m)*(Double.parseDouble(array_str[i])-m)/num;\n\t\t\t}System.out.printf(\"%.8f\", Math.sqrt(div));\n\t\t\tSystem.out.println();\n\n\t\t\t}//while???????????°?????????\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.print(e);\n\t\t}", "catch(IOException e){\n\t\t\tSystem.out.print(e);\n\t\t}", "IOException e", "{\n\t\t\tSystem.out.print(e);\n\t\t}", "System.out.print(e)", "System.out.print", "System.out", "System", "System.out", "e", "{\n\n\t\t\twhile(true){\n\t\t\tnum=Integer.parseInt(reader.readLine());\n\t\t\tif(num==0)break;\n\t\t\tsum=0;\n\t\t\tdiv=0;//??????????????§?????????\n\t\t\tstr=reader.readLine();\n\t\t\tarray_str=str.split(\" \");\n\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\tsum+=Integer.parseInt(array_str[i]);\n\t\t\t}\n\t\t\tm=(double)sum/num;//??????\n\n\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\tdiv+=(Double.parseDouble(array_str[i])-m)*(Double.parseDouble(array_str[i])-m)/num;\n\t\t\t}System.out.printf(\"%.8f\", Math.sqrt(div));\n\t\t\tSystem.out.println();\n\n\t\t\t}//while???????????°?????????\n\n\t\t}", "while(true){\n\t\t\tnum=Integer.parseInt(reader.readLine());\n\t\t\tif(num==0)break;\n\t\t\tsum=0;\n\t\t\tdiv=0;//??????????????§?????????\n\t\t\tstr=reader.readLine();\n\t\t\tarray_str=str.split(\" \");\n\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\tsum+=Integer.parseInt(array_str[i]);\n\t\t\t}\n\t\t\tm=(double)sum/num;//??????\n\n\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\tdiv+=(Double.parseDouble(array_str[i])-m)*(Double.parseDouble(array_str[i])-m)/num;\n\t\t\t}System.out.printf(\"%.8f\", Math.sqrt(div));\n\t\t\tSystem.out.println();\n\n\t\t\t}//while???????????°?????????", "true", "{\n\t\t\tnum=Integer.parseInt(reader.readLine());\n\t\t\tif(num==0)break;\n\t\t\tsum=0;\n\t\t\tdiv=0;//??????????????§?????????\n\t\t\tstr=reader.readLine();\n\t\t\tarray_str=str.split(\" \");\n\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\tsum+=Integer.parseInt(array_str[i]);\n\t\t\t}\n\t\t\tm=(double)sum/num;//??????\n\n\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\tdiv+=(Double.parseDouble(array_str[i])-m)*(Double.parseDouble(array_str[i])-m)/num;\n\t\t\t}System.out.printf(\"%.8f\", Math.sqrt(div));\n\t\t\tSystem.out.println();\n\n\t\t\t}", "num=Integer.parseInt(reader.readLine())", "num", "Integer.parseInt(reader.readLine())", "Integer.parseInt", "Integer", "reader.readLine()", "reader.readLine", "reader", "if(num==0)break;", "num==0", "num", "0", "break;", "sum=0", "sum", "0", "div=0", "div", "0", "str=reader.readLine()", "str", "reader.readLine()", "reader.readLine", "reader", "array_str=str.split(\" \")", "array_str", "str.split(\" \")", "str.split", "str", "\" \"", "for(int i=0;i<num;i++){\n\t\t\t\tsum+=Integer.parseInt(array_str[i]);\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<num", "i", "num", "i++", "i++", "i", "{\n\t\t\t\tsum+=Integer.parseInt(array_str[i]);\n\t\t\t}", "{\n\t\t\t\tsum+=Integer.parseInt(array_str[i]);\n\t\t\t}", "sum+=Integer.parseInt(array_str[i])", "sum", "Integer.parseInt(array_str[i])", "Integer.parseInt", "Integer", "array_str[i]", "array_str", "i", "m=(double)sum/num", "m", "(double)sum/num", "(double)sum", "num", "for(int i=0;i<num;i++){\n\t\t\t\tdiv+=(Double.parseDouble(array_str[i])-m)*(Double.parseDouble(array_str[i])-m)/num;\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<num", "i", "num", "i++", "i++", "i", "{\n\t\t\t\tdiv+=(Double.parseDouble(array_str[i])-m)*(Double.parseDouble(array_str[i])-m)/num;\n\t\t\t}", "{\n\t\t\t\tdiv+=(Double.parseDouble(array_str[i])-m)*(Double.parseDouble(array_str[i])-m)/num;\n\t\t\t}", "div+=(Double.parseDouble(array_str[i])-m)*(Double.parseDouble(array_str[i])-m)/num", "div", "(Double.parseDouble(array_str[i])-m)*(Double.parseDouble(array_str[i])-m)/num", "(Double.parseDouble(array_str[i])-m)*(Double.parseDouble(array_str[i])-m)", "(Double.parseDouble(array_str[i])-m)", "Double.parseDouble(array_str[i])", "Double.parseDouble", "Double", "array_str[i]", "array_str", "i", "m", "(Double.parseDouble(array_str[i])-m)", "Double.parseDouble(array_str[i])", "Double.parseDouble", "Double", "array_str[i]", "array_str", "i", "m", "num", "System.out.printf(\"%.8f\", Math.sqrt(div))", "System.out.printf", "System.out", "System", "System.out", "\"%.8f\"", "Math.sqrt(div)", "Math.sqrt", "Math", "div", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args){\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tint num;\n\t\tint sum;\n\t\tdouble div, m;\n\t\tString str;\n\t\tString[] array_str;\n\n\t\ttry{\n\n\t\t\twhile(true){\n\t\t\tnum=Integer.parseInt(reader.readLine());\n\t\t\tif(num==0)break;\n\t\t\tsum=0;\n\t\t\tdiv=0;//??????????????§?????????\n\t\t\tstr=reader.readLine();\n\t\t\tarray_str=str.split(\" \");\n\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\tsum+=Integer.parseInt(array_str[i]);\n\t\t\t}\n\t\t\tm=(double)sum/num;//??????\n\n\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\tdiv+=(Double.parseDouble(array_str[i])-m)*(Double.parseDouble(array_str[i])-m)/num;\n\t\t\t}System.out.printf(\"%.8f\", Math.sqrt(div));\n\t\t\tSystem.out.println();\n\n\t\t\t}//while???????????°?????????\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.print(e);\n\t\t}\n\t}\n\n}", "public class Main{\n\tpublic static void main(String[] args){\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tint num;\n\t\tint sum;\n\t\tdouble div, m;\n\t\tString str;\n\t\tString[] array_str;\n\n\t\ttry{\n\n\t\t\twhile(true){\n\t\t\tnum=Integer.parseInt(reader.readLine());\n\t\t\tif(num==0)break;\n\t\t\tsum=0;\n\t\t\tdiv=0;//??????????????§?????????\n\t\t\tstr=reader.readLine();\n\t\t\tarray_str=str.split(\" \");\n\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\tsum+=Integer.parseInt(array_str[i]);\n\t\t\t}\n\t\t\tm=(double)sum/num;//??????\n\n\n\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\tdiv+=(Double.parseDouble(array_str[i])-m)*(Double.parseDouble(array_str[i])-m)/num;\n\t\t\t}System.out.printf(\"%.8f\", Math.sqrt(div));\n\t\t\tSystem.out.println();\n\n\t\t\t}//while???????????°?????????\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.print(e);\n\t\t}\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main{ public static void main(String[] args){ BufferedReader reader=new BufferedReader(new InputStreamReader(System.in)); int num; int sum; double div, m; String str; String[] array_str; try{ while(true){ num=Integer.parseInt(reader.readLine()); if(num==0)break; sum=0; div=0;//??????????????§????????? str=reader.readLine(); array_str=str.split(" "); for(int i=0;i<num;i++){ sum+=Integer.parseInt(array_str[i]); } m=(double)sum/num;//?????? for(int i=0;i<num;i++){ div+=(Double.parseDouble(array_str[i])-m)*(Double.parseDouble(array_str[i])-m)/num; }System.out.printf("%.8f", Math.sqrt(div)); System.out.println(); }//while???????????°????????? }catch(IOException e){ System.out.print(e); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 3, 41, 13, 20, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 0, 13, 4, 18, 13, 2, 13, 13, 4, 18, 13, 17, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 114, 8 ], [ 114, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 20, 31 ], [ 31, 32 ], [ 31, 33 ], [ 20, 35 ], [ 35, 36 ], [ 35, 37 ], [ 20, 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 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 58, 59 ], [ 59, 60 ], [ 50, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 20, 66 ], [ 66, 67 ], [ 66, 68 ], [ 20, 69 ], [ 69, 70 ], [ 69, 71 ], [ 20, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 77, 78 ], [ 77, 79 ], [ 72, 80 ], [ 80, 81 ], [ 81, 82 ], [ 72, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 86, 94 ], [ 20, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 100, 101 ], [ 100, 102 ], [ 20, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 103, 107 ], [ 11, 108 ], [ 108, 109 ], [ 109, 110 ], [ 9, 111 ], [ 111, 112 ], [ 0, 113 ], [ 113, 114 ], [ 113, 115 ] ]
[ "import java.util.*;\nimport java.io.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\twhile(true) {\n\t\t\tint n=in.nextInt();\n\t\t\tif(n==0)break;\n\t\t\tdouble s[]=new double[n], ave=0;\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\ts[i]=Integer.parseInt(in.next());\n\t\t\t\tave+=s[i];\n\t\t\t}\n\t\t\tave/=n;\n\t\t\tdouble dev=0;\n\t\t\tfor(int i=0;i<n;i++)dev+=Math.pow(s[i]-ave, 2);\n\t\t\tdev=Math.sqrt(dev/n);\n\t\t\tout.printf(\"%f\\n\",dev);\n\t\t}\n\t\tout.flush();\n\t}\n}\n", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\twhile(true) {\n\t\t\tint n=in.nextInt();\n\t\t\tif(n==0)break;\n\t\t\tdouble s[]=new double[n], ave=0;\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\ts[i]=Integer.parseInt(in.next());\n\t\t\t\tave+=s[i];\n\t\t\t}\n\t\t\tave/=n;\n\t\t\tdouble dev=0;\n\t\t\tfor(int i=0;i<n;i++)dev+=Math.pow(s[i]-ave, 2);\n\t\t\tdev=Math.sqrt(dev/n);\n\t\t\tout.printf(\"%f\\n\",dev);\n\t\t}\n\t\tout.flush();\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\twhile(true) {\n\t\t\tint n=in.nextInt();\n\t\t\tif(n==0)break;\n\t\t\tdouble s[]=new double[n], ave=0;\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\ts[i]=Integer.parseInt(in.next());\n\t\t\t\tave+=s[i];\n\t\t\t}\n\t\t\tave/=n;\n\t\t\tdouble dev=0;\n\t\t\tfor(int i=0;i<n;i++)dev+=Math.pow(s[i]-ave, 2);\n\t\t\tdev=Math.sqrt(dev/n);\n\t\t\tout.printf(\"%f\\n\",dev);\n\t\t}\n\t\tout.flush();\n\t}", "main", "{\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\twhile(true) {\n\t\t\tint n=in.nextInt();\n\t\t\tif(n==0)break;\n\t\t\tdouble s[]=new double[n], ave=0;\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\ts[i]=Integer.parseInt(in.next());\n\t\t\t\tave+=s[i];\n\t\t\t}\n\t\t\tave/=n;\n\t\t\tdouble dev=0;\n\t\t\tfor(int i=0;i<n;i++)dev+=Math.pow(s[i]-ave, 2);\n\t\t\tdev=Math.sqrt(dev/n);\n\t\t\tout.printf(\"%f\\n\",dev);\n\t\t}\n\t\tout.flush();\n\t}", "Scanner in=new Scanner(System.in);", "in", "new Scanner(System.in)", "PrintWriter out=new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "while(true) {\n\t\t\tint n=in.nextInt();\n\t\t\tif(n==0)break;\n\t\t\tdouble s[]=new double[n], ave=0;\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\ts[i]=Integer.parseInt(in.next());\n\t\t\t\tave+=s[i];\n\t\t\t}\n\t\t\tave/=n;\n\t\t\tdouble dev=0;\n\t\t\tfor(int i=0;i<n;i++)dev+=Math.pow(s[i]-ave, 2);\n\t\t\tdev=Math.sqrt(dev/n);\n\t\t\tout.printf(\"%f\\n\",dev);\n\t\t}", "true", "{\n\t\t\tint n=in.nextInt();\n\t\t\tif(n==0)break;\n\t\t\tdouble s[]=new double[n], ave=0;\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\ts[i]=Integer.parseInt(in.next());\n\t\t\t\tave+=s[i];\n\t\t\t}\n\t\t\tave/=n;\n\t\t\tdouble dev=0;\n\t\t\tfor(int i=0;i<n;i++)dev+=Math.pow(s[i]-ave, 2);\n\t\t\tdev=Math.sqrt(dev/n);\n\t\t\tout.printf(\"%f\\n\",dev);\n\t\t}", "int n=in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "if(n==0)break;", "n==0", "n", "0", "break;", "double s[]=new double[n]", "s", "new double[n]", "n", "ave=0;", "ave", "0", "for(int i=0;i<n;i++) {\n\t\t\t\ts[i]=Integer.parseInt(in.next());\n\t\t\t\tave+=s[i];\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\ts[i]=Integer.parseInt(in.next());\n\t\t\t\tave+=s[i];\n\t\t\t}", "{\n\t\t\t\ts[i]=Integer.parseInt(in.next());\n\t\t\t\tave+=s[i];\n\t\t\t}", "s[i]=Integer.parseInt(in.next())", "s[i]", "s", "i", "Integer.parseInt(in.next())", "Integer.parseInt", "Integer", "in.next()", "in.next", "in", "ave+=s[i]", "ave", "s[i]", "s", "i", "ave/=n", "ave", "n", "double dev=0;", "dev", "0", "for(int i=0;i<n;i++)dev+=Math.pow(s[i]-ave, 2);", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "dev+=Math.pow(s[i]-ave, 2);", "dev+=Math.pow(s[i]-ave, 2)", "dev", "Math.pow(s[i]-ave, 2)", "Math.pow", "Math", "s[i]-ave", "s[i]", "s", "i", "ave", "2", "dev=Math.sqrt(dev/n)", "dev", "Math.sqrt(dev/n)", "Math.sqrt", "Math", "dev/n", "dev", "n", "out.printf(\"%f\\n\",dev)", "out.printf", "out", "\"%f\\n\"", "dev", "out.flush()", "out.flush", "out", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\twhile(true) {\n\t\t\tint n=in.nextInt();\n\t\t\tif(n==0)break;\n\t\t\tdouble s[]=new double[n], ave=0;\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\ts[i]=Integer.parseInt(in.next());\n\t\t\t\tave+=s[i];\n\t\t\t}\n\t\t\tave/=n;\n\t\t\tdouble dev=0;\n\t\t\tfor(int i=0;i<n;i++)dev+=Math.pow(s[i]-ave, 2);\n\t\t\tdev=Math.sqrt(dev/n);\n\t\t\tout.printf(\"%f\\n\",dev);\n\t\t}\n\t\tout.flush();\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\twhile(true) {\n\t\t\tint n=in.nextInt();\n\t\t\tif(n==0)break;\n\t\t\tdouble s[]=new double[n], ave=0;\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\ts[i]=Integer.parseInt(in.next());\n\t\t\t\tave+=s[i];\n\t\t\t}\n\t\t\tave/=n;\n\t\t\tdouble dev=0;\n\t\t\tfor(int i=0;i<n;i++)dev+=Math.pow(s[i]-ave, 2);\n\t\t\tdev=Math.sqrt(dev/n);\n\t\t\tout.printf(\"%f\\n\",dev);\n\t\t}\n\t\tout.flush();\n\t}\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { Scanner in=new Scanner(System.in); PrintWriter out=new PrintWriter(System.out); while(true) { int n=in.nextInt(); if(n==0)break; double s[]=new double[n], ave=0; for(int i=0;i<n;i++) { s[i]=Integer.parseInt(in.next()); ave+=s[i]; } ave/=n; double dev=0; for(int i=0;i<n;i++)dev+=Math.pow(s[i]-ave, 2); dev=Math.sqrt(dev/n); out.printf("%f\n",dev); } out.flush(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 41, 13, 20, 13, 41, 13, 17, 41, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 2, 13, 13, 41, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 0, 13, 2, 13, 13, 0, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 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 ], [ 146, 8 ], [ 146, 9 ], [ 9, 10 ], [ 9, 11 ], [ 146, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 21, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 25, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 31, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 35, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 45, 53 ], [ 53, 54 ], [ 54, 55 ], [ 45, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 63, 64 ], [ 57, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 35, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 35, 75 ], [ 75, 76 ], [ 75, 77 ], [ 35, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 83, 84 ], [ 83, 85 ], [ 78, 86 ], [ 86, 87 ], [ 87, 88 ], [ 78, 89 ], [ 90, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 93, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 35, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 35, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 35, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 120, 125 ], [ 125, 126 ], [ 126, 127 ], [ 125, 128 ], [ 35, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 129, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 134, 139 ], [ 139, 140 ], [ 140, 141 ], [ 139, 142 ], [ 12, 143 ], [ 143, 144 ], [ 0, 145 ], [ 145, 146 ], [ 145, 147 ] ]
[ "import java.text.DecimalFormat;\nimport java.util.Scanner;\npublic class Main{\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args){\n\t\tDecimalFormat df1 = new DecimalFormat(\"0.########\");\n\t\tDecimalFormat df2 = new DecimalFormat(\"0.00000000\");\n\t\t\n\t\twhile(sc.hasNext()){\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n!=0){\n\t\t\t\tint[] s = new int[n];\n\t\t\t\tdouble ave = 0;\n\t\t\t\tint i;\n\t\t\t\t\n\t\t\t\tfor(i=0; i<n; i++){\n\t\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\t\tave += s[i];\n\t\t\t\t}\n\t\t\t\tave = ave/n;\n\t\t\t\t\n\t\t\t\tdouble a=0;\n\t\t\t\tfor(i=0; i<n; i++){\n\t\t\t\t\ta += (s[i]-ave)*(s[i]-ave);\n\t\t\t\t}\n\t\t\t\ta = a/n;\n\t\t\t\ta = Math.sqrt(a);\n\t\t\t\t\n\t\t\t\tif(a > 0){\n\t\t\t\t\tSystem.out.println(df1.format(a));\n\t\t\t\t}\n\t\t\t\tif(a == 0){\n\t\t\t\t\tSystem.out.println(df2.format(a));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n }\n}", "import java.text.DecimalFormat;", "DecimalFormat", "java.text", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args){\n\t\tDecimalFormat df1 = new DecimalFormat(\"0.########\");\n\t\tDecimalFormat df2 = new DecimalFormat(\"0.00000000\");\n\t\t\n\t\twhile(sc.hasNext()){\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n!=0){\n\t\t\t\tint[] s = new int[n];\n\t\t\t\tdouble ave = 0;\n\t\t\t\tint i;\n\t\t\t\t\n\t\t\t\tfor(i=0; i<n; i++){\n\t\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\t\tave += s[i];\n\t\t\t\t}\n\t\t\t\tave = ave/n;\n\t\t\t\t\n\t\t\t\tdouble a=0;\n\t\t\t\tfor(i=0; i<n; i++){\n\t\t\t\t\ta += (s[i]-ave)*(s[i]-ave);\n\t\t\t\t}\n\t\t\t\ta = a/n;\n\t\t\t\ta = Math.sqrt(a);\n\t\t\t\t\n\t\t\t\tif(a > 0){\n\t\t\t\t\tSystem.out.println(df1.format(a));\n\t\t\t\t}\n\t\t\t\tif(a == 0){\n\t\t\t\t\tSystem.out.println(df2.format(a));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n }\n}", "Main", "static Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main(String[] args){\n\t\tDecimalFormat df1 = new DecimalFormat(\"0.########\");\n\t\tDecimalFormat df2 = new DecimalFormat(\"0.00000000\");\n\t\t\n\t\twhile(sc.hasNext()){\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n!=0){\n\t\t\t\tint[] s = new int[n];\n\t\t\t\tdouble ave = 0;\n\t\t\t\tint i;\n\t\t\t\t\n\t\t\t\tfor(i=0; i<n; i++){\n\t\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\t\tave += s[i];\n\t\t\t\t}\n\t\t\t\tave = ave/n;\n\t\t\t\t\n\t\t\t\tdouble a=0;\n\t\t\t\tfor(i=0; i<n; i++){\n\t\t\t\t\ta += (s[i]-ave)*(s[i]-ave);\n\t\t\t\t}\n\t\t\t\ta = a/n;\n\t\t\t\ta = Math.sqrt(a);\n\t\t\t\t\n\t\t\t\tif(a > 0){\n\t\t\t\t\tSystem.out.println(df1.format(a));\n\t\t\t\t}\n\t\t\t\tif(a == 0){\n\t\t\t\t\tSystem.out.println(df2.format(a));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n }", "main", "{\n\t\tDecimalFormat df1 = new DecimalFormat(\"0.########\");\n\t\tDecimalFormat df2 = new DecimalFormat(\"0.00000000\");\n\t\t\n\t\twhile(sc.hasNext()){\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n!=0){\n\t\t\t\tint[] s = new int[n];\n\t\t\t\tdouble ave = 0;\n\t\t\t\tint i;\n\t\t\t\t\n\t\t\t\tfor(i=0; i<n; i++){\n\t\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\t\tave += s[i];\n\t\t\t\t}\n\t\t\t\tave = ave/n;\n\t\t\t\t\n\t\t\t\tdouble a=0;\n\t\t\t\tfor(i=0; i<n; i++){\n\t\t\t\t\ta += (s[i]-ave)*(s[i]-ave);\n\t\t\t\t}\n\t\t\t\ta = a/n;\n\t\t\t\ta = Math.sqrt(a);\n\t\t\t\t\n\t\t\t\tif(a > 0){\n\t\t\t\t\tSystem.out.println(df1.format(a));\n\t\t\t\t}\n\t\t\t\tif(a == 0){\n\t\t\t\t\tSystem.out.println(df2.format(a));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n }", "DecimalFormat df1 = new DecimalFormat(\"0.########\");", "df1", "new DecimalFormat(\"0.########\")", "DecimalFormat df2 = new DecimalFormat(\"0.00000000\");", "df2", "new DecimalFormat(\"0.00000000\")", "while(sc.hasNext()){\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n!=0){\n\t\t\t\tint[] s = new int[n];\n\t\t\t\tdouble ave = 0;\n\t\t\t\tint i;\n\t\t\t\t\n\t\t\t\tfor(i=0; i<n; i++){\n\t\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\t\tave += s[i];\n\t\t\t\t}\n\t\t\t\tave = ave/n;\n\t\t\t\t\n\t\t\t\tdouble a=0;\n\t\t\t\tfor(i=0; i<n; i++){\n\t\t\t\t\ta += (s[i]-ave)*(s[i]-ave);\n\t\t\t\t}\n\t\t\t\ta = a/n;\n\t\t\t\ta = Math.sqrt(a);\n\t\t\t\t\n\t\t\t\tif(a > 0){\n\t\t\t\t\tSystem.out.println(df1.format(a));\n\t\t\t\t}\n\t\t\t\tif(a == 0){\n\t\t\t\t\tSystem.out.println(df2.format(a));\n\t\t\t\t}\n\t\t\t}\n\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n!=0){\n\t\t\t\tint[] s = new int[n];\n\t\t\t\tdouble ave = 0;\n\t\t\t\tint i;\n\t\t\t\t\n\t\t\t\tfor(i=0; i<n; i++){\n\t\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\t\tave += s[i];\n\t\t\t\t}\n\t\t\t\tave = ave/n;\n\t\t\t\t\n\t\t\t\tdouble a=0;\n\t\t\t\tfor(i=0; i<n; i++){\n\t\t\t\t\ta += (s[i]-ave)*(s[i]-ave);\n\t\t\t\t}\n\t\t\t\ta = a/n;\n\t\t\t\ta = Math.sqrt(a);\n\t\t\t\t\n\t\t\t\tif(a > 0){\n\t\t\t\t\tSystem.out.println(df1.format(a));\n\t\t\t\t}\n\t\t\t\tif(a == 0){\n\t\t\t\t\tSystem.out.println(df2.format(a));\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n!=0){\n\t\t\t\tint[] s = new int[n];\n\t\t\t\tdouble ave = 0;\n\t\t\t\tint i;\n\t\t\t\t\n\t\t\t\tfor(i=0; i<n; i++){\n\t\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\t\tave += s[i];\n\t\t\t\t}\n\t\t\t\tave = ave/n;\n\t\t\t\t\n\t\t\t\tdouble a=0;\n\t\t\t\tfor(i=0; i<n; i++){\n\t\t\t\t\ta += (s[i]-ave)*(s[i]-ave);\n\t\t\t\t}\n\t\t\t\ta = a/n;\n\t\t\t\ta = Math.sqrt(a);\n\t\t\t\t\n\t\t\t\tif(a > 0){\n\t\t\t\t\tSystem.out.println(df1.format(a));\n\t\t\t\t}\n\t\t\t\tif(a == 0){\n\t\t\t\t\tSystem.out.println(df2.format(a));\n\t\t\t\t}\n\t\t\t}", "n!=0", "n", "0", "{\n\t\t\t\tint[] s = new int[n];\n\t\t\t\tdouble ave = 0;\n\t\t\t\tint i;\n\t\t\t\t\n\t\t\t\tfor(i=0; i<n; i++){\n\t\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\t\tave += s[i];\n\t\t\t\t}\n\t\t\t\tave = ave/n;\n\t\t\t\t\n\t\t\t\tdouble a=0;\n\t\t\t\tfor(i=0; i<n; i++){\n\t\t\t\t\ta += (s[i]-ave)*(s[i]-ave);\n\t\t\t\t}\n\t\t\t\ta = a/n;\n\t\t\t\ta = Math.sqrt(a);\n\t\t\t\t\n\t\t\t\tif(a > 0){\n\t\t\t\t\tSystem.out.println(df1.format(a));\n\t\t\t\t}\n\t\t\t\tif(a == 0){\n\t\t\t\t\tSystem.out.println(df2.format(a));\n\t\t\t\t}\n\t\t\t}", "int[] s = new int[n];", "s", "new int[n]", "n", "double ave = 0;", "ave", "0", "int i;", "i", "for(i=0; i<n; i++){\n\t\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\t\tave += s[i];\n\t\t\t\t}", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\t\tave += s[i];\n\t\t\t\t}", "{\n\t\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\t\tave += s[i];\n\t\t\t\t}", "s[i] = sc.nextInt()", "s[i]", "s", "i", "sc.nextInt()", "sc.nextInt", "sc", "ave += s[i]", "ave", "s[i]", "s", "i", "ave = ave/n", "ave", "ave/n", "ave", "n", "double a=0;", "a", "0", "for(i=0; i<n; i++){\n\t\t\t\t\ta += (s[i]-ave)*(s[i]-ave);\n\t\t\t\t}", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\t\ta += (s[i]-ave)*(s[i]-ave);\n\t\t\t\t}", "{\n\t\t\t\t\ta += (s[i]-ave)*(s[i]-ave);\n\t\t\t\t}", "a += (s[i]-ave)*(s[i]-ave)", "a", "(s[i]-ave)*(s[i]-ave)", "(s[i]-ave)", "s[i]", "s", "i", "ave", "(s[i]-ave)", "s[i]", "s", "i", "ave", "a = a/n", "a", "a/n", "a", "n", "a = Math.sqrt(a)", "a", "Math.sqrt(a)", "Math.sqrt", "Math", "a", "if(a > 0){\n\t\t\t\t\tSystem.out.println(df1.format(a));\n\t\t\t\t}", "a > 0", "a", "0", "{\n\t\t\t\t\tSystem.out.println(df1.format(a));\n\t\t\t\t}", "System.out.println(df1.format(a))", "System.out.println", "System.out", "System", "System.out", "df1.format(a)", "df1.format", "df1", "a", "if(a == 0){\n\t\t\t\t\tSystem.out.println(df2.format(a));\n\t\t\t\t}", "a == 0", "a", "0", "{\n\t\t\t\t\tSystem.out.println(df2.format(a));\n\t\t\t\t}", "System.out.println(df2.format(a))", "System.out.println", "System.out", "System", "System.out", "df2.format(a)", "df2.format", "df2", "a", "String[] args", "args", "public class Main{\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args){\n\t\tDecimalFormat df1 = new DecimalFormat(\"0.########\");\n\t\tDecimalFormat df2 = new DecimalFormat(\"0.00000000\");\n\t\t\n\t\twhile(sc.hasNext()){\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n!=0){\n\t\t\t\tint[] s = new int[n];\n\t\t\t\tdouble ave = 0;\n\t\t\t\tint i;\n\t\t\t\t\n\t\t\t\tfor(i=0; i<n; i++){\n\t\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\t\tave += s[i];\n\t\t\t\t}\n\t\t\t\tave = ave/n;\n\t\t\t\t\n\t\t\t\tdouble a=0;\n\t\t\t\tfor(i=0; i<n; i++){\n\t\t\t\t\ta += (s[i]-ave)*(s[i]-ave);\n\t\t\t\t}\n\t\t\t\ta = a/n;\n\t\t\t\ta = Math.sqrt(a);\n\t\t\t\t\n\t\t\t\tif(a > 0){\n\t\t\t\t\tSystem.out.println(df1.format(a));\n\t\t\t\t}\n\t\t\t\tif(a == 0){\n\t\t\t\t\tSystem.out.println(df2.format(a));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n }\n}", "public class Main{\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args){\n\t\tDecimalFormat df1 = new DecimalFormat(\"0.########\");\n\t\tDecimalFormat df2 = new DecimalFormat(\"0.00000000\");\n\t\t\n\t\twhile(sc.hasNext()){\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n!=0){\n\t\t\t\tint[] s = new int[n];\n\t\t\t\tdouble ave = 0;\n\t\t\t\tint i;\n\t\t\t\t\n\t\t\t\tfor(i=0; i<n; i++){\n\t\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\t\tave += s[i];\n\t\t\t\t}\n\t\t\t\tave = ave/n;\n\t\t\t\t\n\t\t\t\tdouble a=0;\n\t\t\t\tfor(i=0; i<n; i++){\n\t\t\t\t\ta += (s[i]-ave)*(s[i]-ave);\n\t\t\t\t}\n\t\t\t\ta = a/n;\n\t\t\t\ta = Math.sqrt(a);\n\t\t\t\t\n\t\t\t\tif(a > 0){\n\t\t\t\t\tSystem.out.println(df1.format(a));\n\t\t\t\t}\n\t\t\t\tif(a == 0){\n\t\t\t\t\tSystem.out.println(df2.format(a));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n }\n}", "Main" ]
import java.text.DecimalFormat; import java.util.Scanner; public class Main{ static Scanner sc = new Scanner(System.in); public static void main(String[] args){ DecimalFormat df1 = new DecimalFormat("0.########"); DecimalFormat df2 = new DecimalFormat("0.00000000"); while(sc.hasNext()){ int n = sc.nextInt(); if(n!=0){ int[] s = new int[n]; double ave = 0; int i; for(i=0; i<n; i++){ s[i] = sc.nextInt(); ave += s[i]; } ave = ave/n; double a=0; for(i=0; i<n; i++){ a += (s[i]-ave)*(s[i]-ave); } a = a/n; a = Math.sqrt(a); if(a > 0){ System.out.println(df1.format(a)); } if(a == 0){ System.out.println(df2.format(a)); } } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 3, 41, 13, 0, 13, 20, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 41, 13, 2, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 41, 13, 4, 18, 13, 2, 13, 13, 4, 18, 18, 13, 13, 17, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 17, 28 ], [ 28, 29 ], [ 17, 30 ], [ 30, 31 ], [ 30, 32 ], [ 17, 34 ], [ 34, 35 ], [ 34, 36 ], [ 17, 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 ], [ 49, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 17, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 17, 67 ], [ 67, 68 ], [ 67, 69 ], [ 17, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 75, 76 ], [ 75, 77 ], [ 70, 78 ], [ 78, 79 ], [ 79, 80 ], [ 70, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 84, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 17, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 100, 101 ], [ 100, 102 ], [ 17, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 103, 109 ], [ 9, 110 ], [ 110, 111 ] ]
[ "import java.util.Scanner;\nimport java.io.*;\n\nclass Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = scan.nextInt();\n\t\t\tif (n == 0) break;\n\t\t\tint[] s;\n\t\t\ts = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < n; i ++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = (double)sum / n;\n\t\t\tdouble shiguma = 0;\n\t\t\tfor (int i = 0; i < n; i ++) shiguma += (s[i] - m) * (s[i] - m);\n\t\t\tdouble a = Math.sqrt(shiguma / n);\n\t\t\tSystem.out.printf(\"%f\\n\", a);\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.io.*;", "io.*", "java", "class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = scan.nextInt();\n\t\t\tif (n == 0) break;\n\t\t\tint[] s;\n\t\t\ts = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < n; i ++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = (double)sum / n;\n\t\t\tdouble shiguma = 0;\n\t\t\tfor (int i = 0; i < n; i ++) shiguma += (s[i] - m) * (s[i] - m);\n\t\t\tdouble a = Math.sqrt(shiguma / n);\n\t\t\tSystem.out.printf(\"%f\\n\", a);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = scan.nextInt();\n\t\t\tif (n == 0) break;\n\t\t\tint[] s;\n\t\t\ts = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < n; i ++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = (double)sum / n;\n\t\t\tdouble shiguma = 0;\n\t\t\tfor (int i = 0; i < n; i ++) shiguma += (s[i] - m) * (s[i] - m);\n\t\t\tdouble a = Math.sqrt(shiguma / n);\n\t\t\tSystem.out.printf(\"%f\\n\", a);\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = scan.nextInt();\n\t\t\tif (n == 0) break;\n\t\t\tint[] s;\n\t\t\ts = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < n; i ++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = (double)sum / n;\n\t\t\tdouble shiguma = 0;\n\t\t\tfor (int i = 0; i < n; i ++) shiguma += (s[i] - m) * (s[i] - m);\n\t\t\tdouble a = Math.sqrt(shiguma / n);\n\t\t\tSystem.out.printf(\"%f\\n\", a);\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while (true) {\n\t\t\tint n = scan.nextInt();\n\t\t\tif (n == 0) break;\n\t\t\tint[] s;\n\t\t\ts = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < n; i ++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = (double)sum / n;\n\t\t\tdouble shiguma = 0;\n\t\t\tfor (int i = 0; i < n; i ++) shiguma += (s[i] - m) * (s[i] - m);\n\t\t\tdouble a = Math.sqrt(shiguma / n);\n\t\t\tSystem.out.printf(\"%f\\n\", a);\n\t\t}", "true", "{\n\t\t\tint n = scan.nextInt();\n\t\t\tif (n == 0) break;\n\t\t\tint[] s;\n\t\t\ts = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < n; i ++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = (double)sum / n;\n\t\t\tdouble shiguma = 0;\n\t\t\tfor (int i = 0; i < n; i ++) shiguma += (s[i] - m) * (s[i] - m);\n\t\t\tdouble a = Math.sqrt(shiguma / n);\n\t\t\tSystem.out.printf(\"%f\\n\", a);\n\t\t}", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "if (n == 0) break;", "n == 0", "n", "0", "break;", "int[] s;", "s", "s = new int[n]", "s", "new int[n]", "n", "int sum = 0;", "sum", "0", "for (int i = 0; i < n; i ++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i ++", "i ++", "i", "{\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}", "{\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}", "s[i] = scan.nextInt()", "s[i]", "s", "i", "scan.nextInt()", "scan.nextInt", "scan", "sum += s[i]", "sum", "s[i]", "s", "i", "double m = (double)sum / n;", "m", "(double)sum / n", "(double)sum", "n", "double shiguma = 0;", "shiguma", "0", "for (int i = 0; i < n; i ++) shiguma += (s[i] - m) * (s[i] - m);", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i ++", "i ++", "i", "shiguma += (s[i] - m) * (s[i] - m);", "shiguma += (s[i] - m) * (s[i] - m)", "shiguma", "(s[i] - m) * (s[i] - m)", "(s[i] - m)", "s[i]", "s", "i", "m", "(s[i] - m)", "s[i]", "s", "i", "m", "double a = Math.sqrt(shiguma / n);", "a", "Math.sqrt(shiguma / n)", "Math.sqrt", "Math", "shiguma / n", "shiguma", "n", "System.out.printf(\"%f\\n\", a)", "System.out.printf", "System.out", "System", "System.out", "\"%f\\n\"", "a", "String[] args", "args" ]
import java.util.Scanner; import java.io.*; class Main{ public static void main(String[] args) { Scanner scan = new Scanner(System.in); while (true) { int n = scan.nextInt(); if (n == 0) break; int[] s; s = new int[n]; int sum = 0; for (int i = 0; i < n; i ++) { s[i] = scan.nextInt(); sum += s[i]; } double m = (double)sum / n; double shiguma = 0; for (int i = 0; i < n; i ++) shiguma += (s[i] - m) * (s[i] - m); double a = Math.sqrt(shiguma / n); System.out.printf("%f\n", a); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 20, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 41, 13, 2, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 0, 13, 4, 18, 13, 2, 13, 13, 4, 18, 13, 13, 28, 13, 13, 30, 30, 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 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 130, 11 ], [ 130, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 33, 34 ], [ 23, 35 ], [ 35, 36 ], [ 35, 37 ], [ 23, 39 ], [ 39, 40 ], [ 39, 41 ], [ 23, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 47, 48 ], [ 47, 49 ], [ 42, 50 ], [ 50, 51 ], [ 51, 52 ], [ 42, 53 ], [ 54, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 60, 61 ], [ 54, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 23, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 23, 72 ], [ 72, 73 ], [ 72, 74 ], [ 23, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 80, 81 ], [ 80, 82 ], [ 75, 83 ], [ 83, 84 ], [ 84, 85 ], [ 75, 86 ], [ 87, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 90, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 23, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 106, 107 ], [ 106, 108 ], [ 23, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 14, 113 ], [ 113, 114 ], [ 113, 115 ], [ 113, 116 ], [ 117, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 14, 124 ], [ 124, 125 ], [ 125, 126 ], [ 12, 127 ], [ 127, 128 ], [ 0, 129 ], [ 129, 130 ], [ 129, 131 ] ]
[ "\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tList<Double> list = new ArrayList<Double>();\n\t\t\n\t\twhile (true) {\n\t\t\tint n = scan.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] s = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = (double)sum / n;\n\n\t\t\tdouble alpha = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\talpha += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\talpha = Math.sqrt(alpha / n);\n\t\t\tlist.add(alpha);\n\t\t}\n\n\t\tfor (Double alpha : list) {\n\t\t\tSystem.out.println(alpha);\n\t\t}\n\t\t\n\t\tscan.close();\n\t}\n\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tList<Double> list = new ArrayList<Double>();\n\t\t\n\t\twhile (true) {\n\t\t\tint n = scan.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] s = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = (double)sum / n;\n\n\t\t\tdouble alpha = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\talpha += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\talpha = Math.sqrt(alpha / n);\n\t\t\tlist.add(alpha);\n\t\t}\n\n\t\tfor (Double alpha : list) {\n\t\t\tSystem.out.println(alpha);\n\t\t}\n\t\t\n\t\tscan.close();\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tList<Double> list = new ArrayList<Double>();\n\t\t\n\t\twhile (true) {\n\t\t\tint n = scan.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] s = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = (double)sum / n;\n\n\t\t\tdouble alpha = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\talpha += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\talpha = Math.sqrt(alpha / n);\n\t\t\tlist.add(alpha);\n\t\t}\n\n\t\tfor (Double alpha : list) {\n\t\t\tSystem.out.println(alpha);\n\t\t}\n\t\t\n\t\tscan.close();\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tList<Double> list = new ArrayList<Double>();\n\t\t\n\t\twhile (true) {\n\t\t\tint n = scan.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] s = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = (double)sum / n;\n\n\t\t\tdouble alpha = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\talpha += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\talpha = Math.sqrt(alpha / n);\n\t\t\tlist.add(alpha);\n\t\t}\n\n\t\tfor (Double alpha : list) {\n\t\t\tSystem.out.println(alpha);\n\t\t}\n\t\t\n\t\tscan.close();\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "List<Double> list = new ArrayList<Double>();", "list", "new ArrayList<Double>()", "while (true) {\n\t\t\tint n = scan.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] s = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = (double)sum / n;\n\n\t\t\tdouble alpha = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\talpha += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\talpha = Math.sqrt(alpha / n);\n\t\t\tlist.add(alpha);\n\t\t}", "true", "{\n\t\t\tint n = scan.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] s = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = (double)sum / n;\n\n\t\t\tdouble alpha = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\talpha += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\talpha = Math.sqrt(alpha / n);\n\t\t\tlist.add(alpha);\n\t\t}", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "if (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}", "n == 0", "n", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "int[] s = new int[n];", "s", "new int[n]", "n", "int sum = 0;", "sum", "0", "for (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}", "{\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}", "s[i] = scan.nextInt()", "s[i]", "s", "i", "scan.nextInt()", "scan.nextInt", "scan", "sum += s[i]", "sum", "s[i]", "s", "i", "double m = (double)sum / n;", "m", "(double)sum / n", "(double)sum", "n", "double alpha = 0;", "alpha", "0", "for (int i = 0; i < n; i++) {\n\t\t\t\talpha += (s[i] - m) * (s[i] - m);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\talpha += (s[i] - m) * (s[i] - m);\n\t\t\t}", "{\n\t\t\t\talpha += (s[i] - m) * (s[i] - m);\n\t\t\t}", "alpha += (s[i] - m) * (s[i] - m)", "alpha", "(s[i] - m) * (s[i] - m)", "(s[i] - m)", "s[i]", "s", "i", "m", "(s[i] - m)", "s[i]", "s", "i", "m", "alpha = Math.sqrt(alpha / n)", "alpha", "Math.sqrt(alpha / n)", "Math.sqrt", "Math", "alpha / n", "alpha", "n", "list.add(alpha)", "list.add", "list", "alpha", "for (Double alpha : list) {\n\t\t\tSystem.out.println(alpha);\n\t\t}", "Double alpha", "list", "{\n\t\t\tSystem.out.println(alpha);\n\t\t}", "{\n\t\t\tSystem.out.println(alpha);\n\t\t}", "System.out.println(alpha)", "System.out.println", "System.out", "System", "System.out", "alpha", "scan.close()", "scan.close", "scan", "String[] args", "args", "public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tList<Double> list = new ArrayList<Double>();\n\t\t\n\t\twhile (true) {\n\t\t\tint n = scan.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] s = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = (double)sum / n;\n\n\t\t\tdouble alpha = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\talpha += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\talpha = Math.sqrt(alpha / n);\n\t\t\tlist.add(alpha);\n\t\t}\n\n\t\tfor (Double alpha : list) {\n\t\t\tSystem.out.println(alpha);\n\t\t}\n\t\t\n\t\tscan.close();\n\t}\n\n}", "public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tList<Double> list = new ArrayList<Double>();\n\t\t\n\t\twhile (true) {\n\t\t\tint n = scan.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] s = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = (double)sum / n;\n\n\t\t\tdouble alpha = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\talpha += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\talpha = Math.sqrt(alpha / n);\n\t\t\tlist.add(alpha);\n\t\t}\n\n\t\tfor (Double alpha : list) {\n\t\t\tSystem.out.println(alpha);\n\t\t}\n\t\t\n\t\tscan.close();\n\t}\n\n}", "Main" ]
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); List<Double> list = new ArrayList<Double>(); while (true) { int n = scan.nextInt(); if (n == 0) { break; } int[] s = new int[n]; int sum = 0; for (int i = 0; i < n; i++) { s[i] = scan.nextInt(); sum += s[i]; } double m = (double)sum / n; double alpha = 0; for (int i = 0; i < n; i++) { alpha += (s[i] - m) * (s[i] - m); } alpha = Math.sqrt(alpha / n); list.add(alpha); } for (Double alpha : list) { System.out.println(alpha); } scan.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 20, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 41, 13, 2, 13, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 17, 4, 18, 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 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 16, 28 ], [ 28, 29 ], [ 28, 30 ], [ 16, 32 ], [ 32, 33 ], [ 32, 34 ], [ 16, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 42, 44 ], [ 35, 45 ], [ 45, 46 ], [ 46, 47 ], [ 35, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 49, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 16, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 16, 67 ], [ 67, 68 ], [ 67, 69 ], [ 16, 70 ], [ 70, 71 ], [ 70, 72 ], [ 16, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 73, 83 ], [ 83, 84 ], [ 84, 85 ], [ 73, 86 ], [ 87, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 90, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 16, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 103, 105 ], [ 16, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 106, 112 ], [ 112, 113 ], [ 113, 114 ], [ 112, 115 ], [ 6, 116 ], [ 116, 117 ], [ 0, 118 ], [ 118, 119 ], [ 118, 120 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String args[]){\n try (Scanner sc = new Scanner (System.in)){\n while(true){\n int n = sc.nextInt();\n if(n==0){\n break;\n }\n int [] scores = new int[n];\n double sum =0;\n for(int i=0;i<scores.length;i++){\n scores[i]=sc.nextInt();\n sum += scores[i];\n }\n double ave = sum/n;\n double varp=0;\n double var =0;\n for(int i=0;i<scores.length;i++){\n varp += (scores[i]-ave)*(scores[i]-ave);\n }\n var = varp/n;\n System.out.printf(\"%f\\n\",Math.sqrt(var));\n }\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String args[]){\n try (Scanner sc = new Scanner (System.in)){\n while(true){\n int n = sc.nextInt();\n if(n==0){\n break;\n }\n int [] scores = new int[n];\n double sum =0;\n for(int i=0;i<scores.length;i++){\n scores[i]=sc.nextInt();\n sum += scores[i];\n }\n double ave = sum/n;\n double varp=0;\n double var =0;\n for(int i=0;i<scores.length;i++){\n varp += (scores[i]-ave)*(scores[i]-ave);\n }\n var = varp/n;\n System.out.printf(\"%f\\n\",Math.sqrt(var));\n }\n }\n }\n}", "Main", "public static void main(String args[]){\n try (Scanner sc = new Scanner (System.in)){\n while(true){\n int n = sc.nextInt();\n if(n==0){\n break;\n }\n int [] scores = new int[n];\n double sum =0;\n for(int i=0;i<scores.length;i++){\n scores[i]=sc.nextInt();\n sum += scores[i];\n }\n double ave = sum/n;\n double varp=0;\n double var =0;\n for(int i=0;i<scores.length;i++){\n varp += (scores[i]-ave)*(scores[i]-ave);\n }\n var = varp/n;\n System.out.printf(\"%f\\n\",Math.sqrt(var));\n }\n }\n }", "main", "{\n try (Scanner sc = new Scanner (System.in)){\n while(true){\n int n = sc.nextInt();\n if(n==0){\n break;\n }\n int [] scores = new int[n];\n double sum =0;\n for(int i=0;i<scores.length;i++){\n scores[i]=sc.nextInt();\n sum += scores[i];\n }\n double ave = sum/n;\n double varp=0;\n double var =0;\n for(int i=0;i<scores.length;i++){\n varp += (scores[i]-ave)*(scores[i]-ave);\n }\n var = varp/n;\n System.out.printf(\"%f\\n\",Math.sqrt(var));\n }\n }\n }", "try (Scanner sc = new Scanner (System.in)){\n while(true){\n int n = sc.nextInt();\n if(n==0){\n break;\n }\n int [] scores = new int[n];\n double sum =0;\n for(int i=0;i<scores.length;i++){\n scores[i]=sc.nextInt();\n sum += scores[i];\n }\n double ave = sum/n;\n double varp=0;\n double var =0;\n for(int i=0;i<scores.length;i++){\n varp += (scores[i]-ave)*(scores[i]-ave);\n }\n var = varp/n;\n System.out.printf(\"%f\\n\",Math.sqrt(var));\n }\n }", "{\n while(true){\n int n = sc.nextInt();\n if(n==0){\n break;\n }\n int [] scores = new int[n];\n double sum =0;\n for(int i=0;i<scores.length;i++){\n scores[i]=sc.nextInt();\n sum += scores[i];\n }\n double ave = sum/n;\n double varp=0;\n double var =0;\n for(int i=0;i<scores.length;i++){\n varp += (scores[i]-ave)*(scores[i]-ave);\n }\n var = varp/n;\n System.out.printf(\"%f\\n\",Math.sqrt(var));\n }\n }", "Scanner sc = new Scanner (System.in)", "Scanner sc = new Scanner (System.in)", "new Scanner (System.in)", "while(true){\n int n = sc.nextInt();\n if(n==0){\n break;\n }\n int [] scores = new int[n];\n double sum =0;\n for(int i=0;i<scores.length;i++){\n scores[i]=sc.nextInt();\n sum += scores[i];\n }\n double ave = sum/n;\n double varp=0;\n double var =0;\n for(int i=0;i<scores.length;i++){\n varp += (scores[i]-ave)*(scores[i]-ave);\n }\n var = varp/n;\n System.out.printf(\"%f\\n\",Math.sqrt(var));\n }", "true", "{\n int n = sc.nextInt();\n if(n==0){\n break;\n }\n int [] scores = new int[n];\n double sum =0;\n for(int i=0;i<scores.length;i++){\n scores[i]=sc.nextInt();\n sum += scores[i];\n }\n double ave = sum/n;\n double varp=0;\n double var =0;\n for(int i=0;i<scores.length;i++){\n varp += (scores[i]-ave)*(scores[i]-ave);\n }\n var = varp/n;\n System.out.printf(\"%f\\n\",Math.sqrt(var));\n }", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n==0){\n break;\n }", "n==0", "n", "0", "{\n break;\n }", "break;", "int [] scores = new int[n];", "scores", "new int[n]", "n", "double sum =0;", "sum", "0", "for(int i=0;i<scores.length;i++){\n scores[i]=sc.nextInt();\n sum += scores[i];\n }", "int i=0;", "int i=0;", "i", "0", "i<scores.length", "i", "scores.length", "scores", "scores.length", "i++", "i++", "i", "{\n scores[i]=sc.nextInt();\n sum += scores[i];\n }", "{\n scores[i]=sc.nextInt();\n sum += scores[i];\n }", "scores[i]=sc.nextInt()", "scores[i]", "scores", "i", "sc.nextInt()", "sc.nextInt", "sc", "sum += scores[i]", "sum", "scores[i]", "scores", "i", "double ave = sum/n;", "ave", "sum/n", "sum", "n", "double varp=0;", "varp", "0", "double var =0;", "var", "0", "for(int i=0;i<scores.length;i++){\n varp += (scores[i]-ave)*(scores[i]-ave);\n }", "int i=0;", "int i=0;", "i", "0", "i<scores.length", "i", "scores.length", "scores", "scores.length", "i++", "i++", "i", "{\n varp += (scores[i]-ave)*(scores[i]-ave);\n }", "{\n varp += (scores[i]-ave)*(scores[i]-ave);\n }", "varp += (scores[i]-ave)*(scores[i]-ave)", "varp", "(scores[i]-ave)*(scores[i]-ave)", "(scores[i]-ave)", "scores[i]", "scores", "i", "ave", "(scores[i]-ave)", "scores[i]", "scores", "i", "ave", "var = varp/n", "var", "varp/n", "varp", "n", "System.out.printf(\"%f\\n\",Math.sqrt(var))", "System.out.printf", "System.out", "System", "System.out", "\"%f\\n\"", "Math.sqrt(var)", "Math.sqrt", "Math", "var", "String args[]", "args", "public class Main{\n public static void main(String args[]){\n try (Scanner sc = new Scanner (System.in)){\n while(true){\n int n = sc.nextInt();\n if(n==0){\n break;\n }\n int [] scores = new int[n];\n double sum =0;\n for(int i=0;i<scores.length;i++){\n scores[i]=sc.nextInt();\n sum += scores[i];\n }\n double ave = sum/n;\n double varp=0;\n double var =0;\n for(int i=0;i<scores.length;i++){\n varp += (scores[i]-ave)*(scores[i]-ave);\n }\n var = varp/n;\n System.out.printf(\"%f\\n\",Math.sqrt(var));\n }\n }\n }\n}", "public class Main{\n public static void main(String args[]){\n try (Scanner sc = new Scanner (System.in)){\n while(true){\n int n = sc.nextInt();\n if(n==0){\n break;\n }\n int [] scores = new int[n];\n double sum =0;\n for(int i=0;i<scores.length;i++){\n scores[i]=sc.nextInt();\n sum += scores[i];\n }\n double ave = sum/n;\n double varp=0;\n double var =0;\n for(int i=0;i<scores.length;i++){\n varp += (scores[i]-ave)*(scores[i]-ave);\n }\n var = varp/n;\n System.out.printf(\"%f\\n\",Math.sqrt(var));\n }\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String args[]){ try (Scanner sc = new Scanner (System.in)){ while(true){ int n = sc.nextInt(); if(n==0){ break; } int [] scores = new int[n]; double sum =0; for(int i=0;i<scores.length;i++){ scores[i]=sc.nextInt(); sum += scores[i]; } double ave = sum/n; double varp=0; double var =0; for(int i=0;i<scores.length;i++){ varp += (scores[i]-ave)*(scores[i]-ave); } var = varp/n; System.out.printf("%f\n",Math.sqrt(var)); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 13, 14, 2, 13, 17, 30, 3, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 0, 13, 18, 13, 13, 0, 13, 2, 13, 13, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 0, 13, 4, 18, 13, 2, 13, 13, 4, 18, 18, 13, 13, 17, 13, 4, 18, 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 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 17, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 14, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 34, 39 ], [ 14, 40 ], [ 40, 41 ], [ 40, 42 ], [ 14, 44 ], [ 44, 45 ], [ 44, 46 ], [ 14, 47 ], [ 47, 48 ], [ 47, 49 ], [ 14, 50 ], [ 50, 51 ], [ 50, 52 ], [ 14, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 53, 61 ], [ 61, 62 ], [ 62, 63 ], [ 53, 64 ], [ 65, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 73, 74 ], [ 73, 75 ], [ 65, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 78, 80 ], [ 14, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 14, 86 ], [ 86, 87 ], [ 86, 88 ], [ 14, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 94, 95 ], [ 94, 96 ], [ 89, 97 ], [ 97, 98 ], [ 98, 99 ], [ 89, 100 ], [ 101, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 104, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 14, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 118, 119 ], [ 117, 120 ], [ 120, 121 ], [ 120, 122 ], [ 14, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 123, 128 ], [ 123, 129 ], [ 14, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 6, 135 ], [ 135, 136 ] ]
[ "import java.util.*;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint n = Integer.parseInt(sc.nextLine());\n\t\t\tdouble nDouble =(double)n;\n\t\t\tif(n==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] line= sc.nextLine().split(\" \");\n\t\t\tdouble[] s = new double[n];\n\t\t\tdouble m=0;\n\t\t\tdouble sum=0;\n\t\t\tdouble alpha=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\ts[i]=Double.parseDouble(line[i]);\n\t\t\t\tsum+=s[i];\n\t\t\t}\n\t\t\tm=sum/nDouble;\n\t\t\tsum=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsum+=(s[i]-m)*(s[i]-m);\n\t\t\t}\n\t\t\talpha=Math.sqrt(sum/n);\n\t\t\tSystem.out.printf(\"%.5f\",alpha);\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint n = Integer.parseInt(sc.nextLine());\n\t\t\tdouble nDouble =(double)n;\n\t\t\tif(n==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] line= sc.nextLine().split(\" \");\n\t\t\tdouble[] s = new double[n];\n\t\t\tdouble m=0;\n\t\t\tdouble sum=0;\n\t\t\tdouble alpha=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\ts[i]=Double.parseDouble(line[i]);\n\t\t\t\tsum+=s[i];\n\t\t\t}\n\t\t\tm=sum/nDouble;\n\t\t\tsum=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsum+=(s[i]-m)*(s[i]-m);\n\t\t\t}\n\t\t\talpha=Math.sqrt(sum/n);\n\t\t\tSystem.out.printf(\"%.5f\",alpha);\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint n = Integer.parseInt(sc.nextLine());\n\t\t\tdouble nDouble =(double)n;\n\t\t\tif(n==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] line= sc.nextLine().split(\" \");\n\t\t\tdouble[] s = new double[n];\n\t\t\tdouble m=0;\n\t\t\tdouble sum=0;\n\t\t\tdouble alpha=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\ts[i]=Double.parseDouble(line[i]);\n\t\t\t\tsum+=s[i];\n\t\t\t}\n\t\t\tm=sum/nDouble;\n\t\t\tsum=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsum+=(s[i]-m)*(s[i]-m);\n\t\t\t}\n\t\t\talpha=Math.sqrt(sum/n);\n\t\t\tSystem.out.printf(\"%.5f\",alpha);\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint n = Integer.parseInt(sc.nextLine());\n\t\t\tdouble nDouble =(double)n;\n\t\t\tif(n==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] line= sc.nextLine().split(\" \");\n\t\t\tdouble[] s = new double[n];\n\t\t\tdouble m=0;\n\t\t\tdouble sum=0;\n\t\t\tdouble alpha=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\ts[i]=Double.parseDouble(line[i]);\n\t\t\t\tsum+=s[i];\n\t\t\t}\n\t\t\tm=sum/nDouble;\n\t\t\tsum=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsum+=(s[i]-m)*(s[i]-m);\n\t\t\t}\n\t\t\talpha=Math.sqrt(sum/n);\n\t\t\tSystem.out.printf(\"%.5f\",alpha);\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n\t\t\tint n = Integer.parseInt(sc.nextLine());\n\t\t\tdouble nDouble =(double)n;\n\t\t\tif(n==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] line= sc.nextLine().split(\" \");\n\t\t\tdouble[] s = new double[n];\n\t\t\tdouble m=0;\n\t\t\tdouble sum=0;\n\t\t\tdouble alpha=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\ts[i]=Double.parseDouble(line[i]);\n\t\t\t\tsum+=s[i];\n\t\t\t}\n\t\t\tm=sum/nDouble;\n\t\t\tsum=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsum+=(s[i]-m)*(s[i]-m);\n\t\t\t}\n\t\t\talpha=Math.sqrt(sum/n);\n\t\t\tSystem.out.printf(\"%.5f\",alpha);\n\t\t\tSystem.out.println();\n\t\t}", "true", "{\n\t\t\tint n = Integer.parseInt(sc.nextLine());\n\t\t\tdouble nDouble =(double)n;\n\t\t\tif(n==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] line= sc.nextLine().split(\" \");\n\t\t\tdouble[] s = new double[n];\n\t\t\tdouble m=0;\n\t\t\tdouble sum=0;\n\t\t\tdouble alpha=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\ts[i]=Double.parseDouble(line[i]);\n\t\t\t\tsum+=s[i];\n\t\t\t}\n\t\t\tm=sum/nDouble;\n\t\t\tsum=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsum+=(s[i]-m)*(s[i]-m);\n\t\t\t}\n\t\t\talpha=Math.sqrt(sum/n);\n\t\t\tSystem.out.printf(\"%.5f\",alpha);\n\t\t\tSystem.out.println();\n\t\t}", "int n = Integer.parseInt(sc.nextLine());", "n", "Integer.parseInt(sc.nextLine())", "Integer.parseInt", "Integer", "sc.nextLine()", "sc.nextLine", "sc", "double nDouble =(double)n;", "nDouble", "(double)n", "if(n==0){\n\t\t\t\tbreak;\n\t\t\t}", "n==0", "n", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "String[] line= sc.nextLine().split(\" \");", "line", "sc.nextLine().split(\" \")", "sc.nextLine().split", "sc.nextLine()", "sc.nextLine", "sc", "\" \"", "double[] s = new double[n];", "s", "new double[n]", "n", "double m=0;", "m", "0", "double sum=0;", "sum", "0", "double alpha=0;", "alpha", "0", "for(int i=0;i<n;i++){\n\t\t\t\ts[i]=Double.parseDouble(line[i]);\n\t\t\t\tsum+=s[i];\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\ts[i]=Double.parseDouble(line[i]);\n\t\t\t\tsum+=s[i];\n\t\t\t}", "{\n\t\t\t\ts[i]=Double.parseDouble(line[i]);\n\t\t\t\tsum+=s[i];\n\t\t\t}", "s[i]=Double.parseDouble(line[i])", "s[i]", "s", "i", "Double.parseDouble(line[i])", "Double.parseDouble", "Double", "line[i]", "line", "i", "sum+=s[i]", "sum", "s[i]", "s", "i", "m=sum/nDouble", "m", "sum/nDouble", "sum", "nDouble", "sum=0", "sum", "0", "for(int i=0;i<n;i++){\n\t\t\t\tsum+=(s[i]-m)*(s[i]-m);\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tsum+=(s[i]-m)*(s[i]-m);\n\t\t\t}", "{\n\t\t\t\tsum+=(s[i]-m)*(s[i]-m);\n\t\t\t}", "sum+=(s[i]-m)*(s[i]-m)", "sum", "(s[i]-m)*(s[i]-m)", "(s[i]-m)", "s[i]", "s", "i", "m", "(s[i]-m)", "s[i]", "s", "i", "m", "alpha=Math.sqrt(sum/n)", "alpha", "Math.sqrt(sum/n)", "Math.sqrt", "Math", "sum/n", "sum", "n", "System.out.printf(\"%.5f\",alpha)", "System.out.printf", "System.out", "System", "System.out", "\"%.5f\"", "alpha", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args" ]
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(true){ int n = Integer.parseInt(sc.nextLine()); double nDouble =(double)n; if(n==0){ break; } String[] line= sc.nextLine().split(" "); double[] s = new double[n]; double m=0; double sum=0; double alpha=0; for(int i=0;i<n;i++){ s[i]=Double.parseDouble(line[i]); sum+=s[i]; } m=sum/nDouble; sum=0; for(int i=0;i<n;i++){ sum+=(s[i]-m)*(s[i]-m); } alpha=Math.sqrt(sum/n); System.out.printf("%.5f",alpha); System.out.println(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 3, 41, 13, 20, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 2, 13, 13, 12, 13, 30, 4, 18, 20, 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 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 14, 32 ], [ 32, 33 ], [ 32, 34 ], [ 14, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 53, 54 ], [ 47, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 14, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 14, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 70, 71 ], [ 70, 72 ], [ 65, 73 ], [ 73, 74 ], [ 74, 75 ], [ 65, 76 ], [ 77, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 80, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 14, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 99, 100 ], [ 99, 101 ], [ 111, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 102, 108 ], [ 108, 109 ], [ 0, 110 ], [ 110, 111 ], [ 110, 112 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = scan.nextInt();\n\t\t\tif (n == 0) break;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0;\n\t\t\tdouble a = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm = m/n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ta += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(a/n));\n\t\t}\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = scan.nextInt();\n\t\t\tif (n == 0) break;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0;\n\t\t\tdouble a = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm = m/n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ta += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(a/n));\n\t\t}\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "Main", "void run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = scan.nextInt();\n\t\t\tif (n == 0) break;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0;\n\t\t\tdouble a = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm = m/n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ta += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(a/n));\n\t\t}\n\t}", "run", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = scan.nextInt();\n\t\t\tif (n == 0) break;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0;\n\t\t\tdouble a = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm = m/n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ta += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(a/n));\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while (true) {\n\t\t\tint n = scan.nextInt();\n\t\t\tif (n == 0) break;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0;\n\t\t\tdouble a = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm = m/n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ta += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(a/n));\n\t\t}", "true", "{\n\t\t\tint n = scan.nextInt();\n\t\t\tif (n == 0) break;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0;\n\t\t\tdouble a = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm = m/n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ta += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(a/n));\n\t\t}", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "if (n == 0) break;", "n == 0", "n", "0", "break;", "int[] s = new int[n];", "s", "new int[n]", "n", "double m = 0;", "m", "0", "double a = 0;", "a", "0", "for (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}", "{\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}", "s[i] = scan.nextInt()", "s[i]", "s", "i", "scan.nextInt()", "scan.nextInt", "scan", "m += s[i]", "m", "s[i]", "s", "i", "m = m/n", "m", "m/n", "m", "n", "for (int i = 0; i < n; i++) {\n\t\t\t\ta += (s[i] - m) * (s[i] - m);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\ta += (s[i] - m) * (s[i] - m);\n\t\t\t}", "{\n\t\t\t\ta += (s[i] - m) * (s[i] - m);\n\t\t\t}", "a += (s[i] - m) * (s[i] - m)", "a", "(s[i] - m) * (s[i] - m)", "(s[i] - m)", "s[i]", "s", "i", "m", "(s[i] - m)", "s[i]", "s", "i", "m", "System.out.println(Math.sqrt(a/n))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(a/n)", "Math.sqrt", "Math", "a/n", "a", "n", "public static void main(String[] args) {\n\t\tnew Main().run();\n\t}", "main", "{\n\t\tnew Main().run();\n\t}", "new Main().run()", "new Main().run", "new Main()", "String[] args", "args", "public class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = scan.nextInt();\n\t\t\tif (n == 0) break;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0;\n\t\t\tdouble a = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm = m/n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ta += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(a/n));\n\t\t}\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "public class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = scan.nextInt();\n\t\t\tif (n == 0) break;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0;\n\t\t\tdouble a = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm = m/n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ta += (s[i] - m) * (s[i] - m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(a/n));\n\t\t}\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { void run() { Scanner scan = new Scanner(System.in); while (true) { int n = scan.nextInt(); if (n == 0) break; int[] s = new int[n]; double m = 0; double a = 0; for (int i = 0; i < n; i++) { s[i] = scan.nextInt(); m += s[i]; } m = m/n; for (int i = 0; i < n; i++) { a += (s[i] - m) * (s[i] - m); } System.out.println(Math.sqrt(a/n)); } } public static void main(String[] args) { new Main().run(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 17, 41, 13, 17, 14, 2, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 0, 18, 13, 13, 13, 0, 13, 2, 13, 13, 0, 13, 2, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 0, 13, 2, 13, 18, 13, 13, 41, 13, 4, 18, 13, 2, 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 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 14, 24 ], [ 24, 25 ], [ 24, 26 ], [ 14, 27 ], [ 27, 28 ], [ 27, 29 ], [ 14, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 34, 35 ], [ 14, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 36, 44 ], [ 44, 45 ], [ 45, 46 ], [ 36, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 48, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 48, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 14, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 14, 69 ], [ 69, 70 ], [ 69, 71 ], [ 14, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 79, 81 ], [ 72, 82 ], [ 82, 83 ], [ 83, 84 ], [ 72, 85 ], [ 86, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 91, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 86, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 14, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 114, 115 ], [ 114, 116 ], [ 14, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 6, 123 ], [ 123, 124 ] ]
[ "//10-C\n/*\n n 人の学生を含むクラスでプログラミングの試験を行った。それぞれの得点をs1, s2 ... snとしたときの、標準偏差を求めるプログラムを作成せよ。\n\n得点の平均値をmとすれば、分散α2は以下の式で得られる:\n\n\n\n分散の正の平方根が標準偏差αとなる。 \n*/\n\nimport java.util.Scanner;\n\nclass Main {\n public static void main(String [] args){\n \n Scanner sc = new Scanner(System.in);\n \n while(true){\n \t\n \tint n = sc.nextInt();\n \t\n \tdouble[] db = new double[n];\n \t\n \tdouble sum = 0;//合計用\n \tdouble m = 0;//平均\n \t\n \tif( n == 0 ){\n \t\tbreak;\n \t}\n \t\n \t//平均計算\n \tfor(int i = 0 ; i < n ; i++ ){\n \t\t\n \t\tdouble s = sc.nextDouble();\n \t\t\n \t\tdb[i] = s;\n \t\t\n \t\tsum = sum + s;\n \t\t\n \t}\n \t\n \tm = sum / n;//平均値代入\n \t\n \tdouble sum2 = 0;\n \t\n \tfor(int i = 0 ; i < db.length ; i++ ){\n \t\t\n \t\tdb[i] = (db[i] - m) * (db[i] - m);\n \t\t\n \t\tsum2 = sum2 + db[i];\n \t\t\n \t}\n \t\n \tdouble a = Math.sqrt(sum2 / n);\n \t\n \tSystem.out.println(a);\n \t\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String [] args){\n \n Scanner sc = new Scanner(System.in);\n \n while(true){\n \t\n \tint n = sc.nextInt();\n \t\n \tdouble[] db = new double[n];\n \t\n \tdouble sum = 0;//合計用\n \tdouble m = 0;//平均\n \t\n \tif( n == 0 ){\n \t\tbreak;\n \t}\n \t\n \t//平均計算\n \tfor(int i = 0 ; i < n ; i++ ){\n \t\t\n \t\tdouble s = sc.nextDouble();\n \t\t\n \t\tdb[i] = s;\n \t\t\n \t\tsum = sum + s;\n \t\t\n \t}\n \t\n \tm = sum / n;//平均値代入\n \t\n \tdouble sum2 = 0;\n \t\n \tfor(int i = 0 ; i < db.length ; i++ ){\n \t\t\n \t\tdb[i] = (db[i] - m) * (db[i] - m);\n \t\t\n \t\tsum2 = sum2 + db[i];\n \t\t\n \t}\n \t\n \tdouble a = Math.sqrt(sum2 / n);\n \t\n \tSystem.out.println(a);\n \t\n }\n }\n}", "Main", "public static void main(String [] args){\n \n Scanner sc = new Scanner(System.in);\n \n while(true){\n \t\n \tint n = sc.nextInt();\n \t\n \tdouble[] db = new double[n];\n \t\n \tdouble sum = 0;//合計用\n \tdouble m = 0;//平均\n \t\n \tif( n == 0 ){\n \t\tbreak;\n \t}\n \t\n \t//平均計算\n \tfor(int i = 0 ; i < n ; i++ ){\n \t\t\n \t\tdouble s = sc.nextDouble();\n \t\t\n \t\tdb[i] = s;\n \t\t\n \t\tsum = sum + s;\n \t\t\n \t}\n \t\n \tm = sum / n;//平均値代入\n \t\n \tdouble sum2 = 0;\n \t\n \tfor(int i = 0 ; i < db.length ; i++ ){\n \t\t\n \t\tdb[i] = (db[i] - m) * (db[i] - m);\n \t\t\n \t\tsum2 = sum2 + db[i];\n \t\t\n \t}\n \t\n \tdouble a = Math.sqrt(sum2 / n);\n \t\n \tSystem.out.println(a);\n \t\n }\n }", "main", "{\n \n Scanner sc = new Scanner(System.in);\n \n while(true){\n \t\n \tint n = sc.nextInt();\n \t\n \tdouble[] db = new double[n];\n \t\n \tdouble sum = 0;//合計用\n \tdouble m = 0;//平均\n \t\n \tif( n == 0 ){\n \t\tbreak;\n \t}\n \t\n \t//平均計算\n \tfor(int i = 0 ; i < n ; i++ ){\n \t\t\n \t\tdouble s = sc.nextDouble();\n \t\t\n \t\tdb[i] = s;\n \t\t\n \t\tsum = sum + s;\n \t\t\n \t}\n \t\n \tm = sum / n;//平均値代入\n \t\n \tdouble sum2 = 0;\n \t\n \tfor(int i = 0 ; i < db.length ; i++ ){\n \t\t\n \t\tdb[i] = (db[i] - m) * (db[i] - m);\n \t\t\n \t\tsum2 = sum2 + db[i];\n \t\t\n \t}\n \t\n \tdouble a = Math.sqrt(sum2 / n);\n \t\n \tSystem.out.println(a);\n \t\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n \t\n \tint n = sc.nextInt();\n \t\n \tdouble[] db = new double[n];\n \t\n \tdouble sum = 0;//合計用\n \tdouble m = 0;//平均\n \t\n \tif( n == 0 ){\n \t\tbreak;\n \t}\n \t\n \t//平均計算\n \tfor(int i = 0 ; i < n ; i++ ){\n \t\t\n \t\tdouble s = sc.nextDouble();\n \t\t\n \t\tdb[i] = s;\n \t\t\n \t\tsum = sum + s;\n \t\t\n \t}\n \t\n \tm = sum / n;//平均値代入\n \t\n \tdouble sum2 = 0;\n \t\n \tfor(int i = 0 ; i < db.length ; i++ ){\n \t\t\n \t\tdb[i] = (db[i] - m) * (db[i] - m);\n \t\t\n \t\tsum2 = sum2 + db[i];\n \t\t\n \t}\n \t\n \tdouble a = Math.sqrt(sum2 / n);\n \t\n \tSystem.out.println(a);\n \t\n }", "true", "{\n \t\n \tint n = sc.nextInt();\n \t\n \tdouble[] db = new double[n];\n \t\n \tdouble sum = 0;//合計用\n \tdouble m = 0;//平均\n \t\n \tif( n == 0 ){\n \t\tbreak;\n \t}\n \t\n \t//平均計算\n \tfor(int i = 0 ; i < n ; i++ ){\n \t\t\n \t\tdouble s = sc.nextDouble();\n \t\t\n \t\tdb[i] = s;\n \t\t\n \t\tsum = sum + s;\n \t\t\n \t}\n \t\n \tm = sum / n;//平均値代入\n \t\n \tdouble sum2 = 0;\n \t\n \tfor(int i = 0 ; i < db.length ; i++ ){\n \t\t\n \t\tdb[i] = (db[i] - m) * (db[i] - m);\n \t\t\n \t\tsum2 = sum2 + db[i];\n \t\t\n \t}\n \t\n \tdouble a = Math.sqrt(sum2 / n);\n \t\n \tSystem.out.println(a);\n \t\n }", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "double[] db = new double[n];", "db", "new double[n]", "n", "double sum = 0;", "sum", "0", "double m = 0;", "m", "0", "if( n == 0 ){\n \t\tbreak;\n \t}", "n == 0", "n", "0", "{\n \t\tbreak;\n \t}", "break;", "for(int i = 0 ; i < n ; i++ ){\n \t\t\n \t\tdouble s = sc.nextDouble();\n \t\t\n \t\tdb[i] = s;\n \t\t\n \t\tsum = sum + s;\n \t\t\n \t}", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n \t\t\n \t\tdouble s = sc.nextDouble();\n \t\t\n \t\tdb[i] = s;\n \t\t\n \t\tsum = sum + s;\n \t\t\n \t}", "{\n \t\t\n \t\tdouble s = sc.nextDouble();\n \t\t\n \t\tdb[i] = s;\n \t\t\n \t\tsum = sum + s;\n \t\t\n \t}", "double s = sc.nextDouble();", "s", "sc.nextDouble()", "sc.nextDouble", "sc", "db[i] = s", "db[i]", "db", "i", "s", "sum = sum + s", "sum", "sum + s", "sum", "s", "m = sum / n", "m", "sum / n", "sum", "n", "double sum2 = 0;", "sum2", "0", "for(int i = 0 ; i < db.length ; i++ ){\n \t\t\n \t\tdb[i] = (db[i] - m) * (db[i] - m);\n \t\t\n \t\tsum2 = sum2 + db[i];\n \t\t\n \t}", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < db.length", "i", "db.length", "db", "db.length", "i++", "i++", "i", "{\n \t\t\n \t\tdb[i] = (db[i] - m) * (db[i] - m);\n \t\t\n \t\tsum2 = sum2 + db[i];\n \t\t\n \t}", "{\n \t\t\n \t\tdb[i] = (db[i] - m) * (db[i] - m);\n \t\t\n \t\tsum2 = sum2 + db[i];\n \t\t\n \t}", "db[i] = (db[i] - m) * (db[i] - m)", "db[i]", "db", "i", "(db[i] - m) * (db[i] - m)", "(db[i] - m)", "db[i]", "db", "i", "m", "(db[i] - m)", "db[i]", "db", "i", "m", "sum2 = sum2 + db[i]", "sum2", "sum2 + db[i]", "sum2", "db[i]", "db", "i", "double a = Math.sqrt(sum2 / n);", "a", "Math.sqrt(sum2 / n)", "Math.sqrt", "Math", "sum2 / n", "sum2", "n", "System.out.println(a)", "System.out.println", "System.out", "System", "System.out", "a", "String [] args", "args" ]
//10-C /* n 人の学生を含むクラスでプログラミングの試験を行った。それぞれの得点をs1, s2 ... snとしたときの、標準偏差を求めるプログラムを作成せよ。 得点の平均値をmとすれば、分散α2は以下の式で得られる: 分散の正の平方根が標準偏差αとなる。 */ import java.util.Scanner; class Main { public static void main(String [] args){ Scanner sc = new Scanner(System.in); while(true){ int n = sc.nextInt(); double[] db = new double[n]; double sum = 0;//合計用 double m = 0;//平均 if( n == 0 ){ break; } //平均計算 for(int i = 0 ; i < n ; i++ ){ double s = sc.nextDouble(); db[i] = s; sum = sum + s; } m = sum / n;//平均値代入 double sum2 = 0; for(int i = 0 ; i < db.length ; i++ ){ db[i] = (db[i] - m) * (db[i] - m); sum2 = sum2 + db[i]; } double a = Math.sqrt(sum2 / n); System.out.println(a); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 0, 13, 20, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 2, 13, 18, 13, 13, 0, 13, 2, 13, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 0, 13, 2, 13, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 17, 4, 18, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 133, 5 ], [ 133, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 14, 31 ], [ 31, 32 ], [ 31, 33 ], [ 14, 34 ], [ 34, 35 ], [ 34, 36 ], [ 14, 37 ], [ 37, 38 ], [ 37, 39 ], [ 14, 40 ], [ 40, 41 ], [ 40, 42 ], [ 14, 43 ], [ 43, 44 ], [ 14, 45 ], [ 45, 46 ], [ 45, 47 ], [ 14, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 49, 57 ], [ 57, 58 ], [ 58, 59 ], [ 49, 60 ], [ 61, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 67, 68 ], [ 61, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 14, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 78, 80 ], [ 14, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 86, 87 ], [ 86, 88 ], [ 81, 89 ], [ 89, 90 ], [ 90, 91 ], [ 81, 92 ], [ 93, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 96, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 93, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 109, 111 ], [ 14, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 114, 116 ], [ 14, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 117, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 8, 127 ], [ 127, 128 ], [ 128, 129 ], [ 6, 130 ], [ 130, 131 ], [ 0, 132 ], [ 132, 133 ], [ 132, 134 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\npublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n while(true){\n int n = sc.nextInt();\n if(n==0){\n break;\n }\n int [] student;\n int sum=0;\n double ave=0,sub=0,varisum=0,vari=0;\n int i;\n student = new int[n];\n\n for(i=0;i<n;i++){\n student[i]=sc.nextInt();\n sum =sum+student[i];\n }\n ave = (double)sum/n;\n\n for(i=0;i<n;i++){\n sub = (student[i]-ave)*(student[i]-ave);\n varisum = varisum+sub;\n }\n\n vari = (double)varisum/n;\n\n\n System.out.printf(\"%f\\n\",Math.sqrt(vari));\n\n\n}\n\n \n\n\n sc.close();\n\n}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\npublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n while(true){\n int n = sc.nextInt();\n if(n==0){\n break;\n }\n int [] student;\n int sum=0;\n double ave=0,sub=0,varisum=0,vari=0;\n int i;\n student = new int[n];\n\n for(i=0;i<n;i++){\n student[i]=sc.nextInt();\n sum =sum+student[i];\n }\n ave = (double)sum/n;\n\n for(i=0;i<n;i++){\n sub = (student[i]-ave)*(student[i]-ave);\n varisum = varisum+sub;\n }\n\n vari = (double)varisum/n;\n\n\n System.out.printf(\"%f\\n\",Math.sqrt(vari));\n\n\n}\n\n \n\n\n sc.close();\n\n}\n\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n while(true){\n int n = sc.nextInt();\n if(n==0){\n break;\n }\n int [] student;\n int sum=0;\n double ave=0,sub=0,varisum=0,vari=0;\n int i;\n student = new int[n];\n\n for(i=0;i<n;i++){\n student[i]=sc.nextInt();\n sum =sum+student[i];\n }\n ave = (double)sum/n;\n\n for(i=0;i<n;i++){\n sub = (student[i]-ave)*(student[i]-ave);\n varisum = varisum+sub;\n }\n\n vari = (double)varisum/n;\n\n\n System.out.printf(\"%f\\n\",Math.sqrt(vari));\n\n\n}\n\n \n\n\n sc.close();\n\n}", "main", "{\n Scanner sc = new Scanner(System.in);\n\n while(true){\n int n = sc.nextInt();\n if(n==0){\n break;\n }\n int [] student;\n int sum=0;\n double ave=0,sub=0,varisum=0,vari=0;\n int i;\n student = new int[n];\n\n for(i=0;i<n;i++){\n student[i]=sc.nextInt();\n sum =sum+student[i];\n }\n ave = (double)sum/n;\n\n for(i=0;i<n;i++){\n sub = (student[i]-ave)*(student[i]-ave);\n varisum = varisum+sub;\n }\n\n vari = (double)varisum/n;\n\n\n System.out.printf(\"%f\\n\",Math.sqrt(vari));\n\n\n}\n\n \n\n\n sc.close();\n\n}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n int n = sc.nextInt();\n if(n==0){\n break;\n }\n int [] student;\n int sum=0;\n double ave=0,sub=0,varisum=0,vari=0;\n int i;\n student = new int[n];\n\n for(i=0;i<n;i++){\n student[i]=sc.nextInt();\n sum =sum+student[i];\n }\n ave = (double)sum/n;\n\n for(i=0;i<n;i++){\n sub = (student[i]-ave)*(student[i]-ave);\n varisum = varisum+sub;\n }\n\n vari = (double)varisum/n;\n\n\n System.out.printf(\"%f\\n\",Math.sqrt(vari));\n\n\n}", "true", "{\n int n = sc.nextInt();\n if(n==0){\n break;\n }\n int [] student;\n int sum=0;\n double ave=0,sub=0,varisum=0,vari=0;\n int i;\n student = new int[n];\n\n for(i=0;i<n;i++){\n student[i]=sc.nextInt();\n sum =sum+student[i];\n }\n ave = (double)sum/n;\n\n for(i=0;i<n;i++){\n sub = (student[i]-ave)*(student[i]-ave);\n varisum = varisum+sub;\n }\n\n vari = (double)varisum/n;\n\n\n System.out.printf(\"%f\\n\",Math.sqrt(vari));\n\n\n}", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n==0){\n break;\n }", "n==0", "n", "0", "{\n break;\n }", "break;", "int [] student;", "student", "int sum=0;", "sum", "0", "double ave=0", "ave", "0", "sub=0", "sub", "0", "varisum=0", "varisum", "0", "vari=0;", "vari", "0", "int i;", "i", "student = new int[n]", "student", "new int[n]", "n", "for(i=0;i<n;i++){\n student[i]=sc.nextInt();\n sum =sum+student[i];\n }", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n student[i]=sc.nextInt();\n sum =sum+student[i];\n }", "{\n student[i]=sc.nextInt();\n sum =sum+student[i];\n }", "student[i]=sc.nextInt()", "student[i]", "student", "i", "sc.nextInt()", "sc.nextInt", "sc", "sum =sum+student[i]", "sum", "sum+student[i]", "sum", "student[i]", "student", "i", "ave = (double)sum/n", "ave", "(double)sum/n", "(double)sum", "n", "for(i=0;i<n;i++){\n sub = (student[i]-ave)*(student[i]-ave);\n varisum = varisum+sub;\n }", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n sub = (student[i]-ave)*(student[i]-ave);\n varisum = varisum+sub;\n }", "{\n sub = (student[i]-ave)*(student[i]-ave);\n varisum = varisum+sub;\n }", "sub = (student[i]-ave)*(student[i]-ave)", "sub", "(student[i]-ave)*(student[i]-ave)", "(student[i]-ave)", "student[i]", "student", "i", "ave", "(student[i]-ave)", "student[i]", "student", "i", "ave", "varisum = varisum+sub", "varisum", "varisum+sub", "varisum", "sub", "vari = (double)varisum/n", "vari", "(double)varisum/n", "(double)varisum", "n", "System.out.printf(\"%f\\n\",Math.sqrt(vari))", "System.out.printf", "System.out", "System", "System.out", "\"%f\\n\"", "Math.sqrt(vari)", "Math.sqrt", "Math", "vari", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main{\npublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n while(true){\n int n = sc.nextInt();\n if(n==0){\n break;\n }\n int [] student;\n int sum=0;\n double ave=0,sub=0,varisum=0,vari=0;\n int i;\n student = new int[n];\n\n for(i=0;i<n;i++){\n student[i]=sc.nextInt();\n sum =sum+student[i];\n }\n ave = (double)sum/n;\n\n for(i=0;i<n;i++){\n sub = (student[i]-ave)*(student[i]-ave);\n varisum = varisum+sub;\n }\n\n vari = (double)varisum/n;\n\n\n System.out.printf(\"%f\\n\",Math.sqrt(vari));\n\n\n}\n\n \n\n\n sc.close();\n\n}\n\n}", "public class Main{\npublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n while(true){\n int n = sc.nextInt();\n if(n==0){\n break;\n }\n int [] student;\n int sum=0;\n double ave=0,sub=0,varisum=0,vari=0;\n int i;\n student = new int[n];\n\n for(i=0;i<n;i++){\n student[i]=sc.nextInt();\n sum =sum+student[i];\n }\n ave = (double)sum/n;\n\n for(i=0;i<n;i++){\n sub = (student[i]-ave)*(student[i]-ave);\n varisum = varisum+sub;\n }\n\n vari = (double)varisum/n;\n\n\n System.out.printf(\"%f\\n\",Math.sqrt(vari));\n\n\n}\n\n \n\n\n sc.close();\n\n}\n\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(true){ int n = sc.nextInt(); if(n==0){ break; } int [] student; int sum=0; double ave=0,sub=0,varisum=0,vari=0; int i; student = new int[n]; for(i=0;i<n;i++){ student[i]=sc.nextInt(); sum =sum+student[i]; } ave = (double)sum/n; for(i=0;i<n;i++){ sub = (student[i]-ave)*(student[i]-ave); varisum = varisum+sub; } vari = (double)varisum/n; System.out.printf("%f\n",Math.sqrt(vari)); } sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 3, 41, 13, 20, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 41, 13, 2, 13, 13, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 13, 2, 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 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 14, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 44, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 54, 56 ], [ 14, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 14, 62 ], [ 62, 63 ], [ 62, 64 ], [ 14, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 70, 71 ], [ 70, 72 ], [ 65, 73 ], [ 73, 74 ], [ 74, 75 ], [ 65, 76 ], [ 77, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 80, 88 ], [ 14, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 89, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 98, 99 ], [ 98, 100 ], [ 6, 101 ], [ 101, 102 ], [ 0, 103 ], [ 103, 104 ], [ 103, 105 ] ]
[ "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\twhile(true){\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n == 0) break;\n\t\t\tdouble[] score = new double[n];\n\t\t\tdouble sum = 0.0;\n\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tscore[i] = sc.nextDouble();\n\t\t\t\tsum += score[i];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\t\t\tsum = 0.0;\n\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\tsum += Math.pow((score[j] - m), 2);\n\t\t\t}\n\t\t\tSystem.out.printf(\"%.8f\\n\", Math.sqrt(sum / n));\n\t\t}\n\t} \n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n == 0) break;\n\t\t\tdouble[] score = new double[n];\n\t\t\tdouble sum = 0.0;\n\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tscore[i] = sc.nextDouble();\n\t\t\t\tsum += score[i];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\t\t\tsum = 0.0;\n\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\tsum += Math.pow((score[j] - m), 2);\n\t\t\t}\n\t\t\tSystem.out.printf(\"%.8f\\n\", Math.sqrt(sum / n));\n\t\t}\n\t} \n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n == 0) break;\n\t\t\tdouble[] score = new double[n];\n\t\t\tdouble sum = 0.0;\n\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tscore[i] = sc.nextDouble();\n\t\t\t\tsum += score[i];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\t\t\tsum = 0.0;\n\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\tsum += Math.pow((score[j] - m), 2);\n\t\t\t}\n\t\t\tSystem.out.printf(\"%.8f\\n\", Math.sqrt(sum / n));\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n == 0) break;\n\t\t\tdouble[] score = new double[n];\n\t\t\tdouble sum = 0.0;\n\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tscore[i] = sc.nextDouble();\n\t\t\t\tsum += score[i];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\t\t\tsum = 0.0;\n\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\tsum += Math.pow((score[j] - m), 2);\n\t\t\t}\n\t\t\tSystem.out.printf(\"%.8f\\n\", Math.sqrt(sum / n));\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n == 0) break;\n\t\t\tdouble[] score = new double[n];\n\t\t\tdouble sum = 0.0;\n\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tscore[i] = sc.nextDouble();\n\t\t\t\tsum += score[i];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\t\t\tsum = 0.0;\n\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\tsum += Math.pow((score[j] - m), 2);\n\t\t\t}\n\t\t\tSystem.out.printf(\"%.8f\\n\", Math.sqrt(sum / n));\n\t\t}", "true", "{\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n == 0) break;\n\t\t\tdouble[] score = new double[n];\n\t\t\tdouble sum = 0.0;\n\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tscore[i] = sc.nextDouble();\n\t\t\t\tsum += score[i];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\t\t\tsum = 0.0;\n\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\tsum += Math.pow((score[j] - m), 2);\n\t\t\t}\n\t\t\tSystem.out.printf(\"%.8f\\n\", Math.sqrt(sum / n));\n\t\t}", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n == 0) break;", "n == 0", "n", "0", "break;", "double[] score = new double[n];", "score", "new double[n]", "n", "double sum = 0.0;", "sum", "0.0", "for(int i = 0; i < n; i++){\n\t\t\t\tscore[i] = sc.nextDouble();\n\t\t\t\tsum += score[i];\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tscore[i] = sc.nextDouble();\n\t\t\t\tsum += score[i];\n\t\t\t}", "{\n\t\t\t\tscore[i] = sc.nextDouble();\n\t\t\t\tsum += score[i];\n\t\t\t}", "score[i] = sc.nextDouble()", "score[i]", "score", "i", "sc.nextDouble()", "sc.nextDouble", "sc", "sum += score[i]", "sum", "score[i]", "score", "i", "double m = sum / n;", "m", "sum / n", "sum", "n", "sum = 0.0", "sum", "0.0", "for(int j = 0; j < n; j++){\n\t\t\t\tsum += Math.pow((score[j] - m), 2);\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < n", "j", "n", "j++", "j++", "j", "{\n\t\t\t\tsum += Math.pow((score[j] - m), 2);\n\t\t\t}", "{\n\t\t\t\tsum += Math.pow((score[j] - m), 2);\n\t\t\t}", "sum += Math.pow((score[j] - m), 2)", "sum", "Math.pow((score[j] - m), 2)", "Math.pow", "Math", "(score[j] - m)", "score[j]", "score", "j", "m", "2", "System.out.printf(\"%.8f\\n\", Math.sqrt(sum / n))", "System.out.printf", "System.out", "System", "System.out", "\"%.8f\\n\"", "Math.sqrt(sum / n)", "Math.sqrt", "Math", "sum / n", "sum", "n", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n == 0) break;\n\t\t\tdouble[] score = new double[n];\n\t\t\tdouble sum = 0.0;\n\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tscore[i] = sc.nextDouble();\n\t\t\t\tsum += score[i];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\t\t\tsum = 0.0;\n\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\tsum += Math.pow((score[j] - m), 2);\n\t\t\t}\n\t\t\tSystem.out.printf(\"%.8f\\n\", Math.sqrt(sum / n));\n\t\t}\n\t} \n\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n == 0) break;\n\t\t\tdouble[] score = new double[n];\n\t\t\tdouble sum = 0.0;\n\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tscore[i] = sc.nextDouble();\n\t\t\t\tsum += score[i];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\t\t\tsum = 0.0;\n\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\tsum += Math.pow((score[j] - m), 2);\n\t\t\t}\n\t\t\tSystem.out.printf(\"%.8f\\n\", Math.sqrt(sum / n));\n\t\t}\n\t} \n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(true){ int n = sc.nextInt(); if(n == 0) break; double[] score = new double[n]; double sum = 0.0; for(int i = 0; i < n; i++){ score[i] = sc.nextDouble(); sum += score[i]; } double m = sum / n; sum = 0.0; for(int j = 0; j < n; j++){ sum += Math.pow((score[j] - m), 2); } System.out.printf("%.8f\n", Math.sqrt(sum / n)); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 3, 0, 13, 17, 41, 13, 0, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 13, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 0, 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 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 11, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 21, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 27, 31 ], [ 21, 32 ], [ 32, 33 ], [ 32, 34 ], [ 21, 35 ], [ 35, 36 ], [ 21, 37 ], [ 37, 38 ], [ 37, 39 ], [ 21, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 41, 49 ], [ 49, 50 ], [ 50, 51 ], [ 41, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 53, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 21, 66 ], [ 66, 67 ], [ 66, 68 ], [ 21, 69 ], [ 69, 70 ], [ 69, 71 ], [ 21, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 77, 78 ], [ 77, 79 ], [ 72, 80 ], [ 80, 81 ], [ 81, 82 ], [ 72, 83 ], [ 84, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 87, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 21, 98 ], [ 98, 99 ], [ 98, 100 ], [ 21, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 9, 110 ], [ 110, 111 ], [ 0, 112 ], [ 112, 113 ], [ 112, 114 ] ]
[ "import java.util.*;\nimport java.io.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc=new Scanner(System.in);\n double m;\n double v;\n while(true){\n int n=sc.nextInt();\n if(n==0) break;\n m=0;\n double s[];\n s=new double[n];\n for(int i=0;i<n;i++){\n s[i]=sc.nextDouble();\n m+=s[i];\n }\n m/=n;\n v=0;\n for(int i=0;i<n;i++){\n v+=(s[i]-m)*(s[i]-m);\n }\n v/=n;\n System.out.println(Math.sqrt(v));\n }\n }\n}", "import java.util.*;", "util.*", "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 double m;\n double v;\n while(true){\n int n=sc.nextInt();\n if(n==0) break;\n m=0;\n double s[];\n s=new double[n];\n for(int i=0;i<n;i++){\n s[i]=sc.nextDouble();\n m+=s[i];\n }\n m/=n;\n v=0;\n for(int i=0;i<n;i++){\n v+=(s[i]-m)*(s[i]-m);\n }\n v/=n;\n System.out.println(Math.sqrt(v));\n }\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n Scanner sc=new Scanner(System.in);\n double m;\n double v;\n while(true){\n int n=sc.nextInt();\n if(n==0) break;\n m=0;\n double s[];\n s=new double[n];\n for(int i=0;i<n;i++){\n s[i]=sc.nextDouble();\n m+=s[i];\n }\n m/=n;\n v=0;\n for(int i=0;i<n;i++){\n v+=(s[i]-m)*(s[i]-m);\n }\n v/=n;\n System.out.println(Math.sqrt(v));\n }\n }", "main", "{\n Scanner sc=new Scanner(System.in);\n double m;\n double v;\n while(true){\n int n=sc.nextInt();\n if(n==0) break;\n m=0;\n double s[];\n s=new double[n];\n for(int i=0;i<n;i++){\n s[i]=sc.nextDouble();\n m+=s[i];\n }\n m/=n;\n v=0;\n for(int i=0;i<n;i++){\n v+=(s[i]-m)*(s[i]-m);\n }\n v/=n;\n System.out.println(Math.sqrt(v));\n }\n }", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "double m;", "m", "double v;", "v", "while(true){\n int n=sc.nextInt();\n if(n==0) break;\n m=0;\n double s[];\n s=new double[n];\n for(int i=0;i<n;i++){\n s[i]=sc.nextDouble();\n m+=s[i];\n }\n m/=n;\n v=0;\n for(int i=0;i<n;i++){\n v+=(s[i]-m)*(s[i]-m);\n }\n v/=n;\n System.out.println(Math.sqrt(v));\n }", "true", "{\n int n=sc.nextInt();\n if(n==0) break;\n m=0;\n double s[];\n s=new double[n];\n for(int i=0;i<n;i++){\n s[i]=sc.nextDouble();\n m+=s[i];\n }\n m/=n;\n v=0;\n for(int i=0;i<n;i++){\n v+=(s[i]-m)*(s[i]-m);\n }\n v/=n;\n System.out.println(Math.sqrt(v));\n }", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n==0) break;", "n==0", "n", "0", "break;", "m=0", "m", "0", "double s[];", "s", "s=new double[n]", "s", "new double[n]", "n", "for(int i=0;i<n;i++){\n s[i]=sc.nextDouble();\n m+=s[i];\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n s[i]=sc.nextDouble();\n m+=s[i];\n }", "{\n s[i]=sc.nextDouble();\n m+=s[i];\n }", "s[i]=sc.nextDouble()", "s[i]", "s", "i", "sc.nextDouble()", "sc.nextDouble", "sc", "m+=s[i]", "m", "s[i]", "s", "i", "m/=n", "m", "n", "v=0", "v", "0", "for(int i=0;i<n;i++){\n v+=(s[i]-m)*(s[i]-m);\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n v+=(s[i]-m)*(s[i]-m);\n }", "{\n v+=(s[i]-m)*(s[i]-m);\n }", "v+=(s[i]-m)*(s[i]-m)", "v", "(s[i]-m)*(s[i]-m)", "(s[i]-m)", "s[i]", "s", "i", "m", "(s[i]-m)", "s[i]", "s", "i", "m", "v/=n", "v", "n", "System.out.println(Math.sqrt(v))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(v)", "Math.sqrt", "Math", "v", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc=new Scanner(System.in);\n double m;\n double v;\n while(true){\n int n=sc.nextInt();\n if(n==0) break;\n m=0;\n double s[];\n s=new double[n];\n for(int i=0;i<n;i++){\n s[i]=sc.nextDouble();\n m+=s[i];\n }\n m/=n;\n v=0;\n for(int i=0;i<n;i++){\n v+=(s[i]-m)*(s[i]-m);\n }\n v/=n;\n System.out.println(Math.sqrt(v));\n }\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc=new Scanner(System.in);\n double m;\n double v;\n while(true){\n int n=sc.nextInt();\n if(n==0) break;\n m=0;\n double s[];\n s=new double[n];\n for(int i=0;i<n;i++){\n s[i]=sc.nextDouble();\n m+=s[i];\n }\n m/=n;\n v=0;\n for(int i=0;i<n;i++){\n v+=(s[i]-m)*(s[i]-m);\n }\n v/=n;\n System.out.println(Math.sqrt(v));\n }\n }\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc=new Scanner(System.in); double m; double v; while(true){ int n=sc.nextInt(); if(n==0) break; m=0; double s[]; s=new double[n]; for(int i=0;i<n;i++){ s[i]=sc.nextDouble(); m+=s[i]; } m/=n; v=0; for(int i=0;i<n;i++){ v+=(s[i]-m)*(s[i]-m); } v/=n; System.out.println(Math.sqrt(v)); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 42, 2, 0, 13, 4, 18, 13, 4, 18, 13, 17, 30, 0, 13, 4, 18, 4, 18, 13, 17, 0, 13, 20, 13, 0, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 0, 13, 18, 13, 13, 0, 13, 13, 0, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 2, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 31, 32 ], [ 32, 33 ], [ 25, 34 ], [ 24, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 38, 43 ], [ 35, 44 ], [ 44, 45 ], [ 44, 46 ], [ 35, 48 ], [ 48, 49 ], [ 48, 50 ], [ 35, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 51, 59 ], [ 59, 60 ], [ 60, 61 ], [ 51, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 71, 72 ], [ 71, 73 ], [ 63, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 35, 79 ], [ 79, 80 ], [ 79, 81 ], [ 35, 82 ], [ 82, 83 ], [ 82, 84 ], [ 35, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 90, 91 ], [ 90, 92 ], [ 85, 93 ], [ 93, 94 ], [ 94, 95 ], [ 85, 96 ], [ 97, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 100, 108 ], [ 35, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 117, 118 ], [ 117, 119 ], [ 6, 120 ], [ 120, 121 ] ]
[ "import java.io.*;\n\nclass Main {\n public static void main (String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n;\n String[] points;\n int[] s;\n int i;\n double m;\n double a;\n\n while ((n = Integer.parseInt(br.readLine())) != 0) {\n points = br.readLine().split(\" \");\n s = new int[n];\n\n m = 0;\n for (i = 0; i < n; i++) {\n s[i] = Integer.parseInt(points[i]);\n m += s[i];\n }\n m /= n;\n\n a = 0;\n for (i = 0; i < n; i++) {\n a += Math.pow(s[i] - m, 2);\n }\n\n System.out.println(Math.sqrt(a / n));\n }\n\n }\n}", "import java.io.*;", "io.*", "java", "class Main {\n public static void main (String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n;\n String[] points;\n int[] s;\n int i;\n double m;\n double a;\n\n while ((n = Integer.parseInt(br.readLine())) != 0) {\n points = br.readLine().split(\" \");\n s = new int[n];\n\n m = 0;\n for (i = 0; i < n; i++) {\n s[i] = Integer.parseInt(points[i]);\n m += s[i];\n }\n m /= n;\n\n a = 0;\n for (i = 0; i < n; i++) {\n a += Math.pow(s[i] - m, 2);\n }\n\n System.out.println(Math.sqrt(a / n));\n }\n\n }\n}", "Main", "public static void main (String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n;\n String[] points;\n int[] s;\n int i;\n double m;\n double a;\n\n while ((n = Integer.parseInt(br.readLine())) != 0) {\n points = br.readLine().split(\" \");\n s = new int[n];\n\n m = 0;\n for (i = 0; i < n; i++) {\n s[i] = Integer.parseInt(points[i]);\n m += s[i];\n }\n m /= n;\n\n a = 0;\n for (i = 0; i < n; i++) {\n a += Math.pow(s[i] - m, 2);\n }\n\n System.out.println(Math.sqrt(a / n));\n }\n\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n;\n String[] points;\n int[] s;\n int i;\n double m;\n double a;\n\n while ((n = Integer.parseInt(br.readLine())) != 0) {\n points = br.readLine().split(\" \");\n s = new int[n];\n\n m = 0;\n for (i = 0; i < n; i++) {\n s[i] = Integer.parseInt(points[i]);\n m += s[i];\n }\n m /= n;\n\n a = 0;\n for (i = 0; i < n; i++) {\n a += Math.pow(s[i] - m, 2);\n }\n\n System.out.println(Math.sqrt(a / n));\n }\n\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int n;", "n", "String[] points;", "points", "int[] s;", "s", "int i;", "i", "double m;", "m", "double a;", "a", "while ((n = Integer.parseInt(br.readLine())) != 0) {\n points = br.readLine().split(\" \");\n s = new int[n];\n\n m = 0;\n for (i = 0; i < n; i++) {\n s[i] = Integer.parseInt(points[i]);\n m += s[i];\n }\n m /= n;\n\n a = 0;\n for (i = 0; i < n; i++) {\n a += Math.pow(s[i] - m, 2);\n }\n\n System.out.println(Math.sqrt(a / n));\n }", "(n = Integer.parseInt(br.readLine())) != 0", "(n = Integer.parseInt(br.readLine()))", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "0", "{\n points = br.readLine().split(\" \");\n s = new int[n];\n\n m = 0;\n for (i = 0; i < n; i++) {\n s[i] = Integer.parseInt(points[i]);\n m += s[i];\n }\n m /= n;\n\n a = 0;\n for (i = 0; i < n; i++) {\n a += Math.pow(s[i] - m, 2);\n }\n\n System.out.println(Math.sqrt(a / n));\n }", "points = br.readLine().split(\" \")", "points", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "s = new int[n]", "s", "new int[n]", "n", "m = 0", "m", "0", "for (i = 0; i < n; i++) {\n s[i] = Integer.parseInt(points[i]);\n m += s[i];\n }", "i = 0;", "i = 0", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n s[i] = Integer.parseInt(points[i]);\n m += s[i];\n }", "{\n s[i] = Integer.parseInt(points[i]);\n m += s[i];\n }", "s[i] = Integer.parseInt(points[i])", "s[i]", "s", "i", "Integer.parseInt(points[i])", "Integer.parseInt", "Integer", "points[i]", "points", "i", "m += s[i]", "m", "s[i]", "s", "i", "m /= n", "m", "n", "a = 0", "a", "0", "for (i = 0; i < n; i++) {\n a += Math.pow(s[i] - m, 2);\n }", "i = 0;", "i = 0", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n a += Math.pow(s[i] - m, 2);\n }", "{\n a += Math.pow(s[i] - m, 2);\n }", "a += Math.pow(s[i] - m, 2)", "a", "Math.pow(s[i] - m, 2)", "Math.pow", "Math", "s[i] - m", "s[i]", "s", "i", "m", "2", "System.out.println(Math.sqrt(a / n))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(a / n)", "Math.sqrt", "Math", "a / n", "a", "n", "String[] args", "args" ]
import java.io.*; class Main { public static void main (String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n; String[] points; int[] s; int i; double m; double a; while ((n = Integer.parseInt(br.readLine())) != 0) { points = br.readLine().split(" "); s = new int[n]; m = 0; for (i = 0; i < n; i++) { s[i] = Integer.parseInt(points[i]); m += s[i]; } m /= n; a = 0; for (i = 0; i < n; i++) { a += Math.pow(s[i] - m, 2); } System.out.println(Math.sqrt(a / n)); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 20, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 41, 13, 2, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 2, 18, 13, 13, 13, 0, 13, 2, 13, 13, 0, 13, 2, 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 ], [ 111, 5 ], [ 111, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 30 ], [ 30, 31 ], [ 30, 32 ], [ 14, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 33, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 45, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 14, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 14, 63 ], [ 63, 64 ], [ 63, 65 ], [ 14, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 66, 74 ], [ 74, 75 ], [ 75, 76 ], [ 66, 77 ], [ 78, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 78, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 14, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 14, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 14, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 6, 108 ], [ 108, 109 ], [ 0, 110 ], [ 110, 111 ], [ 110, 112 ] ]
[ "import java.util.*;\n \npublic class Main {\n public static void main( String args[] ) {\n Scanner scan = new Scanner( System.in );\n\t\t\n\t\twhile( true ) {\n\t\t\tint studentNum = scan.nextInt();\n\t\t\t\n\t\t\tif ( studentNum == 0 ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] point = new int[studentNum];\n\t\t\t\n\t\t\t// input, calculate sum\n\t\t\tint sum = 0;\n\t\t\tfor( int i = 0; i < studentNum; i++ ) {\n\t\t\t\tpoint[i] = scan.nextInt();\n\t\t\t\tsum += point[i];\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// calculate average\n\t\t\tdouble average = (double)sum / (double)studentNum;\n\t\t\t\n\t\t\t// calculate variance\n\t\t\tdouble variance = 0;\n\t\t\tfor( int i = 0; i < studentNum; i++ ) {\n\t\t\t\tdouble deviation\t=\tpoint[i]\t- average;\n\t\t\t\tvariance\t\t\t+=\tdeviation\t* deviation;\n\n\t\t\t}\n\t\t\tvariance = variance / studentNum;\n\t\t\t\n\t\t\t// calculate standardDeviation\n\t\t\tdouble standardDeviation = Math.sqrt( variance );\n\t\t\t\n\t\t\tSystem.out.println( standardDeviation );\n\t\t}\n\t\t\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main( String args[] ) {\n Scanner scan = new Scanner( System.in );\n\t\t\n\t\twhile( true ) {\n\t\t\tint studentNum = scan.nextInt();\n\t\t\t\n\t\t\tif ( studentNum == 0 ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] point = new int[studentNum];\n\t\t\t\n\t\t\t// input, calculate sum\n\t\t\tint sum = 0;\n\t\t\tfor( int i = 0; i < studentNum; i++ ) {\n\t\t\t\tpoint[i] = scan.nextInt();\n\t\t\t\tsum += point[i];\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// calculate average\n\t\t\tdouble average = (double)sum / (double)studentNum;\n\t\t\t\n\t\t\t// calculate variance\n\t\t\tdouble variance = 0;\n\t\t\tfor( int i = 0; i < studentNum; i++ ) {\n\t\t\t\tdouble deviation\t=\tpoint[i]\t- average;\n\t\t\t\tvariance\t\t\t+=\tdeviation\t* deviation;\n\n\t\t\t}\n\t\t\tvariance = variance / studentNum;\n\t\t\t\n\t\t\t// calculate standardDeviation\n\t\t\tdouble standardDeviation = Math.sqrt( variance );\n\t\t\t\n\t\t\tSystem.out.println( standardDeviation );\n\t\t}\n\t\t\n\t}\n}", "Main", "public static void main( String args[] ) {\n Scanner scan = new Scanner( System.in );\n\t\t\n\t\twhile( true ) {\n\t\t\tint studentNum = scan.nextInt();\n\t\t\t\n\t\t\tif ( studentNum == 0 ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] point = new int[studentNum];\n\t\t\t\n\t\t\t// input, calculate sum\n\t\t\tint sum = 0;\n\t\t\tfor( int i = 0; i < studentNum; i++ ) {\n\t\t\t\tpoint[i] = scan.nextInt();\n\t\t\t\tsum += point[i];\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// calculate average\n\t\t\tdouble average = (double)sum / (double)studentNum;\n\t\t\t\n\t\t\t// calculate variance\n\t\t\tdouble variance = 0;\n\t\t\tfor( int i = 0; i < studentNum; i++ ) {\n\t\t\t\tdouble deviation\t=\tpoint[i]\t- average;\n\t\t\t\tvariance\t\t\t+=\tdeviation\t* deviation;\n\n\t\t\t}\n\t\t\tvariance = variance / studentNum;\n\t\t\t\n\t\t\t// calculate standardDeviation\n\t\t\tdouble standardDeviation = Math.sqrt( variance );\n\t\t\t\n\t\t\tSystem.out.println( standardDeviation );\n\t\t}\n\t\t\n\t}", "main", "{\n Scanner scan = new Scanner( System.in );\n\t\t\n\t\twhile( true ) {\n\t\t\tint studentNum = scan.nextInt();\n\t\t\t\n\t\t\tif ( studentNum == 0 ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] point = new int[studentNum];\n\t\t\t\n\t\t\t// input, calculate sum\n\t\t\tint sum = 0;\n\t\t\tfor( int i = 0; i < studentNum; i++ ) {\n\t\t\t\tpoint[i] = scan.nextInt();\n\t\t\t\tsum += point[i];\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// calculate average\n\t\t\tdouble average = (double)sum / (double)studentNum;\n\t\t\t\n\t\t\t// calculate variance\n\t\t\tdouble variance = 0;\n\t\t\tfor( int i = 0; i < studentNum; i++ ) {\n\t\t\t\tdouble deviation\t=\tpoint[i]\t- average;\n\t\t\t\tvariance\t\t\t+=\tdeviation\t* deviation;\n\n\t\t\t}\n\t\t\tvariance = variance / studentNum;\n\t\t\t\n\t\t\t// calculate standardDeviation\n\t\t\tdouble standardDeviation = Math.sqrt( variance );\n\t\t\t\n\t\t\tSystem.out.println( standardDeviation );\n\t\t}\n\t\t\n\t}", "Scanner scan = new Scanner( System.in );", "scan", "new Scanner( System.in )", "while( true ) {\n\t\t\tint studentNum = scan.nextInt();\n\t\t\t\n\t\t\tif ( studentNum == 0 ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] point = new int[studentNum];\n\t\t\t\n\t\t\t// input, calculate sum\n\t\t\tint sum = 0;\n\t\t\tfor( int i = 0; i < studentNum; i++ ) {\n\t\t\t\tpoint[i] = scan.nextInt();\n\t\t\t\tsum += point[i];\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// calculate average\n\t\t\tdouble average = (double)sum / (double)studentNum;\n\t\t\t\n\t\t\t// calculate variance\n\t\t\tdouble variance = 0;\n\t\t\tfor( int i = 0; i < studentNum; i++ ) {\n\t\t\t\tdouble deviation\t=\tpoint[i]\t- average;\n\t\t\t\tvariance\t\t\t+=\tdeviation\t* deviation;\n\n\t\t\t}\n\t\t\tvariance = variance / studentNum;\n\t\t\t\n\t\t\t// calculate standardDeviation\n\t\t\tdouble standardDeviation = Math.sqrt( variance );\n\t\t\t\n\t\t\tSystem.out.println( standardDeviation );\n\t\t}", "true", "{\n\t\t\tint studentNum = scan.nextInt();\n\t\t\t\n\t\t\tif ( studentNum == 0 ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] point = new int[studentNum];\n\t\t\t\n\t\t\t// input, calculate sum\n\t\t\tint sum = 0;\n\t\t\tfor( int i = 0; i < studentNum; i++ ) {\n\t\t\t\tpoint[i] = scan.nextInt();\n\t\t\t\tsum += point[i];\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// calculate average\n\t\t\tdouble average = (double)sum / (double)studentNum;\n\t\t\t\n\t\t\t// calculate variance\n\t\t\tdouble variance = 0;\n\t\t\tfor( int i = 0; i < studentNum; i++ ) {\n\t\t\t\tdouble deviation\t=\tpoint[i]\t- average;\n\t\t\t\tvariance\t\t\t+=\tdeviation\t* deviation;\n\n\t\t\t}\n\t\t\tvariance = variance / studentNum;\n\t\t\t\n\t\t\t// calculate standardDeviation\n\t\t\tdouble standardDeviation = Math.sqrt( variance );\n\t\t\t\n\t\t\tSystem.out.println( standardDeviation );\n\t\t}", "int studentNum = scan.nextInt();", "studentNum", "scan.nextInt()", "scan.nextInt", "scan", "if ( studentNum == 0 ) {\n\t\t\t\tbreak;\n\t\t\t}", "studentNum == 0", "studentNum", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "int[] point = new int[studentNum];", "point", "new int[studentNum]", "studentNum", "int sum = 0;", "sum", "0", "for( int i = 0; i < studentNum; i++ ) {\n\t\t\t\tpoint[i] = scan.nextInt();\n\t\t\t\tsum += point[i];\n\t\t\t\t\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < studentNum", "i", "studentNum", "i++", "i++", "i", "{\n\t\t\t\tpoint[i] = scan.nextInt();\n\t\t\t\tsum += point[i];\n\t\t\t\t\n\t\t\t}", "{\n\t\t\t\tpoint[i] = scan.nextInt();\n\t\t\t\tsum += point[i];\n\t\t\t\t\n\t\t\t}", "point[i] = scan.nextInt()", "point[i]", "point", "i", "scan.nextInt()", "scan.nextInt", "scan", "sum += point[i]", "sum", "point[i]", "point", "i", "double average = (double)sum / (double)studentNum;", "average", "(double)sum / (double)studentNum", "(double)sum", "(double)studentNum", "double variance = 0;", "variance", "0", "for( int i = 0; i < studentNum; i++ ) {\n\t\t\t\tdouble deviation\t=\tpoint[i]\t- average;\n\t\t\t\tvariance\t\t\t+=\tdeviation\t* deviation;\n\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < studentNum", "i", "studentNum", "i++", "i++", "i", "{\n\t\t\t\tdouble deviation\t=\tpoint[i]\t- average;\n\t\t\t\tvariance\t\t\t+=\tdeviation\t* deviation;\n\n\t\t\t}", "{\n\t\t\t\tdouble deviation\t=\tpoint[i]\t- average;\n\t\t\t\tvariance\t\t\t+=\tdeviation\t* deviation;\n\n\t\t\t}", "double deviation\t=\tpoint[i]\t- average;", "deviation", "point[i]\t- average", "point[i]", "point", "i", "average", "variance\t\t\t+=\tdeviation\t* deviation", "variance", "deviation\t* deviation", "deviation", "deviation", "variance = variance / studentNum", "variance", "variance / studentNum", "variance", "studentNum", "double standardDeviation = Math.sqrt( variance );", "standardDeviation", "Math.sqrt( variance )", "Math.sqrt", "Math", "variance", "System.out.println( standardDeviation )", "System.out.println", "System.out", "System", "System.out", "standardDeviation", "String args[]", "args", "public class Main {\n public static void main( String args[] ) {\n Scanner scan = new Scanner( System.in );\n\t\t\n\t\twhile( true ) {\n\t\t\tint studentNum = scan.nextInt();\n\t\t\t\n\t\t\tif ( studentNum == 0 ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] point = new int[studentNum];\n\t\t\t\n\t\t\t// input, calculate sum\n\t\t\tint sum = 0;\n\t\t\tfor( int i = 0; i < studentNum; i++ ) {\n\t\t\t\tpoint[i] = scan.nextInt();\n\t\t\t\tsum += point[i];\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// calculate average\n\t\t\tdouble average = (double)sum / (double)studentNum;\n\t\t\t\n\t\t\t// calculate variance\n\t\t\tdouble variance = 0;\n\t\t\tfor( int i = 0; i < studentNum; i++ ) {\n\t\t\t\tdouble deviation\t=\tpoint[i]\t- average;\n\t\t\t\tvariance\t\t\t+=\tdeviation\t* deviation;\n\n\t\t\t}\n\t\t\tvariance = variance / studentNum;\n\t\t\t\n\t\t\t// calculate standardDeviation\n\t\t\tdouble standardDeviation = Math.sqrt( variance );\n\t\t\t\n\t\t\tSystem.out.println( standardDeviation );\n\t\t}\n\t\t\n\t}\n}", "public class Main {\n public static void main( String args[] ) {\n Scanner scan = new Scanner( System.in );\n\t\t\n\t\twhile( true ) {\n\t\t\tint studentNum = scan.nextInt();\n\t\t\t\n\t\t\tif ( studentNum == 0 ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] point = new int[studentNum];\n\t\t\t\n\t\t\t// input, calculate sum\n\t\t\tint sum = 0;\n\t\t\tfor( int i = 0; i < studentNum; i++ ) {\n\t\t\t\tpoint[i] = scan.nextInt();\n\t\t\t\tsum += point[i];\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// calculate average\n\t\t\tdouble average = (double)sum / (double)studentNum;\n\t\t\t\n\t\t\t// calculate variance\n\t\t\tdouble variance = 0;\n\t\t\tfor( int i = 0; i < studentNum; i++ ) {\n\t\t\t\tdouble deviation\t=\tpoint[i]\t- average;\n\t\t\t\tvariance\t\t\t+=\tdeviation\t* deviation;\n\n\t\t\t}\n\t\t\tvariance = variance / studentNum;\n\t\t\t\n\t\t\t// calculate standardDeviation\n\t\t\tdouble standardDeviation = Math.sqrt( variance );\n\t\t\t\n\t\t\tSystem.out.println( standardDeviation );\n\t\t}\n\t\t\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main( String args[] ) { Scanner scan = new Scanner( System.in ); while( true ) { int studentNum = scan.nextInt(); if ( studentNum == 0 ) { break; } int[] point = new int[studentNum]; // input, calculate sum int sum = 0; for( int i = 0; i < studentNum; i++ ) { point[i] = scan.nextInt(); sum += point[i]; } // calculate average double average = (double)sum / (double)studentNum; // calculate variance double variance = 0; for( int i = 0; i < studentNum; i++ ) { double deviation = point[i] - average; variance += deviation * deviation; } variance = variance / studentNum; // calculate standardDeviation double standardDeviation = Math.sqrt( variance ); System.out.println( standardDeviation ); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 4, 18, 13, 40, 17, 30, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 2, 0, 13, 4, 18, 13, 17, 30, 14, 2, 2, 4, 18, 13, 17, 17, 30, 0, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 3, 14, 2, 2, 4, 18, 13, 17, 17, 30, 41, 13, 4, 18, 13, 17, 0, 13, 20, 13, 41, 13, 17, 28, 13, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 13, 40, 13, 41, 13, 17, 28, 13, 13, 30, 30, 0, 13, 13, 41, 13, 2, 13, 13, 41, 13, 17, 28, 13, 13, 30, 30, 0, 13, 4, 18, 13, 2, 13, 13, 17, 41, 13, 4, 18, 13, 2, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 17, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 161, 8 ], [ 161, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 15, 19 ], [ 19, 20 ], [ 20, 21 ], [ 19, 22 ], [ 22, 23 ], [ 12, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 28 ], [ 28, 29 ], [ 28, 30 ], [ 24, 31 ], [ 31, 32 ], [ 31, 33 ], [ 24, 34 ], [ 34, 35 ], [ 34, 36 ], [ 24, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 38, 44 ], [ 37, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 48, 52 ], [ 47, 53 ], [ 46, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 45, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 65, 66 ], [ 45, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 69, 73 ], [ 68, 74 ], [ 67, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 75, 82 ], [ 82, 83 ], [ 82, 84 ], [ 75, 86 ], [ 86, 87 ], [ 86, 88 ], [ 75, 89 ], [ 89, 90 ], [ 89, 91 ], [ 89, 92 ], [ 93, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 93, 102 ], [ 102, 103 ], [ 75, 104 ], [ 104, 105 ], [ 104, 106 ], [ 75, 107 ], [ 107, 108 ], [ 107, 109 ], [ 107, 110 ], [ 111, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 75, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 117, 119 ], [ 75, 120 ], [ 120, 121 ], [ 120, 122 ], [ 75, 123 ], [ 123, 124 ], [ 123, 125 ], [ 123, 126 ], [ 127, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 131, 132 ], [ 130, 133 ], [ 133, 134 ], [ 133, 135 ], [ 130, 136 ], [ 75, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 140, 141 ], [ 139, 142 ], [ 142, 143 ], [ 142, 144 ], [ 75, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 145, 150 ], [ 150, 151 ], [ 151, 152 ], [ 150, 153 ], [ 150, 154 ], [ 24, 155 ], [ 155, 156 ], [ 156, 157 ], [ 9, 158 ], [ 158, 159 ], [ 0, 160 ], [ 160, 161 ], [ 160, 162 ] ]
[ "import java.io.InputStreamReader;\nimport java.io.LineNumberReader;\n\n/**\n * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_10_C\n * \n * @author eitatsuro\n * \n */\npublic class Main {\n public static void main(String[] args) {\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n double scores[] = null;\n int studentsNum = 0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n // ???????????°\n if (lineNumReader.getLineNumber()%2 == 1) {\n studentsNum = Integer.parseInt(inputStr);\n }\n \n // ???????????¶.\n if (studentsNum == 0) {\n break;\n }\n \n // ????????¢\n if (lineNumReader.getLineNumber() % 2 == 0) {\n String[] points = inputStr.split(\" \");\n scores = new double[studentsNum];\n int i = 0;\n for (String point : points) {\n scores[i] = Long.parseLong(point);\n i++;\n }\n \n // ?????????????¨????\n double sum = 0;\n for (double score : scores) {\n sum += score;\n }\n double mean = sum / studentsNum;\n \n // ?????£ sig2\n double sig2 = 0;\n for (double score : scores) {\n sig2 += Math.pow(score - mean, 2);\n }\n \n // ?¨?????????? sigma\n double sigma = Math.sqrt(sig2 / studentsNum);\n \n // ????????????.\n System.out.println(String.format(\"%.8f\", sigma));\n }\n }\n \n lineNumReader.close();\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(-1);\n }\n }\n}", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.LineNumberReader;", "LineNumberReader", "java.io", "public class Main {\n public static void main(String[] args) {\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n double scores[] = null;\n int studentsNum = 0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n // ???????????°\n if (lineNumReader.getLineNumber()%2 == 1) {\n studentsNum = Integer.parseInt(inputStr);\n }\n \n // ???????????¶.\n if (studentsNum == 0) {\n break;\n }\n \n // ????????¢\n if (lineNumReader.getLineNumber() % 2 == 0) {\n String[] points = inputStr.split(\" \");\n scores = new double[studentsNum];\n int i = 0;\n for (String point : points) {\n scores[i] = Long.parseLong(point);\n i++;\n }\n \n // ?????????????¨????\n double sum = 0;\n for (double score : scores) {\n sum += score;\n }\n double mean = sum / studentsNum;\n \n // ?????£ sig2\n double sig2 = 0;\n for (double score : scores) {\n sig2 += Math.pow(score - mean, 2);\n }\n \n // ?¨?????????? sigma\n double sigma = Math.sqrt(sig2 / studentsNum);\n \n // ????????????.\n System.out.println(String.format(\"%.8f\", sigma));\n }\n }\n \n lineNumReader.close();\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(-1);\n }\n }\n}", "Main", "public static void main(String[] args) {\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n double scores[] = null;\n int studentsNum = 0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n // ???????????°\n if (lineNumReader.getLineNumber()%2 == 1) {\n studentsNum = Integer.parseInt(inputStr);\n }\n \n // ???????????¶.\n if (studentsNum == 0) {\n break;\n }\n \n // ????????¢\n if (lineNumReader.getLineNumber() % 2 == 0) {\n String[] points = inputStr.split(\" \");\n scores = new double[studentsNum];\n int i = 0;\n for (String point : points) {\n scores[i] = Long.parseLong(point);\n i++;\n }\n \n // ?????????????¨????\n double sum = 0;\n for (double score : scores) {\n sum += score;\n }\n double mean = sum / studentsNum;\n \n // ?????£ sig2\n double sig2 = 0;\n for (double score : scores) {\n sig2 += Math.pow(score - mean, 2);\n }\n \n // ?¨?????????? sigma\n double sigma = Math.sqrt(sig2 / studentsNum);\n \n // ????????????.\n System.out.println(String.format(\"%.8f\", sigma));\n }\n }\n \n lineNumReader.close();\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(-1);\n }\n }", "main", "{\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n double scores[] = null;\n int studentsNum = 0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n // ???????????°\n if (lineNumReader.getLineNumber()%2 == 1) {\n studentsNum = Integer.parseInt(inputStr);\n }\n \n // ???????????¶.\n if (studentsNum == 0) {\n break;\n }\n \n // ????????¢\n if (lineNumReader.getLineNumber() % 2 == 0) {\n String[] points = inputStr.split(\" \");\n scores = new double[studentsNum];\n int i = 0;\n for (String point : points) {\n scores[i] = Long.parseLong(point);\n i++;\n }\n \n // ?????????????¨????\n double sum = 0;\n for (double score : scores) {\n sum += score;\n }\n double mean = sum / studentsNum;\n \n // ?????£ sig2\n double sig2 = 0;\n for (double score : scores) {\n sig2 += Math.pow(score - mean, 2);\n }\n \n // ?¨?????????? sigma\n double sigma = Math.sqrt(sig2 / studentsNum);\n \n // ????????????.\n System.out.println(String.format(\"%.8f\", sigma));\n }\n }\n \n lineNumReader.close();\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(-1);\n }\n }", "try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n double scores[] = null;\n int studentsNum = 0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n // ???????????°\n if (lineNumReader.getLineNumber()%2 == 1) {\n studentsNum = Integer.parseInt(inputStr);\n }\n \n // ???????????¶.\n if (studentsNum == 0) {\n break;\n }\n \n // ????????¢\n if (lineNumReader.getLineNumber() % 2 == 0) {\n String[] points = inputStr.split(\" \");\n scores = new double[studentsNum];\n int i = 0;\n for (String point : points) {\n scores[i] = Long.parseLong(point);\n i++;\n }\n \n // ?????????????¨????\n double sum = 0;\n for (double score : scores) {\n sum += score;\n }\n double mean = sum / studentsNum;\n \n // ?????£ sig2\n double sig2 = 0;\n for (double score : scores) {\n sig2 += Math.pow(score - mean, 2);\n }\n \n // ?¨?????????? sigma\n double sigma = Math.sqrt(sig2 / studentsNum);\n \n // ????????????.\n System.out.println(String.format(\"%.8f\", sigma));\n }\n }\n \n lineNumReader.close();\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(-1);\n }", "catch (Exception e) {\n e.printStackTrace();\n System.exit(-1);\n }", "Exception e", "{\n e.printStackTrace();\n System.exit(-1);\n }", "e.printStackTrace()", "e.printStackTrace", "e", "System.exit(-1)", "System.exit", "System", "-1", "1", "{\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n double scores[] = null;\n int studentsNum = 0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n // ???????????°\n if (lineNumReader.getLineNumber()%2 == 1) {\n studentsNum = Integer.parseInt(inputStr);\n }\n \n // ???????????¶.\n if (studentsNum == 0) {\n break;\n }\n \n // ????????¢\n if (lineNumReader.getLineNumber() % 2 == 0) {\n String[] points = inputStr.split(\" \");\n scores = new double[studentsNum];\n int i = 0;\n for (String point : points) {\n scores[i] = Long.parseLong(point);\n i++;\n }\n \n // ?????????????¨????\n double sum = 0;\n for (double score : scores) {\n sum += score;\n }\n double mean = sum / studentsNum;\n \n // ?????£ sig2\n double sig2 = 0;\n for (double score : scores) {\n sig2 += Math.pow(score - mean, 2);\n }\n \n // ?¨?????????? sigma\n double sigma = Math.sqrt(sig2 / studentsNum);\n \n // ????????????.\n System.out.println(String.format(\"%.8f\", sigma));\n }\n }\n \n lineNumReader.close();\n }", "LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));", "lineNumReader", "new LineNumberReader(\n new InputStreamReader(System.in))", "String inputStr = null;", "inputStr", "null", "double scores[] = null;", "scores", "null", "int studentsNum = 0;", "studentsNum", "0", "while ((inputStr = lineNumReader.readLine()) != null) {\n \n // ???????????°\n if (lineNumReader.getLineNumber()%2 == 1) {\n studentsNum = Integer.parseInt(inputStr);\n }\n \n // ???????????¶.\n if (studentsNum == 0) {\n break;\n }\n \n // ????????¢\n if (lineNumReader.getLineNumber() % 2 == 0) {\n String[] points = inputStr.split(\" \");\n scores = new double[studentsNum];\n int i = 0;\n for (String point : points) {\n scores[i] = Long.parseLong(point);\n i++;\n }\n \n // ?????????????¨????\n double sum = 0;\n for (double score : scores) {\n sum += score;\n }\n double mean = sum / studentsNum;\n \n // ?????£ sig2\n double sig2 = 0;\n for (double score : scores) {\n sig2 += Math.pow(score - mean, 2);\n }\n \n // ?¨?????????? sigma\n double sigma = Math.sqrt(sig2 / studentsNum);\n \n // ????????????.\n System.out.println(String.format(\"%.8f\", sigma));\n }\n }", "(inputStr = lineNumReader.readLine()) != null", "(inputStr = lineNumReader.readLine())", "inputStr", "lineNumReader.readLine()", "lineNumReader.readLine", "lineNumReader", "null", "{\n \n // ???????????°\n if (lineNumReader.getLineNumber()%2 == 1) {\n studentsNum = Integer.parseInt(inputStr);\n }\n \n // ???????????¶.\n if (studentsNum == 0) {\n break;\n }\n \n // ????????¢\n if (lineNumReader.getLineNumber() % 2 == 0) {\n String[] points = inputStr.split(\" \");\n scores = new double[studentsNum];\n int i = 0;\n for (String point : points) {\n scores[i] = Long.parseLong(point);\n i++;\n }\n \n // ?????????????¨????\n double sum = 0;\n for (double score : scores) {\n sum += score;\n }\n double mean = sum / studentsNum;\n \n // ?????£ sig2\n double sig2 = 0;\n for (double score : scores) {\n sig2 += Math.pow(score - mean, 2);\n }\n \n // ?¨?????????? sigma\n double sigma = Math.sqrt(sig2 / studentsNum);\n \n // ????????????.\n System.out.println(String.format(\"%.8f\", sigma));\n }\n }", "if (lineNumReader.getLineNumber()%2 == 1) {\n studentsNum = Integer.parseInt(inputStr);\n }", "lineNumReader.getLineNumber()%2 == 1", "lineNumReader.getLineNumber()%2", "lineNumReader.getLineNumber()", "lineNumReader.getLineNumber", "lineNumReader", "2", "1", "{\n studentsNum = Integer.parseInt(inputStr);\n }", "studentsNum = Integer.parseInt(inputStr)", "studentsNum", "Integer.parseInt(inputStr)", "Integer.parseInt", "Integer", "inputStr", "if (studentsNum == 0) {\n break;\n }", "studentsNum == 0", "studentsNum", "0", "{\n break;\n }", "break;", "if (lineNumReader.getLineNumber() % 2 == 0) {\n String[] points = inputStr.split(\" \");\n scores = new double[studentsNum];\n int i = 0;\n for (String point : points) {\n scores[i] = Long.parseLong(point);\n i++;\n }\n \n // ?????????????¨????\n double sum = 0;\n for (double score : scores) {\n sum += score;\n }\n double mean = sum / studentsNum;\n \n // ?????£ sig2\n double sig2 = 0;\n for (double score : scores) {\n sig2 += Math.pow(score - mean, 2);\n }\n \n // ?¨?????????? sigma\n double sigma = Math.sqrt(sig2 / studentsNum);\n \n // ????????????.\n System.out.println(String.format(\"%.8f\", sigma));\n }", "lineNumReader.getLineNumber() % 2 == 0", "lineNumReader.getLineNumber() % 2", "lineNumReader.getLineNumber()", "lineNumReader.getLineNumber", "lineNumReader", "2", "0", "{\n String[] points = inputStr.split(\" \");\n scores = new double[studentsNum];\n int i = 0;\n for (String point : points) {\n scores[i] = Long.parseLong(point);\n i++;\n }\n \n // ?????????????¨????\n double sum = 0;\n for (double score : scores) {\n sum += score;\n }\n double mean = sum / studentsNum;\n \n // ?????£ sig2\n double sig2 = 0;\n for (double score : scores) {\n sig2 += Math.pow(score - mean, 2);\n }\n \n // ?¨?????????? sigma\n double sigma = Math.sqrt(sig2 / studentsNum);\n \n // ????????????.\n System.out.println(String.format(\"%.8f\", sigma));\n }", "String[] points = inputStr.split(\" \");", "points", "inputStr.split(\" \")", "inputStr.split", "inputStr", "\" \"", "scores = new double[studentsNum]", "scores", "new double[studentsNum]", "studentsNum", "int i = 0;", "i", "0", "for (String point : points) {\n scores[i] = Long.parseLong(point);\n i++;\n }", "String point", "points", "{\n scores[i] = Long.parseLong(point);\n i++;\n }", "{\n scores[i] = Long.parseLong(point);\n i++;\n }", "scores[i] = Long.parseLong(point)", "scores[i]", "scores", "i", "Long.parseLong(point)", "Long.parseLong", "Long", "point", "i++", "i", "double sum = 0;", "sum", "0", "for (double score : scores) {\n sum += score;\n }", "double score", "scores", "{\n sum += score;\n }", "{\n sum += score;\n }", "sum += score", "sum", "score", "double mean = sum / studentsNum;", "mean", "sum / studentsNum", "sum", "studentsNum", "double sig2 = 0;", "sig2", "0", "for (double score : scores) {\n sig2 += Math.pow(score - mean, 2);\n }", "double score", "scores", "{\n sig2 += Math.pow(score - mean, 2);\n }", "{\n sig2 += Math.pow(score - mean, 2);\n }", "sig2 += Math.pow(score - mean, 2)", "sig2", "Math.pow(score - mean, 2)", "Math.pow", "Math", "score - mean", "score", "mean", "2", "double sigma = Math.sqrt(sig2 / studentsNum);", "sigma", "Math.sqrt(sig2 / studentsNum)", "Math.sqrt", "Math", "sig2 / studentsNum", "sig2", "studentsNum", "System.out.println(String.format(\"%.8f\", sigma))", "System.out.println", "System.out", "System", "System.out", "String.format(\"%.8f\", sigma)", "String.format", "String", "\"%.8f\"", "sigma", "lineNumReader.close()", "lineNumReader.close", "lineNumReader", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n double scores[] = null;\n int studentsNum = 0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n // ???????????°\n if (lineNumReader.getLineNumber()%2 == 1) {\n studentsNum = Integer.parseInt(inputStr);\n }\n \n // ???????????¶.\n if (studentsNum == 0) {\n break;\n }\n \n // ????????¢\n if (lineNumReader.getLineNumber() % 2 == 0) {\n String[] points = inputStr.split(\" \");\n scores = new double[studentsNum];\n int i = 0;\n for (String point : points) {\n scores[i] = Long.parseLong(point);\n i++;\n }\n \n // ?????????????¨????\n double sum = 0;\n for (double score : scores) {\n sum += score;\n }\n double mean = sum / studentsNum;\n \n // ?????£ sig2\n double sig2 = 0;\n for (double score : scores) {\n sig2 += Math.pow(score - mean, 2);\n }\n \n // ?¨?????????? sigma\n double sigma = Math.sqrt(sig2 / studentsNum);\n \n // ????????????.\n System.out.println(String.format(\"%.8f\", sigma));\n }\n }\n \n lineNumReader.close();\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(-1);\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n double scores[] = null;\n int studentsNum = 0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n // ???????????°\n if (lineNumReader.getLineNumber()%2 == 1) {\n studentsNum = Integer.parseInt(inputStr);\n }\n \n // ???????????¶.\n if (studentsNum == 0) {\n break;\n }\n \n // ????????¢\n if (lineNumReader.getLineNumber() % 2 == 0) {\n String[] points = inputStr.split(\" \");\n scores = new double[studentsNum];\n int i = 0;\n for (String point : points) {\n scores[i] = Long.parseLong(point);\n i++;\n }\n \n // ?????????????¨????\n double sum = 0;\n for (double score : scores) {\n sum += score;\n }\n double mean = sum / studentsNum;\n \n // ?????£ sig2\n double sig2 = 0;\n for (double score : scores) {\n sig2 += Math.pow(score - mean, 2);\n }\n \n // ?¨?????????? sigma\n double sigma = Math.sqrt(sig2 / studentsNum);\n \n // ????????????.\n System.out.println(String.format(\"%.8f\", sigma));\n }\n }\n \n lineNumReader.close();\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(-1);\n }\n }\n}", "Main" ]
import java.io.InputStreamReader; import java.io.LineNumberReader; /** * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_10_C * * @author eitatsuro * */ public class Main { public static void main(String[] args) { try { LineNumberReader lineNumReader = new LineNumberReader( new InputStreamReader(System.in)); String inputStr = null; double scores[] = null; int studentsNum = 0; while ((inputStr = lineNumReader.readLine()) != null) { // ???????????° if (lineNumReader.getLineNumber()%2 == 1) { studentsNum = Integer.parseInt(inputStr); } // ???????????¶. if (studentsNum == 0) { break; } // ????????¢ if (lineNumReader.getLineNumber() % 2 == 0) { String[] points = inputStr.split(" "); scores = new double[studentsNum]; int i = 0; for (String point : points) { scores[i] = Long.parseLong(point); i++; } // ?????????????¨???? double sum = 0; for (double score : scores) { sum += score; } double mean = sum / studentsNum; // ?????£ sig2 double sig2 = 0; for (double score : scores) { sig2 += Math.pow(score - mean, 2); } // ?¨?????????? sigma double sigma = Math.sqrt(sig2 / studentsNum); // ????????????. System.out.println(String.format("%.8f", sigma)); } } lineNumReader.close(); } catch (Exception e) { e.printStackTrace(); System.exit(-1); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 20, 13, 41, 13, 17, 41, 13, 17, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 41, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 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 ], [ 109, 5 ], [ 109, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 30 ], [ 30, 31 ], [ 30, 32 ], [ 14, 33 ], [ 33, 34 ], [ 33, 35 ], [ 14, 36 ], [ 36, 37 ], [ 14, 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 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 50, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 14, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 14, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 73, 74 ], [ 73, 75 ], [ 68, 76 ], [ 76, 77 ], [ 77, 78 ], [ 68, 79 ], [ 80, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 83, 91 ], [ 14, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 97, 98 ], [ 97, 99 ], [ 14, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 6, 106 ], [ 106, 107 ], [ 0, 108 ], [ 108, 109 ], [ 108, 110 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main (String[] args) {\n Scanner scan = new Scanner(System.in);\n\n while(true){\n int n = scan.nextInt();\n if(n == 0){\n break;\n }\n int[] array_s = new int[n];\n int sum = 0;\n double v_2 = 0;\n double a;\n for(int i = 0; i < n; i++){\n array_s[i] = scan.nextInt();\n sum += array_s[i];\n }\n\n double m = (double)sum/(double)n;\n\n for(int i = 0; i < n; i++){\n v_2 += Math.pow(array_s[i]-m, 2);\n }\n\n a = Math.sqrt(v_2/n);\n System.out.println(a);\n }\n\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main (String[] args) {\n Scanner scan = new Scanner(System.in);\n\n while(true){\n int n = scan.nextInt();\n if(n == 0){\n break;\n }\n int[] array_s = new int[n];\n int sum = 0;\n double v_2 = 0;\n double a;\n for(int i = 0; i < n; i++){\n array_s[i] = scan.nextInt();\n sum += array_s[i];\n }\n\n double m = (double)sum/(double)n;\n\n for(int i = 0; i < n; i++){\n v_2 += Math.pow(array_s[i]-m, 2);\n }\n\n a = Math.sqrt(v_2/n);\n System.out.println(a);\n }\n\n }\n}", "Main", "public static void main (String[] args) {\n Scanner scan = new Scanner(System.in);\n\n while(true){\n int n = scan.nextInt();\n if(n == 0){\n break;\n }\n int[] array_s = new int[n];\n int sum = 0;\n double v_2 = 0;\n double a;\n for(int i = 0; i < n; i++){\n array_s[i] = scan.nextInt();\n sum += array_s[i];\n }\n\n double m = (double)sum/(double)n;\n\n for(int i = 0; i < n; i++){\n v_2 += Math.pow(array_s[i]-m, 2);\n }\n\n a = Math.sqrt(v_2/n);\n System.out.println(a);\n }\n\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n\n while(true){\n int n = scan.nextInt();\n if(n == 0){\n break;\n }\n int[] array_s = new int[n];\n int sum = 0;\n double v_2 = 0;\n double a;\n for(int i = 0; i < n; i++){\n array_s[i] = scan.nextInt();\n sum += array_s[i];\n }\n\n double m = (double)sum/(double)n;\n\n for(int i = 0; i < n; i++){\n v_2 += Math.pow(array_s[i]-m, 2);\n }\n\n a = Math.sqrt(v_2/n);\n System.out.println(a);\n }\n\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(true){\n int n = scan.nextInt();\n if(n == 0){\n break;\n }\n int[] array_s = new int[n];\n int sum = 0;\n double v_2 = 0;\n double a;\n for(int i = 0; i < n; i++){\n array_s[i] = scan.nextInt();\n sum += array_s[i];\n }\n\n double m = (double)sum/(double)n;\n\n for(int i = 0; i < n; i++){\n v_2 += Math.pow(array_s[i]-m, 2);\n }\n\n a = Math.sqrt(v_2/n);\n System.out.println(a);\n }", "true", "{\n int n = scan.nextInt();\n if(n == 0){\n break;\n }\n int[] array_s = new int[n];\n int sum = 0;\n double v_2 = 0;\n double a;\n for(int i = 0; i < n; i++){\n array_s[i] = scan.nextInt();\n sum += array_s[i];\n }\n\n double m = (double)sum/(double)n;\n\n for(int i = 0; i < n; i++){\n v_2 += Math.pow(array_s[i]-m, 2);\n }\n\n a = Math.sqrt(v_2/n);\n System.out.println(a);\n }", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "if(n == 0){\n break;\n }", "n == 0", "n", "0", "{\n break;\n }", "break;", "int[] array_s = new int[n];", "array_s", "new int[n]", "n", "int sum = 0;", "sum", "0", "double v_2 = 0;", "v_2", "0", "double a;", "a", "for(int i = 0; i < n; i++){\n array_s[i] = scan.nextInt();\n sum += array_s[i];\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n array_s[i] = scan.nextInt();\n sum += array_s[i];\n }", "{\n array_s[i] = scan.nextInt();\n sum += array_s[i];\n }", "array_s[i] = scan.nextInt()", "array_s[i]", "array_s", "i", "scan.nextInt()", "scan.nextInt", "scan", "sum += array_s[i]", "sum", "array_s[i]", "array_s", "i", "double m = (double)sum/(double)n;", "m", "(double)sum/(double)n", "(double)sum", "(double)n", "for(int i = 0; i < n; i++){\n v_2 += Math.pow(array_s[i]-m, 2);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n v_2 += Math.pow(array_s[i]-m, 2);\n }", "{\n v_2 += Math.pow(array_s[i]-m, 2);\n }", "v_2 += Math.pow(array_s[i]-m, 2)", "v_2", "Math.pow(array_s[i]-m, 2)", "Math.pow", "Math", "array_s[i]-m", "array_s[i]", "array_s", "i", "m", "2", "a = Math.sqrt(v_2/n)", "a", "Math.sqrt(v_2/n)", "Math.sqrt", "Math", "v_2/n", "v_2", "n", "System.out.println(a)", "System.out.println", "System.out", "System", "System.out", "a", "String[] args", "args", "public class Main {\n public static void main (String[] args) {\n Scanner scan = new Scanner(System.in);\n\n while(true){\n int n = scan.nextInt();\n if(n == 0){\n break;\n }\n int[] array_s = new int[n];\n int sum = 0;\n double v_2 = 0;\n double a;\n for(int i = 0; i < n; i++){\n array_s[i] = scan.nextInt();\n sum += array_s[i];\n }\n\n double m = (double)sum/(double)n;\n\n for(int i = 0; i < n; i++){\n v_2 += Math.pow(array_s[i]-m, 2);\n }\n\n a = Math.sqrt(v_2/n);\n System.out.println(a);\n }\n\n }\n}", "public class Main {\n public static void main (String[] args) {\n Scanner scan = new Scanner(System.in);\n\n while(true){\n int n = scan.nextInt();\n if(n == 0){\n break;\n }\n int[] array_s = new int[n];\n int sum = 0;\n double v_2 = 0;\n double a;\n for(int i = 0; i < n; i++){\n array_s[i] = scan.nextInt();\n sum += array_s[i];\n }\n\n double m = (double)sum/(double)n;\n\n for(int i = 0; i < n; i++){\n v_2 += Math.pow(array_s[i]-m, 2);\n }\n\n a = Math.sqrt(v_2/n);\n System.out.println(a);\n }\n\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main (String[] args) { Scanner scan = new Scanner(System.in); while(true){ int n = scan.nextInt(); if(n == 0){ break; } int[] array_s = new int[n]; int sum = 0; double v_2 = 0; double a; for(int i = 0; i < n; i++){ array_s[i] = scan.nextInt(); sum += array_s[i]; } double m = (double)sum/(double)n; for(int i = 0; i < n; i++){ v_2 += Math.pow(array_s[i]-m, 2); } a = Math.sqrt(v_2/n); System.out.println(a); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 11, 1, 30, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 0, 13, 18, 13, 13, 41, 13, 2, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 41, 13, 4, 18, 13, 2, 13, 13, 4, 18, 4, 18, 13, 13, 17, 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 ], [ 142, 11 ], [ 142, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 24, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 24, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 30, 35 ], [ 35, 36 ], [ 24, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 24, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 45, 50 ], [ 24, 51 ], [ 51, 52 ], [ 51, 53 ], [ 24, 55 ], [ 55, 56 ], [ 55, 57 ], [ 24, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 58, 66 ], [ 66, 67 ], [ 67, 68 ], [ 58, 69 ], [ 70, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 78, 79 ], [ 78, 80 ], [ 70, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 24, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 24, 91 ], [ 91, 92 ], [ 91, 93 ], [ 24, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 99, 100 ], [ 99, 101 ], [ 94, 102 ], [ 102, 103 ], [ 103, 104 ], [ 94, 105 ], [ 106, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 109, 117 ], [ 24, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 123, 124 ], [ 123, 125 ], [ 24, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 128, 131 ], [ 126, 132 ], [ 14, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 133, 138 ], [ 12, 139 ], [ 139, 140 ], [ 0, 141 ], [ 141, 142 ], [ 141, 143 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor(;;) {\n\t\t\tString line = br.readLine();\n\t\t\tif(line.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint n = Integer.parseInt(line);\n\t\t\tString[] set = br.readLine().split(\" \");\n\t\t\tint[] s = new int[n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\ts[i] = Integer.parseInt(set[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\t\t\tdouble a = 0;\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\t a += Math.pow(s[i] - m , 2);\n\t\t\t}\n\n\t\t\tdouble alpha = Math.sqrt(a / n);\n\n\t\t\tsb.append(alpha).append(\"\\n\");\n\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor(;;) {\n\t\t\tString line = br.readLine();\n\t\t\tif(line.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint n = Integer.parseInt(line);\n\t\t\tString[] set = br.readLine().split(\" \");\n\t\t\tint[] s = new int[n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\ts[i] = Integer.parseInt(set[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\t\t\tdouble a = 0;\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\t a += Math.pow(s[i] - m , 2);\n\t\t\t}\n\n\t\t\tdouble alpha = Math.sqrt(a / n);\n\n\t\t\tsb.append(alpha).append(\"\\n\");\n\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor(;;) {\n\t\t\tString line = br.readLine();\n\t\t\tif(line.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint n = Integer.parseInt(line);\n\t\t\tString[] set = br.readLine().split(\" \");\n\t\t\tint[] s = new int[n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\ts[i] = Integer.parseInt(set[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\t\t\tdouble a = 0;\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\t a += Math.pow(s[i] - m , 2);\n\t\t\t}\n\n\t\t\tdouble alpha = Math.sqrt(a / n);\n\n\t\t\tsb.append(alpha).append(\"\\n\");\n\n\t\t}\n\t\tSystem.out.print(sb);\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor(;;) {\n\t\t\tString line = br.readLine();\n\t\t\tif(line.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint n = Integer.parseInt(line);\n\t\t\tString[] set = br.readLine().split(\" \");\n\t\t\tint[] s = new int[n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\ts[i] = Integer.parseInt(set[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\t\t\tdouble a = 0;\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\t a += Math.pow(s[i] - m , 2);\n\t\t\t}\n\n\t\t\tdouble alpha = Math.sqrt(a / n);\n\n\t\t\tsb.append(alpha).append(\"\\n\");\n\n\t\t}\n\t\tSystem.out.print(sb);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "for(;;) {\n\t\t\tString line = br.readLine();\n\t\t\tif(line.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint n = Integer.parseInt(line);\n\t\t\tString[] set = br.readLine().split(\" \");\n\t\t\tint[] s = new int[n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\ts[i] = Integer.parseInt(set[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\t\t\tdouble a = 0;\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\t a += Math.pow(s[i] - m , 2);\n\t\t\t}\n\n\t\t\tdouble alpha = Math.sqrt(a / n);\n\n\t\t\tsb.append(alpha).append(\"\\n\");\n\n\t\t}", ";", "{\n\t\t\tString line = br.readLine();\n\t\t\tif(line.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint n = Integer.parseInt(line);\n\t\t\tString[] set = br.readLine().split(\" \");\n\t\t\tint[] s = new int[n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\ts[i] = Integer.parseInt(set[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\t\t\tdouble a = 0;\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\t a += Math.pow(s[i] - m , 2);\n\t\t\t}\n\n\t\t\tdouble alpha = Math.sqrt(a / n);\n\n\t\t\tsb.append(alpha).append(\"\\n\");\n\n\t\t}", "{\n\t\t\tString line = br.readLine();\n\t\t\tif(line.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint n = Integer.parseInt(line);\n\t\t\tString[] set = br.readLine().split(\" \");\n\t\t\tint[] s = new int[n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\ts[i] = Integer.parseInt(set[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\t\t\tdouble a = 0;\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\t a += Math.pow(s[i] - m , 2);\n\t\t\t}\n\n\t\t\tdouble alpha = Math.sqrt(a / n);\n\n\t\t\tsb.append(alpha).append(\"\\n\");\n\n\t\t}", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "if(line.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}", "line.equals(\"0\")", "line.equals", "line", "\"0\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "int n = Integer.parseInt(line);", "n", "Integer.parseInt(line)", "Integer.parseInt", "Integer", "line", "String[] set = br.readLine().split(\" \");", "set", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int[] s = new int[n];", "s", "new int[n]", "n", "double sum = 0;", "sum", "0", "for(int i = 0; i < n; i++) {\n\t\t\t\ts[i] = Integer.parseInt(set[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\ts[i] = Integer.parseInt(set[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}", "{\n\t\t\t\ts[i] = Integer.parseInt(set[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}", "s[i] = Integer.parseInt(set[i])", "s[i]", "s", "i", "Integer.parseInt(set[i])", "Integer.parseInt", "Integer", "set[i]", "set", "i", "sum += s[i]", "sum", "s[i]", "s", "i", "double m = sum / n;", "m", "sum / n", "sum", "n", "double a = 0;", "a", "0", "for(int i = 0; i < n; i++) {\n\t\t\t\t a += Math.pow(s[i] - m , 2);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\t a += Math.pow(s[i] - m , 2);\n\t\t\t}", "{\n\t\t\t\t a += Math.pow(s[i] - m , 2);\n\t\t\t}", "a += Math.pow(s[i] - m , 2)", "a", "Math.pow(s[i] - m , 2)", "Math.pow", "Math", "s[i] - m", "s[i]", "s", "i", "m", "2", "double alpha = Math.sqrt(a / n);", "alpha", "Math.sqrt(a / n)", "Math.sqrt", "Math", "a / n", "a", "n", "sb.append(alpha).append(\"\\n\")", "sb.append(alpha).append", "sb.append(alpha)", "sb.append", "sb", "alpha", "\"\\n\"", "System.out.print(sb)", "System.out.print", "System.out", "System", "System.out", "sb", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor(;;) {\n\t\t\tString line = br.readLine();\n\t\t\tif(line.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint n = Integer.parseInt(line);\n\t\t\tString[] set = br.readLine().split(\" \");\n\t\t\tint[] s = new int[n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\ts[i] = Integer.parseInt(set[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\t\t\tdouble a = 0;\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\t a += Math.pow(s[i] - m , 2);\n\t\t\t}\n\n\t\t\tdouble alpha = Math.sqrt(a / n);\n\n\t\t\tsb.append(alpha).append(\"\\n\");\n\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor(;;) {\n\t\t\tString line = br.readLine();\n\t\t\tif(line.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint n = Integer.parseInt(line);\n\t\t\tString[] set = br.readLine().split(\" \");\n\t\t\tint[] s = new int[n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\ts[i] = Integer.parseInt(set[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\t\t\tdouble a = 0;\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\t a += Math.pow(s[i] - m , 2);\n\t\t\t}\n\n\t\t\tdouble alpha = Math.sqrt(a / n);\n\n\t\t\tsb.append(alpha).append(\"\\n\");\n\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); for(;;) { String line = br.readLine(); if(line.equals("0")) { break; } int n = Integer.parseInt(line); String[] set = br.readLine().split(" "); int[] s = new int[n]; double sum = 0; for(int i = 0; i < n; i++) { s[i] = Integer.parseInt(set[i]); sum += s[i]; } double m = sum / n; double a = 0; for(int i = 0; i < n; i++) { a += Math.pow(s[i] - m , 2); } double alpha = Math.sqrt(a / n); sb.append(alpha).append("\n"); } System.out.print(sb); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 3, 30, 41, 13, 20, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 41, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 41, 13, 4, 18, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 112, 5 ], [ 112, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 20, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 33, 35 ], [ 25, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 36, 44 ], [ 44, 45 ], [ 45, 46 ], [ 36, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 48, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 58, 60 ], [ 25, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 25, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 66, 74 ], [ 74, 75 ], [ 75, 76 ], [ 66, 77 ], [ 78, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 81, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 25, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 97, 98 ], [ 97, 99 ], [ 25, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 8, 106 ], [ 106, 107 ], [ 107, 108 ], [ 6, 109 ], [ 109, 110 ], [ 0, 111 ], [ 111, 112 ], [ 111, 113 ] ]
[ "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\twhile (true) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\telse {\n\t\t\t\tint[] s = new int[n];\n\t\t\t\tint sum1 = 0;\n\t\t\t\tdouble sum2 = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\t\tsum1 += s[i];\n\t\t\t\t}\n\t\t\t\tdouble m = (double) sum1 / n;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tsum2 += (s[i] - m) * (s[i] - m);\n\t\t\t\t}\n\t\t\t\tdouble sd = Math.sqrt((double) sum2 / n);\n\t\t\t\tSystem.out.println(sd);\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}\n\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\twhile (true) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\telse {\n\t\t\t\tint[] s = new int[n];\n\t\t\t\tint sum1 = 0;\n\t\t\t\tdouble sum2 = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\t\tsum1 += s[i];\n\t\t\t\t}\n\t\t\t\tdouble m = (double) sum1 / n;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tsum2 += (s[i] - m) * (s[i] - m);\n\t\t\t\t}\n\t\t\t\tdouble sd = Math.sqrt((double) sum2 / n);\n\t\t\t\tSystem.out.println(sd);\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\telse {\n\t\t\t\tint[] s = new int[n];\n\t\t\t\tint sum1 = 0;\n\t\t\t\tdouble sum2 = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\t\tsum1 += s[i];\n\t\t\t\t}\n\t\t\t\tdouble m = (double) sum1 / n;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tsum2 += (s[i] - m) * (s[i] - m);\n\t\t\t\t}\n\t\t\t\tdouble sd = Math.sqrt((double) sum2 / n);\n\t\t\t\tSystem.out.println(sd);\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\telse {\n\t\t\t\tint[] s = new int[n];\n\t\t\t\tint sum1 = 0;\n\t\t\t\tdouble sum2 = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\t\tsum1 += s[i];\n\t\t\t\t}\n\t\t\t\tdouble m = (double) sum1 / n;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tsum2 += (s[i] - m) * (s[i] - m);\n\t\t\t\t}\n\t\t\t\tdouble sd = Math.sqrt((double) sum2 / n);\n\t\t\t\tSystem.out.println(sd);\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (true) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\telse {\n\t\t\t\tint[] s = new int[n];\n\t\t\t\tint sum1 = 0;\n\t\t\t\tdouble sum2 = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\t\tsum1 += s[i];\n\t\t\t\t}\n\t\t\t\tdouble m = (double) sum1 / n;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tsum2 += (s[i] - m) * (s[i] - m);\n\t\t\t\t}\n\t\t\t\tdouble sd = Math.sqrt((double) sum2 / n);\n\t\t\t\tSystem.out.println(sd);\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\telse {\n\t\t\t\tint[] s = new int[n];\n\t\t\t\tint sum1 = 0;\n\t\t\t\tdouble sum2 = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\t\tsum1 += s[i];\n\t\t\t\t}\n\t\t\t\tdouble m = (double) sum1 / n;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tsum2 += (s[i] - m) * (s[i] - m);\n\t\t\t\t}\n\t\t\t\tdouble sd = Math.sqrt((double) sum2 / n);\n\t\t\t\tSystem.out.println(sd);\n\t\t\t}\n\t\t}", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if (n == 0)\n\t\t\t\tbreak;\n\t\t\telse {\n\t\t\t\tint[] s = new int[n];\n\t\t\t\tint sum1 = 0;\n\t\t\t\tdouble sum2 = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\t\tsum1 += s[i];\n\t\t\t\t}\n\t\t\t\tdouble m = (double) sum1 / n;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tsum2 += (s[i] - m) * (s[i] - m);\n\t\t\t\t}\n\t\t\t\tdouble sd = Math.sqrt((double) sum2 / n);\n\t\t\t\tSystem.out.println(sd);\n\t\t\t}", "n == 0", "n", "0", "break;", "{\n\t\t\t\tint[] s = new int[n];\n\t\t\t\tint sum1 = 0;\n\t\t\t\tdouble sum2 = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\t\tsum1 += s[i];\n\t\t\t\t}\n\t\t\t\tdouble m = (double) sum1 / n;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tsum2 += (s[i] - m) * (s[i] - m);\n\t\t\t\t}\n\t\t\t\tdouble sd = Math.sqrt((double) sum2 / n);\n\t\t\t\tSystem.out.println(sd);\n\t\t\t}", "int[] s = new int[n];", "s", "new int[n]", "n", "int sum1 = 0;", "sum1", "0", "double sum2 = 0;", "sum2", "0", "for (int i = 0; i < n; i++) {\n\t\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\t\tsum1 += s[i];\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\t\tsum1 += s[i];\n\t\t\t\t}", "{\n\t\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\t\tsum1 += s[i];\n\t\t\t\t}", "s[i] = sc.nextInt()", "s[i]", "s", "i", "sc.nextInt()", "sc.nextInt", "sc", "sum1 += s[i]", "sum1", "s[i]", "s", "i", "double m = (double) sum1 / n;", "m", "(double) sum1 / n", "(double) sum1", "n", "for (int i = 0; i < n; i++) {\n\t\t\t\t\tsum2 += (s[i] - m) * (s[i] - m);\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\t\tsum2 += (s[i] - m) * (s[i] - m);\n\t\t\t\t}", "{\n\t\t\t\t\tsum2 += (s[i] - m) * (s[i] - m);\n\t\t\t\t}", "sum2 += (s[i] - m) * (s[i] - m)", "sum2", "(s[i] - m) * (s[i] - m)", "(s[i] - m)", "s[i]", "s", "i", "m", "(s[i] - m)", "s[i]", "s", "i", "m", "double sd = Math.sqrt((double) sum2 / n);", "sd", "Math.sqrt((double) sum2 / n)", "Math.sqrt", "Math", "(double) sum2 / n", "(double) sum2", "n", "System.out.println(sd)", "System.out.println", "System.out", "System", "System.out", "sd", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\telse {\n\t\t\t\tint[] s = new int[n];\n\t\t\t\tint sum1 = 0;\n\t\t\t\tdouble sum2 = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\t\tsum1 += s[i];\n\t\t\t\t}\n\t\t\t\tdouble m = (double) sum1 / n;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tsum2 += (s[i] - m) * (s[i] - m);\n\t\t\t\t}\n\t\t\t\tdouble sd = Math.sqrt((double) sum2 / n);\n\t\t\t\tSystem.out.println(sd);\n\t\t\t}\n\t\t}\n\t\tsc.close();\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\twhile (true) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\telse {\n\t\t\t\tint[] s = new int[n];\n\t\t\t\tint sum1 = 0;\n\t\t\t\tdouble sum2 = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\t\tsum1 += s[i];\n\t\t\t\t}\n\t\t\t\tdouble m = (double) sum1 / n;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tsum2 += (s[i] - m) * (s[i] - m);\n\t\t\t\t}\n\t\t\t\tdouble sd = Math.sqrt((double) sum2 / n);\n\t\t\t\tSystem.out.println(sd);\n\t\t\t}\n\t\t}\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); while (true) { int n = sc.nextInt(); if (n == 0) break; else { int[] s = new int[n]; int sum1 = 0; double sum2 = 0; for (int i = 0; i < n; i++) { s[i] = sc.nextInt(); sum1 += s[i]; } double m = (double) sum1 / n; for (int i = 0; i < n; i++) { sum2 += (s[i] - m) * (s[i] - m); } double sd = Math.sqrt((double) sum2 / n); System.out.println(sd); } } sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 42, 17, 30, 41, 13, 17, 41, 13, 41, 13, 17, 41, 13, 4, 18, 13, 14, 2, 13, 17, 3, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 4, 18, 13, 2, 18, 13, 13, 13, 17, 13, 4, 18, 18, 13, 13, 17, 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 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 16, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 16, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 16, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 16, 35 ], [ 35, 36 ], [ 35, 37 ], [ 16, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 39, 47 ], [ 47, 48 ], [ 48, 49 ], [ 39, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 51, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 16, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 16, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 74, 75 ], [ 74, 76 ], [ 69, 77 ], [ 77, 78 ], [ 78, 79 ], [ 69, 80 ], [ 81, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 85, 93 ], [ 84, 94 ], [ 16, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 95, 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 public static void main(String[] args){\n try(Scanner sc = new Scanner(System.in)){\n while(true){\n double sum = 0, ave, var = 0;\n int n = sc.nextInt();\n if(n==0) break;\n int[] scores = new int[n];\n for(int i=0;i<n;i++) {\n scores[i] = sc.nextInt();\n sum += scores[i];\n }\n ave = sum/n;\n\n for(int i=0; i<n; i++){\n var += Math.pow((scores[i] - ave),2)/n;\n }\n\n System.out.printf(\"%f\\n\",Math.sqrt(var));\n }\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args){\n try(Scanner sc = new Scanner(System.in)){\n while(true){\n double sum = 0, ave, var = 0;\n int n = sc.nextInt();\n if(n==0) break;\n int[] scores = new int[n];\n for(int i=0;i<n;i++) {\n scores[i] = sc.nextInt();\n sum += scores[i];\n }\n ave = sum/n;\n\n for(int i=0; i<n; i++){\n var += Math.pow((scores[i] - ave),2)/n;\n }\n\n System.out.printf(\"%f\\n\",Math.sqrt(var));\n }\n }\n }\n}", "Main", "public static void main(String[] args){\n try(Scanner sc = new Scanner(System.in)){\n while(true){\n double sum = 0, ave, var = 0;\n int n = sc.nextInt();\n if(n==0) break;\n int[] scores = new int[n];\n for(int i=0;i<n;i++) {\n scores[i] = sc.nextInt();\n sum += scores[i];\n }\n ave = sum/n;\n\n for(int i=0; i<n; i++){\n var += Math.pow((scores[i] - ave),2)/n;\n }\n\n System.out.printf(\"%f\\n\",Math.sqrt(var));\n }\n }\n }", "main", "{\n try(Scanner sc = new Scanner(System.in)){\n while(true){\n double sum = 0, ave, var = 0;\n int n = sc.nextInt();\n if(n==0) break;\n int[] scores = new int[n];\n for(int i=0;i<n;i++) {\n scores[i] = sc.nextInt();\n sum += scores[i];\n }\n ave = sum/n;\n\n for(int i=0; i<n; i++){\n var += Math.pow((scores[i] - ave),2)/n;\n }\n\n System.out.printf(\"%f\\n\",Math.sqrt(var));\n }\n }\n }", "try(Scanner sc = new Scanner(System.in)){\n while(true){\n double sum = 0, ave, var = 0;\n int n = sc.nextInt();\n if(n==0) break;\n int[] scores = new int[n];\n for(int i=0;i<n;i++) {\n scores[i] = sc.nextInt();\n sum += scores[i];\n }\n ave = sum/n;\n\n for(int i=0; i<n; i++){\n var += Math.pow((scores[i] - ave),2)/n;\n }\n\n System.out.printf(\"%f\\n\",Math.sqrt(var));\n }\n }", "{\n while(true){\n double sum = 0, ave, var = 0;\n int n = sc.nextInt();\n if(n==0) break;\n int[] scores = new int[n];\n for(int i=0;i<n;i++) {\n scores[i] = sc.nextInt();\n sum += scores[i];\n }\n ave = sum/n;\n\n for(int i=0; i<n; i++){\n var += Math.pow((scores[i] - ave),2)/n;\n }\n\n System.out.printf(\"%f\\n\",Math.sqrt(var));\n }\n }", "Scanner sc = new Scanner(System.in)", "Scanner sc = new Scanner(System.in)", "new Scanner(System.in)", "while(true){\n double sum = 0, ave, var = 0;\n int n = sc.nextInt();\n if(n==0) break;\n int[] scores = new int[n];\n for(int i=0;i<n;i++) {\n scores[i] = sc.nextInt();\n sum += scores[i];\n }\n ave = sum/n;\n\n for(int i=0; i<n; i++){\n var += Math.pow((scores[i] - ave),2)/n;\n }\n\n System.out.printf(\"%f\\n\",Math.sqrt(var));\n }", "true", "{\n double sum = 0, ave, var = 0;\n int n = sc.nextInt();\n if(n==0) break;\n int[] scores = new int[n];\n for(int i=0;i<n;i++) {\n scores[i] = sc.nextInt();\n sum += scores[i];\n }\n ave = sum/n;\n\n for(int i=0; i<n; i++){\n var += Math.pow((scores[i] - ave),2)/n;\n }\n\n System.out.printf(\"%f\\n\",Math.sqrt(var));\n }", "double sum = 0", "sum", "0", "ave", "ave", "var = 0;", "var", "0", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n==0) break;", "n==0", "n", "0", "break;", "int[] scores = new int[n];", "scores", "new int[n]", "n", "for(int i=0;i<n;i++) {\n scores[i] = sc.nextInt();\n sum += scores[i];\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n scores[i] = sc.nextInt();\n sum += scores[i];\n }", "{\n scores[i] = sc.nextInt();\n sum += scores[i];\n }", "scores[i] = sc.nextInt()", "scores[i]", "scores", "i", "sc.nextInt()", "sc.nextInt", "sc", "sum += scores[i]", "sum", "scores[i]", "scores", "i", "ave = sum/n", "ave", "sum/n", "sum", "n", "for(int i=0; i<n; i++){\n var += Math.pow((scores[i] - ave),2)/n;\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n var += Math.pow((scores[i] - ave),2)/n;\n }", "{\n var += Math.pow((scores[i] - ave),2)/n;\n }", "var += Math.pow((scores[i] - ave),2)/n", "var", "Math.pow((scores[i] - ave),2)/n", "Math.pow((scores[i] - ave),2)", "Math.pow", "Math", "(scores[i] - ave)", "scores[i]", "scores", "i", "ave", "2", "n", "System.out.printf(\"%f\\n\",Math.sqrt(var))", "System.out.printf", "System.out", "System", "System.out", "\"%f\\n\"", "Math.sqrt(var)", "Math.sqrt", "Math", "var", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n try(Scanner sc = new Scanner(System.in)){\n while(true){\n double sum = 0, ave, var = 0;\n int n = sc.nextInt();\n if(n==0) break;\n int[] scores = new int[n];\n for(int i=0;i<n;i++) {\n scores[i] = sc.nextInt();\n sum += scores[i];\n }\n ave = sum/n;\n\n for(int i=0; i<n; i++){\n var += Math.pow((scores[i] - ave),2)/n;\n }\n\n System.out.printf(\"%f\\n\",Math.sqrt(var));\n }\n }\n }\n}", "public class Main {\n public static void main(String[] args){\n try(Scanner sc = new Scanner(System.in)){\n while(true){\n double sum = 0, ave, var = 0;\n int n = sc.nextInt();\n if(n==0) break;\n int[] scores = new int[n];\n for(int i=0;i<n;i++) {\n scores[i] = sc.nextInt();\n sum += scores[i];\n }\n ave = sum/n;\n\n for(int i=0; i<n; i++){\n var += Math.pow((scores[i] - ave),2)/n;\n }\n\n System.out.printf(\"%f\\n\",Math.sqrt(var));\n }\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ try(Scanner sc = new Scanner(System.in)){ while(true){ double sum = 0, ave, var = 0; int n = sc.nextInt(); if(n==0) break; int[] scores = new int[n]; for(int i=0;i<n;i++) { scores[i] = sc.nextInt(); sum += scores[i]; } ave = sum/n; for(int i=0; i<n; i++){ var += Math.pow((scores[i] - ave),2)/n; } System.out.printf("%f\n",Math.sqrt(var)); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 3, 41, 13, 20, 13, 41, 13, 17, 41, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 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 ], [ 108, 5 ], [ 108, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 16, 27 ], [ 27, 28 ], [ 27, 29 ], [ 16, 31 ], [ 31, 32 ], [ 31, 33 ], [ 16, 34 ], [ 34, 35 ], [ 34, 36 ], [ 16, 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 ], [ 49, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 16, 62 ], [ 62, 63 ], [ 62, 64 ], [ 16, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 70, 71 ], [ 70, 72 ], [ 65, 73 ], [ 73, 74 ], [ 74, 75 ], [ 65, 76 ], [ 77, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 80, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 16, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 96, 97 ], [ 96, 98 ], [ 16, 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 i;\n while(true){\n int n = sc.nextInt();\n if(n == 0) break;\n int data[] = new int[n];\n double ave = 0,dev = 0;\n for (i=0;i<n;i++) {\n data[i] = sc.nextInt();\n ave += data[i];\n }\n ave /= n;\n for (i=0;i<n;i++) {\n dev += (data[i] - ave)*(data[i] - ave);\n }\n dev = Math.sqrt(dev/n);\n System.out.println(dev);\n }\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 i;\n while(true){\n int n = sc.nextInt();\n if(n == 0) break;\n int data[] = new int[n];\n double ave = 0,dev = 0;\n for (i=0;i<n;i++) {\n data[i] = sc.nextInt();\n ave += data[i];\n }\n ave /= n;\n for (i=0;i<n;i++) {\n dev += (data[i] - ave)*(data[i] - ave);\n }\n dev = Math.sqrt(dev/n);\n System.out.println(dev);\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int i;\n while(true){\n int n = sc.nextInt();\n if(n == 0) break;\n int data[] = new int[n];\n double ave = 0,dev = 0;\n for (i=0;i<n;i++) {\n data[i] = sc.nextInt();\n ave += data[i];\n }\n ave /= n;\n for (i=0;i<n;i++) {\n dev += (data[i] - ave)*(data[i] - ave);\n }\n dev = Math.sqrt(dev/n);\n System.out.println(dev);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int i;\n while(true){\n int n = sc.nextInt();\n if(n == 0) break;\n int data[] = new int[n];\n double ave = 0,dev = 0;\n for (i=0;i<n;i++) {\n data[i] = sc.nextInt();\n ave += data[i];\n }\n ave /= n;\n for (i=0;i<n;i++) {\n dev += (data[i] - ave)*(data[i] - ave);\n }\n dev = Math.sqrt(dev/n);\n System.out.println(dev);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int i;", "i", "while(true){\n int n = sc.nextInt();\n if(n == 0) break;\n int data[] = new int[n];\n double ave = 0,dev = 0;\n for (i=0;i<n;i++) {\n data[i] = sc.nextInt();\n ave += data[i];\n }\n ave /= n;\n for (i=0;i<n;i++) {\n dev += (data[i] - ave)*(data[i] - ave);\n }\n dev = Math.sqrt(dev/n);\n System.out.println(dev);\n }", "true", "{\n int n = sc.nextInt();\n if(n == 0) break;\n int data[] = new int[n];\n double ave = 0,dev = 0;\n for (i=0;i<n;i++) {\n data[i] = sc.nextInt();\n ave += data[i];\n }\n ave /= n;\n for (i=0;i<n;i++) {\n dev += (data[i] - ave)*(data[i] - ave);\n }\n dev = Math.sqrt(dev/n);\n System.out.println(dev);\n }", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n == 0) break;", "n == 0", "n", "0", "break;", "int data[] = new int[n];", "data", "new int[n]", "n", "double ave = 0", "ave", "0", "dev = 0;", "dev", "0", "for (i=0;i<n;i++) {\n data[i] = sc.nextInt();\n ave += data[i];\n }", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n data[i] = sc.nextInt();\n ave += data[i];\n }", "{\n data[i] = sc.nextInt();\n ave += data[i];\n }", "data[i] = sc.nextInt()", "data[i]", "data", "i", "sc.nextInt()", "sc.nextInt", "sc", "ave += data[i]", "ave", "data[i]", "data", "i", "ave /= n", "ave", "n", "for (i=0;i<n;i++) {\n dev += (data[i] - ave)*(data[i] - ave);\n }", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n dev += (data[i] - ave)*(data[i] - ave);\n }", "{\n dev += (data[i] - ave)*(data[i] - ave);\n }", "dev += (data[i] - ave)*(data[i] - ave)", "dev", "(data[i] - ave)*(data[i] - ave)", "(data[i] - ave)", "data[i]", "data", "i", "ave", "(data[i] - ave)", "data[i]", "data", "i", "ave", "dev = Math.sqrt(dev/n)", "dev", "Math.sqrt(dev/n)", "Math.sqrt", "Math", "dev/n", "dev", "n", "System.out.println(dev)", "System.out.println", "System.out", "System", "System.out", "dev", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int i;\n while(true){\n int n = sc.nextInt();\n if(n == 0) break;\n int data[] = new int[n];\n double ave = 0,dev = 0;\n for (i=0;i<n;i++) {\n data[i] = sc.nextInt();\n ave += data[i];\n }\n ave /= n;\n for (i=0;i<n;i++) {\n dev += (data[i] - ave)*(data[i] - ave);\n }\n dev = Math.sqrt(dev/n);\n System.out.println(dev);\n }\n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int i;\n while(true){\n int n = sc.nextInt();\n if(n == 0) break;\n int data[] = new int[n];\n double ave = 0,dev = 0;\n for (i=0;i<n;i++) {\n data[i] = sc.nextInt();\n ave += data[i];\n }\n ave /= n;\n for (i=0;i<n;i++) {\n dev += (data[i] - ave)*(data[i] - ave);\n }\n dev = Math.sqrt(dev/n);\n System.out.println(dev);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int i; while(true){ int n = sc.nextInt(); if(n == 0) break; int data[] = new int[n]; double ave = 0,dev = 0; for (i=0;i<n;i++) { data[i] = sc.nextInt(); ave += data[i]; } ave /= n; for (i=0;i<n;i++) { dev += (data[i] - ave)*(data[i] - ave); } dev = Math.sqrt(dev/n); System.out.println(dev); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 17, 41, 13, 41, 13, 41, 13, 17, 41, 13, 20, 42, 17, 30, 0, 13, 4, 18, 13, 14, 2, 13, 17, 3, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 2, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 0, 13, 2, 13, 18, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 13, 0, 13, 17, 0, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 131, 8 ], [ 131, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 11, 14 ], [ 14, 15 ], [ 14, 16 ], [ 11, 17 ], [ 17, 18 ], [ 11, 19 ], [ 19, 20 ], [ 11, 21 ], [ 21, 22 ], [ 21, 23 ], [ 11, 24 ], [ 24, 25 ], [ 24, 26 ], [ 11, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 29, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 29, 40 ], [ 40, 41 ], [ 40, 42 ], [ 29, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 51, 53 ], [ 44, 54 ], [ 54, 55 ], [ 55, 56 ], [ 44, 57 ], [ 58, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 64, 65 ], [ 58, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 29, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 29, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 78, 88 ], [ 88, 89 ], [ 89, 90 ], [ 78, 91 ], [ 92, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 95, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 29, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 110, 112 ], [ 29, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 118, 119 ], [ 119, 120 ], [ 118, 121 ], [ 29, 122 ], [ 122, 123 ], [ 122, 124 ], [ 29, 125 ], [ 125, 126 ], [ 125, 127 ], [ 9, 128 ], [ 128, 129 ], [ 0, 130 ], [ 130, 131 ], [ 130, 132 ] ]
[ "import java.util.Scanner;\nimport java.lang.Math;\npublic class Main{\n public static void main(String[] args){\n int n;\n double sum = 0.0, m, v, t = 0.0;\n Scanner sc = new Scanner(System.in);\n \n while(true){\n n = sc.nextInt();\n if(n == 0) break;\n double A[] = new double[n];\n for(int i =0; i<A.length; i++){\n A[i] = (double)sc.nextInt();\n sum += A[i];\n }\n m = sum / (double)A.length;\n for(int i = 0; i<A.length; i++){\n t += (A[i] - m) * (A[i] - m);\n }\n v = t / (double)A.length;\n System.out.println(Math.sqrt(v));\n sum = 0.0;\n t = 0.0;\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.lang.Math;", "Math", "java.lang", "public class Main{\n public static void main(String[] args){\n int n;\n double sum = 0.0, m, v, t = 0.0;\n Scanner sc = new Scanner(System.in);\n \n while(true){\n n = sc.nextInt();\n if(n == 0) break;\n double A[] = new double[n];\n for(int i =0; i<A.length; i++){\n A[i] = (double)sc.nextInt();\n sum += A[i];\n }\n m = sum / (double)A.length;\n for(int i = 0; i<A.length; i++){\n t += (A[i] - m) * (A[i] - m);\n }\n v = t / (double)A.length;\n System.out.println(Math.sqrt(v));\n sum = 0.0;\n t = 0.0;\n }\n }\n}", "Main", "public static void main(String[] args){\n int n;\n double sum = 0.0, m, v, t = 0.0;\n Scanner sc = new Scanner(System.in);\n \n while(true){\n n = sc.nextInt();\n if(n == 0) break;\n double A[] = new double[n];\n for(int i =0; i<A.length; i++){\n A[i] = (double)sc.nextInt();\n sum += A[i];\n }\n m = sum / (double)A.length;\n for(int i = 0; i<A.length; i++){\n t += (A[i] - m) * (A[i] - m);\n }\n v = t / (double)A.length;\n System.out.println(Math.sqrt(v));\n sum = 0.0;\n t = 0.0;\n }\n }", "main", "{\n int n;\n double sum = 0.0, m, v, t = 0.0;\n Scanner sc = new Scanner(System.in);\n \n while(true){\n n = sc.nextInt();\n if(n == 0) break;\n double A[] = new double[n];\n for(int i =0; i<A.length; i++){\n A[i] = (double)sc.nextInt();\n sum += A[i];\n }\n m = sum / (double)A.length;\n for(int i = 0; i<A.length; i++){\n t += (A[i] - m) * (A[i] - m);\n }\n v = t / (double)A.length;\n System.out.println(Math.sqrt(v));\n sum = 0.0;\n t = 0.0;\n }\n }", "int n;", "n", "double sum = 0.0", "sum", "0.0", "m", "m", "v", "v", "t = 0.0;", "t", "0.0", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n n = sc.nextInt();\n if(n == 0) break;\n double A[] = new double[n];\n for(int i =0; i<A.length; i++){\n A[i] = (double)sc.nextInt();\n sum += A[i];\n }\n m = sum / (double)A.length;\n for(int i = 0; i<A.length; i++){\n t += (A[i] - m) * (A[i] - m);\n }\n v = t / (double)A.length;\n System.out.println(Math.sqrt(v));\n sum = 0.0;\n t = 0.0;\n }", "true", "{\n n = sc.nextInt();\n if(n == 0) break;\n double A[] = new double[n];\n for(int i =0; i<A.length; i++){\n A[i] = (double)sc.nextInt();\n sum += A[i];\n }\n m = sum / (double)A.length;\n for(int i = 0; i<A.length; i++){\n t += (A[i] - m) * (A[i] - m);\n }\n v = t / (double)A.length;\n System.out.println(Math.sqrt(v));\n sum = 0.0;\n t = 0.0;\n }", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n == 0) break;", "n == 0", "n", "0", "break;", "double A[] = new double[n];", "A", "new double[n]", "n", "for(int i =0; i<A.length; i++){\n A[i] = (double)sc.nextInt();\n sum += A[i];\n }", "int i =0;", "int i =0;", "i", "0", "i<A.length", "i", "A.length", "A", "A.length", "i++", "i++", "i", "{\n A[i] = (double)sc.nextInt();\n sum += A[i];\n }", "{\n A[i] = (double)sc.nextInt();\n sum += A[i];\n }", "A[i] = (double)sc.nextInt()", "A[i]", "A", "i", "(double)sc.nextInt()", "sc.nextInt", "sc", "sum += A[i]", "sum", "A[i]", "A", "i", "m = sum / (double)A.length", "m", "sum / (double)A.length", "sum", "(double)A.length", "A", "A.length", "for(int i = 0; i<A.length; i++){\n t += (A[i] - m) * (A[i] - m);\n }", "int i = 0;", "int i = 0;", "i", "0", "i<A.length", "i", "A.length", "A", "A.length", "i++", "i++", "i", "{\n t += (A[i] - m) * (A[i] - m);\n }", "{\n t += (A[i] - m) * (A[i] - m);\n }", "t += (A[i] - m) * (A[i] - m)", "t", "(A[i] - m) * (A[i] - m)", "(A[i] - m)", "A[i]", "A", "i", "m", "(A[i] - m)", "A[i]", "A", "i", "m", "v = t / (double)A.length", "v", "t / (double)A.length", "t", "(double)A.length", "A", "A.length", "System.out.println(Math.sqrt(v))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(v)", "Math.sqrt", "Math", "v", "sum = 0.0", "sum", "0.0", "t = 0.0", "t", "0.0", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n int n;\n double sum = 0.0, m, v, t = 0.0;\n Scanner sc = new Scanner(System.in);\n \n while(true){\n n = sc.nextInt();\n if(n == 0) break;\n double A[] = new double[n];\n for(int i =0; i<A.length; i++){\n A[i] = (double)sc.nextInt();\n sum += A[i];\n }\n m = sum / (double)A.length;\n for(int i = 0; i<A.length; i++){\n t += (A[i] - m) * (A[i] - m);\n }\n v = t / (double)A.length;\n System.out.println(Math.sqrt(v));\n sum = 0.0;\n t = 0.0;\n }\n }\n}", "public class Main{\n public static void main(String[] args){\n int n;\n double sum = 0.0, m, v, t = 0.0;\n Scanner sc = new Scanner(System.in);\n \n while(true){\n n = sc.nextInt();\n if(n == 0) break;\n double A[] = new double[n];\n for(int i =0; i<A.length; i++){\n A[i] = (double)sc.nextInt();\n sum += A[i];\n }\n m = sum / (double)A.length;\n for(int i = 0; i<A.length; i++){\n t += (A[i] - m) * (A[i] - m);\n }\n v = t / (double)A.length;\n System.out.println(Math.sqrt(v));\n sum = 0.0;\n t = 0.0;\n }\n }\n}", "Main" ]
import java.util.Scanner; import java.lang.Math; public class Main{ public static void main(String[] args){ int n; double sum = 0.0, m, v, t = 0.0; Scanner sc = new Scanner(System.in); while(true){ n = sc.nextInt(); if(n == 0) break; double A[] = new double[n]; for(int i =0; i<A.length; i++){ A[i] = (double)sc.nextInt(); sum += A[i]; } m = sum / (double)A.length; for(int i = 0; i<A.length; i++){ t += (A[i] - m) * (A[i] - m); } v = t / (double)A.length; System.out.println(Math.sqrt(v)); sum = 0.0; t = 0.0; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 17, 41, 13, 17, 41, 13, 41, 13, 42, 2, 13, 17, 30, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 2, 13, 13, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 0, 13, 4, 18, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 0, 13, 4, 18, 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 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 36, 44 ], [ 44, 45 ], [ 45, 46 ], [ 36, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 48, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 58, 60 ], [ 32, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 32, 66 ], [ 66, 67 ], [ 66, 68 ], [ 32, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 74, 75 ], [ 74, 76 ], [ 69, 77 ], [ 77, 78 ], [ 78, 79 ], [ 69, 80 ], [ 81, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 84, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 32, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 100, 101 ], [ 100, 102 ], [ 32, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 32, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 6, 114 ], [ 114, 115 ], [ 0, 116 ], [ 116, 117 ], [ 116, 118 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n // Here your code !\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int s[] = new int[1000];\n double sum=0.0, avg,alpha;\n \n while(n!=0){\n sum = 0.0;\n for(int i=0; i<n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n avg = sum/n;\n sum = 0.0;\n for(int i=0; i<n; i++){\n sum += (s[i] - avg)*(s[i] - avg);\n }\n alpha = Math.sqrt(sum/n);\n System.out.println(alpha);\n n = sc.nextInt();\n }\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) throws Exception {\n // Here your code !\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int s[] = new int[1000];\n double sum=0.0, avg,alpha;\n \n while(n!=0){\n sum = 0.0;\n for(int i=0; i<n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n avg = sum/n;\n sum = 0.0;\n for(int i=0; i<n; i++){\n sum += (s[i] - avg)*(s[i] - avg);\n }\n alpha = Math.sqrt(sum/n);\n System.out.println(alpha);\n n = sc.nextInt();\n }\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n // Here your code !\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int s[] = new int[1000];\n double sum=0.0, avg,alpha;\n \n while(n!=0){\n sum = 0.0;\n for(int i=0; i<n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n avg = sum/n;\n sum = 0.0;\n for(int i=0; i<n; i++){\n sum += (s[i] - avg)*(s[i] - avg);\n }\n alpha = Math.sqrt(sum/n);\n System.out.println(alpha);\n n = sc.nextInt();\n }\n }", "main", "{\n // Here your code !\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int s[] = new int[1000];\n double sum=0.0, avg,alpha;\n \n while(n!=0){\n sum = 0.0;\n for(int i=0; i<n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n avg = sum/n;\n sum = 0.0;\n for(int i=0; i<n; i++){\n sum += (s[i] - avg)*(s[i] - avg);\n }\n alpha = Math.sqrt(sum/n);\n System.out.println(alpha);\n n = sc.nextInt();\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int s[] = new int[1000];", "s", "new int[1000]", "1000", "double sum=0.0", "sum", "0.0", "avg", "avg", "alpha;", "alpha", "while(n!=0){\n sum = 0.0;\n for(int i=0; i<n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n avg = sum/n;\n sum = 0.0;\n for(int i=0; i<n; i++){\n sum += (s[i] - avg)*(s[i] - avg);\n }\n alpha = Math.sqrt(sum/n);\n System.out.println(alpha);\n n = sc.nextInt();\n }", "n!=0", "n", "0", "{\n sum = 0.0;\n for(int i=0; i<n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n avg = sum/n;\n sum = 0.0;\n for(int i=0; i<n; i++){\n sum += (s[i] - avg)*(s[i] - avg);\n }\n alpha = Math.sqrt(sum/n);\n System.out.println(alpha);\n n = sc.nextInt();\n }", "sum = 0.0", "sum", "0.0", "for(int i=0; i<n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n s[i] = sc.nextInt();\n sum += s[i];\n }", "{\n s[i] = sc.nextInt();\n sum += s[i];\n }", "s[i] = sc.nextInt()", "s[i]", "s", "i", "sc.nextInt()", "sc.nextInt", "sc", "sum += s[i]", "sum", "s[i]", "s", "i", "avg = sum/n", "avg", "sum/n", "sum", "n", "sum = 0.0", "sum", "0.0", "for(int i=0; i<n; i++){\n sum += (s[i] - avg)*(s[i] - avg);\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n sum += (s[i] - avg)*(s[i] - avg);\n }", "{\n sum += (s[i] - avg)*(s[i] - avg);\n }", "sum += (s[i] - avg)*(s[i] - avg)", "sum", "(s[i] - avg)*(s[i] - avg)", "(s[i] - avg)", "s[i]", "s", "i", "avg", "(s[i] - avg)", "s[i]", "s", "i", "avg", "alpha = Math.sqrt(sum/n)", "alpha", "Math.sqrt(sum/n)", "Math.sqrt", "Math", "sum/n", "sum", "n", "System.out.println(alpha)", "System.out.println", "System.out", "System", "System.out", "alpha", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws Exception {\n // Here your code !\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int s[] = new int[1000];\n double sum=0.0, avg,alpha;\n \n while(n!=0){\n sum = 0.0;\n for(int i=0; i<n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n avg = sum/n;\n sum = 0.0;\n for(int i=0; i<n; i++){\n sum += (s[i] - avg)*(s[i] - avg);\n }\n alpha = Math.sqrt(sum/n);\n System.out.println(alpha);\n n = sc.nextInt();\n }\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n // Here your code !\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int s[] = new int[1000];\n double sum=0.0, avg,alpha;\n \n while(n!=0){\n sum = 0.0;\n for(int i=0; i<n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n avg = sum/n;\n sum = 0.0;\n for(int i=0; i<n; i++){\n sum += (s[i] - avg)*(s[i] - avg);\n }\n alpha = Math.sqrt(sum/n);\n System.out.println(alpha);\n n = sc.nextInt();\n }\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Here your code ! Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int s[] = new int[1000]; double sum=0.0, avg,alpha; while(n!=0){ sum = 0.0; for(int i=0; i<n; i++){ s[i] = sc.nextInt(); sum += s[i]; } avg = sum/n; sum = 0.0; for(int i=0; i<n; i++){ sum += (s[i] - avg)*(s[i] - avg); } alpha = Math.sqrt(sum/n); System.out.println(alpha); n = sc.nextInt(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 20, 13, 41, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 86, 5 ], [ 86, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 8, 31 ], [ 31, 32 ], [ 31, 33 ], [ 8, 34 ], [ 34, 35 ], [ 34, 36 ], [ 8, 37 ], [ 37, 38 ], [ 37, 39 ], [ 8, 40 ], [ 40, 41 ], [ 40, 42 ], [ 8, 44 ], [ 44, 45 ], [ 44, 46 ], [ 8, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 61, 62 ], [ 61, 63 ], [ 56, 64 ], [ 64, 65 ], [ 65, 66 ], [ 56, 67 ], [ 68, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 69, 75 ], [ 75, 76 ], [ 75, 77 ], [ 68, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 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\t\tScanner sc = new Scanner(System.in);\n\t\tint n = 0;\n\t\tString[] Test_String;\n\t\tint[] Test_Score;\n\t\tString input_n = \"\";\n\t\tString input_test = \"\";\n\t\tboolean judge_n = true;\n\t\tboolean judge_test = true;\n\t\tdouble m = 0.0;\n\t\tdouble V = 0.0;\n\t\tint MAX = 1000;\n\t\tdouble[] SD = new double[MAX];\n\t\tint data_count = 0;\n\n\t\tout: while (true) {\n\t\t\tinput_n = sc.nextLine();\n\t\t\tn = Integer.parseInt(input_n);\n\t\t\tif (n == 0) {\n\t\t\t\tbreak out;\n\t\t\t}\n\t\t\tif (n < 0 || n > 1000) {\n\t\t\t\tjudge_n = false;\n\t\t\t\tbreak out;\n\t\t\t}\n\n\t\t\tinput_test = sc.nextLine();\n\t\t\tTest_String = input_test.split(\" \");\n\n\t\t\tif (Test_String.length != n) {\n\t\t\t\tjudge_test = false;\n\t\t\t\tbreak out;\n\n\t\t\t}\n\t\t\t// 始:平均値を求める\n\t\t\tm = 0.0;\n\t\t\tTest_Score = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tTest_Score[i] = Integer.parseInt(Test_String[i]);\n\t\t\t\tm += Test_Score[i];\n\t\t\t}\n\t\t\tm = m / n;\n\t\t\t// 終:平均値を求める\n\n\t\t\tV = 0.0;\n\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tV += ((double) (Test_Score[j] - m))\n\t\t\t\t\t\t* ((double) (Test_Score[j] - m));\n\n\t\t\t}\n\t\t\tV = V / n;\n\t\t\tSD[data_count] = Math.sqrt(V);\n\t\t\tdata_count++;\n\t\t}// out:whileここまで\n\n\t\tif (judge_n == true && judge_test == true) {\n\n\t\t\tfor (int k = 0; k < data_count; k++) {\n\t\t\t\tSystem.out.printf(\"%.5f\", SD[k]);\n System.out.println();\n\t\t\t}\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\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = 0;\n\t\tString[] Test_String;\n\t\tint[] Test_Score;\n\t\tString input_n = \"\";\n\t\tString input_test = \"\";\n\t\tboolean judge_n = true;\n\t\tboolean judge_test = true;\n\t\tdouble m = 0.0;\n\t\tdouble V = 0.0;\n\t\tint MAX = 1000;\n\t\tdouble[] SD = new double[MAX];\n\t\tint data_count = 0;\n\n\t\tout: while (true) {\n\t\t\tinput_n = sc.nextLine();\n\t\t\tn = Integer.parseInt(input_n);\n\t\t\tif (n == 0) {\n\t\t\t\tbreak out;\n\t\t\t}\n\t\t\tif (n < 0 || n > 1000) {\n\t\t\t\tjudge_n = false;\n\t\t\t\tbreak out;\n\t\t\t}\n\n\t\t\tinput_test = sc.nextLine();\n\t\t\tTest_String = input_test.split(\" \");\n\n\t\t\tif (Test_String.length != n) {\n\t\t\t\tjudge_test = false;\n\t\t\t\tbreak out;\n\n\t\t\t}\n\t\t\t// 始:平均値を求める\n\t\t\tm = 0.0;\n\t\t\tTest_Score = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tTest_Score[i] = Integer.parseInt(Test_String[i]);\n\t\t\t\tm += Test_Score[i];\n\t\t\t}\n\t\t\tm = m / n;\n\t\t\t// 終:平均値を求める\n\n\t\t\tV = 0.0;\n\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tV += ((double) (Test_Score[j] - m))\n\t\t\t\t\t\t* ((double) (Test_Score[j] - m));\n\n\t\t\t}\n\t\t\tV = V / n;\n\t\t\tSD[data_count] = Math.sqrt(V);\n\t\t\tdata_count++;\n\t\t}// out:whileここまで\n\n\t\tif (judge_n == true && judge_test == true) {\n\n\t\t\tfor (int k = 0; k < data_count; k++) {\n\t\t\t\tSystem.out.printf(\"%.5f\", SD[k]);\n System.out.println();\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = 0;\n\t\tString[] Test_String;\n\t\tint[] Test_Score;\n\t\tString input_n = \"\";\n\t\tString input_test = \"\";\n\t\tboolean judge_n = true;\n\t\tboolean judge_test = true;\n\t\tdouble m = 0.0;\n\t\tdouble V = 0.0;\n\t\tint MAX = 1000;\n\t\tdouble[] SD = new double[MAX];\n\t\tint data_count = 0;\n\n\t\tout: while (true) {\n\t\t\tinput_n = sc.nextLine();\n\t\t\tn = Integer.parseInt(input_n);\n\t\t\tif (n == 0) {\n\t\t\t\tbreak out;\n\t\t\t}\n\t\t\tif (n < 0 || n > 1000) {\n\t\t\t\tjudge_n = false;\n\t\t\t\tbreak out;\n\t\t\t}\n\n\t\t\tinput_test = sc.nextLine();\n\t\t\tTest_String = input_test.split(\" \");\n\n\t\t\tif (Test_String.length != n) {\n\t\t\t\tjudge_test = false;\n\t\t\t\tbreak out;\n\n\t\t\t}\n\t\t\t// 始:平均値を求める\n\t\t\tm = 0.0;\n\t\t\tTest_Score = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tTest_Score[i] = Integer.parseInt(Test_String[i]);\n\t\t\t\tm += Test_Score[i];\n\t\t\t}\n\t\t\tm = m / n;\n\t\t\t// 終:平均値を求める\n\n\t\t\tV = 0.0;\n\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tV += ((double) (Test_Score[j] - m))\n\t\t\t\t\t\t* ((double) (Test_Score[j] - m));\n\n\t\t\t}\n\t\t\tV = V / n;\n\t\t\tSD[data_count] = Math.sqrt(V);\n\t\t\tdata_count++;\n\t\t}// out:whileここまで\n\n\t\tif (judge_n == true && judge_test == true) {\n\n\t\t\tfor (int k = 0; k < data_count; k++) {\n\t\t\t\tSystem.out.printf(\"%.5f\", SD[k]);\n System.out.println();\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = 0;\n\t\tString[] Test_String;\n\t\tint[] Test_Score;\n\t\tString input_n = \"\";\n\t\tString input_test = \"\";\n\t\tboolean judge_n = true;\n\t\tboolean judge_test = true;\n\t\tdouble m = 0.0;\n\t\tdouble V = 0.0;\n\t\tint MAX = 1000;\n\t\tdouble[] SD = new double[MAX];\n\t\tint data_count = 0;\n\n\t\tout: while (true) {\n\t\t\tinput_n = sc.nextLine();\n\t\t\tn = Integer.parseInt(input_n);\n\t\t\tif (n == 0) {\n\t\t\t\tbreak out;\n\t\t\t}\n\t\t\tif (n < 0 || n > 1000) {\n\t\t\t\tjudge_n = false;\n\t\t\t\tbreak out;\n\t\t\t}\n\n\t\t\tinput_test = sc.nextLine();\n\t\t\tTest_String = input_test.split(\" \");\n\n\t\t\tif (Test_String.length != n) {\n\t\t\t\tjudge_test = false;\n\t\t\t\tbreak out;\n\n\t\t\t}\n\t\t\t// 始:平均値を求める\n\t\t\tm = 0.0;\n\t\t\tTest_Score = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tTest_Score[i] = Integer.parseInt(Test_String[i]);\n\t\t\t\tm += Test_Score[i];\n\t\t\t}\n\t\t\tm = m / n;\n\t\t\t// 終:平均値を求める\n\n\t\t\tV = 0.0;\n\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tV += ((double) (Test_Score[j] - m))\n\t\t\t\t\t\t* ((double) (Test_Score[j] - m));\n\n\t\t\t}\n\t\t\tV = V / n;\n\t\t\tSD[data_count] = Math.sqrt(V);\n\t\t\tdata_count++;\n\t\t}// out:whileここまで\n\n\t\tif (judge_n == true && judge_test == true) {\n\n\t\t\tfor (int k = 0; k < data_count; k++) {\n\t\t\t\tSystem.out.printf(\"%.5f\", SD[k]);\n System.out.println();\n\t\t\t}\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = 0;", "n", "0", "String[] Test_String;", "Test_String", "int[] Test_Score;", "Test_Score", "String input_n = \"\";", "input_n", "\"\"", "String input_test = \"\";", "input_test", "\"\"", "boolean judge_n = true;", "judge_n", "true", "boolean judge_test = true;", "judge_test", "true", "double m = 0.0;", "m", "0.0", "double V = 0.0;", "V", "0.0", "int MAX = 1000;", "MAX", "1000", "double[] SD = new double[MAX];", "SD", "new double[MAX]", "MAX", "int data_count = 0;", "data_count", "0", "if (judge_n == true && judge_test == true) {\n\n\t\t\tfor (int k = 0; k < data_count; k++) {\n\t\t\t\tSystem.out.printf(\"%.5f\", SD[k]);\n System.out.println();\n\t\t\t}\n\t\t}", "judge_n == true && judge_test == true", "judge_n == true", "judge_n", "true", "judge_test == true", "judge_test", "true", "{\n\n\t\t\tfor (int k = 0; k < data_count; k++) {\n\t\t\t\tSystem.out.printf(\"%.5f\", SD[k]);\n System.out.println();\n\t\t\t}\n\t\t}", "for (int k = 0; k < data_count; k++) {\n\t\t\t\tSystem.out.printf(\"%.5f\", SD[k]);\n System.out.println();\n\t\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < data_count", "k", "data_count", "k++", "k++", "k", "{\n\t\t\t\tSystem.out.printf(\"%.5f\", SD[k]);\n System.out.println();\n\t\t\t}", "{\n\t\t\t\tSystem.out.printf(\"%.5f\", SD[k]);\n System.out.println();\n\t\t\t}", "System.out.printf(\"%.5f\", SD[k])", "System.out.printf", "System.out", "System", "System.out", "\"%.5f\"", "SD[k]", "SD", "k", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "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\tint n = 0;\n\t\tString[] Test_String;\n\t\tint[] Test_Score;\n\t\tString input_n = \"\";\n\t\tString input_test = \"\";\n\t\tboolean judge_n = true;\n\t\tboolean judge_test = true;\n\t\tdouble m = 0.0;\n\t\tdouble V = 0.0;\n\t\tint MAX = 1000;\n\t\tdouble[] SD = new double[MAX];\n\t\tint data_count = 0;\n\n\t\tout: while (true) {\n\t\t\tinput_n = sc.nextLine();\n\t\t\tn = Integer.parseInt(input_n);\n\t\t\tif (n == 0) {\n\t\t\t\tbreak out;\n\t\t\t}\n\t\t\tif (n < 0 || n > 1000) {\n\t\t\t\tjudge_n = false;\n\t\t\t\tbreak out;\n\t\t\t}\n\n\t\t\tinput_test = sc.nextLine();\n\t\t\tTest_String = input_test.split(\" \");\n\n\t\t\tif (Test_String.length != n) {\n\t\t\t\tjudge_test = false;\n\t\t\t\tbreak out;\n\n\t\t\t}\n\t\t\t// 始:平均値を求める\n\t\t\tm = 0.0;\n\t\t\tTest_Score = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tTest_Score[i] = Integer.parseInt(Test_String[i]);\n\t\t\t\tm += Test_Score[i];\n\t\t\t}\n\t\t\tm = m / n;\n\t\t\t// 終:平均値を求める\n\n\t\t\tV = 0.0;\n\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tV += ((double) (Test_Score[j] - m))\n\t\t\t\t\t\t* ((double) (Test_Score[j] - m));\n\n\t\t\t}\n\t\t\tV = V / n;\n\t\t\tSD[data_count] = Math.sqrt(V);\n\t\t\tdata_count++;\n\t\t}// out:whileここまで\n\n\t\tif (judge_n == true && judge_test == true) {\n\n\t\t\tfor (int k = 0; k < data_count; k++) {\n\t\t\t\tSystem.out.printf(\"%.5f\", SD[k]);\n System.out.println();\n\t\t\t}\n\t\t}\n\t}\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\tint n = 0;\n\t\tString[] Test_String;\n\t\tint[] Test_Score;\n\t\tString input_n = \"\";\n\t\tString input_test = \"\";\n\t\tboolean judge_n = true;\n\t\tboolean judge_test = true;\n\t\tdouble m = 0.0;\n\t\tdouble V = 0.0;\n\t\tint MAX = 1000;\n\t\tdouble[] SD = new double[MAX];\n\t\tint data_count = 0;\n\n\t\tout: while (true) {\n\t\t\tinput_n = sc.nextLine();\n\t\t\tn = Integer.parseInt(input_n);\n\t\t\tif (n == 0) {\n\t\t\t\tbreak out;\n\t\t\t}\n\t\t\tif (n < 0 || n > 1000) {\n\t\t\t\tjudge_n = false;\n\t\t\t\tbreak out;\n\t\t\t}\n\n\t\t\tinput_test = sc.nextLine();\n\t\t\tTest_String = input_test.split(\" \");\n\n\t\t\tif (Test_String.length != n) {\n\t\t\t\tjudge_test = false;\n\t\t\t\tbreak out;\n\n\t\t\t}\n\t\t\t// 始:平均値を求める\n\t\t\tm = 0.0;\n\t\t\tTest_Score = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tTest_Score[i] = Integer.parseInt(Test_String[i]);\n\t\t\t\tm += Test_Score[i];\n\t\t\t}\n\t\t\tm = m / n;\n\t\t\t// 終:平均値を求める\n\n\t\t\tV = 0.0;\n\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tV += ((double) (Test_Score[j] - m))\n\t\t\t\t\t\t* ((double) (Test_Score[j] - m));\n\n\t\t\t}\n\t\t\tV = V / n;\n\t\t\tSD[data_count] = Math.sqrt(V);\n\t\t\tdata_count++;\n\t\t}// out:whileここまで\n\n\t\tif (judge_n == true && judge_test == true) {\n\n\t\t\tfor (int k = 0; k < data_count; k++) {\n\t\t\t\tSystem.out.printf(\"%.5f\", SD[k]);\n System.out.println();\n\t\t\t}\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); int n = 0; String[] Test_String; int[] Test_Score; String input_n = ""; String input_test = ""; boolean judge_n = true; boolean judge_test = true; double m = 0.0; double V = 0.0; int MAX = 1000; double[] SD = new double[MAX]; int data_count = 0; out: while (true) { input_n = sc.nextLine(); n = Integer.parseInt(input_n); if (n == 0) { break out; } if (n < 0 || n > 1000) { judge_n = false; break out; } input_test = sc.nextLine(); Test_String = input_test.split(" "); if (Test_String.length != n) { judge_test = false; break out; } // 始:平均値を求める m = 0.0; Test_Score = new int[n]; for (int i = 0; i < n; i++) { Test_Score[i] = Integer.parseInt(Test_String[i]); m += Test_Score[i]; } m = m / n; // 終:平均値を求める V = 0.0; for (int j = 0; j < n; j++) { V += ((double) (Test_Score[j] - m)) * ((double) (Test_Score[j] - m)); } V = V / n; SD[data_count] = Math.sqrt(V); data_count++; }// out:whileここまで if (judge_n == true && judge_test == true) { for (int k = 0; k < data_count; k++) { System.out.printf("%.5f", SD[k]); System.out.println(); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 0, 13, 20, 13, 14, 2, 13, 17, 3, 0, 13, 17, 0, 13, 17, 0, 13, 17, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 0, 13, 2, 13, 13, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 17, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 26, 32 ], [ 32, 33 ], [ 32, 34 ], [ 26, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 26, 41 ], [ 41, 42 ], [ 41, 43 ], [ 26, 44 ], [ 44, 45 ], [ 44, 46 ], [ 26, 47 ], [ 47, 48 ], [ 47, 49 ], [ 26, 50 ], [ 50, 51 ], [ 50, 52 ], [ 26, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 53, 61 ], [ 61, 62 ], [ 62, 63 ], [ 53, 64 ], [ 65, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 71, 72 ], [ 65, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 26, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 26, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 88, 89 ], [ 88, 90 ], [ 83, 91 ], [ 91, 92 ], [ 92, 93 ], [ 83, 94 ], [ 95, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 98, 106 ], [ 26, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 109, 111 ], [ 26, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 26, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 118, 124 ], [ 6, 125 ], [ 125, 126 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n;\n\t\tint[] s;\n\t\tint sum;\n\t\tdouble m;\n\t\tdouble a2;\n\t\tdouble a;\n\n\t\twhile(true){\n\t\t\tn = sc.nextInt();\n\t\t\ts = new int[n];\n\t\t\tif(n == 0)\n\t\t\t\tbreak;\n\t\t\tsum = 0;\n\t\t\tm = 0;\n\t\t\ta = 0;\n\t\t\ta2 = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tm = (double)sum/n;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ta2 += Math.pow((s[i]-m),2.0);\n\t\t\t}\n\t\t\ta2 = a2/n;\n\t\t\ta = Math.sqrt(a2);\n\t\t\tSystem.out.printf(\"%.8f\\n\",a);\n\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n;\n\t\tint[] s;\n\t\tint sum;\n\t\tdouble m;\n\t\tdouble a2;\n\t\tdouble a;\n\n\t\twhile(true){\n\t\t\tn = sc.nextInt();\n\t\t\ts = new int[n];\n\t\t\tif(n == 0)\n\t\t\t\tbreak;\n\t\t\tsum = 0;\n\t\t\tm = 0;\n\t\t\ta = 0;\n\t\t\ta2 = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tm = (double)sum/n;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ta2 += Math.pow((s[i]-m),2.0);\n\t\t\t}\n\t\t\ta2 = a2/n;\n\t\t\ta = Math.sqrt(a2);\n\t\t\tSystem.out.printf(\"%.8f\\n\",a);\n\n\t\t}\n\t}\n}", "Main", "public static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n;\n\t\tint[] s;\n\t\tint sum;\n\t\tdouble m;\n\t\tdouble a2;\n\t\tdouble a;\n\n\t\twhile(true){\n\t\t\tn = sc.nextInt();\n\t\t\ts = new int[n];\n\t\t\tif(n == 0)\n\t\t\t\tbreak;\n\t\t\tsum = 0;\n\t\t\tm = 0;\n\t\t\ta = 0;\n\t\t\ta2 = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tm = (double)sum/n;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ta2 += Math.pow((s[i]-m),2.0);\n\t\t\t}\n\t\t\ta2 = a2/n;\n\t\t\ta = Math.sqrt(a2);\n\t\t\tSystem.out.printf(\"%.8f\\n\",a);\n\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n;\n\t\tint[] s;\n\t\tint sum;\n\t\tdouble m;\n\t\tdouble a2;\n\t\tdouble a;\n\n\t\twhile(true){\n\t\t\tn = sc.nextInt();\n\t\t\ts = new int[n];\n\t\t\tif(n == 0)\n\t\t\t\tbreak;\n\t\t\tsum = 0;\n\t\t\tm = 0;\n\t\t\ta = 0;\n\t\t\ta2 = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tm = (double)sum/n;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ta2 += Math.pow((s[i]-m),2.0);\n\t\t\t}\n\t\t\ta2 = a2/n;\n\t\t\ta = Math.sqrt(a2);\n\t\t\tSystem.out.printf(\"%.8f\\n\",a);\n\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n;", "n", "int[] s;", "s", "int sum;", "sum", "double m;", "m", "double a2;", "a2", "double a;", "a", "while(true){\n\t\t\tn = sc.nextInt();\n\t\t\ts = new int[n];\n\t\t\tif(n == 0)\n\t\t\t\tbreak;\n\t\t\tsum = 0;\n\t\t\tm = 0;\n\t\t\ta = 0;\n\t\t\ta2 = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tm = (double)sum/n;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ta2 += Math.pow((s[i]-m),2.0);\n\t\t\t}\n\t\t\ta2 = a2/n;\n\t\t\ta = Math.sqrt(a2);\n\t\t\tSystem.out.printf(\"%.8f\\n\",a);\n\n\t\t}", "true", "{\n\t\t\tn = sc.nextInt();\n\t\t\ts = new int[n];\n\t\t\tif(n == 0)\n\t\t\t\tbreak;\n\t\t\tsum = 0;\n\t\t\tm = 0;\n\t\t\ta = 0;\n\t\t\ta2 = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tm = (double)sum/n;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ta2 += Math.pow((s[i]-m),2.0);\n\t\t\t}\n\t\t\ta2 = a2/n;\n\t\t\ta = Math.sqrt(a2);\n\t\t\tSystem.out.printf(\"%.8f\\n\",a);\n\n\t\t}", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "s = new int[n]", "s", "new int[n]", "n", "if(n == 0)\n\t\t\t\tbreak;", "n == 0", "n", "0", "break;", "sum = 0", "sum", "0", "m = 0", "m", "0", "a = 0", "a", "0", "a2 = 0", "a2", "0", "for(int i=0; i<n; i++){\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}", "{\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}", "s[i] = sc.nextInt()", "s[i]", "s", "i", "sc.nextInt()", "sc.nextInt", "sc", "sum += s[i]", "sum", "s[i]", "s", "i", "m = (double)sum/n", "m", "(double)sum/n", "(double)sum", "n", "for(int i=0; i<n; i++){\n\t\t\t\ta2 += Math.pow((s[i]-m),2.0);\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\ta2 += Math.pow((s[i]-m),2.0);\n\t\t\t}", "{\n\t\t\t\ta2 += Math.pow((s[i]-m),2.0);\n\t\t\t}", "a2 += Math.pow((s[i]-m),2.0)", "a2", "Math.pow((s[i]-m),2.0)", "Math.pow", "Math", "(s[i]-m)", "s[i]", "s", "i", "m", "2.0", "a2 = a2/n", "a2", "a2/n", "a2", "n", "a = Math.sqrt(a2)", "a", "Math.sqrt(a2)", "Math.sqrt", "Math", "a2", "System.out.printf(\"%.8f\\n\",a)", "System.out.printf", "System.out", "System", "System.out", "\"%.8f\\n\"", "a", "String args[]", "args" ]
import java.util.Scanner; class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n; int[] s; int sum; double m; double a2; double a; while(true){ n = sc.nextInt(); s = new int[n]; if(n == 0) break; sum = 0; m = 0; a = 0; a2 = 0; for(int i=0; i<n; i++){ s[i] = sc.nextInt(); sum += s[i]; } m = (double)sum/n; for(int i=0; i<n; i++){ a2 += Math.pow((s[i]-m),2.0); } a2 = a2/n; a = Math.sqrt(a2); System.out.printf("%.8f\n",a); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 38, 5, 13, 30, 4, 18, 13, 5, 13, 30, 4, 18, 13, 30, 42, 2, 0, 13, 4, 18, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 18, 13, 13, 0, 13, 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, 0, 13, 18, 13, 13, 0, 13, 2, 13, 13, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 4, 18, 18, 13, 13, 17, 4, 18, 13, 2, 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 ], [ 154, 11 ], [ 154, 12 ], [ 12, 13 ], [ 12, 14 ], [ 154, 15 ], [ 15, 16 ], [ 15, 17 ], [ 154, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 20, 28 ], [ 28, 29 ], [ 20, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 30, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 30, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 51, 52 ], [ 52, 53 ], [ 45, 54 ], [ 44, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 58, 63 ], [ 55, 64 ], [ 64, 65 ], [ 64, 66 ], [ 67, 68 ], [ 67, 69 ], [ 55, 70 ], [ 70, 71 ], [ 70, 72 ], [ 55, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 73, 83 ], [ 83, 84 ], [ 84, 85 ], [ 73, 86 ], [ 87, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 95, 96 ], [ 95, 97 ], [ 87, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 100, 102 ], [ 55, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 55, 108 ], [ 108, 109 ], [ 108, 110 ], [ 55, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 118, 120 ], [ 111, 121 ], [ 121, 122 ], [ 122, 123 ], [ 111, 124 ], [ 125, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 129, 133 ], [ 128, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 134, 138 ], [ 55, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 139, 144 ], [ 139, 145 ], [ 145, 146 ], [ 146, 147 ], [ 145, 148 ], [ 148, 149 ], [ 148, 150 ], [ 18, 151 ], [ 151, 152 ], [ 0, 153 ], [ 153, 154 ], [ 153, 155 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint N;\n\t\tdouble M,SUM;\n\n\t\ttry {\n\t\t\twhile((N = Integer.parseInt(br.readLine())) != 0){\n\n\t\t\t\tString input[] = br.readLine().split(\"\\\\s+\");\n\t\t\t\tdouble array[] = new double[input.length];\n\n\t\t\t\tSUM = 0;\n\n\t\t\t\tfor(int i = 0; i < input.length; i++){\n\t\t\t\t\tarray[i] = Double.parseDouble(input[i]);\n\t\t\t\t\tSUM += array[i];\n\t\t\t\t}\n\n\t\t\t\tM = SUM/(double)N;\n\t\t\t\tSUM = 0;\n\n\t\t\t\tfor(int i = 0; i < array.length; i++){\n\t\t\t\t\tSUM += (array[i]-M)*(array[i]-M);\n\t\t\t\t}\n\n\t\t\t\tSystem.out.printf(\"%.10f\\n\", Math.sqrt(SUM/(double)N));\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}\n\n", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint N;\n\t\tdouble M,SUM;\n\n\t\ttry {\n\t\t\twhile((N = Integer.parseInt(br.readLine())) != 0){\n\n\t\t\t\tString input[] = br.readLine().split(\"\\\\s+\");\n\t\t\t\tdouble array[] = new double[input.length];\n\n\t\t\t\tSUM = 0;\n\n\t\t\t\tfor(int i = 0; i < input.length; i++){\n\t\t\t\t\tarray[i] = Double.parseDouble(input[i]);\n\t\t\t\t\tSUM += array[i];\n\t\t\t\t}\n\n\t\t\t\tM = SUM/(double)N;\n\t\t\t\tSUM = 0;\n\n\t\t\t\tfor(int i = 0; i < array.length; i++){\n\t\t\t\t\tSUM += (array[i]-M)*(array[i]-M);\n\t\t\t\t}\n\n\t\t\t\tSystem.out.printf(\"%.10f\\n\", Math.sqrt(SUM/(double)N));\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main", "public static final int BIG_NUM = 2000000000;", "BIG_NUM", "2000000000", "public static final int MOD = 1000000007;", "MOD", "1000000007", "public static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint N;\n\t\tdouble M,SUM;\n\n\t\ttry {\n\t\t\twhile((N = Integer.parseInt(br.readLine())) != 0){\n\n\t\t\t\tString input[] = br.readLine().split(\"\\\\s+\");\n\t\t\t\tdouble array[] = new double[input.length];\n\n\t\t\t\tSUM = 0;\n\n\t\t\t\tfor(int i = 0; i < input.length; i++){\n\t\t\t\t\tarray[i] = Double.parseDouble(input[i]);\n\t\t\t\t\tSUM += array[i];\n\t\t\t\t}\n\n\t\t\t\tM = SUM/(double)N;\n\t\t\t\tSUM = 0;\n\n\t\t\t\tfor(int i = 0; i < array.length; i++){\n\t\t\t\t\tSUM += (array[i]-M)*(array[i]-M);\n\t\t\t\t}\n\n\t\t\t\tSystem.out.printf(\"%.10f\\n\", Math.sqrt(SUM/(double)N));\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "main", "{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint N;\n\t\tdouble M,SUM;\n\n\t\ttry {\n\t\t\twhile((N = Integer.parseInt(br.readLine())) != 0){\n\n\t\t\t\tString input[] = br.readLine().split(\"\\\\s+\");\n\t\t\t\tdouble array[] = new double[input.length];\n\n\t\t\t\tSUM = 0;\n\n\t\t\t\tfor(int i = 0; i < input.length; i++){\n\t\t\t\t\tarray[i] = Double.parseDouble(input[i]);\n\t\t\t\t\tSUM += array[i];\n\t\t\t\t}\n\n\t\t\t\tM = SUM/(double)N;\n\t\t\t\tSUM = 0;\n\n\t\t\t\tfor(int i = 0; i < array.length; i++){\n\t\t\t\t\tSUM += (array[i]-M)*(array[i]-M);\n\t\t\t\t}\n\n\t\t\t\tSystem.out.printf(\"%.10f\\n\", Math.sqrt(SUM/(double)N));\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int N;", "N", "double M", "M", "SUM;", "SUM", "try {\n\t\t\twhile((N = Integer.parseInt(br.readLine())) != 0){\n\n\t\t\t\tString input[] = br.readLine().split(\"\\\\s+\");\n\t\t\t\tdouble array[] = new double[input.length];\n\n\t\t\t\tSUM = 0;\n\n\t\t\t\tfor(int i = 0; i < input.length; i++){\n\t\t\t\t\tarray[i] = Double.parseDouble(input[i]);\n\t\t\t\t\tSUM += array[i];\n\t\t\t\t}\n\n\t\t\t\tM = SUM/(double)N;\n\t\t\t\tSUM = 0;\n\n\t\t\t\tfor(int i = 0; i < array.length; i++){\n\t\t\t\t\tSUM += (array[i]-M)*(array[i]-M);\n\t\t\t\t}\n\n\t\t\t\tSystem.out.printf(\"%.10f\\n\", Math.sqrt(SUM/(double)N));\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "catch (NumberFormatException e) {\n\t\t\te.printStackTrace();\n\t\t}", "NumberFormatException e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "IOException e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\twhile((N = Integer.parseInt(br.readLine())) != 0){\n\n\t\t\t\tString input[] = br.readLine().split(\"\\\\s+\");\n\t\t\t\tdouble array[] = new double[input.length];\n\n\t\t\t\tSUM = 0;\n\n\t\t\t\tfor(int i = 0; i < input.length; i++){\n\t\t\t\t\tarray[i] = Double.parseDouble(input[i]);\n\t\t\t\t\tSUM += array[i];\n\t\t\t\t}\n\n\t\t\t\tM = SUM/(double)N;\n\t\t\t\tSUM = 0;\n\n\t\t\t\tfor(int i = 0; i < array.length; i++){\n\t\t\t\t\tSUM += (array[i]-M)*(array[i]-M);\n\t\t\t\t}\n\n\t\t\t\tSystem.out.printf(\"%.10f\\n\", Math.sqrt(SUM/(double)N));\n\t\t\t}\n\t\t}", "while((N = Integer.parseInt(br.readLine())) != 0){\n\n\t\t\t\tString input[] = br.readLine().split(\"\\\\s+\");\n\t\t\t\tdouble array[] = new double[input.length];\n\n\t\t\t\tSUM = 0;\n\n\t\t\t\tfor(int i = 0; i < input.length; i++){\n\t\t\t\t\tarray[i] = Double.parseDouble(input[i]);\n\t\t\t\t\tSUM += array[i];\n\t\t\t\t}\n\n\t\t\t\tM = SUM/(double)N;\n\t\t\t\tSUM = 0;\n\n\t\t\t\tfor(int i = 0; i < array.length; i++){\n\t\t\t\t\tSUM += (array[i]-M)*(array[i]-M);\n\t\t\t\t}\n\n\t\t\t\tSystem.out.printf(\"%.10f\\n\", Math.sqrt(SUM/(double)N));\n\t\t\t}", "(N = Integer.parseInt(br.readLine())) != 0", "(N = Integer.parseInt(br.readLine()))", "N", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "0", "{\n\n\t\t\t\tString input[] = br.readLine().split(\"\\\\s+\");\n\t\t\t\tdouble array[] = new double[input.length];\n\n\t\t\t\tSUM = 0;\n\n\t\t\t\tfor(int i = 0; i < input.length; i++){\n\t\t\t\t\tarray[i] = Double.parseDouble(input[i]);\n\t\t\t\t\tSUM += array[i];\n\t\t\t\t}\n\n\t\t\t\tM = SUM/(double)N;\n\t\t\t\tSUM = 0;\n\n\t\t\t\tfor(int i = 0; i < array.length; i++){\n\t\t\t\t\tSUM += (array[i]-M)*(array[i]-M);\n\t\t\t\t}\n\n\t\t\t\tSystem.out.printf(\"%.10f\\n\", Math.sqrt(SUM/(double)N));\n\t\t\t}", "String input[] = br.readLine().split(\"\\\\s+\");", "input", "br.readLine().split(\"\\\\s+\")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\"\\\\s+\"", "double array[] = new double[input.length];", "array", "new double[input.length]", "input.length", "input", "input.length", "SUM = 0", "SUM", "0", "for(int i = 0; i < input.length; i++){\n\t\t\t\t\tarray[i] = Double.parseDouble(input[i]);\n\t\t\t\t\tSUM += array[i];\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < input.length", "i", "input.length", "input", "input.length", "i++", "i++", "i", "{\n\t\t\t\t\tarray[i] = Double.parseDouble(input[i]);\n\t\t\t\t\tSUM += array[i];\n\t\t\t\t}", "{\n\t\t\t\t\tarray[i] = Double.parseDouble(input[i]);\n\t\t\t\t\tSUM += array[i];\n\t\t\t\t}", "array[i] = Double.parseDouble(input[i])", "array[i]", "array", "i", "Double.parseDouble(input[i])", "Double.parseDouble", "Double", "input[i]", "input", "i", "SUM += array[i]", "SUM", "array[i]", "array", "i", "M = SUM/(double)N", "M", "SUM/(double)N", "SUM", "(double)N", "SUM = 0", "SUM", "0", "for(int i = 0; i < array.length; i++){\n\t\t\t\t\tSUM += (array[i]-M)*(array[i]-M);\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < array.length", "i", "array.length", "array", "array.length", "i++", "i++", "i", "{\n\t\t\t\t\tSUM += (array[i]-M)*(array[i]-M);\n\t\t\t\t}", "{\n\t\t\t\t\tSUM += (array[i]-M)*(array[i]-M);\n\t\t\t\t}", "SUM += (array[i]-M)*(array[i]-M)", "SUM", "(array[i]-M)*(array[i]-M)", "(array[i]-M)", "array[i]", "array", "i", "M", "(array[i]-M)", "array[i]", "array", "i", "M", "System.out.printf(\"%.10f\\n\", Math.sqrt(SUM/(double)N))", "System.out.printf", "System.out", "System", "System.out", "\"%.10f\\n\"", "Math.sqrt(SUM/(double)N)", "Math.sqrt", "Math", "SUM/(double)N", "SUM", "(double)N", "String[] args", "args", "public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint N;\n\t\tdouble M,SUM;\n\n\t\ttry {\n\t\t\twhile((N = Integer.parseInt(br.readLine())) != 0){\n\n\t\t\t\tString input[] = br.readLine().split(\"\\\\s+\");\n\t\t\t\tdouble array[] = new double[input.length];\n\n\t\t\t\tSUM = 0;\n\n\t\t\t\tfor(int i = 0; i < input.length; i++){\n\t\t\t\t\tarray[i] = Double.parseDouble(input[i]);\n\t\t\t\t\tSUM += array[i];\n\t\t\t\t}\n\n\t\t\t\tM = SUM/(double)N;\n\t\t\t\tSUM = 0;\n\n\t\t\t\tfor(int i = 0; i < array.length; i++){\n\t\t\t\t\tSUM += (array[i]-M)*(array[i]-M);\n\t\t\t\t}\n\n\t\t\t\tSystem.out.printf(\"%.10f\\n\", Math.sqrt(SUM/(double)N));\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint N;\n\t\tdouble M,SUM;\n\n\t\ttry {\n\t\t\twhile((N = Integer.parseInt(br.readLine())) != 0){\n\n\t\t\t\tString input[] = br.readLine().split(\"\\\\s+\");\n\t\t\t\tdouble array[] = new double[input.length];\n\n\t\t\t\tSUM = 0;\n\n\t\t\t\tfor(int i = 0; i < input.length; i++){\n\t\t\t\t\tarray[i] = Double.parseDouble(input[i]);\n\t\t\t\t\tSUM += array[i];\n\t\t\t\t}\n\n\t\t\t\tM = SUM/(double)N;\n\t\t\t\tSUM = 0;\n\n\t\t\t\tfor(int i = 0; i < array.length; i++){\n\t\t\t\t\tSUM += (array[i]-M)*(array[i]-M);\n\t\t\t\t}\n\n\t\t\t\tSystem.out.printf(\"%.10f\\n\", Math.sqrt(SUM/(double)N));\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static final int BIG_NUM = 2000000000; public static final int MOD = 1000000007; public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N; double M,SUM; try { while((N = Integer.parseInt(br.readLine())) != 0){ String input[] = br.readLine().split("\\s+"); double array[] = new double[input.length]; SUM = 0; for(int i = 0; i < input.length; i++){ array[i] = Double.parseDouble(input[i]); SUM += array[i]; } M = SUM/(double)N; SUM = 0; for(int i = 0; i < array.length; i++){ SUM += (array[i]-M)*(array[i]-M); } System.out.printf("%.10f\n", Math.sqrt(SUM/(double)N)); } } catch (NumberFormatException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 41, 13, 4, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 17, 28, 13, 13, 30, 30, 0, 13, 13, 41, 13, 2, 13, 18, 13, 13, 41, 13, 17, 28, 13, 13, 30, 30, 0, 13, 4, 18, 13, 2, 13, 13, 17, 41, 13, 2, 13, 18, 13, 13, 41, 13, 4, 18, 13, 13, 29, 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 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 30, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 14, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 14, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 6, 61 ], [ 61, 62 ], [ 119, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 69, 71 ], [ 69, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 65, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 65, 84 ], [ 84, 85 ], [ 84, 86 ], [ 65, 87 ], [ 87, 88 ], [ 87, 89 ], [ 87, 90 ], [ 91, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 97, 98 ], [ 97, 99 ], [ 94, 100 ], [ 65, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 65, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 65, 114 ], [ 114, 115 ], [ 63, 116 ], [ 116, 117 ], [ 0, 118 ], [ 118, 119 ], [ 118, 120 ] ]
[ "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\n\t\twhile (true)\n\t\t{\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] scores = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t{\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tdouble sd = getStandardDeviation(scores);\n\n\t\t\tSystem.out.println(sd);\n\t\t}\n\t}\n\n\tstatic double getStandardDeviation(int[] data)\n\t{\n\t\tint sum = 0;\n\t\tfor (int d :\n\t\t\t\tdata)\n\t\t{\n\t\t\tsum += d;\n\t\t}\n\n\t\tdouble ave = (double) sum / data.length;\n\n\t\tdouble sumSquareDeviation = 0.0;\n\t\tfor (int d :\n\t\t\t\tdata)\n\t\t{\n\t\t\tsumSquareDeviation += Math.pow(d - ave, 2);\n\t\t}\n\n\t\tdouble variance = sumSquareDeviation / data.length;\n\n\t\tdouble standardDeviation = Math.sqrt(variance);\n\n\t\treturn standardDeviation;\n\t}\n}\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\n\t\twhile (true)\n\t\t{\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] scores = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t{\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tdouble sd = getStandardDeviation(scores);\n\n\t\t\tSystem.out.println(sd);\n\t\t}\n\t}\n\n\tstatic double getStandardDeviation(int[] data)\n\t{\n\t\tint sum = 0;\n\t\tfor (int d :\n\t\t\t\tdata)\n\t\t{\n\t\t\tsum += d;\n\t\t}\n\n\t\tdouble ave = (double) sum / data.length;\n\n\t\tdouble sumSquareDeviation = 0.0;\n\t\tfor (int d :\n\t\t\t\tdata)\n\t\t{\n\t\t\tsumSquareDeviation += Math.pow(d - ave, 2);\n\t\t}\n\n\t\tdouble variance = sumSquareDeviation / data.length;\n\n\t\tdouble standardDeviation = Math.sqrt(variance);\n\n\t\treturn standardDeviation;\n\t}\n}", "Main", "public static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true)\n\t\t{\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] scores = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t{\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tdouble sd = getStandardDeviation(scores);\n\n\t\t\tSystem.out.println(sd);\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true)\n\t\t{\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] scores = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t{\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tdouble sd = getStandardDeviation(scores);\n\n\t\t\tSystem.out.println(sd);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (true)\n\t\t{\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] scores = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t{\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tdouble sd = getStandardDeviation(scores);\n\n\t\t\tSystem.out.println(sd);\n\t\t}", "true", "{\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] scores = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t{\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tdouble sd = getStandardDeviation(scores);\n\n\t\t\tSystem.out.println(sd);\n\t\t}", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if (n == 0)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}", "n == 0", "n", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "int[] scores = new int[n];", "scores", "new int[n]", "n", "for (int i = 0; i < n; i++)\n\t\t\t{\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t}", "{\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t}", "scores[i] = sc.nextInt()", "scores[i]", "scores", "i", "sc.nextInt()", "sc.nextInt", "sc", "double sd = getStandardDeviation(scores);", "sd", "getStandardDeviation(scores)", "getStandardDeviation", "scores", "System.out.println(sd)", "System.out.println", "System.out", "System", "System.out", "sd", "String[] args", "args", "static double getStandardDeviation(int[] data)\n\t{\n\t\tint sum = 0;\n\t\tfor (int d :\n\t\t\t\tdata)\n\t\t{\n\t\t\tsum += d;\n\t\t}\n\n\t\tdouble ave = (double) sum / data.length;\n\n\t\tdouble sumSquareDeviation = 0.0;\n\t\tfor (int d :\n\t\t\t\tdata)\n\t\t{\n\t\t\tsumSquareDeviation += Math.pow(d - ave, 2);\n\t\t}\n\n\t\tdouble variance = sumSquareDeviation / data.length;\n\n\t\tdouble standardDeviation = Math.sqrt(variance);\n\n\t\treturn standardDeviation;\n\t}", "getStandardDeviation", "{\n\t\tint sum = 0;\n\t\tfor (int d :\n\t\t\t\tdata)\n\t\t{\n\t\t\tsum += d;\n\t\t}\n\n\t\tdouble ave = (double) sum / data.length;\n\n\t\tdouble sumSquareDeviation = 0.0;\n\t\tfor (int d :\n\t\t\t\tdata)\n\t\t{\n\t\t\tsumSquareDeviation += Math.pow(d - ave, 2);\n\t\t}\n\n\t\tdouble variance = sumSquareDeviation / data.length;\n\n\t\tdouble standardDeviation = Math.sqrt(variance);\n\n\t\treturn standardDeviation;\n\t}", "int sum = 0;", "sum", "0", "for (int d :\n\t\t\t\tdata)\n\t\t{\n\t\t\tsum += d;\n\t\t}", "int d", "data", "{\n\t\t\tsum += d;\n\t\t}", "{\n\t\t\tsum += d;\n\t\t}", "sum += d", "sum", "d", "double ave = (double) sum / data.length;", "ave", "(double) sum / data.length", "(double) sum", "data.length", "data", "data.length", "double sumSquareDeviation = 0.0;", "sumSquareDeviation", "0.0", "for (int d :\n\t\t\t\tdata)\n\t\t{\n\t\t\tsumSquareDeviation += Math.pow(d - ave, 2);\n\t\t}", "int d", "data", "{\n\t\t\tsumSquareDeviation += Math.pow(d - ave, 2);\n\t\t}", "{\n\t\t\tsumSquareDeviation += Math.pow(d - ave, 2);\n\t\t}", "sumSquareDeviation += Math.pow(d - ave, 2)", "sumSquareDeviation", "Math.pow(d - ave, 2)", "Math.pow", "Math", "d - ave", "d", "ave", "2", "double variance = sumSquareDeviation / data.length;", "variance", "sumSquareDeviation / data.length", "sumSquareDeviation", "data.length", "data", "data.length", "double standardDeviation = Math.sqrt(variance);", "standardDeviation", "Math.sqrt(variance)", "Math.sqrt", "Math", "variance", "return standardDeviation;", "standardDeviation", "int[] data", "data", "public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true)\n\t\t{\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] scores = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t{\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tdouble sd = getStandardDeviation(scores);\n\n\t\t\tSystem.out.println(sd);\n\t\t}\n\t}\n\n\tstatic double getStandardDeviation(int[] data)\n\t{\n\t\tint sum = 0;\n\t\tfor (int d :\n\t\t\t\tdata)\n\t\t{\n\t\t\tsum += d;\n\t\t}\n\n\t\tdouble ave = (double) sum / data.length;\n\n\t\tdouble sumSquareDeviation = 0.0;\n\t\tfor (int d :\n\t\t\t\tdata)\n\t\t{\n\t\t\tsumSquareDeviation += Math.pow(d - ave, 2);\n\t\t}\n\n\t\tdouble variance = sumSquareDeviation / data.length;\n\n\t\tdouble standardDeviation = Math.sqrt(variance);\n\n\t\treturn standardDeviation;\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\n\t\twhile (true)\n\t\t{\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] scores = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t{\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tdouble sd = getStandardDeviation(scores);\n\n\t\t\tSystem.out.println(sd);\n\t\t}\n\t}\n\n\tstatic double getStandardDeviation(int[] data)\n\t{\n\t\tint sum = 0;\n\t\tfor (int d :\n\t\t\t\tdata)\n\t\t{\n\t\t\tsum += d;\n\t\t}\n\n\t\tdouble ave = (double) sum / data.length;\n\n\t\tdouble sumSquareDeviation = 0.0;\n\t\tfor (int d :\n\t\t\t\tdata)\n\t\t{\n\t\t\tsumSquareDeviation += Math.pow(d - ave, 2);\n\t\t}\n\n\t\tdouble variance = sumSquareDeviation / data.length;\n\n\t\tdouble standardDeviation = Math.sqrt(variance);\n\n\t\treturn standardDeviation;\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (true) { int n = sc.nextInt(); if (n == 0) { break; } int[] scores = new int[n]; for (int i = 0; i < n; i++) { scores[i] = sc.nextInt(); } double sd = getStandardDeviation(scores); System.out.println(sd); } } static double getStandardDeviation(int[] data) { int sum = 0; for (int d : data) { sum += d; } double ave = (double) sum / data.length; double sumSquareDeviation = 0.0; for (int d : data) { sumSquareDeviation += Math.pow(d - ave, 2); } double variance = sumSquareDeviation / data.length; double standardDeviation = Math.sqrt(variance); return standardDeviation; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 17, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 0, 13, 20, 17, 42, 17, 30, 0, 13, 17, 0, 13, 17, 0, 13, 17, 0, 13, 17, 41, 13, 4, 18, 13, 14, 2, 13, 17, 3, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 2, 13, 18, 13, 13, 0, 13, 2, 13, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 0, 13, 2, 13, 13, 41, 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 ], [ 140, 5 ], [ 140, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 38, 40 ], [ 34, 41 ], [ 41, 42 ], [ 41, 43 ], [ 34, 44 ], [ 44, 45 ], [ 44, 46 ], [ 34, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 34, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 34, 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 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 69, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 34, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 34, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 94, 95 ], [ 94, 96 ], [ 89, 97 ], [ 97, 98 ], [ 98, 99 ], [ 89, 100 ], [ 101, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 106, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 34, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 119, 121 ], [ 34, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 125, 126 ], [ 124, 127 ], [ 34, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 8, 134 ], [ 134, 135 ], [ 135, 136 ], [ 6, 137 ], [ 137, 138 ], [ 0, 139 ], [ 139, 140 ], [ 139, 141 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\t public static void main(String[]args){\n\t\t Scanner sc = new Scanner(System.in);\n\t\t int ten[];\n\t\t int i=0;\n\t\t int sum;\n\t\t double m=0.0;\n\t\t double x=0.0;\n\t\t double A=0.0;\n\t\t ten = new int[1000];\n\t\t while(true)\n {\n\t\t \tsum=0;\n\t\t \tm=0.0;\n\t\t\t x=0.0;\n\t\t\t A=0.0;\n\t\t \tint n=sc.nextInt();\n if(n==0) break;\n\t\t \tfor(i=0;i<n;++i)\n\t\t \t{\n\t\t \t\tten[i]=sc.nextInt();\n\t\t \t\tsum=sum+ten[i];\n\t\t \t}\n\t\t \tm=(double)sum/(double)n;\n\t\t \tfor(i=0;i<n;++i)\n\t\t \t{\n\t\t \t\tx=x+(ten[i]-m)*(ten[i]-m);\n\t\t \t}\n\t\t \tA=x/(double)n;\n\t\t \tdouble a=Math.sqrt(A);\n\t\t \tSystem.out.println(a);\n }\n\t\t \tsc.close();\n\t\t }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\t public static void main(String[]args){\n\t\t Scanner sc = new Scanner(System.in);\n\t\t int ten[];\n\t\t int i=0;\n\t\t int sum;\n\t\t double m=0.0;\n\t\t double x=0.0;\n\t\t double A=0.0;\n\t\t ten = new int[1000];\n\t\t while(true)\n {\n\t\t \tsum=0;\n\t\t \tm=0.0;\n\t\t\t x=0.0;\n\t\t\t A=0.0;\n\t\t \tint n=sc.nextInt();\n if(n==0) break;\n\t\t \tfor(i=0;i<n;++i)\n\t\t \t{\n\t\t \t\tten[i]=sc.nextInt();\n\t\t \t\tsum=sum+ten[i];\n\t\t \t}\n\t\t \tm=(double)sum/(double)n;\n\t\t \tfor(i=0;i<n;++i)\n\t\t \t{\n\t\t \t\tx=x+(ten[i]-m)*(ten[i]-m);\n\t\t \t}\n\t\t \tA=x/(double)n;\n\t\t \tdouble a=Math.sqrt(A);\n\t\t \tSystem.out.println(a);\n }\n\t\t \tsc.close();\n\t\t }\n}", "Main", "public static void main(String[]args){\n\t\t Scanner sc = new Scanner(System.in);\n\t\t int ten[];\n\t\t int i=0;\n\t\t int sum;\n\t\t double m=0.0;\n\t\t double x=0.0;\n\t\t double A=0.0;\n\t\t ten = new int[1000];\n\t\t while(true)\n {\n\t\t \tsum=0;\n\t\t \tm=0.0;\n\t\t\t x=0.0;\n\t\t\t A=0.0;\n\t\t \tint n=sc.nextInt();\n if(n==0) break;\n\t\t \tfor(i=0;i<n;++i)\n\t\t \t{\n\t\t \t\tten[i]=sc.nextInt();\n\t\t \t\tsum=sum+ten[i];\n\t\t \t}\n\t\t \tm=(double)sum/(double)n;\n\t\t \tfor(i=0;i<n;++i)\n\t\t \t{\n\t\t \t\tx=x+(ten[i]-m)*(ten[i]-m);\n\t\t \t}\n\t\t \tA=x/(double)n;\n\t\t \tdouble a=Math.sqrt(A);\n\t\t \tSystem.out.println(a);\n }\n\t\t \tsc.close();\n\t\t }", "main", "{\n\t\t Scanner sc = new Scanner(System.in);\n\t\t int ten[];\n\t\t int i=0;\n\t\t int sum;\n\t\t double m=0.0;\n\t\t double x=0.0;\n\t\t double A=0.0;\n\t\t ten = new int[1000];\n\t\t while(true)\n {\n\t\t \tsum=0;\n\t\t \tm=0.0;\n\t\t\t x=0.0;\n\t\t\t A=0.0;\n\t\t \tint n=sc.nextInt();\n if(n==0) break;\n\t\t \tfor(i=0;i<n;++i)\n\t\t \t{\n\t\t \t\tten[i]=sc.nextInt();\n\t\t \t\tsum=sum+ten[i];\n\t\t \t}\n\t\t \tm=(double)sum/(double)n;\n\t\t \tfor(i=0;i<n;++i)\n\t\t \t{\n\t\t \t\tx=x+(ten[i]-m)*(ten[i]-m);\n\t\t \t}\n\t\t \tA=x/(double)n;\n\t\t \tdouble a=Math.sqrt(A);\n\t\t \tSystem.out.println(a);\n }\n\t\t \tsc.close();\n\t\t }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int ten[];", "ten", "int i=0;", "i", "0", "int sum;", "sum", "double m=0.0;", "m", "0.0", "double x=0.0;", "x", "0.0", "double A=0.0;", "A", "0.0", "ten = new int[1000]", "ten", "new int[1000]", "1000", "while(true)\n {\n\t\t \tsum=0;\n\t\t \tm=0.0;\n\t\t\t x=0.0;\n\t\t\t A=0.0;\n\t\t \tint n=sc.nextInt();\n if(n==0) break;\n\t\t \tfor(i=0;i<n;++i)\n\t\t \t{\n\t\t \t\tten[i]=sc.nextInt();\n\t\t \t\tsum=sum+ten[i];\n\t\t \t}\n\t\t \tm=(double)sum/(double)n;\n\t\t \tfor(i=0;i<n;++i)\n\t\t \t{\n\t\t \t\tx=x+(ten[i]-m)*(ten[i]-m);\n\t\t \t}\n\t\t \tA=x/(double)n;\n\t\t \tdouble a=Math.sqrt(A);\n\t\t \tSystem.out.println(a);\n }", "true", "{\n\t\t \tsum=0;\n\t\t \tm=0.0;\n\t\t\t x=0.0;\n\t\t\t A=0.0;\n\t\t \tint n=sc.nextInt();\n if(n==0) break;\n\t\t \tfor(i=0;i<n;++i)\n\t\t \t{\n\t\t \t\tten[i]=sc.nextInt();\n\t\t \t\tsum=sum+ten[i];\n\t\t \t}\n\t\t \tm=(double)sum/(double)n;\n\t\t \tfor(i=0;i<n;++i)\n\t\t \t{\n\t\t \t\tx=x+(ten[i]-m)*(ten[i]-m);\n\t\t \t}\n\t\t \tA=x/(double)n;\n\t\t \tdouble a=Math.sqrt(A);\n\t\t \tSystem.out.println(a);\n }", "sum=0", "sum", "0", "m=0.0", "m", "0.0", "x=0.0", "x", "0.0", "A=0.0", "A", "0.0", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n==0) break;", "n==0", "n", "0", "break;", "for(i=0;i<n;++i)\n\t\t \t{\n\t\t \t\tten[i]=sc.nextInt();\n\t\t \t\tsum=sum+ten[i];\n\t\t \t}", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "++i", "++i", "i", "{\n\t\t \t\tten[i]=sc.nextInt();\n\t\t \t\tsum=sum+ten[i];\n\t\t \t}", "{\n\t\t \t\tten[i]=sc.nextInt();\n\t\t \t\tsum=sum+ten[i];\n\t\t \t}", "ten[i]=sc.nextInt()", "ten[i]", "ten", "i", "sc.nextInt()", "sc.nextInt", "sc", "sum=sum+ten[i]", "sum", "sum+ten[i]", "sum", "ten[i]", "ten", "i", "m=(double)sum/(double)n", "m", "(double)sum/(double)n", "(double)sum", "(double)n", "for(i=0;i<n;++i)\n\t\t \t{\n\t\t \t\tx=x+(ten[i]-m)*(ten[i]-m);\n\t\t \t}", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "++i", "++i", "i", "{\n\t\t \t\tx=x+(ten[i]-m)*(ten[i]-m);\n\t\t \t}", "{\n\t\t \t\tx=x+(ten[i]-m)*(ten[i]-m);\n\t\t \t}", "x=x+(ten[i]-m)*(ten[i]-m)", "x", "x+(ten[i]-m)*(ten[i]-m)", "x", "(ten[i]-m)*(ten[i]-m)", "(ten[i]-m)", "ten[i]", "ten", "i", "m", "(ten[i]-m)", "ten[i]", "ten", "i", "m", "A=x/(double)n", "A", "x/(double)n", "x", "(double)n", "double a=Math.sqrt(A);", "a", "Math.sqrt(A)", "Math.sqrt", "Math", "A", "System.out.println(a)", "System.out.println", "System.out", "System", "System.out", "a", "sc.close()", "sc.close", "sc", "String[]args", "args", "public class Main {\n\t public static void main(String[]args){\n\t\t Scanner sc = new Scanner(System.in);\n\t\t int ten[];\n\t\t int i=0;\n\t\t int sum;\n\t\t double m=0.0;\n\t\t double x=0.0;\n\t\t double A=0.0;\n\t\t ten = new int[1000];\n\t\t while(true)\n {\n\t\t \tsum=0;\n\t\t \tm=0.0;\n\t\t\t x=0.0;\n\t\t\t A=0.0;\n\t\t \tint n=sc.nextInt();\n if(n==0) break;\n\t\t \tfor(i=0;i<n;++i)\n\t\t \t{\n\t\t \t\tten[i]=sc.nextInt();\n\t\t \t\tsum=sum+ten[i];\n\t\t \t}\n\t\t \tm=(double)sum/(double)n;\n\t\t \tfor(i=0;i<n;++i)\n\t\t \t{\n\t\t \t\tx=x+(ten[i]-m)*(ten[i]-m);\n\t\t \t}\n\t\t \tA=x/(double)n;\n\t\t \tdouble a=Math.sqrt(A);\n\t\t \tSystem.out.println(a);\n }\n\t\t \tsc.close();\n\t\t }\n}", "public class Main {\n\t public static void main(String[]args){\n\t\t Scanner sc = new Scanner(System.in);\n\t\t int ten[];\n\t\t int i=0;\n\t\t int sum;\n\t\t double m=0.0;\n\t\t double x=0.0;\n\t\t double A=0.0;\n\t\t ten = new int[1000];\n\t\t while(true)\n {\n\t\t \tsum=0;\n\t\t \tm=0.0;\n\t\t\t x=0.0;\n\t\t\t A=0.0;\n\t\t \tint n=sc.nextInt();\n if(n==0) break;\n\t\t \tfor(i=0;i<n;++i)\n\t\t \t{\n\t\t \t\tten[i]=sc.nextInt();\n\t\t \t\tsum=sum+ten[i];\n\t\t \t}\n\t\t \tm=(double)sum/(double)n;\n\t\t \tfor(i=0;i<n;++i)\n\t\t \t{\n\t\t \t\tx=x+(ten[i]-m)*(ten[i]-m);\n\t\t \t}\n\t\t \tA=x/(double)n;\n\t\t \tdouble a=Math.sqrt(A);\n\t\t \tSystem.out.println(a);\n }\n\t\t \tsc.close();\n\t\t }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[]args){ Scanner sc = new Scanner(System.in); int ten[]; int i=0; int sum; double m=0.0; double x=0.0; double A=0.0; ten = new int[1000]; while(true) { sum=0; m=0.0; x=0.0; A=0.0; int n=sc.nextInt(); if(n==0) break; for(i=0;i<n;++i) { ten[i]=sc.nextInt(); sum=sum+ten[i]; } m=(double)sum/(double)n; for(i=0;i<n;++i) { x=x+(ten[i]-m)*(ten[i]-m); } A=x/(double)n; double a=Math.sqrt(A); System.out.println(a); } sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 3, 41, 13, 20, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 0, 18, 13, 13, 4, 18, 13, 41, 13, 2, 13, 13, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 13, 2, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 14, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 52, 53 ], [ 14, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 14, 59 ], [ 59, 60 ], [ 59, 61 ], [ 14, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 67, 68 ], [ 67, 69 ], [ 62, 70 ], [ 70, 71 ], [ 71, 72 ], [ 62, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 77, 85 ], [ 14, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 86, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 95, 96 ], [ 95, 97 ], [ 92, 98 ], [ 6, 99 ], [ 99, 100 ] ]
[ "import java.util.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\tint n = stdIn.nextInt();\n\t\t\tif(n == 0)\n\t\t\t\tbreak;\n\n\t\t\tint[] s = new int[n];\n\t\t\tdouble sum = 0;\n\n\t\t\tfor (int i=0; i<n; i++) {\n\t\t\t\tsum += s[i] = stdIn.nextInt();\n\t\t\t}\n\n\t\t\tdouble m = sum/n;\n\t\t\tsum = 0;\n\n\t\t\tfor (int i=0; i<n; i++) {\n\t\t\t\tsum += Math.pow(s[i]-m,2);\n\t\t\t}\n\t\t\tSystem.out.printf(\"%.5f\\n\",Math.pow((double)sum/n,0.5));\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "class Main {\n\tpublic static void main(String[] args) {\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\tint n = stdIn.nextInt();\n\t\t\tif(n == 0)\n\t\t\t\tbreak;\n\n\t\t\tint[] s = new int[n];\n\t\t\tdouble sum = 0;\n\n\t\t\tfor (int i=0; i<n; i++) {\n\t\t\t\tsum += s[i] = stdIn.nextInt();\n\t\t\t}\n\n\t\t\tdouble m = sum/n;\n\t\t\tsum = 0;\n\n\t\t\tfor (int i=0; i<n; i++) {\n\t\t\t\tsum += Math.pow(s[i]-m,2);\n\t\t\t}\n\t\t\tSystem.out.printf(\"%.5f\\n\",Math.pow((double)sum/n,0.5));\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\tint n = stdIn.nextInt();\n\t\t\tif(n == 0)\n\t\t\t\tbreak;\n\n\t\t\tint[] s = new int[n];\n\t\t\tdouble sum = 0;\n\n\t\t\tfor (int i=0; i<n; i++) {\n\t\t\t\tsum += s[i] = stdIn.nextInt();\n\t\t\t}\n\n\t\t\tdouble m = sum/n;\n\t\t\tsum = 0;\n\n\t\t\tfor (int i=0; i<n; i++) {\n\t\t\t\tsum += Math.pow(s[i]-m,2);\n\t\t\t}\n\t\t\tSystem.out.printf(\"%.5f\\n\",Math.pow((double)sum/n,0.5));\n\t\t}\n\t}", "main", "{\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\tint n = stdIn.nextInt();\n\t\t\tif(n == 0)\n\t\t\t\tbreak;\n\n\t\t\tint[] s = new int[n];\n\t\t\tdouble sum = 0;\n\n\t\t\tfor (int i=0; i<n; i++) {\n\t\t\t\tsum += s[i] = stdIn.nextInt();\n\t\t\t}\n\n\t\t\tdouble m = sum/n;\n\t\t\tsum = 0;\n\n\t\t\tfor (int i=0; i<n; i++) {\n\t\t\t\tsum += Math.pow(s[i]-m,2);\n\t\t\t}\n\t\t\tSystem.out.printf(\"%.5f\\n\",Math.pow((double)sum/n,0.5));\n\t\t}\n\t}", "Scanner stdIn = new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "while(true){\n\t\t\tint n = stdIn.nextInt();\n\t\t\tif(n == 0)\n\t\t\t\tbreak;\n\n\t\t\tint[] s = new int[n];\n\t\t\tdouble sum = 0;\n\n\t\t\tfor (int i=0; i<n; i++) {\n\t\t\t\tsum += s[i] = stdIn.nextInt();\n\t\t\t}\n\n\t\t\tdouble m = sum/n;\n\t\t\tsum = 0;\n\n\t\t\tfor (int i=0; i<n; i++) {\n\t\t\t\tsum += Math.pow(s[i]-m,2);\n\t\t\t}\n\t\t\tSystem.out.printf(\"%.5f\\n\",Math.pow((double)sum/n,0.5));\n\t\t}", "true", "{\n\t\t\tint n = stdIn.nextInt();\n\t\t\tif(n == 0)\n\t\t\t\tbreak;\n\n\t\t\tint[] s = new int[n];\n\t\t\tdouble sum = 0;\n\n\t\t\tfor (int i=0; i<n; i++) {\n\t\t\t\tsum += s[i] = stdIn.nextInt();\n\t\t\t}\n\n\t\t\tdouble m = sum/n;\n\t\t\tsum = 0;\n\n\t\t\tfor (int i=0; i<n; i++) {\n\t\t\t\tsum += Math.pow(s[i]-m,2);\n\t\t\t}\n\t\t\tSystem.out.printf(\"%.5f\\n\",Math.pow((double)sum/n,0.5));\n\t\t}", "int n = stdIn.nextInt();", "n", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "if(n == 0)\n\t\t\t\tbreak;", "n == 0", "n", "0", "break;", "int[] s = new int[n];", "s", "new int[n]", "n", "double sum = 0;", "sum", "0", "for (int i=0; i<n; i++) {\n\t\t\t\tsum += s[i] = stdIn.nextInt();\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tsum += s[i] = stdIn.nextInt();\n\t\t\t}", "{\n\t\t\t\tsum += s[i] = stdIn.nextInt();\n\t\t\t}", "sum += s[i] = stdIn.nextInt()", "sum", "s[i] = stdIn.nextInt()", "s[i]", "s", "i", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "double m = sum/n;", "m", "sum/n", "sum", "n", "sum = 0", "sum", "0", "for (int i=0; i<n; i++) {\n\t\t\t\tsum += Math.pow(s[i]-m,2);\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tsum += Math.pow(s[i]-m,2);\n\t\t\t}", "{\n\t\t\t\tsum += Math.pow(s[i]-m,2);\n\t\t\t}", "sum += Math.pow(s[i]-m,2)", "sum", "Math.pow(s[i]-m,2)", "Math.pow", "Math", "s[i]-m", "s[i]", "s", "i", "m", "2", "System.out.printf(\"%.5f\\n\",Math.pow((double)sum/n,0.5))", "System.out.printf", "System.out", "System", "System.out", "\"%.5f\\n\"", "Math.pow((double)sum/n,0.5)", "Math.pow", "Math", "(double)sum/n", "(double)sum", "n", "0.5", "String[] args", "args" ]
import java.util.*; class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); while(true){ int n = stdIn.nextInt(); if(n == 0) break; int[] s = new int[n]; double sum = 0; for (int i=0; i<n; i++) { sum += s[i] = stdIn.nextInt(); } double m = sum/n; sum = 0; for (int i=0; i<n; i++) { sum += Math.pow(s[i]-m,2); } System.out.printf("%.5f\n",Math.pow((double)sum/n,0.5)); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 20, 41, 13, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 20, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 0, 13, 18, 13, 13, 0, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 0, 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 ], [ 139, 11 ], [ 139, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 15, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 30, 37 ], [ 28, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 38, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 38, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 38, 56 ], [ 56, 57 ], [ 56, 58 ], [ 38, 60 ], [ 60, 61 ], [ 60, 62 ], [ 38, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 68, 69 ], [ 68, 70 ], [ 63, 71 ], [ 71, 72 ], [ 72, 73 ], [ 63, 74 ], [ 75, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 83, 84 ], [ 83, 85 ], [ 75, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 38, 91 ], [ 91, 92 ], [ 91, 93 ], [ 38, 94 ], [ 94, 95 ], [ 94, 96 ], [ 38, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 102, 103 ], [ 102, 104 ], [ 97, 105 ], [ 105, 106 ], [ 106, 107 ], [ 97, 108 ], [ 109, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 113, 114 ], [ 112, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 112, 120 ], [ 38, 121 ], [ 121, 122 ], [ 121, 123 ], [ 38, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 38, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 130, 135 ], [ 12, 136 ], [ 136, 137 ], [ 0, 138 ], [ 138, 139 ], [ 138, 140 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str;\n\t\t\twhile(!(str = reader.readLine()).equals(\"0\")) {\n\t\t\t\tint n = Integer.parseInt(str);\n\t\t\t\n\t\t\t\tstr = reader.readLine();\n\t\t\t\tString[] score = str.split(\" \");\n\t\t\t\n\t\t\t\tdouble s[] = new double[n];\n\t\t\t\tdouble m = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\ts[i] = Double.parseDouble(score[i]);\n\t\t\t\t\tm += s[i];\n\t\t\t\t}\n\t\t\t\tm /= n;\n\t\t\t\tdouble a2 = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\ta2 += Math.pow(s[i] - m, 2.0);\n\t\t\t\t}\n\t\t\t\ta2 /= n;\n\t\t\t\tdouble a = Math.sqrt(a2);\n\t\t\t\tSystem.out.println(a);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str;\n\t\t\twhile(!(str = reader.readLine()).equals(\"0\")) {\n\t\t\t\tint n = Integer.parseInt(str);\n\t\t\t\n\t\t\t\tstr = reader.readLine();\n\t\t\t\tString[] score = str.split(\" \");\n\t\t\t\n\t\t\t\tdouble s[] = new double[n];\n\t\t\t\tdouble m = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\ts[i] = Double.parseDouble(score[i]);\n\t\t\t\t\tm += s[i];\n\t\t\t\t}\n\t\t\t\tm /= n;\n\t\t\t\tdouble a2 = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\ta2 += Math.pow(s[i] - m, 2.0);\n\t\t\t\t}\n\t\t\t\ta2 /= n;\n\t\t\t\tdouble a = Math.sqrt(a2);\n\t\t\t\tSystem.out.println(a);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\ttry {\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str;\n\t\t\twhile(!(str = reader.readLine()).equals(\"0\")) {\n\t\t\t\tint n = Integer.parseInt(str);\n\t\t\t\n\t\t\t\tstr = reader.readLine();\n\t\t\t\tString[] score = str.split(\" \");\n\t\t\t\n\t\t\t\tdouble s[] = new double[n];\n\t\t\t\tdouble m = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\ts[i] = Double.parseDouble(score[i]);\n\t\t\t\t\tm += s[i];\n\t\t\t\t}\n\t\t\t\tm /= n;\n\t\t\t\tdouble a2 = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\ta2 += Math.pow(s[i] - m, 2.0);\n\t\t\t\t}\n\t\t\t\ta2 /= n;\n\t\t\t\tdouble a = Math.sqrt(a2);\n\t\t\t\tSystem.out.println(a);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "main", "{\n\t\ttry {\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str;\n\t\t\twhile(!(str = reader.readLine()).equals(\"0\")) {\n\t\t\t\tint n = Integer.parseInt(str);\n\t\t\t\n\t\t\t\tstr = reader.readLine();\n\t\t\t\tString[] score = str.split(\" \");\n\t\t\t\n\t\t\t\tdouble s[] = new double[n];\n\t\t\t\tdouble m = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\ts[i] = Double.parseDouble(score[i]);\n\t\t\t\t\tm += s[i];\n\t\t\t\t}\n\t\t\t\tm /= n;\n\t\t\t\tdouble a2 = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\ta2 += Math.pow(s[i] - m, 2.0);\n\t\t\t\t}\n\t\t\t\ta2 /= n;\n\t\t\t\tdouble a = Math.sqrt(a2);\n\t\t\t\tSystem.out.println(a);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "try {\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str;\n\t\t\twhile(!(str = reader.readLine()).equals(\"0\")) {\n\t\t\t\tint n = Integer.parseInt(str);\n\t\t\t\n\t\t\t\tstr = reader.readLine();\n\t\t\t\tString[] score = str.split(\" \");\n\t\t\t\n\t\t\t\tdouble s[] = new double[n];\n\t\t\t\tdouble m = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\ts[i] = Double.parseDouble(score[i]);\n\t\t\t\t\tm += s[i];\n\t\t\t\t}\n\t\t\t\tm /= n;\n\t\t\t\tdouble a2 = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\ta2 += Math.pow(s[i] - m, 2.0);\n\t\t\t\t}\n\t\t\t\ta2 /= n;\n\t\t\t\tdouble a = Math.sqrt(a2);\n\t\t\t\tSystem.out.println(a);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "IOException e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str;\n\t\t\twhile(!(str = reader.readLine()).equals(\"0\")) {\n\t\t\t\tint n = Integer.parseInt(str);\n\t\t\t\n\t\t\t\tstr = reader.readLine();\n\t\t\t\tString[] score = str.split(\" \");\n\t\t\t\n\t\t\t\tdouble s[] = new double[n];\n\t\t\t\tdouble m = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\ts[i] = Double.parseDouble(score[i]);\n\t\t\t\t\tm += s[i];\n\t\t\t\t}\n\t\t\t\tm /= n;\n\t\t\t\tdouble a2 = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\ta2 += Math.pow(s[i] - m, 2.0);\n\t\t\t\t}\n\t\t\t\ta2 /= n;\n\t\t\t\tdouble a = Math.sqrt(a2);\n\t\t\t\tSystem.out.println(a);\n\t\t\t}\n\t\t}", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "String str;", "str", "while(!(str = reader.readLine()).equals(\"0\")) {\n\t\t\t\tint n = Integer.parseInt(str);\n\t\t\t\n\t\t\t\tstr = reader.readLine();\n\t\t\t\tString[] score = str.split(\" \");\n\t\t\t\n\t\t\t\tdouble s[] = new double[n];\n\t\t\t\tdouble m = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\ts[i] = Double.parseDouble(score[i]);\n\t\t\t\t\tm += s[i];\n\t\t\t\t}\n\t\t\t\tm /= n;\n\t\t\t\tdouble a2 = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\ta2 += Math.pow(s[i] - m, 2.0);\n\t\t\t\t}\n\t\t\t\ta2 /= n;\n\t\t\t\tdouble a = Math.sqrt(a2);\n\t\t\t\tSystem.out.println(a);\n\t\t\t}", "!(str = reader.readLine()).equals(\"0\")", "(str = reader.readLine()).equals(\"0\")", "(str = reader.readLine()).equals", "(str = reader.readLine())", "str", "reader.readLine()", "reader.readLine", "reader", "\"0\"", "{\n\t\t\t\tint n = Integer.parseInt(str);\n\t\t\t\n\t\t\t\tstr = reader.readLine();\n\t\t\t\tString[] score = str.split(\" \");\n\t\t\t\n\t\t\t\tdouble s[] = new double[n];\n\t\t\t\tdouble m = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\ts[i] = Double.parseDouble(score[i]);\n\t\t\t\t\tm += s[i];\n\t\t\t\t}\n\t\t\t\tm /= n;\n\t\t\t\tdouble a2 = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\ta2 += Math.pow(s[i] - m, 2.0);\n\t\t\t\t}\n\t\t\t\ta2 /= n;\n\t\t\t\tdouble a = Math.sqrt(a2);\n\t\t\t\tSystem.out.println(a);\n\t\t\t}", "int n = Integer.parseInt(str);", "n", "Integer.parseInt(str)", "Integer.parseInt", "Integer", "str", "str = reader.readLine()", "str", "reader.readLine()", "reader.readLine", "reader", "String[] score = str.split(\" \");", "score", "str.split(\" \")", "str.split", "str", "\" \"", "double s[] = new double[n];", "s", "new double[n]", "n", "double m = 0;", "m", "0", "for (int i = 0; i < n; i++) {\n\t\t\t\t\ts[i] = Double.parseDouble(score[i]);\n\t\t\t\t\tm += s[i];\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\t\ts[i] = Double.parseDouble(score[i]);\n\t\t\t\t\tm += s[i];\n\t\t\t\t}", "{\n\t\t\t\t\ts[i] = Double.parseDouble(score[i]);\n\t\t\t\t\tm += s[i];\n\t\t\t\t}", "s[i] = Double.parseDouble(score[i])", "s[i]", "s", "i", "Double.parseDouble(score[i])", "Double.parseDouble", "Double", "score[i]", "score", "i", "m += s[i]", "m", "s[i]", "s", "i", "m /= n", "m", "n", "double a2 = 0;", "a2", "0", "for (int i = 0; i < n; i++) {\n\t\t\t\t\ta2 += Math.pow(s[i] - m, 2.0);\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\t\ta2 += Math.pow(s[i] - m, 2.0);\n\t\t\t\t}", "{\n\t\t\t\t\ta2 += Math.pow(s[i] - m, 2.0);\n\t\t\t\t}", "a2 += Math.pow(s[i] - m, 2.0)", "a2", "Math.pow(s[i] - m, 2.0)", "Math.pow", "Math", "s[i] - m", "s[i]", "s", "i", "m", "2.0", "a2 /= n", "a2", "n", "double a = Math.sqrt(a2);", "a", "Math.sqrt(a2)", "Math.sqrt", "Math", "a2", "System.out.println(a)", "System.out.println", "System.out", "System", "System.out", "a", "String[] args", "args", "public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str;\n\t\t\twhile(!(str = reader.readLine()).equals(\"0\")) {\n\t\t\t\tint n = Integer.parseInt(str);\n\t\t\t\n\t\t\t\tstr = reader.readLine();\n\t\t\t\tString[] score = str.split(\" \");\n\t\t\t\n\t\t\t\tdouble s[] = new double[n];\n\t\t\t\tdouble m = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\ts[i] = Double.parseDouble(score[i]);\n\t\t\t\t\tm += s[i];\n\t\t\t\t}\n\t\t\t\tm /= n;\n\t\t\t\tdouble a2 = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\ta2 += Math.pow(s[i] - m, 2.0);\n\t\t\t\t}\n\t\t\t\ta2 /= n;\n\t\t\t\tdouble a = Math.sqrt(a2);\n\t\t\t\tSystem.out.println(a);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str;\n\t\t\twhile(!(str = reader.readLine()).equals(\"0\")) {\n\t\t\t\tint n = Integer.parseInt(str);\n\t\t\t\n\t\t\t\tstr = reader.readLine();\n\t\t\t\tString[] score = str.split(\" \");\n\t\t\t\n\t\t\t\tdouble s[] = new double[n];\n\t\t\t\tdouble m = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\ts[i] = Double.parseDouble(score[i]);\n\t\t\t\t\tm += s[i];\n\t\t\t\t}\n\t\t\t\tm /= n;\n\t\t\t\tdouble a2 = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\ta2 += Math.pow(s[i] - m, 2.0);\n\t\t\t\t}\n\t\t\t\ta2 /= n;\n\t\t\t\tdouble a = Math.sqrt(a2);\n\t\t\t\tSystem.out.println(a);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { try { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String str; while(!(str = reader.readLine()).equals("0")) { int n = Integer.parseInt(str); str = reader.readLine(); String[] score = str.split(" "); double s[] = new double[n]; double m = 0; for (int i = 0; i < n; i++) { s[i] = Double.parseDouble(score[i]); m += s[i]; } m /= n; double a2 = 0; for (int i = 0; i < n; i++) { a2 += Math.pow(s[i] - m, 2.0); } a2 /= n; double a = Math.sqrt(a2); System.out.println(a); } } catch (IOException e) { e.printStackTrace(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 17, 41, 13, 41, 13, 41, 13, 41, 13, 17, 0, 13, 20, 17, 42, 17, 30, 0, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 2, 13, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 13, 0, 13, 17, 0, 13, 17, 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 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 8, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 34, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 44, 45 ], [ 34, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 51, 52 ], [ 51, 53 ], [ 46, 54 ], [ 54, 55 ], [ 55, 56 ], [ 46, 57 ], [ 58, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 64, 65 ], [ 58, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 34, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 34, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 81, 82 ], [ 81, 83 ], [ 76, 84 ], [ 84, 85 ], [ 85, 86 ], [ 76, 87 ], [ 88, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 91, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 34, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 104, 106 ], [ 34, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 112, 113 ], [ 113, 114 ], [ 112, 115 ], [ 34, 116 ], [ 116, 117 ], [ 116, 118 ], [ 34, 119 ], [ 119, 120 ], [ 119, 121 ], [ 6, 122 ], [ 122, 123 ], [ 0, 124 ], [ 124, 125 ], [ 124, 126 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n \n int n,i,sum1=0;\n int[] score;\n double ave,div,sum2=0;\n\n score = new int[1000];\n\n while(true){\n n=scan.nextInt();\n if(n==0){\n break;\n }\n\n for(i=0;i<n;i++){\n score[i]=scan.nextInt();\n sum1+=score[i];\n }\n\n ave=(double)sum1/n;\n \n for(i=0;i<n;i++){\n sum2+=((score[i]-ave)*(score[i]-ave));\n }\n div=(double)sum2/n;\n\n System.out.println(Math.sqrt(div));\n\n sum1=0;\n sum2=0;\n }\n\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n \n int n,i,sum1=0;\n int[] score;\n double ave,div,sum2=0;\n\n score = new int[1000];\n\n while(true){\n n=scan.nextInt();\n if(n==0){\n break;\n }\n\n for(i=0;i<n;i++){\n score[i]=scan.nextInt();\n sum1+=score[i];\n }\n\n ave=(double)sum1/n;\n \n for(i=0;i<n;i++){\n sum2+=((score[i]-ave)*(score[i]-ave));\n }\n div=(double)sum2/n;\n\n System.out.println(Math.sqrt(div));\n\n sum1=0;\n sum2=0;\n }\n\n }\n}", "Main", "public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n \n int n,i,sum1=0;\n int[] score;\n double ave,div,sum2=0;\n\n score = new int[1000];\n\n while(true){\n n=scan.nextInt();\n if(n==0){\n break;\n }\n\n for(i=0;i<n;i++){\n score[i]=scan.nextInt();\n sum1+=score[i];\n }\n\n ave=(double)sum1/n;\n \n for(i=0;i<n;i++){\n sum2+=((score[i]-ave)*(score[i]-ave));\n }\n div=(double)sum2/n;\n\n System.out.println(Math.sqrt(div));\n\n sum1=0;\n sum2=0;\n }\n\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n \n int n,i,sum1=0;\n int[] score;\n double ave,div,sum2=0;\n\n score = new int[1000];\n\n while(true){\n n=scan.nextInt();\n if(n==0){\n break;\n }\n\n for(i=0;i<n;i++){\n score[i]=scan.nextInt();\n sum1+=score[i];\n }\n\n ave=(double)sum1/n;\n \n for(i=0;i<n;i++){\n sum2+=((score[i]-ave)*(score[i]-ave));\n }\n div=(double)sum2/n;\n\n System.out.println(Math.sqrt(div));\n\n sum1=0;\n sum2=0;\n }\n\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n", "n", "i", "i", "sum1=0;", "sum1", "0", "int[] score;", "score", "double ave", "ave", "div", "div", "sum2=0;", "sum2", "0", "score = new int[1000]", "score", "new int[1000]", "1000", "while(true){\n n=scan.nextInt();\n if(n==0){\n break;\n }\n\n for(i=0;i<n;i++){\n score[i]=scan.nextInt();\n sum1+=score[i];\n }\n\n ave=(double)sum1/n;\n \n for(i=0;i<n;i++){\n sum2+=((score[i]-ave)*(score[i]-ave));\n }\n div=(double)sum2/n;\n\n System.out.println(Math.sqrt(div));\n\n sum1=0;\n sum2=0;\n }", "true", "{\n n=scan.nextInt();\n if(n==0){\n break;\n }\n\n for(i=0;i<n;i++){\n score[i]=scan.nextInt();\n sum1+=score[i];\n }\n\n ave=(double)sum1/n;\n \n for(i=0;i<n;i++){\n sum2+=((score[i]-ave)*(score[i]-ave));\n }\n div=(double)sum2/n;\n\n System.out.println(Math.sqrt(div));\n\n sum1=0;\n sum2=0;\n }", "n=scan.nextInt()", "n", "scan.nextInt()", "scan.nextInt", "scan", "if(n==0){\n break;\n }", "n==0", "n", "0", "{\n break;\n }", "break;", "for(i=0;i<n;i++){\n score[i]=scan.nextInt();\n sum1+=score[i];\n }", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n score[i]=scan.nextInt();\n sum1+=score[i];\n }", "{\n score[i]=scan.nextInt();\n sum1+=score[i];\n }", "score[i]=scan.nextInt()", "score[i]", "score", "i", "scan.nextInt()", "scan.nextInt", "scan", "sum1+=score[i]", "sum1", "score[i]", "score", "i", "ave=(double)sum1/n", "ave", "(double)sum1/n", "(double)sum1", "n", "for(i=0;i<n;i++){\n sum2+=((score[i]-ave)*(score[i]-ave));\n }", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n sum2+=((score[i]-ave)*(score[i]-ave));\n }", "{\n sum2+=((score[i]-ave)*(score[i]-ave));\n }", "sum2+=((score[i]-ave)*(score[i]-ave))", "sum2", "((score[i]-ave)*(score[i]-ave))", "(score[i]-ave)", "score[i]", "score", "i", "ave", "(score[i]-ave)", "score[i]", "score", "i", "ave", "div=(double)sum2/n", "div", "(double)sum2/n", "(double)sum2", "n", "System.out.println(Math.sqrt(div))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(div)", "Math.sqrt", "Math", "div", "sum1=0", "sum1", "0", "sum2=0", "sum2", "0", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n \n int n,i,sum1=0;\n int[] score;\n double ave,div,sum2=0;\n\n score = new int[1000];\n\n while(true){\n n=scan.nextInt();\n if(n==0){\n break;\n }\n\n for(i=0;i<n;i++){\n score[i]=scan.nextInt();\n sum1+=score[i];\n }\n\n ave=(double)sum1/n;\n \n for(i=0;i<n;i++){\n sum2+=((score[i]-ave)*(score[i]-ave));\n }\n div=(double)sum2/n;\n\n System.out.println(Math.sqrt(div));\n\n sum1=0;\n sum2=0;\n }\n\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n \n int n,i,sum1=0;\n int[] score;\n double ave,div,sum2=0;\n\n score = new int[1000];\n\n while(true){\n n=scan.nextInt();\n if(n==0){\n break;\n }\n\n for(i=0;i<n;i++){\n score[i]=scan.nextInt();\n sum1+=score[i];\n }\n\n ave=(double)sum1/n;\n \n for(i=0;i<n;i++){\n sum2+=((score[i]-ave)*(score[i]-ave));\n }\n div=(double)sum2/n;\n\n System.out.println(Math.sqrt(div));\n\n sum1=0;\n sum2=0;\n }\n\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n,i,sum1=0; int[] score; double ave,div,sum2=0; score = new int[1000]; while(true){ n=scan.nextInt(); if(n==0){ break; } for(i=0;i<n;i++){ score[i]=scan.nextInt(); sum1+=score[i]; } ave=(double)sum1/n; for(i=0;i<n;i++){ sum2+=((score[i]-ave)*(score[i]-ave)); } div=(double)sum2/n; System.out.println(Math.sqrt(div)); sum1=0; sum2=0; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 4, 18, 13, 14, 2, 13, 17, 3, 41, 13, 20, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 2, 18, 13, 13, 18, 13, 13, 41, 13, 2, 13, 13, 41, 13, 2, 2, 13, 13, 2, 13, 13, 4, 18, 18, 13, 13, 17, 4, 18, 13, 2, 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 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 17, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 14, 32 ], [ 32, 33 ], [ 32, 34 ], [ 14, 35 ], [ 35, 36 ], [ 35, 37 ], [ 14, 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 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 58, 59 ], [ 59, 60 ], [ 50, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 50, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 72, 74 ], [ 14, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 14, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 86, 88 ], [ 14, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 89, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 98, 99 ], [ 98, 100 ], [ 6, 101 ], [ 101, 102 ], [ 0, 103 ], [ 103, 104 ], [ 103, 105 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n int n = Integer.parseInt(sc.next());\n if(n == 0) break;\n int a[] = new int[n];\n double sum = 0;\n double sum2 = 0;\n for(int i = 0; i < n; i++){\n a[i] = Integer.parseInt(sc.next());\n sum += a[i];\n sum2 += a[i] * a[i];\n }\n double a1 = sum2 / n;\n double a2 = (sum / n) * (sum / n);\n System.out.printf(\"%f\\n\", Math.sqrt(a1 - a2));\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n int n = Integer.parseInt(sc.next());\n if(n == 0) break;\n int a[] = new int[n];\n double sum = 0;\n double sum2 = 0;\n for(int i = 0; i < n; i++){\n a[i] = Integer.parseInt(sc.next());\n sum += a[i];\n sum2 += a[i] * a[i];\n }\n double a1 = sum2 / n;\n double a2 = (sum / n) * (sum / n);\n System.out.printf(\"%f\\n\", Math.sqrt(a1 - a2));\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n int n = Integer.parseInt(sc.next());\n if(n == 0) break;\n int a[] = new int[n];\n double sum = 0;\n double sum2 = 0;\n for(int i = 0; i < n; i++){\n a[i] = Integer.parseInt(sc.next());\n sum += a[i];\n sum2 += a[i] * a[i];\n }\n double a1 = sum2 / n;\n double a2 = (sum / n) * (sum / n);\n System.out.printf(\"%f\\n\", Math.sqrt(a1 - a2));\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n while(true){\n int n = Integer.parseInt(sc.next());\n if(n == 0) break;\n int a[] = new int[n];\n double sum = 0;\n double sum2 = 0;\n for(int i = 0; i < n; i++){\n a[i] = Integer.parseInt(sc.next());\n sum += a[i];\n sum2 += a[i] * a[i];\n }\n double a1 = sum2 / n;\n double a2 = (sum / n) * (sum / n);\n System.out.printf(\"%f\\n\", Math.sqrt(a1 - a2));\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n int n = Integer.parseInt(sc.next());\n if(n == 0) break;\n int a[] = new int[n];\n double sum = 0;\n double sum2 = 0;\n for(int i = 0; i < n; i++){\n a[i] = Integer.parseInt(sc.next());\n sum += a[i];\n sum2 += a[i] * a[i];\n }\n double a1 = sum2 / n;\n double a2 = (sum / n) * (sum / n);\n System.out.printf(\"%f\\n\", Math.sqrt(a1 - a2));\n }", "true", "{\n int n = Integer.parseInt(sc.next());\n if(n == 0) break;\n int a[] = new int[n];\n double sum = 0;\n double sum2 = 0;\n for(int i = 0; i < n; i++){\n a[i] = Integer.parseInt(sc.next());\n sum += a[i];\n sum2 += a[i] * a[i];\n }\n double a1 = sum2 / n;\n double a2 = (sum / n) * (sum / n);\n System.out.printf(\"%f\\n\", Math.sqrt(a1 - a2));\n }", "int n = Integer.parseInt(sc.next());", "n", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "if(n == 0) break;", "n == 0", "n", "0", "break;", "int a[] = new int[n];", "a", "new int[n]", "n", "double sum = 0;", "sum", "0", "double sum2 = 0;", "sum2", "0", "for(int i = 0; i < n; i++){\n a[i] = Integer.parseInt(sc.next());\n sum += a[i];\n sum2 += a[i] * a[i];\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n a[i] = Integer.parseInt(sc.next());\n sum += a[i];\n sum2 += a[i] * a[i];\n }", "{\n a[i] = Integer.parseInt(sc.next());\n sum += a[i];\n sum2 += a[i] * a[i];\n }", "a[i] = Integer.parseInt(sc.next())", "a[i]", "a", "i", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "sum += a[i]", "sum", "a[i]", "a", "i", "sum2 += a[i] * a[i]", "sum2", "a[i] * a[i]", "a[i]", "a", "i", "a[i]", "a", "i", "double a1 = sum2 / n;", "a1", "sum2 / n", "sum2", "n", "double a2 = (sum / n) * (sum / n);", "a2", "(sum / n) * (sum / n)", "(sum / n)", "sum", "n", "(sum / n)", "sum", "n", "System.out.printf(\"%f\\n\", Math.sqrt(a1 - a2))", "System.out.printf", "System.out", "System", "System.out", "\"%f\\n\"", "Math.sqrt(a1 - a2)", "Math.sqrt", "Math", "a1 - a2", "a1", "a2", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n int n = Integer.parseInt(sc.next());\n if(n == 0) break;\n int a[] = new int[n];\n double sum = 0;\n double sum2 = 0;\n for(int i = 0; i < n; i++){\n a[i] = Integer.parseInt(sc.next());\n sum += a[i];\n sum2 += a[i] * a[i];\n }\n double a1 = sum2 / n;\n double a2 = (sum / n) * (sum / n);\n System.out.printf(\"%f\\n\", Math.sqrt(a1 - a2));\n }\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n int n = Integer.parseInt(sc.next());\n if(n == 0) break;\n int a[] = new int[n];\n double sum = 0;\n double sum2 = 0;\n for(int i = 0; i < n; i++){\n a[i] = Integer.parseInt(sc.next());\n sum += a[i];\n sum2 += a[i] * a[i];\n }\n double a1 = sum2 / n;\n double a2 = (sum / n) * (sum / n);\n System.out.printf(\"%f\\n\", Math.sqrt(a1 - a2));\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(true){ int n = Integer.parseInt(sc.next()); if(n == 0) break; int a[] = new int[n]; double sum = 0; double sum2 = 0; for(int i = 0; i < n; i++){ a[i] = Integer.parseInt(sc.next()); sum += a[i]; sum2 += a[i] * a[i]; } double a1 = sum2 / n; double a2 = (sum / n) * (sum / n); System.out.printf("%f\n", Math.sqrt(a1 - a2)); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 17, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 41, 13, 2, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 4, 18, 13, 2, 4, 18, 13, 4, 18, 13, 2, 13, 13, 17, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 144, 20 ], [ 144, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 27, 28 ], [ 27, 29 ], [ 23, 30 ], [ 30, 31 ], [ 30, 32 ], [ 23, 33 ], [ 33, 34 ], [ 23, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 37, 44 ], [ 35, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 45, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 54, 59 ], [ 45, 60 ], [ 60, 61 ], [ 60, 62 ], [ 45, 63 ], [ 63, 64 ], [ 63, 65 ], [ 45, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 72, 73 ], [ 72, 74 ], [ 67, 75 ], [ 75, 76 ], [ 76, 77 ], [ 67, 78 ], [ 79, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 89, 90 ], [ 89, 91 ], [ 45, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 45, 97 ], [ 97, 98 ], [ 97, 99 ], [ 45, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 105, 106 ], [ 105, 107 ], [ 100, 108 ], [ 108, 109 ], [ 109, 110 ], [ 100, 111 ], [ 112, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 118, 122 ], [ 115, 123 ], [ 45, 124 ], [ 124, 125 ], [ 125, 126 ], [ 124, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 128, 131 ], [ 131, 132 ], [ 132, 133 ], [ 131, 134 ], [ 134, 135 ], [ 134, 136 ], [ 127, 137 ], [ 23, 138 ], [ 138, 139 ], [ 139, 140 ], [ 21, 141 ], [ 141, 142 ], [ 0, 143 ], [ 143, 144 ], [ 143, 145 ] ]
[ "import java.io.BufferedReader;\nimport java.io.BufferedWriter;\nimport java.io.InputStreamReader;\nimport java.io.OutputStreamWriter;\nimport java.io.IOException;\nimport java.text.DecimalFormat;\n\npublic class Main {\n\n public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n DecimalFormat df = new DecimalFormat(\"0.00000000\");\n String input;\n while (!(input = br.readLine()).equals(\"0\")) {\n int n = Integer.parseInt(input);\n String[] st = br.readLine().split(\" \");\n double sum = 0;\n double[] s = new double[n];\n for (int i = 0; i < n; i++) {\n sum += s[i] = Double.parseDouble(st[i]);\n }\n double m = sum / (double) n;\n double result = 0;\n for (int i = 0; i < n; i++) {\n result += Math.pow(s[i] - m, 2);\n }\n bw.append(df.format(Math.sqrt(result / (double) n)) + \"\\n\");\n }\n bw.flush();\n }\n\n\n}\n", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.BufferedWriter;", "BufferedWriter", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.OutputStreamWriter;", "OutputStreamWriter", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.text.DecimalFormat;", "DecimalFormat", "java.text", "public class Main {\n\n public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n DecimalFormat df = new DecimalFormat(\"0.00000000\");\n String input;\n while (!(input = br.readLine()).equals(\"0\")) {\n int n = Integer.parseInt(input);\n String[] st = br.readLine().split(\" \");\n double sum = 0;\n double[] s = new double[n];\n for (int i = 0; i < n; i++) {\n sum += s[i] = Double.parseDouble(st[i]);\n }\n double m = sum / (double) n;\n double result = 0;\n for (int i = 0; i < n; i++) {\n result += Math.pow(s[i] - m, 2);\n }\n bw.append(df.format(Math.sqrt(result / (double) n)) + \"\\n\");\n }\n bw.flush();\n }\n\n\n}", "Main", "public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n DecimalFormat df = new DecimalFormat(\"0.00000000\");\n String input;\n while (!(input = br.readLine()).equals(\"0\")) {\n int n = Integer.parseInt(input);\n String[] st = br.readLine().split(\" \");\n double sum = 0;\n double[] s = new double[n];\n for (int i = 0; i < n; i++) {\n sum += s[i] = Double.parseDouble(st[i]);\n }\n double m = sum / (double) n;\n double result = 0;\n for (int i = 0; i < n; i++) {\n result += Math.pow(s[i] - m, 2);\n }\n bw.append(df.format(Math.sqrt(result / (double) n)) + \"\\n\");\n }\n bw.flush();\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n DecimalFormat df = new DecimalFormat(\"0.00000000\");\n String input;\n while (!(input = br.readLine()).equals(\"0\")) {\n int n = Integer.parseInt(input);\n String[] st = br.readLine().split(\" \");\n double sum = 0;\n double[] s = new double[n];\n for (int i = 0; i < n; i++) {\n sum += s[i] = Double.parseDouble(st[i]);\n }\n double m = sum / (double) n;\n double result = 0;\n for (int i = 0; i < n; i++) {\n result += Math.pow(s[i] - m, 2);\n }\n bw.append(df.format(Math.sqrt(result / (double) n)) + \"\\n\");\n }\n bw.flush();\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));", "bw", "new BufferedWriter(new OutputStreamWriter(System.out))", "DecimalFormat df = new DecimalFormat(\"0.00000000\");", "df", "new DecimalFormat(\"0.00000000\")", "String input;", "input", "while (!(input = br.readLine()).equals(\"0\")) {\n int n = Integer.parseInt(input);\n String[] st = br.readLine().split(\" \");\n double sum = 0;\n double[] s = new double[n];\n for (int i = 0; i < n; i++) {\n sum += s[i] = Double.parseDouble(st[i]);\n }\n double m = sum / (double) n;\n double result = 0;\n for (int i = 0; i < n; i++) {\n result += Math.pow(s[i] - m, 2);\n }\n bw.append(df.format(Math.sqrt(result / (double) n)) + \"\\n\");\n }", "!(input = br.readLine()).equals(\"0\")", "(input = br.readLine()).equals(\"0\")", "(input = br.readLine()).equals", "(input = br.readLine())", "input", "br.readLine()", "br.readLine", "br", "\"0\"", "{\n int n = Integer.parseInt(input);\n String[] st = br.readLine().split(\" \");\n double sum = 0;\n double[] s = new double[n];\n for (int i = 0; i < n; i++) {\n sum += s[i] = Double.parseDouble(st[i]);\n }\n double m = sum / (double) n;\n double result = 0;\n for (int i = 0; i < n; i++) {\n result += Math.pow(s[i] - m, 2);\n }\n bw.append(df.format(Math.sqrt(result / (double) n)) + \"\\n\");\n }", "int n = Integer.parseInt(input);", "n", "Integer.parseInt(input)", "Integer.parseInt", "Integer", "input", "String[] st = br.readLine().split(\" \");", "st", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "double sum = 0;", "sum", "0", "double[] s = new double[n];", "s", "new double[n]", "n", "for (int i = 0; i < n; i++) {\n sum += s[i] = Double.parseDouble(st[i]);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n sum += s[i] = Double.parseDouble(st[i]);\n }", "{\n sum += s[i] = Double.parseDouble(st[i]);\n }", "sum += s[i] = Double.parseDouble(st[i])", "sum", "s[i] = Double.parseDouble(st[i])", "s[i]", "s", "i", "Double.parseDouble(st[i])", "Double.parseDouble", "Double", "st[i]", "st", "i", "double m = sum / (double) n;", "m", "sum / (double) n", "sum", "(double) n", "double result = 0;", "result", "0", "for (int i = 0; i < n; i++) {\n result += Math.pow(s[i] - m, 2);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n result += Math.pow(s[i] - m, 2);\n }", "{\n result += Math.pow(s[i] - m, 2);\n }", "result += Math.pow(s[i] - m, 2)", "result", "Math.pow(s[i] - m, 2)", "Math.pow", "Math", "s[i] - m", "s[i]", "s", "i", "m", "2", "bw.append(df.format(Math.sqrt(result / (double) n)) + \"\\n\")", "bw.append", "bw", "df.format(Math.sqrt(result / (double) n)) + \"\\n\"", "df.format(Math.sqrt(result / (double) n))", "df.format", "df", "Math.sqrt(result / (double) n)", "Math.sqrt", "Math", "result / (double) n", "result", "(double) n", "\"\\n\"", "bw.flush()", "bw.flush", "bw", "String args[]", "args", "public class Main {\n\n public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n DecimalFormat df = new DecimalFormat(\"0.00000000\");\n String input;\n while (!(input = br.readLine()).equals(\"0\")) {\n int n = Integer.parseInt(input);\n String[] st = br.readLine().split(\" \");\n double sum = 0;\n double[] s = new double[n];\n for (int i = 0; i < n; i++) {\n sum += s[i] = Double.parseDouble(st[i]);\n }\n double m = sum / (double) n;\n double result = 0;\n for (int i = 0; i < n; i++) {\n result += Math.pow(s[i] - m, 2);\n }\n bw.append(df.format(Math.sqrt(result / (double) n)) + \"\\n\");\n }\n bw.flush();\n }\n\n\n}", "public class Main {\n\n public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n DecimalFormat df = new DecimalFormat(\"0.00000000\");\n String input;\n while (!(input = br.readLine()).equals(\"0\")) {\n int n = Integer.parseInt(input);\n String[] st = br.readLine().split(\" \");\n double sum = 0;\n double[] s = new double[n];\n for (int i = 0; i < n; i++) {\n sum += s[i] = Double.parseDouble(st[i]);\n }\n double m = sum / (double) n;\n double result = 0;\n for (int i = 0; i < n; i++) {\n result += Math.pow(s[i] - m, 2);\n }\n bw.append(df.format(Math.sqrt(result / (double) n)) + \"\\n\");\n }\n bw.flush();\n }\n\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.IOException; import java.text.DecimalFormat; public class Main { public static void main(String args[]) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); DecimalFormat df = new DecimalFormat("0.00000000"); String input; while (!(input = br.readLine()).equals("0")) { int n = Integer.parseInt(input); String[] st = br.readLine().split(" "); double sum = 0; double[] s = new double[n]; for (int i = 0; i < n; i++) { sum += s[i] = Double.parseDouble(st[i]); } double m = sum / (double) n; double result = 0; for (int i = 0; i < n; i++) { result += Math.pow(s[i] - m, 2); } bw.append(df.format(Math.sqrt(result / (double) n)) + "\n"); } bw.flush(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 42, 17, 30, 0, 13, 17, 0, 13, 17, 41, 13, 4, 18, 13, 14, 2, 13, 17, 3, 41, 13, 20, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 2, 13, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 0, 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 ], [ 115, 5 ], [ 115, 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 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 26, 28 ], [ 22, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 22, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 22, 39 ], [ 39, 40 ], [ 39, 41 ], [ 22, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 43, 51 ], [ 51, 52 ], [ 52, 53 ], [ 43, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 61, 62 ], [ 55, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 22, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 22, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 78, 79 ], [ 78, 80 ], [ 73, 81 ], [ 81, 82 ], [ 82, 83 ], [ 73, 84 ], [ 85, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 88, 96 ], [ 22, 97 ], [ 97, 98 ], [ 97, 99 ], [ 22, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 22, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 6, 112 ], [ 112, 113 ], [ 0, 114 ], [ 114, 115 ], [ 114, 116 ] ]
[ "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 sum,i;\n\t\tdouble m,alpha;\n\t\twhile(true){\n\t\t\tsum=0;\n\t\t\talpha=0;\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n==0)break;\n\t\t\tint s[] = new int[n];\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\ts[i]=sc.nextInt();\n\t\t\t\tsum+=s[i];\n\t\t\t}\n\t\t\tm = (double)sum/n;\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\talpha+=Math.pow(s[i]-m,2);\n\t\t\t}\n\t\t\talpha/=n;\n\t\t\talpha=Math.sqrt(alpha);\n\t\t\tSystem.out.println(alpha);\n\t\t}\n\t}\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint sum,i;\n\t\tdouble m,alpha;\n\t\twhile(true){\n\t\t\tsum=0;\n\t\t\talpha=0;\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n==0)break;\n\t\t\tint s[] = new int[n];\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\ts[i]=sc.nextInt();\n\t\t\t\tsum+=s[i];\n\t\t\t}\n\t\t\tm = (double)sum/n;\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\talpha+=Math.pow(s[i]-m,2);\n\t\t\t}\n\t\t\talpha/=n;\n\t\t\talpha=Math.sqrt(alpha);\n\t\t\tSystem.out.println(alpha);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint sum,i;\n\t\tdouble m,alpha;\n\t\twhile(true){\n\t\t\tsum=0;\n\t\t\talpha=0;\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n==0)break;\n\t\t\tint s[] = new int[n];\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\ts[i]=sc.nextInt();\n\t\t\t\tsum+=s[i];\n\t\t\t}\n\t\t\tm = (double)sum/n;\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\talpha+=Math.pow(s[i]-m,2);\n\t\t\t}\n\t\t\talpha/=n;\n\t\t\talpha=Math.sqrt(alpha);\n\t\t\tSystem.out.println(alpha);\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint sum,i;\n\t\tdouble m,alpha;\n\t\twhile(true){\n\t\t\tsum=0;\n\t\t\talpha=0;\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n==0)break;\n\t\t\tint s[] = new int[n];\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\ts[i]=sc.nextInt();\n\t\t\t\tsum+=s[i];\n\t\t\t}\n\t\t\tm = (double)sum/n;\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\talpha+=Math.pow(s[i]-m,2);\n\t\t\t}\n\t\t\talpha/=n;\n\t\t\talpha=Math.sqrt(alpha);\n\t\t\tSystem.out.println(alpha);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int sum", "sum", "i;", "i", "double m", "m", "alpha;", "alpha", "while(true){\n\t\t\tsum=0;\n\t\t\talpha=0;\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n==0)break;\n\t\t\tint s[] = new int[n];\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\ts[i]=sc.nextInt();\n\t\t\t\tsum+=s[i];\n\t\t\t}\n\t\t\tm = (double)sum/n;\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\talpha+=Math.pow(s[i]-m,2);\n\t\t\t}\n\t\t\talpha/=n;\n\t\t\talpha=Math.sqrt(alpha);\n\t\t\tSystem.out.println(alpha);\n\t\t}", "true", "{\n\t\t\tsum=0;\n\t\t\talpha=0;\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n==0)break;\n\t\t\tint s[] = new int[n];\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\ts[i]=sc.nextInt();\n\t\t\t\tsum+=s[i];\n\t\t\t}\n\t\t\tm = (double)sum/n;\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\talpha+=Math.pow(s[i]-m,2);\n\t\t\t}\n\t\t\talpha/=n;\n\t\t\talpha=Math.sqrt(alpha);\n\t\t\tSystem.out.println(alpha);\n\t\t}", "sum=0", "sum", "0", "alpha=0", "alpha", "0", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n==0)break;", "n==0", "n", "0", "break;", "int s[] = new int[n];", "s", "new int[n]", "n", "for(i=0;i<n;i++){\n\t\t\t\ts[i]=sc.nextInt();\n\t\t\t\tsum+=s[i];\n\t\t\t}", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\ts[i]=sc.nextInt();\n\t\t\t\tsum+=s[i];\n\t\t\t}", "{\n\t\t\t\ts[i]=sc.nextInt();\n\t\t\t\tsum+=s[i];\n\t\t\t}", "s[i]=sc.nextInt()", "s[i]", "s", "i", "sc.nextInt()", "sc.nextInt", "sc", "sum+=s[i]", "sum", "s[i]", "s", "i", "m = (double)sum/n", "m", "(double)sum/n", "(double)sum", "n", "for(i=0;i<n;i++){\n\t\t\t\talpha+=Math.pow(s[i]-m,2);\n\t\t\t}", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\talpha+=Math.pow(s[i]-m,2);\n\t\t\t}", "{\n\t\t\t\talpha+=Math.pow(s[i]-m,2);\n\t\t\t}", "alpha+=Math.pow(s[i]-m,2)", "alpha", "Math.pow(s[i]-m,2)", "Math.pow", "Math", "s[i]-m", "s[i]", "s", "i", "m", "2", "alpha/=n", "alpha", "n", "alpha=Math.sqrt(alpha)", "alpha", "Math.sqrt(alpha)", "Math.sqrt", "Math", "alpha", "System.out.println(alpha)", "System.out.println", "System.out", "System", "System.out", "alpha", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint sum,i;\n\t\tdouble m,alpha;\n\t\twhile(true){\n\t\t\tsum=0;\n\t\t\talpha=0;\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n==0)break;\n\t\t\tint s[] = new int[n];\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\ts[i]=sc.nextInt();\n\t\t\t\tsum+=s[i];\n\t\t\t}\n\t\t\tm = (double)sum/n;\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\talpha+=Math.pow(s[i]-m,2);\n\t\t\t}\n\t\t\talpha/=n;\n\t\t\talpha=Math.sqrt(alpha);\n\t\t\tSystem.out.println(alpha);\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 sum,i;\n\t\tdouble m,alpha;\n\t\twhile(true){\n\t\t\tsum=0;\n\t\t\talpha=0;\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n==0)break;\n\t\t\tint s[] = new int[n];\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\ts[i]=sc.nextInt();\n\t\t\t\tsum+=s[i];\n\t\t\t}\n\t\t\tm = (double)sum/n;\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\talpha+=Math.pow(s[i]-m,2);\n\t\t\t}\n\t\t\talpha/=n;\n\t\t\talpha=Math.sqrt(alpha);\n\t\t\tSystem.out.println(alpha);\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 sum,i; double m,alpha; while(true){ sum=0; alpha=0; int n = sc.nextInt(); if(n==0)break; int s[] = new int[n]; for(i=0;i<n;i++){ s[i]=sc.nextInt(); sum+=s[i]; } m = (double)sum/n; for(i=0;i<n;i++){ alpha+=Math.pow(s[i]-m,2); } alpha/=n; alpha=Math.sqrt(alpha); System.out.println(alpha); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 13, 18, 13, 13, 0, 13, 2, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 0, 13, 2, 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 ], [ 137, 5 ], [ 137, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 30, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 14, 50 ], [ 50, 51 ], [ 50, 52 ], [ 14, 53 ], [ 53, 54 ], [ 53, 55 ], [ 14, 56 ], [ 56, 57 ], [ 56, 58 ], [ 14, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 59, 69 ], [ 69, 70 ], [ 70, 71 ], [ 59, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 78, 80 ], [ 14, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 14, 86 ], [ 86, 87 ], [ 86, 88 ], [ 14, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 89, 99 ], [ 99, 100 ], [ 100, 101 ], [ 89, 102 ], [ 103, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 108, 116 ], [ 14, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 119, 121 ], [ 14, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 127, 128 ], [ 128, 129 ], [ 127, 130 ], [ 8, 131 ], [ 131, 132 ], [ 132, 133 ], [ 6, 134 ], [ 134, 135 ], [ 0, 136 ], [ 136, 137 ], [ 136, 138 ] ]
[ "import java.util.Scanner;\npublic class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n while(true){\n int n = scan.nextInt();\n if(n==0){\n break;\n }\n int scores[] = new int[n];\n for(int i=0;i<n;i++){\n scores[i]=scan.nextInt();\n }\n double average=0;\n double variance=0;\n double sum=0;\n for(int i=0;i<scores.length;i++){\n sum = sum + scores[i];\n }\n average = sum/n;\n double sumsum=0;\n for(int i=0;i<scores.length;i++){\n sumsum = sumsum + Math.pow(scores[i] - average,2);\n }\n variance = sumsum/n;\n System.out.println(Math.sqrt(variance));\n }\n scan.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n while(true){\n int n = scan.nextInt();\n if(n==0){\n break;\n }\n int scores[] = new int[n];\n for(int i=0;i<n;i++){\n scores[i]=scan.nextInt();\n }\n double average=0;\n double variance=0;\n double sum=0;\n for(int i=0;i<scores.length;i++){\n sum = sum + scores[i];\n }\n average = sum/n;\n double sumsum=0;\n for(int i=0;i<scores.length;i++){\n sumsum = sumsum + Math.pow(scores[i] - average,2);\n }\n variance = sumsum/n;\n System.out.println(Math.sqrt(variance));\n }\n scan.close();\n }\n}", "Main", "public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n while(true){\n int n = scan.nextInt();\n if(n==0){\n break;\n }\n int scores[] = new int[n];\n for(int i=0;i<n;i++){\n scores[i]=scan.nextInt();\n }\n double average=0;\n double variance=0;\n double sum=0;\n for(int i=0;i<scores.length;i++){\n sum = sum + scores[i];\n }\n average = sum/n;\n double sumsum=0;\n for(int i=0;i<scores.length;i++){\n sumsum = sumsum + Math.pow(scores[i] - average,2);\n }\n variance = sumsum/n;\n System.out.println(Math.sqrt(variance));\n }\n scan.close();\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n while(true){\n int n = scan.nextInt();\n if(n==0){\n break;\n }\n int scores[] = new int[n];\n for(int i=0;i<n;i++){\n scores[i]=scan.nextInt();\n }\n double average=0;\n double variance=0;\n double sum=0;\n for(int i=0;i<scores.length;i++){\n sum = sum + scores[i];\n }\n average = sum/n;\n double sumsum=0;\n for(int i=0;i<scores.length;i++){\n sumsum = sumsum + Math.pow(scores[i] - average,2);\n }\n variance = sumsum/n;\n System.out.println(Math.sqrt(variance));\n }\n scan.close();\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(true){\n int n = scan.nextInt();\n if(n==0){\n break;\n }\n int scores[] = new int[n];\n for(int i=0;i<n;i++){\n scores[i]=scan.nextInt();\n }\n double average=0;\n double variance=0;\n double sum=0;\n for(int i=0;i<scores.length;i++){\n sum = sum + scores[i];\n }\n average = sum/n;\n double sumsum=0;\n for(int i=0;i<scores.length;i++){\n sumsum = sumsum + Math.pow(scores[i] - average,2);\n }\n variance = sumsum/n;\n System.out.println(Math.sqrt(variance));\n }", "true", "{\n int n = scan.nextInt();\n if(n==0){\n break;\n }\n int scores[] = new int[n];\n for(int i=0;i<n;i++){\n scores[i]=scan.nextInt();\n }\n double average=0;\n double variance=0;\n double sum=0;\n for(int i=0;i<scores.length;i++){\n sum = sum + scores[i];\n }\n average = sum/n;\n double sumsum=0;\n for(int i=0;i<scores.length;i++){\n sumsum = sumsum + Math.pow(scores[i] - average,2);\n }\n variance = sumsum/n;\n System.out.println(Math.sqrt(variance));\n }", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "if(n==0){\n break;\n }", "n==0", "n", "0", "{\n break;\n }", "break;", "int scores[] = new int[n];", "scores", "new int[n]", "n", "for(int i=0;i<n;i++){\n scores[i]=scan.nextInt();\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n scores[i]=scan.nextInt();\n }", "{\n scores[i]=scan.nextInt();\n }", "scores[i]=scan.nextInt()", "scores[i]", "scores", "i", "scan.nextInt()", "scan.nextInt", "scan", "double average=0;", "average", "0", "double variance=0;", "variance", "0", "double sum=0;", "sum", "0", "for(int i=0;i<scores.length;i++){\n sum = sum + scores[i];\n }", "int i=0;", "int i=0;", "i", "0", "i<scores.length", "i", "scores.length", "scores", "scores.length", "i++", "i++", "i", "{\n sum = sum + scores[i];\n }", "{\n sum = sum + scores[i];\n }", "sum = sum + scores[i]", "sum", "sum + scores[i]", "sum", "scores[i]", "scores", "i", "average = sum/n", "average", "sum/n", "sum", "n", "double sumsum=0;", "sumsum", "0", "for(int i=0;i<scores.length;i++){\n sumsum = sumsum + Math.pow(scores[i] - average,2);\n }", "int i=0;", "int i=0;", "i", "0", "i<scores.length", "i", "scores.length", "scores", "scores.length", "i++", "i++", "i", "{\n sumsum = sumsum + Math.pow(scores[i] - average,2);\n }", "{\n sumsum = sumsum + Math.pow(scores[i] - average,2);\n }", "sumsum = sumsum + Math.pow(scores[i] - average,2)", "sumsum", "sumsum + Math.pow(scores[i] - average,2)", "sumsum", "Math.pow(scores[i] - average,2)", "Math.pow", "Math", "scores[i] - average", "scores[i]", "scores", "i", "average", "2", "variance = sumsum/n", "variance", "sumsum/n", "sumsum", "n", "System.out.println(Math.sqrt(variance))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(variance)", "Math.sqrt", "Math", "variance", "scan.close()", "scan.close", "scan", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n while(true){\n int n = scan.nextInt();\n if(n==0){\n break;\n }\n int scores[] = new int[n];\n for(int i=0;i<n;i++){\n scores[i]=scan.nextInt();\n }\n double average=0;\n double variance=0;\n double sum=0;\n for(int i=0;i<scores.length;i++){\n sum = sum + scores[i];\n }\n average = sum/n;\n double sumsum=0;\n for(int i=0;i<scores.length;i++){\n sumsum = sumsum + Math.pow(scores[i] - average,2);\n }\n variance = sumsum/n;\n System.out.println(Math.sqrt(variance));\n }\n scan.close();\n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n while(true){\n int n = scan.nextInt();\n if(n==0){\n break;\n }\n int scores[] = new int[n];\n for(int i=0;i<n;i++){\n scores[i]=scan.nextInt();\n }\n double average=0;\n double variance=0;\n double sum=0;\n for(int i=0;i<scores.length;i++){\n sum = sum + scores[i];\n }\n average = sum/n;\n double sumsum=0;\n for(int i=0;i<scores.length;i++){\n sumsum = sumsum + Math.pow(scores[i] - average,2);\n }\n variance = sumsum/n;\n System.out.println(Math.sqrt(variance));\n }\n scan.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); while(true){ int n = scan.nextInt(); if(n==0){ break; } int scores[] = new int[n]; for(int i=0;i<n;i++){ scores[i]=scan.nextInt(); } double average=0; double variance=0; double sum=0; for(int i=0;i<scores.length;i++){ sum = sum + scores[i]; } average = sum/n; double sumsum=0; for(int i=0;i<scores.length;i++){ sumsum = sumsum + Math.pow(scores[i] - average,2); } variance = sumsum/n; System.out.println(Math.sqrt(variance)); } scan.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 13, 0, 13, 4, 18, 4, 18, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 18, 13, 13, 0, 13, 2, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 4, 18, 13, 2, 4, 18, 13, 18, 13, 13, 13, 17, 13, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 123, 11 ], [ 123, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 14, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 24, 31 ], [ 22, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 32, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 41, 46 ], [ 32, 47 ], [ 47, 48 ], [ 47, 49 ], [ 32, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 55, 56 ], [ 55, 57 ], [ 50, 58 ], [ 58, 59 ], [ 59, 60 ], [ 50, 61 ], [ 62, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 68, 70 ], [ 32, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 32, 76 ], [ 76, 77 ], [ 76, 78 ], [ 32, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 84, 85 ], [ 84, 86 ], [ 79, 87 ], [ 87, 88 ], [ 88, 89 ], [ 79, 90 ], [ 91, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 102, 103 ], [ 102, 104 ], [ 98, 105 ], [ 95, 106 ], [ 94, 107 ], [ 32, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 32, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 12, 120 ], [ 120, 121 ], [ 0, 122 ], [ 122, 123 ], [ 122, 124 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] tokuten;\n\t\tString line;\n\t\twhile (!(line = br.readLine()).equals(\"0\")) {\n\t\t\tint n = Integer.parseInt(line);\n\t\t\ttokuten = br.readLine().split(\" \");\n\n\t\t\tdouble ave = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tave += Integer.parseInt(tokuten[i]);\n\t\t\t}\n\t\t\tave = ave / n;\n\n\t\t\tdouble sd = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsd += (Math.pow(Integer.parseInt(tokuten[i]) - ave, 2.0)) / n;\n\t\t\t}\n\n\t\t\tsd = Math.sqrt(sd);\n\t\t\tSystem.out.println(sd);\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] tokuten;\n\t\tString line;\n\t\twhile (!(line = br.readLine()).equals(\"0\")) {\n\t\t\tint n = Integer.parseInt(line);\n\t\t\ttokuten = br.readLine().split(\" \");\n\n\t\t\tdouble ave = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tave += Integer.parseInt(tokuten[i]);\n\t\t\t}\n\t\t\tave = ave / n;\n\n\t\t\tdouble sd = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsd += (Math.pow(Integer.parseInt(tokuten[i]) - ave, 2.0)) / n;\n\t\t\t}\n\n\t\t\tsd = Math.sqrt(sd);\n\t\t\tSystem.out.println(sd);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] tokuten;\n\t\tString line;\n\t\twhile (!(line = br.readLine()).equals(\"0\")) {\n\t\t\tint n = Integer.parseInt(line);\n\t\t\ttokuten = br.readLine().split(\" \");\n\n\t\t\tdouble ave = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tave += Integer.parseInt(tokuten[i]);\n\t\t\t}\n\t\t\tave = ave / n;\n\n\t\t\tdouble sd = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsd += (Math.pow(Integer.parseInt(tokuten[i]) - ave, 2.0)) / n;\n\t\t\t}\n\n\t\t\tsd = Math.sqrt(sd);\n\t\t\tSystem.out.println(sd);\n\t\t}\n\t}", "main", "{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] tokuten;\n\t\tString line;\n\t\twhile (!(line = br.readLine()).equals(\"0\")) {\n\t\t\tint n = Integer.parseInt(line);\n\t\t\ttokuten = br.readLine().split(\" \");\n\n\t\t\tdouble ave = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tave += Integer.parseInt(tokuten[i]);\n\t\t\t}\n\t\t\tave = ave / n;\n\n\t\t\tdouble sd = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsd += (Math.pow(Integer.parseInt(tokuten[i]) - ave, 2.0)) / n;\n\t\t\t}\n\n\t\t\tsd = Math.sqrt(sd);\n\t\t\tSystem.out.println(sd);\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String[] tokuten;", "tokuten", "String line;", "line", "while (!(line = br.readLine()).equals(\"0\")) {\n\t\t\tint n = Integer.parseInt(line);\n\t\t\ttokuten = br.readLine().split(\" \");\n\n\t\t\tdouble ave = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tave += Integer.parseInt(tokuten[i]);\n\t\t\t}\n\t\t\tave = ave / n;\n\n\t\t\tdouble sd = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsd += (Math.pow(Integer.parseInt(tokuten[i]) - ave, 2.0)) / n;\n\t\t\t}\n\n\t\t\tsd = Math.sqrt(sd);\n\t\t\tSystem.out.println(sd);\n\t\t}", "!(line = br.readLine()).equals(\"0\")", "(line = br.readLine()).equals(\"0\")", "(line = br.readLine()).equals", "(line = br.readLine())", "line", "br.readLine()", "br.readLine", "br", "\"0\"", "{\n\t\t\tint n = Integer.parseInt(line);\n\t\t\ttokuten = br.readLine().split(\" \");\n\n\t\t\tdouble ave = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tave += Integer.parseInt(tokuten[i]);\n\t\t\t}\n\t\t\tave = ave / n;\n\n\t\t\tdouble sd = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsd += (Math.pow(Integer.parseInt(tokuten[i]) - ave, 2.0)) / n;\n\t\t\t}\n\n\t\t\tsd = Math.sqrt(sd);\n\t\t\tSystem.out.println(sd);\n\t\t}", "int n = Integer.parseInt(line);", "n", "Integer.parseInt(line)", "Integer.parseInt", "Integer", "line", "tokuten = br.readLine().split(\" \")", "tokuten", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "double ave = 0;", "ave", "0", "for (int i = 0; i < n; i++) {\n\t\t\t\tave += Integer.parseInt(tokuten[i]);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tave += Integer.parseInt(tokuten[i]);\n\t\t\t}", "{\n\t\t\t\tave += Integer.parseInt(tokuten[i]);\n\t\t\t}", "ave += Integer.parseInt(tokuten[i])", "ave", "Integer.parseInt(tokuten[i])", "Integer.parseInt", "Integer", "tokuten[i]", "tokuten", "i", "ave = ave / n", "ave", "ave / n", "ave", "n", "double sd = 0;", "sd", "0", "for (int i = 0; i < n; i++) {\n\t\t\t\tsd += (Math.pow(Integer.parseInt(tokuten[i]) - ave, 2.0)) / n;\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tsd += (Math.pow(Integer.parseInt(tokuten[i]) - ave, 2.0)) / n;\n\t\t\t}", "{\n\t\t\t\tsd += (Math.pow(Integer.parseInt(tokuten[i]) - ave, 2.0)) / n;\n\t\t\t}", "sd += (Math.pow(Integer.parseInt(tokuten[i]) - ave, 2.0)) / n", "sd", "(Math.pow(Integer.parseInt(tokuten[i]) - ave, 2.0)) / n", "(Math.pow(Integer.parseInt(tokuten[i]) - ave, 2.0))", "Math.pow", "Math", "Integer.parseInt(tokuten[i]) - ave", "Integer.parseInt(tokuten[i])", "Integer.parseInt", "Integer", "tokuten[i]", "tokuten", "i", "ave", "2.0", "n", "sd = Math.sqrt(sd)", "sd", "Math.sqrt(sd)", "Math.sqrt", "Math", "sd", "System.out.println(sd)", "System.out.println", "System.out", "System", "System.out", "sd", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] tokuten;\n\t\tString line;\n\t\twhile (!(line = br.readLine()).equals(\"0\")) {\n\t\t\tint n = Integer.parseInt(line);\n\t\t\ttokuten = br.readLine().split(\" \");\n\n\t\t\tdouble ave = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tave += Integer.parseInt(tokuten[i]);\n\t\t\t}\n\t\t\tave = ave / n;\n\n\t\t\tdouble sd = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsd += (Math.pow(Integer.parseInt(tokuten[i]) - ave, 2.0)) / n;\n\t\t\t}\n\n\t\t\tsd = Math.sqrt(sd);\n\t\t\tSystem.out.println(sd);\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] tokuten;\n\t\tString line;\n\t\twhile (!(line = br.readLine()).equals(\"0\")) {\n\t\t\tint n = Integer.parseInt(line);\n\t\t\ttokuten = br.readLine().split(\" \");\n\n\t\t\tdouble ave = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tave += Integer.parseInt(tokuten[i]);\n\t\t\t}\n\t\t\tave = ave / n;\n\n\t\t\tdouble sd = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsd += (Math.pow(Integer.parseInt(tokuten[i]) - ave, 2.0)) / n;\n\t\t\t}\n\n\t\t\tsd = Math.sqrt(sd);\n\t\t\tSystem.out.println(sd);\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] tokuten; String line; while (!(line = br.readLine()).equals("0")) { int n = Integer.parseInt(line); tokuten = br.readLine().split(" "); double ave = 0; for (int i = 0; i < n; i++) { ave += Integer.parseInt(tokuten[i]); } ave = ave / n; double sd = 0; for (int i = 0; i < n; i++) { sd += (Math.pow(Integer.parseInt(tokuten[i]) - ave, 2.0)) / n; } sd = Math.sqrt(sd); System.out.println(sd); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 41, 13, 17, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 0, 13, 13, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 0, 13, 17, 0, 13, 17, 4, 18, 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 ], [ 14, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 32, 33 ], [ 22, 34 ], [ 34, 35 ], [ 34, 36 ], [ 22, 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 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 50, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 22, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 22, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 73, 74 ], [ 73, 75 ], [ 68, 76 ], [ 76, 77 ], [ 77, 78 ], [ 68, 79 ], [ 80, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 83, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 22, 94 ], [ 94, 95 ], [ 94, 96 ], [ 22, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 22, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 22, 109 ], [ 109, 110 ], [ 109, 111 ], [ 22, 112 ], [ 112, 113 ], [ 112, 114 ], [ 8, 115 ], [ 115, 116 ], [ 116, 117 ], [ 6, 118 ], [ 118, 119 ], [ 0, 120 ], [ 120, 121 ], [ 120, 122 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n int sum = 0;\n double ave;\n double s = 0;\n Scanner sc = new Scanner(System.in);\n while(true){\n int Length = sc.nextInt();\n if(Length == 0){\n break;\n }\n int[] number = new int[Length];\n for(int i=0; i<Length; i++){\n number[i] = sc.nextInt();\n sum += number[i];\n }\n ave = (double) sum / Length;\n\n for(int i=0; i<Length; i++){\n s += (number[i] - ave)*(number[i] - ave);\n }\n s /= Length;\n s = Math.sqrt(s);\n //System.out.printf(\"%d\", number[i]);\n System.out.println(s);\n s = 0;\n sum = 0;\n }\n sc.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args){\n int sum = 0;\n double ave;\n double s = 0;\n Scanner sc = new Scanner(System.in);\n while(true){\n int Length = sc.nextInt();\n if(Length == 0){\n break;\n }\n int[] number = new int[Length];\n for(int i=0; i<Length; i++){\n number[i] = sc.nextInt();\n sum += number[i];\n }\n ave = (double) sum / Length;\n\n for(int i=0; i<Length; i++){\n s += (number[i] - ave)*(number[i] - ave);\n }\n s /= Length;\n s = Math.sqrt(s);\n //System.out.printf(\"%d\", number[i]);\n System.out.println(s);\n s = 0;\n sum = 0;\n }\n sc.close();\n }\n}", "Main", "public static void main(String[] args){\n int sum = 0;\n double ave;\n double s = 0;\n Scanner sc = new Scanner(System.in);\n while(true){\n int Length = sc.nextInt();\n if(Length == 0){\n break;\n }\n int[] number = new int[Length];\n for(int i=0; i<Length; i++){\n number[i] = sc.nextInt();\n sum += number[i];\n }\n ave = (double) sum / Length;\n\n for(int i=0; i<Length; i++){\n s += (number[i] - ave)*(number[i] - ave);\n }\n s /= Length;\n s = Math.sqrt(s);\n //System.out.printf(\"%d\", number[i]);\n System.out.println(s);\n s = 0;\n sum = 0;\n }\n sc.close();\n }", "main", "{\n int sum = 0;\n double ave;\n double s = 0;\n Scanner sc = new Scanner(System.in);\n while(true){\n int Length = sc.nextInt();\n if(Length == 0){\n break;\n }\n int[] number = new int[Length];\n for(int i=0; i<Length; i++){\n number[i] = sc.nextInt();\n sum += number[i];\n }\n ave = (double) sum / Length;\n\n for(int i=0; i<Length; i++){\n s += (number[i] - ave)*(number[i] - ave);\n }\n s /= Length;\n s = Math.sqrt(s);\n //System.out.printf(\"%d\", number[i]);\n System.out.println(s);\n s = 0;\n sum = 0;\n }\n sc.close();\n }", "int sum = 0;", "sum", "0", "double ave;", "ave", "double s = 0;", "s", "0", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n int Length = sc.nextInt();\n if(Length == 0){\n break;\n }\n int[] number = new int[Length];\n for(int i=0; i<Length; i++){\n number[i] = sc.nextInt();\n sum += number[i];\n }\n ave = (double) sum / Length;\n\n for(int i=0; i<Length; i++){\n s += (number[i] - ave)*(number[i] - ave);\n }\n s /= Length;\n s = Math.sqrt(s);\n //System.out.printf(\"%d\", number[i]);\n System.out.println(s);\n s = 0;\n sum = 0;\n }", "true", "{\n int Length = sc.nextInt();\n if(Length == 0){\n break;\n }\n int[] number = new int[Length];\n for(int i=0; i<Length; i++){\n number[i] = sc.nextInt();\n sum += number[i];\n }\n ave = (double) sum / Length;\n\n for(int i=0; i<Length; i++){\n s += (number[i] - ave)*(number[i] - ave);\n }\n s /= Length;\n s = Math.sqrt(s);\n //System.out.printf(\"%d\", number[i]);\n System.out.println(s);\n s = 0;\n sum = 0;\n }", "int Length = sc.nextInt();", "Length", "sc.nextInt()", "sc.nextInt", "sc", "if(Length == 0){\n break;\n }", "Length == 0", "Length", "0", "{\n break;\n }", "break;", "int[] number = new int[Length];", "number", "new int[Length]", "Length", "for(int i=0; i<Length; i++){\n number[i] = sc.nextInt();\n sum += number[i];\n }", "int i=0;", "int i=0;", "i", "0", "i<Length", "i", "Length", "i++", "i++", "i", "{\n number[i] = sc.nextInt();\n sum += number[i];\n }", "{\n number[i] = sc.nextInt();\n sum += number[i];\n }", "number[i] = sc.nextInt()", "number[i]", "number", "i", "sc.nextInt()", "sc.nextInt", "sc", "sum += number[i]", "sum", "number[i]", "number", "i", "ave = (double) sum / Length", "ave", "(double) sum / Length", "(double) sum", "Length", "for(int i=0; i<Length; i++){\n s += (number[i] - ave)*(number[i] - ave);\n }", "int i=0;", "int i=0;", "i", "0", "i<Length", "i", "Length", "i++", "i++", "i", "{\n s += (number[i] - ave)*(number[i] - ave);\n }", "{\n s += (number[i] - ave)*(number[i] - ave);\n }", "s += (number[i] - ave)*(number[i] - ave)", "s", "(number[i] - ave)*(number[i] - ave)", "(number[i] - ave)", "number[i]", "number", "i", "ave", "(number[i] - ave)", "number[i]", "number", "i", "ave", "s /= Length", "s", "Length", "s = Math.sqrt(s)", "s", "Math.sqrt(s)", "Math.sqrt", "Math", "s", "System.out.println(s)", "System.out.println", "System.out", "System", "System.out", "s", "s = 0", "s", "0", "sum = 0", "sum", "0", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n int sum = 0;\n double ave;\n double s = 0;\n Scanner sc = new Scanner(System.in);\n while(true){\n int Length = sc.nextInt();\n if(Length == 0){\n break;\n }\n int[] number = new int[Length];\n for(int i=0; i<Length; i++){\n number[i] = sc.nextInt();\n sum += number[i];\n }\n ave = (double) sum / Length;\n\n for(int i=0; i<Length; i++){\n s += (number[i] - ave)*(number[i] - ave);\n }\n s /= Length;\n s = Math.sqrt(s);\n //System.out.printf(\"%d\", number[i]);\n System.out.println(s);\n s = 0;\n sum = 0;\n }\n sc.close();\n }\n}", "public class Main {\n public static void main(String[] args){\n int sum = 0;\n double ave;\n double s = 0;\n Scanner sc = new Scanner(System.in);\n while(true){\n int Length = sc.nextInt();\n if(Length == 0){\n break;\n }\n int[] number = new int[Length];\n for(int i=0; i<Length; i++){\n number[i] = sc.nextInt();\n sum += number[i];\n }\n ave = (double) sum / Length;\n\n for(int i=0; i<Length; i++){\n s += (number[i] - ave)*(number[i] - ave);\n }\n s /= Length;\n s = Math.sqrt(s);\n //System.out.printf(\"%d\", number[i]);\n System.out.println(s);\n s = 0;\n sum = 0;\n }\n sc.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ int sum = 0; double ave; double s = 0; Scanner sc = new Scanner(System.in); while(true){ int Length = sc.nextInt(); if(Length == 0){ break; } int[] number = new int[Length]; for(int i=0; i<Length; i++){ number[i] = sc.nextInt(); sum += number[i]; } ave = (double) sum / Length; for(int i=0; i<Length; i++){ s += (number[i] - ave)*(number[i] - ave); } s /= Length; s = Math.sqrt(s); //System.out.printf("%d", number[i]); System.out.println(s); s = 0; sum = 0; } sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 3, 41, 13, 17, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 41, 13, 2, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 4, 18, 13, 2, 18, 13, 13, 13, 17, 13, 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 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 17, 28 ], [ 28, 29 ], [ 28, 30 ], [ 17, 31 ], [ 31, 32 ], [ 31, 33 ], [ 17, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 53, 54 ], [ 47, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 17, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 17, 65 ], [ 65, 66 ], [ 65, 67 ], [ 17, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 73, 74 ], [ 73, 75 ], [ 68, 76 ], [ 76, 77 ], [ 77, 78 ], [ 68, 79 ], [ 80, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 84, 92 ], [ 83, 93 ], [ 17, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 9, 103 ], [ 103, 104 ] ]
[ "import java.util.*;\nimport java.lang.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile (true) {\n\t\t\tint a = sc.nextInt();\n\t\t\tif (a == 0) break;\n\t\t\tdouble sum = 0;\n\t\t\tint[] scores = new int[a];\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tscores[i]=sc.nextInt();\n\t\t\t\tsum+=scores[i];\n\t\t\t}\n\t\t\tdouble m = sum/a;\n\t\t\tdouble variance = 0;\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tvariance += Math.pow(scores[i]-m, 2)/a;\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(variance));\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.lang.*;", "lang.*", "java", "class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile (true) {\n\t\t\tint a = sc.nextInt();\n\t\t\tif (a == 0) break;\n\t\t\tdouble sum = 0;\n\t\t\tint[] scores = new int[a];\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tscores[i]=sc.nextInt();\n\t\t\t\tsum+=scores[i];\n\t\t\t}\n\t\t\tdouble m = sum/a;\n\t\t\tdouble variance = 0;\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tvariance += Math.pow(scores[i]-m, 2)/a;\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(variance));\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\twhile (true) {\n\t\t\tint a = sc.nextInt();\n\t\t\tif (a == 0) break;\n\t\t\tdouble sum = 0;\n\t\t\tint[] scores = new int[a];\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tscores[i]=sc.nextInt();\n\t\t\t\tsum+=scores[i];\n\t\t\t}\n\t\t\tdouble m = sum/a;\n\t\t\tdouble variance = 0;\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tvariance += Math.pow(scores[i]-m, 2)/a;\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(variance));\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile (true) {\n\t\t\tint a = sc.nextInt();\n\t\t\tif (a == 0) break;\n\t\t\tdouble sum = 0;\n\t\t\tint[] scores = new int[a];\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tscores[i]=sc.nextInt();\n\t\t\t\tsum+=scores[i];\n\t\t\t}\n\t\t\tdouble m = sum/a;\n\t\t\tdouble variance = 0;\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tvariance += Math.pow(scores[i]-m, 2)/a;\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(variance));\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (true) {\n\t\t\tint a = sc.nextInt();\n\t\t\tif (a == 0) break;\n\t\t\tdouble sum = 0;\n\t\t\tint[] scores = new int[a];\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tscores[i]=sc.nextInt();\n\t\t\t\tsum+=scores[i];\n\t\t\t}\n\t\t\tdouble m = sum/a;\n\t\t\tdouble variance = 0;\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tvariance += Math.pow(scores[i]-m, 2)/a;\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(variance));\n\t\t}", "true", "{\n\t\t\tint a = sc.nextInt();\n\t\t\tif (a == 0) break;\n\t\t\tdouble sum = 0;\n\t\t\tint[] scores = new int[a];\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tscores[i]=sc.nextInt();\n\t\t\t\tsum+=scores[i];\n\t\t\t}\n\t\t\tdouble m = sum/a;\n\t\t\tdouble variance = 0;\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tvariance += Math.pow(scores[i]-m, 2)/a;\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(variance));\n\t\t}", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "if (a == 0) break;", "a == 0", "a", "0", "break;", "double sum = 0;", "sum", "0", "int[] scores = new int[a];", "scores", "new int[a]", "a", "for (int i = 0; i < a; i++) {\n\t\t\t\tscores[i]=sc.nextInt();\n\t\t\t\tsum+=scores[i];\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < a", "i", "a", "i++", "i++", "i", "{\n\t\t\t\tscores[i]=sc.nextInt();\n\t\t\t\tsum+=scores[i];\n\t\t\t}", "{\n\t\t\t\tscores[i]=sc.nextInt();\n\t\t\t\tsum+=scores[i];\n\t\t\t}", "scores[i]=sc.nextInt()", "scores[i]", "scores", "i", "sc.nextInt()", "sc.nextInt", "sc", "sum+=scores[i]", "sum", "scores[i]", "scores", "i", "double m = sum/a;", "m", "sum/a", "sum", "a", "double variance = 0;", "variance", "0", "for (int i = 0; i < a; i++) {\n\t\t\t\tvariance += Math.pow(scores[i]-m, 2)/a;\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < a", "i", "a", "i++", "i++", "i", "{\n\t\t\t\tvariance += Math.pow(scores[i]-m, 2)/a;\n\t\t\t}", "{\n\t\t\t\tvariance += Math.pow(scores[i]-m, 2)/a;\n\t\t\t}", "variance += Math.pow(scores[i]-m, 2)/a", "variance", "Math.pow(scores[i]-m, 2)/a", "Math.pow(scores[i]-m, 2)", "Math.pow", "Math", "scores[i]-m", "scores[i]", "scores", "i", "m", "2", "a", "System.out.println(Math.sqrt(variance))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(variance)", "Math.sqrt", "Math", "variance", "String[] args", "args" ]
import java.util.*; import java.lang.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (true) { int a = sc.nextInt(); if (a == 0) break; double sum = 0; int[] scores = new int[a]; for (int i = 0; i < a; i++) { scores[i]=sc.nextInt(); sum+=scores[i]; } double m = sum/a; double variance = 0; for (int i = 0; i < a; i++) { variance += Math.pow(scores[i]-m, 2)/a; } System.out.println(Math.sqrt(variance)); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 2, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 17, 4, 18, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 141, 5 ], [ 141, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 16, 28 ], [ 28, 29 ], [ 28, 30 ], [ 16, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 39, 41 ], [ 32, 42 ], [ 42, 43 ], [ 43, 44 ], [ 32, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 52, 53 ], [ 16, 54 ], [ 54, 55 ], [ 54, 56 ], [ 16, 57 ], [ 57, 58 ], [ 57, 59 ], [ 16, 60 ], [ 60, 61 ], [ 60, 62 ], [ 16, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 63, 73 ], [ 73, 74 ], [ 74, 75 ], [ 63, 76 ], [ 77, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 16, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 16, 88 ], [ 88, 89 ], [ 88, 90 ], [ 16, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 98, 100 ], [ 91, 101 ], [ 101, 102 ], [ 102, 103 ], [ 91, 104 ], [ 105, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 108, 116 ], [ 16, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 119, 121 ], [ 16, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 127, 128 ], [ 128, 129 ], [ 127, 130 ], [ 127, 131 ], [ 131, 132 ], [ 132, 133 ], [ 131, 134 ], [ 10, 135 ], [ 135, 136 ], [ 136, 137 ], [ 6, 138 ], [ 138, 139 ], [ 0, 140 ], [ 140, 141 ], [ 140, 142 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n try (java.util.Scanner sc = new Scanner(System.in)){\n while(true){\n int n = sc.nextInt();\n if(n==0){break;}\n int[] scores = new int[n];\n for(int i=0; i < scores.length; i ++){\n scores[i] = sc.nextInt();\n }\n double average = 0, variance = 0;\n int sum = 0;\n for(int i=0; i < scores.length; i ++){\n sum += scores[i];\n }\n average = (double)sum / n;\n double var = 0;\n for(int i=0; i<scores.length; i ++){\n var += Math.pow(scores[i] - average, 2);\n }\n variance = var/n;\n System.out.println(String.format(\"%.8f\",Math.sqrt(variance)));\n }\n sc.close();\n } \n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n try (java.util.Scanner sc = new Scanner(System.in)){\n while(true){\n int n = sc.nextInt();\n if(n==0){break;}\n int[] scores = new int[n];\n for(int i=0; i < scores.length; i ++){\n scores[i] = sc.nextInt();\n }\n double average = 0, variance = 0;\n int sum = 0;\n for(int i=0; i < scores.length; i ++){\n sum += scores[i];\n }\n average = (double)sum / n;\n double var = 0;\n for(int i=0; i<scores.length; i ++){\n var += Math.pow(scores[i] - average, 2);\n }\n variance = var/n;\n System.out.println(String.format(\"%.8f\",Math.sqrt(variance)));\n }\n sc.close();\n } \n }\n}", "Main", "public static void main(String[] args){\n try (java.util.Scanner sc = new Scanner(System.in)){\n while(true){\n int n = sc.nextInt();\n if(n==0){break;}\n int[] scores = new int[n];\n for(int i=0; i < scores.length; i ++){\n scores[i] = sc.nextInt();\n }\n double average = 0, variance = 0;\n int sum = 0;\n for(int i=0; i < scores.length; i ++){\n sum += scores[i];\n }\n average = (double)sum / n;\n double var = 0;\n for(int i=0; i<scores.length; i ++){\n var += Math.pow(scores[i] - average, 2);\n }\n variance = var/n;\n System.out.println(String.format(\"%.8f\",Math.sqrt(variance)));\n }\n sc.close();\n } \n }", "main", "{\n try (java.util.Scanner sc = new Scanner(System.in)){\n while(true){\n int n = sc.nextInt();\n if(n==0){break;}\n int[] scores = new int[n];\n for(int i=0; i < scores.length; i ++){\n scores[i] = sc.nextInt();\n }\n double average = 0, variance = 0;\n int sum = 0;\n for(int i=0; i < scores.length; i ++){\n sum += scores[i];\n }\n average = (double)sum / n;\n double var = 0;\n for(int i=0; i<scores.length; i ++){\n var += Math.pow(scores[i] - average, 2);\n }\n variance = var/n;\n System.out.println(String.format(\"%.8f\",Math.sqrt(variance)));\n }\n sc.close();\n } \n }", "try (java.util.Scanner sc = new Scanner(System.in)){\n while(true){\n int n = sc.nextInt();\n if(n==0){break;}\n int[] scores = new int[n];\n for(int i=0; i < scores.length; i ++){\n scores[i] = sc.nextInt();\n }\n double average = 0, variance = 0;\n int sum = 0;\n for(int i=0; i < scores.length; i ++){\n sum += scores[i];\n }\n average = (double)sum / n;\n double var = 0;\n for(int i=0; i<scores.length; i ++){\n var += Math.pow(scores[i] - average, 2);\n }\n variance = var/n;\n System.out.println(String.format(\"%.8f\",Math.sqrt(variance)));\n }\n sc.close();\n }", "{\n while(true){\n int n = sc.nextInt();\n if(n==0){break;}\n int[] scores = new int[n];\n for(int i=0; i < scores.length; i ++){\n scores[i] = sc.nextInt();\n }\n double average = 0, variance = 0;\n int sum = 0;\n for(int i=0; i < scores.length; i ++){\n sum += scores[i];\n }\n average = (double)sum / n;\n double var = 0;\n for(int i=0; i<scores.length; i ++){\n var += Math.pow(scores[i] - average, 2);\n }\n variance = var/n;\n System.out.println(String.format(\"%.8f\",Math.sqrt(variance)));\n }\n sc.close();\n }", "java.util.Scanner sc = new Scanner(System.in)", "java.util.Scanner sc = new Scanner(System.in)", "new Scanner(System.in)", "while(true){\n int n = sc.nextInt();\n if(n==0){break;}\n int[] scores = new int[n];\n for(int i=0; i < scores.length; i ++){\n scores[i] = sc.nextInt();\n }\n double average = 0, variance = 0;\n int sum = 0;\n for(int i=0; i < scores.length; i ++){\n sum += scores[i];\n }\n average = (double)sum / n;\n double var = 0;\n for(int i=0; i<scores.length; i ++){\n var += Math.pow(scores[i] - average, 2);\n }\n variance = var/n;\n System.out.println(String.format(\"%.8f\",Math.sqrt(variance)));\n }", "true", "{\n int n = sc.nextInt();\n if(n==0){break;}\n int[] scores = new int[n];\n for(int i=0; i < scores.length; i ++){\n scores[i] = sc.nextInt();\n }\n double average = 0, variance = 0;\n int sum = 0;\n for(int i=0; i < scores.length; i ++){\n sum += scores[i];\n }\n average = (double)sum / n;\n double var = 0;\n for(int i=0; i<scores.length; i ++){\n var += Math.pow(scores[i] - average, 2);\n }\n variance = var/n;\n System.out.println(String.format(\"%.8f\",Math.sqrt(variance)));\n }", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n==0){break;}", "n==0", "n", "0", "{break;}", "break;", "int[] scores = new int[n];", "scores", "new int[n]", "n", "for(int i=0; i < scores.length; i ++){\n scores[i] = sc.nextInt();\n }", "int i=0;", "int i=0;", "i", "0", "i < scores.length", "i", "scores.length", "scores", "scores.length", "i ++", "i ++", "i", "{\n scores[i] = sc.nextInt();\n }", "{\n scores[i] = sc.nextInt();\n }", "scores[i] = sc.nextInt()", "scores[i]", "scores", "i", "sc.nextInt()", "sc.nextInt", "sc", "double average = 0", "average", "0", "variance = 0;", "variance", "0", "int sum = 0;", "sum", "0", "for(int i=0; i < scores.length; i ++){\n sum += scores[i];\n }", "int i=0;", "int i=0;", "i", "0", "i < scores.length", "i", "scores.length", "scores", "scores.length", "i ++", "i ++", "i", "{\n sum += scores[i];\n }", "{\n sum += scores[i];\n }", "sum += scores[i]", "sum", "scores[i]", "scores", "i", "average = (double)sum / n", "average", "(double)sum / n", "(double)sum", "n", "double var = 0;", "var", "0", "for(int i=0; i<scores.length; i ++){\n var += Math.pow(scores[i] - average, 2);\n }", "int i=0;", "int i=0;", "i", "0", "i<scores.length", "i", "scores.length", "scores", "scores.length", "i ++", "i ++", "i", "{\n var += Math.pow(scores[i] - average, 2);\n }", "{\n var += Math.pow(scores[i] - average, 2);\n }", "var += Math.pow(scores[i] - average, 2)", "var", "Math.pow(scores[i] - average, 2)", "Math.pow", "Math", "scores[i] - average", "scores[i]", "scores", "i", "average", "2", "variance = var/n", "variance", "var/n", "var", "n", "System.out.println(String.format(\"%.8f\",Math.sqrt(variance)))", "System.out.println", "System.out", "System", "System.out", "String.format(\"%.8f\",Math.sqrt(variance))", "String.format", "String", "\"%.8f\"", "Math.sqrt(variance)", "Math.sqrt", "Math", "variance", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n try (java.util.Scanner sc = new Scanner(System.in)){\n while(true){\n int n = sc.nextInt();\n if(n==0){break;}\n int[] scores = new int[n];\n for(int i=0; i < scores.length; i ++){\n scores[i] = sc.nextInt();\n }\n double average = 0, variance = 0;\n int sum = 0;\n for(int i=0; i < scores.length; i ++){\n sum += scores[i];\n }\n average = (double)sum / n;\n double var = 0;\n for(int i=0; i<scores.length; i ++){\n var += Math.pow(scores[i] - average, 2);\n }\n variance = var/n;\n System.out.println(String.format(\"%.8f\",Math.sqrt(variance)));\n }\n sc.close();\n } \n }\n}", "public class Main{\n public static void main(String[] args){\n try (java.util.Scanner sc = new Scanner(System.in)){\n while(true){\n int n = sc.nextInt();\n if(n==0){break;}\n int[] scores = new int[n];\n for(int i=0; i < scores.length; i ++){\n scores[i] = sc.nextInt();\n }\n double average = 0, variance = 0;\n int sum = 0;\n for(int i=0; i < scores.length; i ++){\n sum += scores[i];\n }\n average = (double)sum / n;\n double var = 0;\n for(int i=0; i<scores.length; i ++){\n var += Math.pow(scores[i] - average, 2);\n }\n variance = var/n;\n System.out.println(String.format(\"%.8f\",Math.sqrt(variance)));\n }\n sc.close();\n } \n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ try (java.util.Scanner sc = new Scanner(System.in)){ while(true){ int n = sc.nextInt(); if(n==0){break;} int[] scores = new int[n]; for(int i=0; i < scores.length; i ++){ scores[i] = sc.nextInt(); } double average = 0, variance = 0; int sum = 0; for(int i=0; i < scores.length; i ++){ sum += scores[i]; } average = (double)sum / n; double var = 0; for(int i=0; i<scores.length; i ++){ var += Math.pow(scores[i] - average, 2); } variance = var/n; System.out.println(String.format("%.8f",Math.sqrt(variance))); } 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, 42, 17, 30, 0, 13, 4, 18, 13, 14, 2, 13, 17, 3, 41, 13, 20, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 17, 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 ], [ 116, 14 ], [ 116, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 25, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 31, 35 ], [ 25, 36 ], [ 36, 37 ], [ 36, 38 ], [ 25, 40 ], [ 40, 41 ], [ 40, 42 ], [ 25, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 43, 51 ], [ 51, 52 ], [ 52, 53 ], [ 43, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 61, 62 ], [ 55, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 25, 68 ], [ 68, 69 ], [ 68, 70 ], [ 25, 71 ], [ 71, 72 ], [ 71, 73 ], [ 25, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 79, 80 ], [ 79, 81 ], [ 74, 82 ], [ 82, 83 ], [ 83, 84 ], [ 74, 85 ], [ 86, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 89, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 25, 100 ], [ 100, 101 ], [ 100, 102 ], [ 25, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 103, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 15, 113 ], [ 113, 114 ], [ 0, 115 ], [ 115, 116 ], [ 115, 117 ] ]
[ "import java.io.*;\nimport java.util.*;\nimport java.lang.Math;\nimport java.util.Arrays;\n\npublic class Main {\n public static void main(final String[] args) {\n\n Scanner sc = new Scanner(System.in);\n \n int n;\n while (true) {\n n = sc.nextInt();\n if (n == 0)\n break;\n double s[] = new double[n];\n double ave = 0;\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextDouble();\n ave += s[i];\n }\n\n ave /= (double) n;\n double d = 0;\n for (int i = 0; i < n; i++) {\n d += (s[i] - ave) * (s[i] - ave);\n }\n d /= (double) n;\n System.out.printf(\"%.7f\\n\", Math.sqrt(d));\n }\n }\n \n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "import java.lang.Math;", "Math", "java.lang", "import java.util.Arrays;", "Arrays", "java.util", "public class Main {\n public static void main(final String[] args) {\n\n Scanner sc = new Scanner(System.in);\n \n int n;\n while (true) {\n n = sc.nextInt();\n if (n == 0)\n break;\n double s[] = new double[n];\n double ave = 0;\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextDouble();\n ave += s[i];\n }\n\n ave /= (double) n;\n double d = 0;\n for (int i = 0; i < n; i++) {\n d += (s[i] - ave) * (s[i] - ave);\n }\n d /= (double) n;\n System.out.printf(\"%.7f\\n\", Math.sqrt(d));\n }\n }\n \n}", "Main", "public static void main(final String[] args) {\n\n Scanner sc = new Scanner(System.in);\n \n int n;\n while (true) {\n n = sc.nextInt();\n if (n == 0)\n break;\n double s[] = new double[n];\n double ave = 0;\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextDouble();\n ave += s[i];\n }\n\n ave /= (double) n;\n double d = 0;\n for (int i = 0; i < n; i++) {\n d += (s[i] - ave) * (s[i] - ave);\n }\n d /= (double) n;\n System.out.printf(\"%.7f\\n\", Math.sqrt(d));\n }\n }", "main", "{\n\n Scanner sc = new Scanner(System.in);\n \n int n;\n while (true) {\n n = sc.nextInt();\n if (n == 0)\n break;\n double s[] = new double[n];\n double ave = 0;\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextDouble();\n ave += s[i];\n }\n\n ave /= (double) n;\n double d = 0;\n for (int i = 0; i < n; i++) {\n d += (s[i] - ave) * (s[i] - ave);\n }\n d /= (double) n;\n System.out.printf(\"%.7f\\n\", Math.sqrt(d));\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n;", "n", "while (true) {\n n = sc.nextInt();\n if (n == 0)\n break;\n double s[] = new double[n];\n double ave = 0;\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextDouble();\n ave += s[i];\n }\n\n ave /= (double) n;\n double d = 0;\n for (int i = 0; i < n; i++) {\n d += (s[i] - ave) * (s[i] - ave);\n }\n d /= (double) n;\n System.out.printf(\"%.7f\\n\", Math.sqrt(d));\n }", "true", "{\n n = sc.nextInt();\n if (n == 0)\n break;\n double s[] = new double[n];\n double ave = 0;\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextDouble();\n ave += s[i];\n }\n\n ave /= (double) n;\n double d = 0;\n for (int i = 0; i < n; i++) {\n d += (s[i] - ave) * (s[i] - ave);\n }\n d /= (double) n;\n System.out.printf(\"%.7f\\n\", Math.sqrt(d));\n }", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "if (n == 0)\n break;", "n == 0", "n", "0", "break;", "double s[] = new double[n];", "s", "new double[n]", "n", "double ave = 0;", "ave", "0", "for (int i = 0; i < n; i++) {\n s[i] = sc.nextDouble();\n ave += s[i];\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n s[i] = sc.nextDouble();\n ave += s[i];\n }", "{\n s[i] = sc.nextDouble();\n ave += s[i];\n }", "s[i] = sc.nextDouble()", "s[i]", "s", "i", "sc.nextDouble()", "sc.nextDouble", "sc", "ave += s[i]", "ave", "s[i]", "s", "i", "ave /= (double) n", "ave", "(double) n", "double d = 0;", "d", "0", "for (int i = 0; i < n; i++) {\n d += (s[i] - ave) * (s[i] - ave);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n d += (s[i] - ave) * (s[i] - ave);\n }", "{\n d += (s[i] - ave) * (s[i] - ave);\n }", "d += (s[i] - ave) * (s[i] - ave)", "d", "(s[i] - ave) * (s[i] - ave)", "(s[i] - ave)", "s[i]", "s", "i", "ave", "(s[i] - ave)", "s[i]", "s", "i", "ave", "d /= (double) n", "d", "(double) n", "System.out.printf(\"%.7f\\n\", Math.sqrt(d))", "System.out.printf", "System.out", "System", "System.out", "\"%.7f\\n\"", "Math.sqrt(d)", "Math.sqrt", "Math", "d", "final String[] args", "args", "public class Main {\n public static void main(final String[] args) {\n\n Scanner sc = new Scanner(System.in);\n \n int n;\n while (true) {\n n = sc.nextInt();\n if (n == 0)\n break;\n double s[] = new double[n];\n double ave = 0;\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextDouble();\n ave += s[i];\n }\n\n ave /= (double) n;\n double d = 0;\n for (int i = 0; i < n; i++) {\n d += (s[i] - ave) * (s[i] - ave);\n }\n d /= (double) n;\n System.out.printf(\"%.7f\\n\", Math.sqrt(d));\n }\n }\n \n}", "public class Main {\n public static void main(final String[] args) {\n\n Scanner sc = new Scanner(System.in);\n \n int n;\n while (true) {\n n = sc.nextInt();\n if (n == 0)\n break;\n double s[] = new double[n];\n double ave = 0;\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextDouble();\n ave += s[i];\n }\n\n ave /= (double) n;\n double d = 0;\n for (int i = 0; i < n; i++) {\n d += (s[i] - ave) * (s[i] - ave);\n }\n d /= (double) n;\n System.out.printf(\"%.7f\\n\", Math.sqrt(d));\n }\n }\n \n}", "Main" ]
import java.io.*; import java.util.*; import java.lang.Math; import java.util.Arrays; public class Main { public static void main(final String[] args) { Scanner sc = new Scanner(System.in); int n; while (true) { n = sc.nextInt(); if (n == 0) break; double s[] = new double[n]; double ave = 0; for (int i = 0; i < n; i++) { s[i] = sc.nextDouble(); ave += s[i]; } ave /= (double) n; double d = 0; for (int i = 0; i < n; i++) { d += (s[i] - ave) * (s[i] - ave); } d /= (double) n; System.out.printf("%.7f\n", Math.sqrt(d)); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 3, 41, 13, 20, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 0, 18, 13, 13, 4, 18, 13, 0, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 2, 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 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 16, 27 ], [ 27, 28 ], [ 27, 29 ], [ 16, 31 ], [ 31, 32 ], [ 31, 33 ], [ 16, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 34, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 16, 56 ], [ 56, 57 ], [ 56, 58 ], [ 16, 59 ], [ 59, 60 ], [ 59, 61 ], [ 16, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 67, 68 ], [ 67, 69 ], [ 62, 70 ], [ 70, 71 ], [ 71, 72 ], [ 62, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 77, 85 ], [ 16, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 94, 95 ], [ 94, 96 ], [ 6, 97 ], [ 97, 98 ], [ 0, 99 ], [ 99, 100 ], [ 99, 101 ] ]
[ "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\twhile (sc.hasNextInt()) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0) break;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0;\n\t\t\tfor (int i = 0; i < n; ++i) {\n\t\t\t\tm += s[i] = sc.nextInt();\n\t\t\t}\n\t\t\tm /= n;\n\t\t\tdouble a = 0;\n\t\t\tfor (int i = 0; i < n; ++i) {\n\t\t\t\ta += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(a / n));\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\twhile (sc.hasNextInt()) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0) break;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0;\n\t\t\tfor (int i = 0; i < n; ++i) {\n\t\t\t\tm += s[i] = sc.nextInt();\n\t\t\t}\n\t\t\tm /= n;\n\t\t\tdouble a = 0;\n\t\t\tfor (int i = 0; i < n; ++i) {\n\t\t\t\ta += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(a / n));\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNextInt()) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0) break;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0;\n\t\t\tfor (int i = 0; i < n; ++i) {\n\t\t\t\tm += s[i] = sc.nextInt();\n\t\t\t}\n\t\t\tm /= n;\n\t\t\tdouble a = 0;\n\t\t\tfor (int i = 0; i < n; ++i) {\n\t\t\t\ta += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(a / n));\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNextInt()) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0) break;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0;\n\t\t\tfor (int i = 0; i < n; ++i) {\n\t\t\t\tm += s[i] = sc.nextInt();\n\t\t\t}\n\t\t\tm /= n;\n\t\t\tdouble a = 0;\n\t\t\tfor (int i = 0; i < n; ++i) {\n\t\t\t\ta += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(a / n));\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (sc.hasNextInt()) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0) break;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0;\n\t\t\tfor (int i = 0; i < n; ++i) {\n\t\t\t\tm += s[i] = sc.nextInt();\n\t\t\t}\n\t\t\tm /= n;\n\t\t\tdouble a = 0;\n\t\t\tfor (int i = 0; i < n; ++i) {\n\t\t\t\ta += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(a / n));\n\t\t}", "sc.hasNextInt()", "sc.hasNextInt", "sc", "{\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0) break;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0;\n\t\t\tfor (int i = 0; i < n; ++i) {\n\t\t\t\tm += s[i] = sc.nextInt();\n\t\t\t}\n\t\t\tm /= n;\n\t\t\tdouble a = 0;\n\t\t\tfor (int i = 0; i < n; ++i) {\n\t\t\t\ta += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(a / n));\n\t\t}", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if (n == 0) break;", "n == 0", "n", "0", "break;", "int[] s = new int[n];", "s", "new int[n]", "n", "double m = 0;", "m", "0", "for (int i = 0; i < n; ++i) {\n\t\t\t\tm += s[i] = sc.nextInt();\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "++i", "++i", "i", "{\n\t\t\t\tm += s[i] = sc.nextInt();\n\t\t\t}", "{\n\t\t\t\tm += s[i] = sc.nextInt();\n\t\t\t}", "m += s[i] = sc.nextInt()", "m", "s[i] = sc.nextInt()", "s[i]", "s", "i", "sc.nextInt()", "sc.nextInt", "sc", "m /= n", "m", "n", "double a = 0;", "a", "0", "for (int i = 0; i < n; ++i) {\n\t\t\t\ta += Math.pow(s[i] - m, 2);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "++i", "++i", "i", "{\n\t\t\t\ta += Math.pow(s[i] - m, 2);\n\t\t\t}", "{\n\t\t\t\ta += Math.pow(s[i] - m, 2);\n\t\t\t}", "a += Math.pow(s[i] - m, 2)", "a", "Math.pow(s[i] - m, 2)", "Math.pow", "Math", "s[i] - m", "s[i]", "s", "i", "m", "2", "System.out.println(Math.sqrt(a / n))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(a / n)", "Math.sqrt", "Math", "a / n", "a", "n", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNextInt()) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0) break;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0;\n\t\t\tfor (int i = 0; i < n; ++i) {\n\t\t\t\tm += s[i] = sc.nextInt();\n\t\t\t}\n\t\t\tm /= n;\n\t\t\tdouble a = 0;\n\t\t\tfor (int i = 0; i < n; ++i) {\n\t\t\t\ta += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(a / n));\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNextInt()) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0) break;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0;\n\t\t\tfor (int i = 0; i < n; ++i) {\n\t\t\t\tm += s[i] = sc.nextInt();\n\t\t\t}\n\t\t\tm /= n;\n\t\t\tdouble a = 0;\n\t\t\tfor (int i = 0; i < n; ++i) {\n\t\t\t\ta += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(a / n));\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); while (sc.hasNextInt()) { int n = sc.nextInt(); if (n == 0) break; int[] s = new int[n]; double m = 0; for (int i = 0; i < n; ++i) { m += s[i] = sc.nextInt(); } m /= n; double a = 0; for (int i = 0; i < n; ++i) { a += Math.pow(s[i] - m, 2); } System.out.println(Math.sqrt(a / n)); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 17, 41, 13, 41, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 4, 18, 13, 14, 2, 13, 17, 3, 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, 28, 13, 13, 30, 0, 13, 13, 0, 13, 2, 13, 13, 28, 13, 13, 30, 0, 13, 4, 18, 13, 2, 13, 13, 17, 0, 13, 13, 0, 13, 4, 18, 13, 13, 4, 18, 13, 2, 4, 18, 13, 17, 13, 17, 0, 13, 17, 0, 13, 17, 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 ], [ 145, 11 ], [ 145, 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 ], [ 14, 26 ], [ 26, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 14, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 39, 40 ], [ 40, 41 ], [ 33, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 33, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 49, 54 ], [ 33, 55 ], [ 55, 56 ], [ 55, 57 ], [ 58, 59 ], [ 58, 60 ], [ 33, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 61, 71 ], [ 71, 72 ], [ 72, 73 ], [ 61, 74 ], [ 75, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 83, 84 ], [ 83, 85 ], [ 33, 86 ], [ 86, 87 ], [ 86, 88 ], [ 86, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 33, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 33, 98 ], [ 98, 99 ], [ 98, 100 ], [ 98, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 107, 108 ], [ 107, 109 ], [ 104, 110 ], [ 33, 111 ], [ 111, 112 ], [ 111, 113 ], [ 33, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 117, 118 ], [ 116, 119 ], [ 33, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 124, 127 ], [ 124, 128 ], [ 123, 129 ], [ 33, 130 ], [ 130, 131 ], [ 130, 132 ], [ 33, 133 ], [ 133, 134 ], [ 133, 135 ], [ 14, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 136, 141 ], [ 12, 142 ], [ 142, 143 ], [ 0, 144 ], [ 144, 145 ], [ 144, 146 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.lang.Math;\n/*Question\n/n ????????????????????????????????§????????°???????????°???????¨?????????£??????????????????????????????s1, s2 ... sn??¨????????¨??????????¨??????????????±???????????????°????????????????????????\n/?????????????????????m??¨????????°????????£?±2?????\\???????????§????????????:\n/?±2 = (???ni=1(si - m)2)/n\n/?????£?????£????????????????¨???????????±??¨?????????\n*/\n/*Input\n/?????°??????????????????????????\\?????¨????????????????????????\n/??????????????????????????\\????????¢?????§???????????????:\n/???????????° n s1 s2 ... sn\n/n ??? 0 ?????¨?????\\?????????????????¨?????????\n*/\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t//????????¨\n\t\tStringBuffer b = new StringBuffer();\n\t\t//????¨??????\\??????double t??????????????\\??????double m????????£?????\\??????double o????¨???????????????\\??????double p\n\t\tdouble t = 0;\n\t\tdouble m,p;\n\t\tdouble o = 0;\n\t\twhile (true){\n\t\t\t/*??\\?????¨\n\t\t\t/?????????????????°?????£??\\\n\t\t\t*/\n\t\t\tint n = Integer.parseInt(sc.readLine());\n\t\t\tif(n==0)\n\t\t\t\tbreak;\n\t\t\tString[] st = sc.readLine().split(\" \");\n\t\t\tint[] z = new int[st.length];\n\t\t\tfor(int i = 0;i < st.length;i++){\n\t\t\t\tz[i] = Integer.parseInt(st[i]);\n\t\t\t}\n\t\t\t//????¨?????¨????\n\t\t\tfor(int i:z)\n\t\t\t\tt += i;\n\t\t\t//??????????¨????\n\t\t\tm = t/n;\n\t\t\t//?????£????¨????\n\t\t\tfor(int i:z)\n\t\t\t\to += Math.pow(i - m,2);\n\t\t\to /= n;\n\t\t\t//?¨??????????????¨????\n\t\t\tp = Math.sqrt(o);\n\t\t\tb.append(String.format(\"%.8f\",p)+\"\\n\");\n\t\t\t//t:????¨????o:?????£???????????¢????????????????????¨??£?????????????????????\n\t\t\tt = 0;\n\t\t\to = 0;\n\t\t}\n\t\tSystem.out.println(b);\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.lang.Math;", "Math", "java.lang", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t//????????¨\n\t\tStringBuffer b = new StringBuffer();\n\t\t//????¨??????\\??????double t??????????????\\??????double m????????£?????\\??????double o????¨???????????????\\??????double p\n\t\tdouble t = 0;\n\t\tdouble m,p;\n\t\tdouble o = 0;\n\t\twhile (true){\n\t\t\t/*??\\?????¨\n\t\t\t/?????????????????°?????£??\\\n\t\t\t*/\n\t\t\tint n = Integer.parseInt(sc.readLine());\n\t\t\tif(n==0)\n\t\t\t\tbreak;\n\t\t\tString[] st = sc.readLine().split(\" \");\n\t\t\tint[] z = new int[st.length];\n\t\t\tfor(int i = 0;i < st.length;i++){\n\t\t\t\tz[i] = Integer.parseInt(st[i]);\n\t\t\t}\n\t\t\t//????¨?????¨????\n\t\t\tfor(int i:z)\n\t\t\t\tt += i;\n\t\t\t//??????????¨????\n\t\t\tm = t/n;\n\t\t\t//?????£????¨????\n\t\t\tfor(int i:z)\n\t\t\t\to += Math.pow(i - m,2);\n\t\t\to /= n;\n\t\t\t//?¨??????????????¨????\n\t\t\tp = Math.sqrt(o);\n\t\t\tb.append(String.format(\"%.8f\",p)+\"\\n\");\n\t\t\t//t:????¨????o:?????£???????????¢????????????????????¨??£?????????????????????\n\t\t\tt = 0;\n\t\t\to = 0;\n\t\t}\n\t\tSystem.out.println(b);\n\t}\n}", "Main", "public static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t//????????¨\n\t\tStringBuffer b = new StringBuffer();\n\t\t//????¨??????\\??????double t??????????????\\??????double m????????£?????\\??????double o????¨???????????????\\??????double p\n\t\tdouble t = 0;\n\t\tdouble m,p;\n\t\tdouble o = 0;\n\t\twhile (true){\n\t\t\t/*??\\?????¨\n\t\t\t/?????????????????°?????£??\\\n\t\t\t*/\n\t\t\tint n = Integer.parseInt(sc.readLine());\n\t\t\tif(n==0)\n\t\t\t\tbreak;\n\t\t\tString[] st = sc.readLine().split(\" \");\n\t\t\tint[] z = new int[st.length];\n\t\t\tfor(int i = 0;i < st.length;i++){\n\t\t\t\tz[i] = Integer.parseInt(st[i]);\n\t\t\t}\n\t\t\t//????¨?????¨????\n\t\t\tfor(int i:z)\n\t\t\t\tt += i;\n\t\t\t//??????????¨????\n\t\t\tm = t/n;\n\t\t\t//?????£????¨????\n\t\t\tfor(int i:z)\n\t\t\t\to += Math.pow(i - m,2);\n\t\t\to /= n;\n\t\t\t//?¨??????????????¨????\n\t\t\tp = Math.sqrt(o);\n\t\t\tb.append(String.format(\"%.8f\",p)+\"\\n\");\n\t\t\t//t:????¨????o:?????£???????????¢????????????????????¨??£?????????????????????\n\t\t\tt = 0;\n\t\t\to = 0;\n\t\t}\n\t\tSystem.out.println(b);\n\t}", "main", "{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t//????????¨\n\t\tStringBuffer b = new StringBuffer();\n\t\t//????¨??????\\??????double t??????????????\\??????double m????????£?????\\??????double o????¨???????????????\\??????double p\n\t\tdouble t = 0;\n\t\tdouble m,p;\n\t\tdouble o = 0;\n\t\twhile (true){\n\t\t\t/*??\\?????¨\n\t\t\t/?????????????????°?????£??\\\n\t\t\t*/\n\t\t\tint n = Integer.parseInt(sc.readLine());\n\t\t\tif(n==0)\n\t\t\t\tbreak;\n\t\t\tString[] st = sc.readLine().split(\" \");\n\t\t\tint[] z = new int[st.length];\n\t\t\tfor(int i = 0;i < st.length;i++){\n\t\t\t\tz[i] = Integer.parseInt(st[i]);\n\t\t\t}\n\t\t\t//????¨?????¨????\n\t\t\tfor(int i:z)\n\t\t\t\tt += i;\n\t\t\t//??????????¨????\n\t\t\tm = t/n;\n\t\t\t//?????£????¨????\n\t\t\tfor(int i:z)\n\t\t\t\to += Math.pow(i - m,2);\n\t\t\to /= n;\n\t\t\t//?¨??????????????¨????\n\t\t\tp = Math.sqrt(o);\n\t\t\tb.append(String.format(\"%.8f\",p)+\"\\n\");\n\t\t\t//t:????¨????o:?????£???????????¢????????????????????¨??£?????????????????????\n\t\t\tt = 0;\n\t\t\to = 0;\n\t\t}\n\t\tSystem.out.println(b);\n\t}", "BufferedReader sc = new BufferedReader(new InputStreamReader(System.in));", "sc", "new BufferedReader(new InputStreamReader(System.in))", "StringBuffer b = new StringBuffer();", "b", "new StringBuffer()", "double t = 0;", "t", "0", "double m", "m", "p;", "p", "double o = 0;", "o", "0", "while (true){\n\t\t\t/*??\\?????¨\n\t\t\t/?????????????????°?????£??\\\n\t\t\t*/\n\t\t\tint n = Integer.parseInt(sc.readLine());\n\t\t\tif(n==0)\n\t\t\t\tbreak;\n\t\t\tString[] st = sc.readLine().split(\" \");\n\t\t\tint[] z = new int[st.length];\n\t\t\tfor(int i = 0;i < st.length;i++){\n\t\t\t\tz[i] = Integer.parseInt(st[i]);\n\t\t\t}\n\t\t\t//????¨?????¨????\n\t\t\tfor(int i:z)\n\t\t\t\tt += i;\n\t\t\t//??????????¨????\n\t\t\tm = t/n;\n\t\t\t//?????£????¨????\n\t\t\tfor(int i:z)\n\t\t\t\to += Math.pow(i - m,2);\n\t\t\to /= n;\n\t\t\t//?¨??????????????¨????\n\t\t\tp = Math.sqrt(o);\n\t\t\tb.append(String.format(\"%.8f\",p)+\"\\n\");\n\t\t\t//t:????¨????o:?????£???????????¢????????????????????¨??£?????????????????????\n\t\t\tt = 0;\n\t\t\to = 0;\n\t\t}", "true", "{\n\t\t\t/*??\\?????¨\n\t\t\t/?????????????????°?????£??\\\n\t\t\t*/\n\t\t\tint n = Integer.parseInt(sc.readLine());\n\t\t\tif(n==0)\n\t\t\t\tbreak;\n\t\t\tString[] st = sc.readLine().split(\" \");\n\t\t\tint[] z = new int[st.length];\n\t\t\tfor(int i = 0;i < st.length;i++){\n\t\t\t\tz[i] = Integer.parseInt(st[i]);\n\t\t\t}\n\t\t\t//????¨?????¨????\n\t\t\tfor(int i:z)\n\t\t\t\tt += i;\n\t\t\t//??????????¨????\n\t\t\tm = t/n;\n\t\t\t//?????£????¨????\n\t\t\tfor(int i:z)\n\t\t\t\to += Math.pow(i - m,2);\n\t\t\to /= n;\n\t\t\t//?¨??????????????¨????\n\t\t\tp = Math.sqrt(o);\n\t\t\tb.append(String.format(\"%.8f\",p)+\"\\n\");\n\t\t\t//t:????¨????o:?????£???????????¢????????????????????¨??£?????????????????????\n\t\t\tt = 0;\n\t\t\to = 0;\n\t\t}", "int n = Integer.parseInt(sc.readLine());", "n", "Integer.parseInt(sc.readLine())", "Integer.parseInt", "Integer", "sc.readLine()", "sc.readLine", "sc", "if(n==0)\n\t\t\t\tbreak;", "n==0", "n", "0", "break;", "String[] st = sc.readLine().split(\" \");", "st", "sc.readLine().split(\" \")", "sc.readLine().split", "sc.readLine()", "sc.readLine", "sc", "\" \"", "int[] z = new int[st.length];", "z", "new int[st.length]", "st.length", "st", "st.length", "for(int i = 0;i < st.length;i++){\n\t\t\t\tz[i] = Integer.parseInt(st[i]);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < st.length", "i", "st.length", "st", "st.length", "i++", "i++", "i", "{\n\t\t\t\tz[i] = Integer.parseInt(st[i]);\n\t\t\t}", "{\n\t\t\t\tz[i] = Integer.parseInt(st[i]);\n\t\t\t}", "z[i] = Integer.parseInt(st[i])", "z[i]", "z", "i", "Integer.parseInt(st[i])", "Integer.parseInt", "Integer", "st[i]", "st", "i", "for(int i:z)\n\t\t\t\tt += i;", "int i", "z", "t += i;", "t += i", "t", "i", "m = t/n", "m", "t/n", "t", "n", "for(int i:z)\n\t\t\t\to += Math.pow(i - m,2);", "int i", "z", "o += Math.pow(i - m,2);", "o += Math.pow(i - m,2)", "o", "Math.pow(i - m,2)", "Math.pow", "Math", "i - m", "i", "m", "2", "o /= n", "o", "n", "p = Math.sqrt(o)", "p", "Math.sqrt(o)", "Math.sqrt", "Math", "o", "b.append(String.format(\"%.8f\",p)+\"\\n\")", "b.append", "b", "String.format(\"%.8f\",p)+\"\\n\"", "String.format(\"%.8f\",p)", "String.format", "String", "\"%.8f\"", "p", "\"\\n\"", "t = 0", "t", "0", "o = 0", "o", "0", "System.out.println(b)", "System.out.println", "System.out", "System", "System.out", "b", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t//????????¨\n\t\tStringBuffer b = new StringBuffer();\n\t\t//????¨??????\\??????double t??????????????\\??????double m????????£?????\\??????double o????¨???????????????\\??????double p\n\t\tdouble t = 0;\n\t\tdouble m,p;\n\t\tdouble o = 0;\n\t\twhile (true){\n\t\t\t/*??\\?????¨\n\t\t\t/?????????????????°?????£??\\\n\t\t\t*/\n\t\t\tint n = Integer.parseInt(sc.readLine());\n\t\t\tif(n==0)\n\t\t\t\tbreak;\n\t\t\tString[] st = sc.readLine().split(\" \");\n\t\t\tint[] z = new int[st.length];\n\t\t\tfor(int i = 0;i < st.length;i++){\n\t\t\t\tz[i] = Integer.parseInt(st[i]);\n\t\t\t}\n\t\t\t//????¨?????¨????\n\t\t\tfor(int i:z)\n\t\t\t\tt += i;\n\t\t\t//??????????¨????\n\t\t\tm = t/n;\n\t\t\t//?????£????¨????\n\t\t\tfor(int i:z)\n\t\t\t\to += Math.pow(i - m,2);\n\t\t\to /= n;\n\t\t\t//?¨??????????????¨????\n\t\t\tp = Math.sqrt(o);\n\t\t\tb.append(String.format(\"%.8f\",p)+\"\\n\");\n\t\t\t//t:????¨????o:?????£???????????¢????????????????????¨??£?????????????????????\n\t\t\tt = 0;\n\t\t\to = 0;\n\t\t}\n\t\tSystem.out.println(b);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t//????????¨\n\t\tStringBuffer b = new StringBuffer();\n\t\t//????¨??????\\??????double t??????????????\\??????double m????????£?????\\??????double o????¨???????????????\\??????double p\n\t\tdouble t = 0;\n\t\tdouble m,p;\n\t\tdouble o = 0;\n\t\twhile (true){\n\t\t\t/*??\\?????¨\n\t\t\t/?????????????????°?????£??\\\n\t\t\t*/\n\t\t\tint n = Integer.parseInt(sc.readLine());\n\t\t\tif(n==0)\n\t\t\t\tbreak;\n\t\t\tString[] st = sc.readLine().split(\" \");\n\t\t\tint[] z = new int[st.length];\n\t\t\tfor(int i = 0;i < st.length;i++){\n\t\t\t\tz[i] = Integer.parseInt(st[i]);\n\t\t\t}\n\t\t\t//????¨?????¨????\n\t\t\tfor(int i:z)\n\t\t\t\tt += i;\n\t\t\t//??????????¨????\n\t\t\tm = t/n;\n\t\t\t//?????£????¨????\n\t\t\tfor(int i:z)\n\t\t\t\to += Math.pow(i - m,2);\n\t\t\to /= n;\n\t\t\t//?¨??????????????¨????\n\t\t\tp = Math.sqrt(o);\n\t\t\tb.append(String.format(\"%.8f\",p)+\"\\n\");\n\t\t\t//t:????¨????o:?????£???????????¢????????????????????¨??£?????????????????????\n\t\t\tt = 0;\n\t\t\to = 0;\n\t\t}\n\t\tSystem.out.println(b);\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.lang.Math; /*Question /n ????????????????????????????????§????????°???????????°???????¨?????????£??????????????????????????????s1, s2 ... sn??¨????????¨??????????¨??????????????±???????????????°???????????????????????? /?????????????????????m??¨????????°????????£?±2?????\???????????§????????????: /?±2 = (???ni=1(si - m)2)/n /?????£?????£????????????????¨???????????±??¨????????? */ /*Input /?????°??????????????????????????\?????¨???????????????????????? /??????????????????????????\????????¢?????§???????????????: /???????????° n s1 s2 ... sn /n ??? 0 ?????¨?????\?????????????????¨????????? */ public class Main { public static void main(String[] args) throws Exception{ BufferedReader sc = new BufferedReader(new InputStreamReader(System.in)); //????????¨ StringBuffer b = new StringBuffer(); //????¨??????\??????double t??????????????\??????double m????????£?????\??????double o????¨???????????????\??????double p double t = 0; double m,p; double o = 0; while (true){ /*??\?????¨ /?????????????????°?????£??\ */ int n = Integer.parseInt(sc.readLine()); if(n==0) break; String[] st = sc.readLine().split(" "); int[] z = new int[st.length]; for(int i = 0;i < st.length;i++){ z[i] = Integer.parseInt(st[i]); } //????¨?????¨???? for(int i:z) t += i; //??????????¨???? m = t/n; //?????£????¨???? for(int i:z) o += Math.pow(i - m,2); o /= n; //?¨??????????????¨???? p = Math.sqrt(o); b.append(String.format("%.8f",p)+"\n"); //t:????¨????o:?????£???????????¢????????????????????¨??£????????????????????? t = 0; o = 0; } System.out.println(b); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 20, 42, 17, 30, 38, 5, 13, 30, 3, 30, 0, 13, 17, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 3, 41, 13, 20, 13, 0, 13, 4, 18, 13, 28, 13, 4, 18, 13, 17, 30, 30, 0, 18, 13, 13, 4, 18, 13, 13, 40, 13, 0, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 2, 13, 13, 0, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 17, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 169, 11 ], [ 169, 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 ], [ 24, 26 ], [ 14, 27 ], [ 27, 28 ], [ 27, 29 ], [ 14, 30 ], [ 30, 31 ], [ 30, 32 ], [ 14, 33 ], [ 33, 34 ], [ 33, 35 ], [ 14, 36 ], [ 36, 37 ], [ 36, 38 ], [ 14, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 42, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 47, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 47, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 47, 68 ], [ 68, 69 ], [ 68, 70 ], [ 47, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 47, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 77, 83 ], [ 84, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 84, 93 ], [ 93, 94 ], [ 47, 95 ], [ 95, 96 ], [ 95, 97 ], [ 47, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 103, 104 ], [ 103, 105 ], [ 98, 106 ], [ 106, 107 ], [ 107, 108 ], [ 98, 109 ], [ 110, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 113, 115 ], [ 47, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 118, 120 ], [ 47, 121 ], [ 121, 122 ], [ 121, 123 ], [ 47, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 129, 130 ], [ 129, 131 ], [ 124, 132 ], [ 132, 133 ], [ 133, 134 ], [ 124, 135 ], [ 136, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 140, 141 ], [ 139, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 142, 146 ], [ 139, 147 ], [ 47, 148 ], [ 148, 149 ], [ 148, 150 ], [ 150, 151 ], [ 150, 152 ], [ 47, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 153, 158 ], [ 158, 159 ], [ 159, 160 ], [ 158, 161 ], [ 158, 162 ], [ 162, 163 ], [ 163, 164 ], [ 162, 165 ], [ 12, 166 ], [ 166, 167 ], [ 0, 168 ], [ 168, 169 ], [ 168, 170 ] ]
[ "import java.io.*;\nimport java.util.ArrayList;\nimport java.*;\npublic class Main{\n\tpublic static void main(String args[]){\n double a=0,b=0,c=0,i=0,n=0,j=0,m=0;\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n\n\n while(true){\n try{\n i = 0;\n String line = reader.readLine();\n n = Double.parseDouble(line);\n if (n == 0.0) {\n break;\n }\n Double bar[] = new Double[(int)n];\n line = reader.readLine();\n for(String splitted: line.split(\" \")){\n bar[(int)i] = Double.parseDouble(splitted);\n i++;\n }\n a = 0;\n for(b=0;b<n;b++){\n a += bar[(int)b];\n }\n m = a / n;\n\n c = 0;\n for(b=0;b<n;b++){\n c += Math.pow((bar[(int)b] - m),2);\n }\n j = c / n;\n System.out.println(String.format(\"%.8f\", Math.sqrt(j)));\n \n\n\n\n\n\n\t\t}catch(Exception e){\n break;\n }\n\n\n\n\n\n }\n\n\n\n \n\t}\n}", "import java.io.*;", "io.*", "java", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.*;", "java.*", "import java.*;", "public class Main{\n\tpublic static void main(String args[]){\n double a=0,b=0,c=0,i=0,n=0,j=0,m=0;\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n\n\n while(true){\n try{\n i = 0;\n String line = reader.readLine();\n n = Double.parseDouble(line);\n if (n == 0.0) {\n break;\n }\n Double bar[] = new Double[(int)n];\n line = reader.readLine();\n for(String splitted: line.split(\" \")){\n bar[(int)i] = Double.parseDouble(splitted);\n i++;\n }\n a = 0;\n for(b=0;b<n;b++){\n a += bar[(int)b];\n }\n m = a / n;\n\n c = 0;\n for(b=0;b<n;b++){\n c += Math.pow((bar[(int)b] - m),2);\n }\n j = c / n;\n System.out.println(String.format(\"%.8f\", Math.sqrt(j)));\n \n\n\n\n\n\n\t\t}catch(Exception e){\n break;\n }\n\n\n\n\n\n }\n\n\n\n \n\t}\n}", "Main", "public static void main(String args[]){\n double a=0,b=0,c=0,i=0,n=0,j=0,m=0;\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n\n\n while(true){\n try{\n i = 0;\n String line = reader.readLine();\n n = Double.parseDouble(line);\n if (n == 0.0) {\n break;\n }\n Double bar[] = new Double[(int)n];\n line = reader.readLine();\n for(String splitted: line.split(\" \")){\n bar[(int)i] = Double.parseDouble(splitted);\n i++;\n }\n a = 0;\n for(b=0;b<n;b++){\n a += bar[(int)b];\n }\n m = a / n;\n\n c = 0;\n for(b=0;b<n;b++){\n c += Math.pow((bar[(int)b] - m),2);\n }\n j = c / n;\n System.out.println(String.format(\"%.8f\", Math.sqrt(j)));\n \n\n\n\n\n\n\t\t}catch(Exception e){\n break;\n }\n\n\n\n\n\n }\n\n\n\n \n\t}", "main", "{\n double a=0,b=0,c=0,i=0,n=0,j=0,m=0;\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n\n\n while(true){\n try{\n i = 0;\n String line = reader.readLine();\n n = Double.parseDouble(line);\n if (n == 0.0) {\n break;\n }\n Double bar[] = new Double[(int)n];\n line = reader.readLine();\n for(String splitted: line.split(\" \")){\n bar[(int)i] = Double.parseDouble(splitted);\n i++;\n }\n a = 0;\n for(b=0;b<n;b++){\n a += bar[(int)b];\n }\n m = a / n;\n\n c = 0;\n for(b=0;b<n;b++){\n c += Math.pow((bar[(int)b] - m),2);\n }\n j = c / n;\n System.out.println(String.format(\"%.8f\", Math.sqrt(j)));\n \n\n\n\n\n\n\t\t}catch(Exception e){\n break;\n }\n\n\n\n\n\n }\n\n\n\n \n\t}", "double a=0", "a", "0", "b=0", "b", "0", "c=0", "c", "0", "i=0", "i", "0", "n=0", "n", "0", "j=0", "j", "0", "m=0;", "m", "0", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "while(true){\n try{\n i = 0;\n String line = reader.readLine();\n n = Double.parseDouble(line);\n if (n == 0.0) {\n break;\n }\n Double bar[] = new Double[(int)n];\n line = reader.readLine();\n for(String splitted: line.split(\" \")){\n bar[(int)i] = Double.parseDouble(splitted);\n i++;\n }\n a = 0;\n for(b=0;b<n;b++){\n a += bar[(int)b];\n }\n m = a / n;\n\n c = 0;\n for(b=0;b<n;b++){\n c += Math.pow((bar[(int)b] - m),2);\n }\n j = c / n;\n System.out.println(String.format(\"%.8f\", Math.sqrt(j)));\n \n\n\n\n\n\n\t\t}catch(Exception e){\n break;\n }\n\n\n\n\n\n }", "true", "{\n try{\n i = 0;\n String line = reader.readLine();\n n = Double.parseDouble(line);\n if (n == 0.0) {\n break;\n }\n Double bar[] = new Double[(int)n];\n line = reader.readLine();\n for(String splitted: line.split(\" \")){\n bar[(int)i] = Double.parseDouble(splitted);\n i++;\n }\n a = 0;\n for(b=0;b<n;b++){\n a += bar[(int)b];\n }\n m = a / n;\n\n c = 0;\n for(b=0;b<n;b++){\n c += Math.pow((bar[(int)b] - m),2);\n }\n j = c / n;\n System.out.println(String.format(\"%.8f\", Math.sqrt(j)));\n \n\n\n\n\n\n\t\t}catch(Exception e){\n break;\n }\n\n\n\n\n\n }", "try{\n i = 0;\n String line = reader.readLine();\n n = Double.parseDouble(line);\n if (n == 0.0) {\n break;\n }\n Double bar[] = new Double[(int)n];\n line = reader.readLine();\n for(String splitted: line.split(\" \")){\n bar[(int)i] = Double.parseDouble(splitted);\n i++;\n }\n a = 0;\n for(b=0;b<n;b++){\n a += bar[(int)b];\n }\n m = a / n;\n\n c = 0;\n for(b=0;b<n;b++){\n c += Math.pow((bar[(int)b] - m),2);\n }\n j = c / n;\n System.out.println(String.format(\"%.8f\", Math.sqrt(j)));\n \n\n\n\n\n\n\t\t}catch(Exception e){\n break;\n }", "catch(Exception e){\n break;\n }", "Exception e", "{\n break;\n }", "break;", "{\n i = 0;\n String line = reader.readLine();\n n = Double.parseDouble(line);\n if (n == 0.0) {\n break;\n }\n Double bar[] = new Double[(int)n];\n line = reader.readLine();\n for(String splitted: line.split(\" \")){\n bar[(int)i] = Double.parseDouble(splitted);\n i++;\n }\n a = 0;\n for(b=0;b<n;b++){\n a += bar[(int)b];\n }\n m = a / n;\n\n c = 0;\n for(b=0;b<n;b++){\n c += Math.pow((bar[(int)b] - m),2);\n }\n j = c / n;\n System.out.println(String.format(\"%.8f\", Math.sqrt(j)));\n \n\n\n\n\n\n\t\t}", "i = 0", "i", "0", "String line = reader.readLine();", "line", "reader.readLine()", "reader.readLine", "reader", "n = Double.parseDouble(line)", "n", "Double.parseDouble(line)", "Double.parseDouble", "Double", "line", "if (n == 0.0) {\n break;\n }", "n == 0.0", "n", "0.0", "{\n break;\n }", "break;", "Double bar[] = new Double[(int)n];", "bar", "new Double[(int)n]", "(int)n", "line = reader.readLine()", "line", "reader.readLine()", "reader.readLine", "reader", "for(String splitted: line.split(\" \")){\n bar[(int)i] = Double.parseDouble(splitted);\n i++;\n }", "String splitted", "line.split(\" \")", "line.split", "line", "\" \"", "{\n bar[(int)i] = Double.parseDouble(splitted);\n i++;\n }", "{\n bar[(int)i] = Double.parseDouble(splitted);\n i++;\n }", "bar[(int)i] = Double.parseDouble(splitted)", "bar[(int)i]", "bar", "(int)i", "Double.parseDouble(splitted)", "Double.parseDouble", "Double", "splitted", "i++", "i", "a = 0", "a", "0", "for(b=0;b<n;b++){\n a += bar[(int)b];\n }", "b=0;", "b=0", "b", "0", "b<n", "b", "n", "b++", "b++", "b", "{\n a += bar[(int)b];\n }", "{\n a += bar[(int)b];\n }", "a += bar[(int)b]", "a", "bar[(int)b]", "bar", "(int)b", "m = a / n", "m", "a / n", "a", "n", "c = 0", "c", "0", "for(b=0;b<n;b++){\n c += Math.pow((bar[(int)b] - m),2);\n }", "b=0;", "b=0", "b", "0", "b<n", "b", "n", "b++", "b++", "b", "{\n c += Math.pow((bar[(int)b] - m),2);\n }", "{\n c += Math.pow((bar[(int)b] - m),2);\n }", "c += Math.pow((bar[(int)b] - m),2)", "c", "Math.pow((bar[(int)b] - m),2)", "Math.pow", "Math", "(bar[(int)b] - m)", "bar[(int)b]", "bar", "(int)b", "m", "2", "j = c / n", "j", "c / n", "c", "n", "System.out.println(String.format(\"%.8f\", Math.sqrt(j)))", "System.out.println", "System.out", "System", "System.out", "String.format(\"%.8f\", Math.sqrt(j))", "String.format", "String", "\"%.8f\"", "Math.sqrt(j)", "Math.sqrt", "Math", "j", "String args[]", "args", "public class Main{\n\tpublic static void main(String args[]){\n double a=0,b=0,c=0,i=0,n=0,j=0,m=0;\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n\n\n while(true){\n try{\n i = 0;\n String line = reader.readLine();\n n = Double.parseDouble(line);\n if (n == 0.0) {\n break;\n }\n Double bar[] = new Double[(int)n];\n line = reader.readLine();\n for(String splitted: line.split(\" \")){\n bar[(int)i] = Double.parseDouble(splitted);\n i++;\n }\n a = 0;\n for(b=0;b<n;b++){\n a += bar[(int)b];\n }\n m = a / n;\n\n c = 0;\n for(b=0;b<n;b++){\n c += Math.pow((bar[(int)b] - m),2);\n }\n j = c / n;\n System.out.println(String.format(\"%.8f\", Math.sqrt(j)));\n \n\n\n\n\n\n\t\t}catch(Exception e){\n break;\n }\n\n\n\n\n\n }\n\n\n\n \n\t}\n}", "public class Main{\n\tpublic static void main(String args[]){\n double a=0,b=0,c=0,i=0,n=0,j=0,m=0;\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n\n\n while(true){\n try{\n i = 0;\n String line = reader.readLine();\n n = Double.parseDouble(line);\n if (n == 0.0) {\n break;\n }\n Double bar[] = new Double[(int)n];\n line = reader.readLine();\n for(String splitted: line.split(\" \")){\n bar[(int)i] = Double.parseDouble(splitted);\n i++;\n }\n a = 0;\n for(b=0;b<n;b++){\n a += bar[(int)b];\n }\n m = a / n;\n\n c = 0;\n for(b=0;b<n;b++){\n c += Math.pow((bar[(int)b] - m),2);\n }\n j = c / n;\n System.out.println(String.format(\"%.8f\", Math.sqrt(j)));\n \n\n\n\n\n\n\t\t}catch(Exception e){\n break;\n }\n\n\n\n\n\n }\n\n\n\n \n\t}\n}", "Main" ]
import java.io.*; import java.util.ArrayList; import java.*; public class Main{ public static void main(String args[]){ double a=0,b=0,c=0,i=0,n=0,j=0,m=0; BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); while(true){ try{ i = 0; String line = reader.readLine(); n = Double.parseDouble(line); if (n == 0.0) { break; } Double bar[] = new Double[(int)n]; line = reader.readLine(); for(String splitted: line.split(" ")){ bar[(int)i] = Double.parseDouble(splitted); i++; } a = 0; for(b=0;b<n;b++){ a += bar[(int)b]; } m = a / n; c = 0; for(b=0;b<n;b++){ c += Math.pow((bar[(int)b] - m),2); } j = c / n; System.out.println(String.format("%.8f", Math.sqrt(j))); }catch(Exception e){ break; } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 41, 13, 17, 41, 13, 41, 13, 17, 0, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 0, 13, 13, 0, 18, 13, 13, 13, 0, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 0, 13, 13, 4, 18, 18, 13, 13, 17, 4, 18, 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 ], [ 14, 17 ], [ 17, 18 ], [ 17, 19 ], [ 14, 20 ], [ 20, 21 ], [ 14, 22 ], [ 22, 23 ], [ 22, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 14, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 34, 35 ], [ 14, 36 ], [ 36, 37 ], [ 36, 38 ], [ 14, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 40, 48 ], [ 48, 49 ], [ 49, 50 ], [ 40, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 52, 58 ], [ 58, 59 ], [ 58, 60 ], [ 52, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 14, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 14, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 76, 77 ], [ 76, 78 ], [ 71, 79 ], [ 79, 80 ], [ 80, 81 ], [ 71, 82 ], [ 83, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 86, 94 ], [ 14, 95 ], [ 95, 96 ], [ 95, 97 ], [ 14, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 98, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 6, 108 ], [ 108, 109 ], [ 0, 110 ], [ 110, 111 ], [ 110, 112 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args){\t\t\n\t\t//データの入力の準備\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile (true){\n\t\t\tint num;\n\t\t\tdouble sum = 0;\n\t\t\tdouble ave;\n\t\t\tdouble bunsan = 0;\n\t\t\t\n\t\t\tnum = sc.nextInt();\n\t\t\t\n\t\t\t//終了条件の判定\n\t\t\tif (num == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\n\t\t\t//データ格納用配列\n\t\t\tdouble[] datas = new double[num];\n\t\t\n\t\t\t//データの入力\n\t\t\tfor (int i = 0; i < num;i++){\n\t\t\t\tdouble temp = sc.nextDouble();\n\t\t\t\tsum += temp;\n\t\t\t\tdatas[i] = temp;\n\t\t\t}\n\t\t\n\t\t\t//平均を求める\n\t\t\tave = sum / num;\n\t\t\n\t\t\t//分散を計算\n\t\t\tfor (int i = 0; i < num; i++){\n\t\t\t\tbunsan += Math.pow((datas[i] - ave), 2);\n\t\t\t}\n\t\t\tbunsan /= num;\n\t\t\n\t\t\tSystem.out.printf(\"%f\\n\",Math.sqrt(bunsan));\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String[] args){\t\t\n\t\t//データの入力の準備\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile (true){\n\t\t\tint num;\n\t\t\tdouble sum = 0;\n\t\t\tdouble ave;\n\t\t\tdouble bunsan = 0;\n\t\t\t\n\t\t\tnum = sc.nextInt();\n\t\t\t\n\t\t\t//終了条件の判定\n\t\t\tif (num == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\n\t\t\t//データ格納用配列\n\t\t\tdouble[] datas = new double[num];\n\t\t\n\t\t\t//データの入力\n\t\t\tfor (int i = 0; i < num;i++){\n\t\t\t\tdouble temp = sc.nextDouble();\n\t\t\t\tsum += temp;\n\t\t\t\tdatas[i] = temp;\n\t\t\t}\n\t\t\n\t\t\t//平均を求める\n\t\t\tave = sum / num;\n\t\t\n\t\t\t//分散を計算\n\t\t\tfor (int i = 0; i < num; i++){\n\t\t\t\tbunsan += Math.pow((datas[i] - ave), 2);\n\t\t\t}\n\t\t\tbunsan /= num;\n\t\t\n\t\t\tSystem.out.printf(\"%f\\n\",Math.sqrt(bunsan));\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\t\t\n\t\t//データの入力の準備\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile (true){\n\t\t\tint num;\n\t\t\tdouble sum = 0;\n\t\t\tdouble ave;\n\t\t\tdouble bunsan = 0;\n\t\t\t\n\t\t\tnum = sc.nextInt();\n\t\t\t\n\t\t\t//終了条件の判定\n\t\t\tif (num == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\n\t\t\t//データ格納用配列\n\t\t\tdouble[] datas = new double[num];\n\t\t\n\t\t\t//データの入力\n\t\t\tfor (int i = 0; i < num;i++){\n\t\t\t\tdouble temp = sc.nextDouble();\n\t\t\t\tsum += temp;\n\t\t\t\tdatas[i] = temp;\n\t\t\t}\n\t\t\n\t\t\t//平均を求める\n\t\t\tave = sum / num;\n\t\t\n\t\t\t//分散を計算\n\t\t\tfor (int i = 0; i < num; i++){\n\t\t\t\tbunsan += Math.pow((datas[i] - ave), 2);\n\t\t\t}\n\t\t\tbunsan /= num;\n\t\t\n\t\t\tSystem.out.printf(\"%f\\n\",Math.sqrt(bunsan));\n\t\t}\n\t}", "main", "{\t\t\n\t\t//データの入力の準備\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile (true){\n\t\t\tint num;\n\t\t\tdouble sum = 0;\n\t\t\tdouble ave;\n\t\t\tdouble bunsan = 0;\n\t\t\t\n\t\t\tnum = sc.nextInt();\n\t\t\t\n\t\t\t//終了条件の判定\n\t\t\tif (num == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\n\t\t\t//データ格納用配列\n\t\t\tdouble[] datas = new double[num];\n\t\t\n\t\t\t//データの入力\n\t\t\tfor (int i = 0; i < num;i++){\n\t\t\t\tdouble temp = sc.nextDouble();\n\t\t\t\tsum += temp;\n\t\t\t\tdatas[i] = temp;\n\t\t\t}\n\t\t\n\t\t\t//平均を求める\n\t\t\tave = sum / num;\n\t\t\n\t\t\t//分散を計算\n\t\t\tfor (int i = 0; i < num; i++){\n\t\t\t\tbunsan += Math.pow((datas[i] - ave), 2);\n\t\t\t}\n\t\t\tbunsan /= num;\n\t\t\n\t\t\tSystem.out.printf(\"%f\\n\",Math.sqrt(bunsan));\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (true){\n\t\t\tint num;\n\t\t\tdouble sum = 0;\n\t\t\tdouble ave;\n\t\t\tdouble bunsan = 0;\n\t\t\t\n\t\t\tnum = sc.nextInt();\n\t\t\t\n\t\t\t//終了条件の判定\n\t\t\tif (num == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\n\t\t\t//データ格納用配列\n\t\t\tdouble[] datas = new double[num];\n\t\t\n\t\t\t//データの入力\n\t\t\tfor (int i = 0; i < num;i++){\n\t\t\t\tdouble temp = sc.nextDouble();\n\t\t\t\tsum += temp;\n\t\t\t\tdatas[i] = temp;\n\t\t\t}\n\t\t\n\t\t\t//平均を求める\n\t\t\tave = sum / num;\n\t\t\n\t\t\t//分散を計算\n\t\t\tfor (int i = 0; i < num; i++){\n\t\t\t\tbunsan += Math.pow((datas[i] - ave), 2);\n\t\t\t}\n\t\t\tbunsan /= num;\n\t\t\n\t\t\tSystem.out.printf(\"%f\\n\",Math.sqrt(bunsan));\n\t\t}", "true", "{\n\t\t\tint num;\n\t\t\tdouble sum = 0;\n\t\t\tdouble ave;\n\t\t\tdouble bunsan = 0;\n\t\t\t\n\t\t\tnum = sc.nextInt();\n\t\t\t\n\t\t\t//終了条件の判定\n\t\t\tif (num == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\n\t\t\t//データ格納用配列\n\t\t\tdouble[] datas = new double[num];\n\t\t\n\t\t\t//データの入力\n\t\t\tfor (int i = 0; i < num;i++){\n\t\t\t\tdouble temp = sc.nextDouble();\n\t\t\t\tsum += temp;\n\t\t\t\tdatas[i] = temp;\n\t\t\t}\n\t\t\n\t\t\t//平均を求める\n\t\t\tave = sum / num;\n\t\t\n\t\t\t//分散を計算\n\t\t\tfor (int i = 0; i < num; i++){\n\t\t\t\tbunsan += Math.pow((datas[i] - ave), 2);\n\t\t\t}\n\t\t\tbunsan /= num;\n\t\t\n\t\t\tSystem.out.printf(\"%f\\n\",Math.sqrt(bunsan));\n\t\t}", "int num;", "num", "double sum = 0;", "sum", "0", "double ave;", "ave", "double bunsan = 0;", "bunsan", "0", "num = sc.nextInt()", "num", "sc.nextInt()", "sc.nextInt", "sc", "if (num == 0){\n\t\t\t\tbreak;\n\t\t\t}", "num == 0", "num", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "double[] datas = new double[num];", "datas", "new double[num]", "num", "for (int i = 0; i < num;i++){\n\t\t\t\tdouble temp = sc.nextDouble();\n\t\t\t\tsum += temp;\n\t\t\t\tdatas[i] = temp;\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < num", "i", "num", "i++", "i++", "i", "{\n\t\t\t\tdouble temp = sc.nextDouble();\n\t\t\t\tsum += temp;\n\t\t\t\tdatas[i] = temp;\n\t\t\t}", "{\n\t\t\t\tdouble temp = sc.nextDouble();\n\t\t\t\tsum += temp;\n\t\t\t\tdatas[i] = temp;\n\t\t\t}", "double temp = sc.nextDouble();", "temp", "sc.nextDouble()", "sc.nextDouble", "sc", "sum += temp", "sum", "temp", "datas[i] = temp", "datas[i]", "datas", "i", "temp", "ave = sum / num", "ave", "sum / num", "sum", "num", "for (int i = 0; i < num; i++){\n\t\t\t\tbunsan += Math.pow((datas[i] - ave), 2);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < num", "i", "num", "i++", "i++", "i", "{\n\t\t\t\tbunsan += Math.pow((datas[i] - ave), 2);\n\t\t\t}", "{\n\t\t\t\tbunsan += Math.pow((datas[i] - ave), 2);\n\t\t\t}", "bunsan += Math.pow((datas[i] - ave), 2)", "bunsan", "Math.pow((datas[i] - ave), 2)", "Math.pow", "Math", "(datas[i] - ave)", "datas[i]", "datas", "i", "ave", "2", "bunsan /= num", "bunsan", "num", "System.out.printf(\"%f\\n\",Math.sqrt(bunsan))", "System.out.printf", "System.out", "System", "System.out", "\"%f\\n\"", "Math.sqrt(bunsan)", "Math.sqrt", "Math", "bunsan", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args){\t\t\n\t\t//データの入力の準備\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile (true){\n\t\t\tint num;\n\t\t\tdouble sum = 0;\n\t\t\tdouble ave;\n\t\t\tdouble bunsan = 0;\n\t\t\t\n\t\t\tnum = sc.nextInt();\n\t\t\t\n\t\t\t//終了条件の判定\n\t\t\tif (num == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\n\t\t\t//データ格納用配列\n\t\t\tdouble[] datas = new double[num];\n\t\t\n\t\t\t//データの入力\n\t\t\tfor (int i = 0; i < num;i++){\n\t\t\t\tdouble temp = sc.nextDouble();\n\t\t\t\tsum += temp;\n\t\t\t\tdatas[i] = temp;\n\t\t\t}\n\t\t\n\t\t\t//平均を求める\n\t\t\tave = sum / num;\n\t\t\n\t\t\t//分散を計算\n\t\t\tfor (int i = 0; i < num; i++){\n\t\t\t\tbunsan += Math.pow((datas[i] - ave), 2);\n\t\t\t}\n\t\t\tbunsan /= num;\n\t\t\n\t\t\tSystem.out.printf(\"%f\\n\",Math.sqrt(bunsan));\n\t\t}\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args){\t\t\n\t\t//データの入力の準備\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile (true){\n\t\t\tint num;\n\t\t\tdouble sum = 0;\n\t\t\tdouble ave;\n\t\t\tdouble bunsan = 0;\n\t\t\t\n\t\t\tnum = sc.nextInt();\n\t\t\t\n\t\t\t//終了条件の判定\n\t\t\tif (num == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\n\t\t\t//データ格納用配列\n\t\t\tdouble[] datas = new double[num];\n\t\t\n\t\t\t//データの入力\n\t\t\tfor (int i = 0; i < num;i++){\n\t\t\t\tdouble temp = sc.nextDouble();\n\t\t\t\tsum += temp;\n\t\t\t\tdatas[i] = temp;\n\t\t\t}\n\t\t\n\t\t\t//平均を求める\n\t\t\tave = sum / num;\n\t\t\n\t\t\t//分散を計算\n\t\t\tfor (int i = 0; i < num; i++){\n\t\t\t\tbunsan += Math.pow((datas[i] - ave), 2);\n\t\t\t}\n\t\t\tbunsan /= num;\n\t\t\n\t\t\tSystem.out.printf(\"%f\\n\",Math.sqrt(bunsan));\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); while (true){ int num; double sum = 0; double ave; double bunsan = 0; num = sc.nextInt(); //終了条件の判定 if (num == 0){ break; } //データ格納用配列 double[] datas = new double[num]; //データの入力 for (int i = 0; i < num;i++){ double temp = sc.nextDouble(); sum += temp; datas[i] = temp; } //平均を求める ave = sum / num; //分散を計算 for (int i = 0; i < num; i++){ bunsan += Math.pow((datas[i] - ave), 2); } bunsan /= num; System.out.printf("%f\n",Math.sqrt(bunsan)); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 42, 17, 30, 0, 13, 17, 0, 13, 17, 0, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 20, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 2, 13, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 0, 13, 13, 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 ], [ 124, 5 ], [ 124, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 32, 33 ], [ 32, 34 ], [ 28, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 28, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 44, 45 ], [ 28, 46 ], [ 46, 47 ], [ 46, 48 ], [ 28, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 55, 56 ], [ 55, 57 ], [ 50, 58 ], [ 58, 59 ], [ 59, 60 ], [ 50, 61 ], [ 62, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 68, 69 ], [ 62, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 28, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 28, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 85, 86 ], [ 85, 87 ], [ 80, 88 ], [ 88, 89 ], [ 89, 90 ], [ 80, 91 ], [ 92, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 95, 103 ], [ 92, 104 ], [ 104, 105 ], [ 104, 106 ], [ 28, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 112, 113 ], [ 112, 114 ], [ 28, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 6, 121 ], [ 121, 122 ], [ 0, 123 ], [ 123, 124 ], [ 123, 125 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int i,n;\n double sum,a,m,sig,sigma;\n while(true) {\n \tsum=0;\n \tsig=0;\n \tn=scan.nextInt();\n \tif(n==0) {\n \t\tbreak;\n \t}\n \tdouble s[]=new double[n];\n \tfor(i=0;i<n;i++) {\n \t\ts[i]=scan.nextDouble();\n \t\tsum+=s[i];\n \t}\n \tm=sum/n;\n \tfor(i=0;i<n;i++) {\n \t\tsigma=Math.pow(s[i]-m,2);\n \t\tsig+=sigma;\n \t}\n \ta=Math.sqrt(sig/n);\n \tSystem.out.println(a);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int i,n;\n double sum,a,m,sig,sigma;\n while(true) {\n \tsum=0;\n \tsig=0;\n \tn=scan.nextInt();\n \tif(n==0) {\n \t\tbreak;\n \t}\n \tdouble s[]=new double[n];\n \tfor(i=0;i<n;i++) {\n \t\ts[i]=scan.nextDouble();\n \t\tsum+=s[i];\n \t}\n \tm=sum/n;\n \tfor(i=0;i<n;i++) {\n \t\tsigma=Math.pow(s[i]-m,2);\n \t\tsig+=sigma;\n \t}\n \ta=Math.sqrt(sig/n);\n \tSystem.out.println(a);\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int i,n;\n double sum,a,m,sig,sigma;\n while(true) {\n \tsum=0;\n \tsig=0;\n \tn=scan.nextInt();\n \tif(n==0) {\n \t\tbreak;\n \t}\n \tdouble s[]=new double[n];\n \tfor(i=0;i<n;i++) {\n \t\ts[i]=scan.nextDouble();\n \t\tsum+=s[i];\n \t}\n \tm=sum/n;\n \tfor(i=0;i<n;i++) {\n \t\tsigma=Math.pow(s[i]-m,2);\n \t\tsig+=sigma;\n \t}\n \ta=Math.sqrt(sig/n);\n \tSystem.out.println(a);\n }\n }", "main", "{\n Scanner scan=new Scanner(System.in);\n int i,n;\n double sum,a,m,sig,sigma;\n while(true) {\n \tsum=0;\n \tsig=0;\n \tn=scan.nextInt();\n \tif(n==0) {\n \t\tbreak;\n \t}\n \tdouble s[]=new double[n];\n \tfor(i=0;i<n;i++) {\n \t\ts[i]=scan.nextDouble();\n \t\tsum+=s[i];\n \t}\n \tm=sum/n;\n \tfor(i=0;i<n;i++) {\n \t\tsigma=Math.pow(s[i]-m,2);\n \t\tsig+=sigma;\n \t}\n \ta=Math.sqrt(sig/n);\n \tSystem.out.println(a);\n }\n }", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "int i", "i", "n;", "n", "double sum", "sum", "a", "a", "m", "m", "sig", "sig", "sigma;", "sigma", "while(true) {\n \tsum=0;\n \tsig=0;\n \tn=scan.nextInt();\n \tif(n==0) {\n \t\tbreak;\n \t}\n \tdouble s[]=new double[n];\n \tfor(i=0;i<n;i++) {\n \t\ts[i]=scan.nextDouble();\n \t\tsum+=s[i];\n \t}\n \tm=sum/n;\n \tfor(i=0;i<n;i++) {\n \t\tsigma=Math.pow(s[i]-m,2);\n \t\tsig+=sigma;\n \t}\n \ta=Math.sqrt(sig/n);\n \tSystem.out.println(a);\n }", "true", "{\n \tsum=0;\n \tsig=0;\n \tn=scan.nextInt();\n \tif(n==0) {\n \t\tbreak;\n \t}\n \tdouble s[]=new double[n];\n \tfor(i=0;i<n;i++) {\n \t\ts[i]=scan.nextDouble();\n \t\tsum+=s[i];\n \t}\n \tm=sum/n;\n \tfor(i=0;i<n;i++) {\n \t\tsigma=Math.pow(s[i]-m,2);\n \t\tsig+=sigma;\n \t}\n \ta=Math.sqrt(sig/n);\n \tSystem.out.println(a);\n }", "sum=0", "sum", "0", "sig=0", "sig", "0", "n=scan.nextInt()", "n", "scan.nextInt()", "scan.nextInt", "scan", "if(n==0) {\n \t\tbreak;\n \t}", "n==0", "n", "0", "{\n \t\tbreak;\n \t}", "break;", "double s[]=new double[n];", "s", "new double[n]", "n", "for(i=0;i<n;i++) {\n \t\ts[i]=scan.nextDouble();\n \t\tsum+=s[i];\n \t}", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n \t\ts[i]=scan.nextDouble();\n \t\tsum+=s[i];\n \t}", "{\n \t\ts[i]=scan.nextDouble();\n \t\tsum+=s[i];\n \t}", "s[i]=scan.nextDouble()", "s[i]", "s", "i", "scan.nextDouble()", "scan.nextDouble", "scan", "sum+=s[i]", "sum", "s[i]", "s", "i", "m=sum/n", "m", "sum/n", "sum", "n", "for(i=0;i<n;i++) {\n \t\tsigma=Math.pow(s[i]-m,2);\n \t\tsig+=sigma;\n \t}", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n \t\tsigma=Math.pow(s[i]-m,2);\n \t\tsig+=sigma;\n \t}", "{\n \t\tsigma=Math.pow(s[i]-m,2);\n \t\tsig+=sigma;\n \t}", "sigma=Math.pow(s[i]-m,2)", "sigma", "Math.pow(s[i]-m,2)", "Math.pow", "Math", "s[i]-m", "s[i]", "s", "i", "m", "2", "sig+=sigma", "sig", "sigma", "a=Math.sqrt(sig/n)", "a", "Math.sqrt(sig/n)", "Math.sqrt", "Math", "sig/n", "sig", "n", "System.out.println(a)", "System.out.println", "System.out", "System", "System.out", "a", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int i,n;\n double sum,a,m,sig,sigma;\n while(true) {\n \tsum=0;\n \tsig=0;\n \tn=scan.nextInt();\n \tif(n==0) {\n \t\tbreak;\n \t}\n \tdouble s[]=new double[n];\n \tfor(i=0;i<n;i++) {\n \t\ts[i]=scan.nextDouble();\n \t\tsum+=s[i];\n \t}\n \tm=sum/n;\n \tfor(i=0;i<n;i++) {\n \t\tsigma=Math.pow(s[i]-m,2);\n \t\tsig+=sigma;\n \t}\n \ta=Math.sqrt(sig/n);\n \tSystem.out.println(a);\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int i,n;\n double sum,a,m,sig,sigma;\n while(true) {\n \tsum=0;\n \tsig=0;\n \tn=scan.nextInt();\n \tif(n==0) {\n \t\tbreak;\n \t}\n \tdouble s[]=new double[n];\n \tfor(i=0;i<n;i++) {\n \t\ts[i]=scan.nextDouble();\n \t\tsum+=s[i];\n \t}\n \tm=sum/n;\n \tfor(i=0;i<n;i++) {\n \t\tsigma=Math.pow(s[i]-m,2);\n \t\tsig+=sigma;\n \t}\n \ta=Math.sqrt(sig/n);\n \tSystem.out.println(a);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan=new Scanner(System.in); int i,n; double sum,a,m,sig,sigma; while(true) { sum=0; sig=0; n=scan.nextInt(); if(n==0) { break; } double s[]=new double[n]; for(i=0;i<n;i++) { s[i]=scan.nextDouble(); sum+=s[i]; } m=sum/n; for(i=0;i<n;i++) { sigma=Math.pow(s[i]-m,2); sig+=sigma; } a=Math.sqrt(sig/n); System.out.println(a); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 20, 17, 41, 13, 41, 13, 41, 13, 20, 42, 17, 30, 0, 13, 17, 0, 13, 17, 0, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 0, 13, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 13, 28, 13, 13, 30, 30, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 126, 5 ], [ 126, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 8, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 33, 34 ], [ 33, 35 ], [ 29, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 29, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 29, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 47, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 65, 66 ], [ 59, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 29, 72 ], [ 72, 73 ], [ 72, 74 ], [ 29, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 80, 81 ], [ 80, 82 ], [ 75, 83 ], [ 83, 84 ], [ 84, 85 ], [ 75, 86 ], [ 87, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 90, 98 ], [ 29, 99 ], [ 99, 100 ], [ 99, 101 ], [ 29, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 8, 112 ], [ 112, 113 ], [ 112, 114 ], [ 112, 115 ], [ 116, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 6, 123 ], [ 123, 124 ], [ 0, 125 ], [ 125, 126 ], [ 125, 127 ] ]
[ "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 n, i;\n\t\tint s[] = new int[1000];\n\t\tdouble myu, bunsan;\n\t\tArrayList<Double> sigma = new ArrayList<Double>();\n\t\t\n\t\twhile(true){\n\t\t\tmyu = 0;\n\t\t\tbunsan = 0;\n\t\t\tn = sc.nextInt();\n\t\t\t\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tmyu += s[i];\n\t\t\t}\n\t\t\t\n\t\t\tmyu /= n;\n\t\t\t\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\tbunsan += Math.pow((s[i] - myu), 2);\n\t\t\t}\n\t\t\tbunsan /= n;\n\t\t\tsigma.add(Math.abs(Math.sqrt(bunsan)));\n\t\t}\n\t\t\n\t\tfor(double d : sigma){\n\t\t\tSystem.out.println(d);\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 n, i;\n\t\tint s[] = new int[1000];\n\t\tdouble myu, bunsan;\n\t\tArrayList<Double> sigma = new ArrayList<Double>();\n\t\t\n\t\twhile(true){\n\t\t\tmyu = 0;\n\t\t\tbunsan = 0;\n\t\t\tn = sc.nextInt();\n\t\t\t\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tmyu += s[i];\n\t\t\t}\n\t\t\t\n\t\t\tmyu /= n;\n\t\t\t\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\tbunsan += Math.pow((s[i] - myu), 2);\n\t\t\t}\n\t\t\tbunsan /= n;\n\t\t\tsigma.add(Math.abs(Math.sqrt(bunsan)));\n\t\t}\n\t\t\n\t\tfor(double d : sigma){\n\t\t\tSystem.out.println(d);\n\t\t}\n\t}\n}", "Main", "public static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n, i;\n\t\tint s[] = new int[1000];\n\t\tdouble myu, bunsan;\n\t\tArrayList<Double> sigma = new ArrayList<Double>();\n\t\t\n\t\twhile(true){\n\t\t\tmyu = 0;\n\t\t\tbunsan = 0;\n\t\t\tn = sc.nextInt();\n\t\t\t\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tmyu += s[i];\n\t\t\t}\n\t\t\t\n\t\t\tmyu /= n;\n\t\t\t\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\tbunsan += Math.pow((s[i] - myu), 2);\n\t\t\t}\n\t\t\tbunsan /= n;\n\t\t\tsigma.add(Math.abs(Math.sqrt(bunsan)));\n\t\t}\n\t\t\n\t\tfor(double d : sigma){\n\t\t\tSystem.out.println(d);\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n, i;\n\t\tint s[] = new int[1000];\n\t\tdouble myu, bunsan;\n\t\tArrayList<Double> sigma = new ArrayList<Double>();\n\t\t\n\t\twhile(true){\n\t\t\tmyu = 0;\n\t\t\tbunsan = 0;\n\t\t\tn = sc.nextInt();\n\t\t\t\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tmyu += s[i];\n\t\t\t}\n\t\t\t\n\t\t\tmyu /= n;\n\t\t\t\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\tbunsan += Math.pow((s[i] - myu), 2);\n\t\t\t}\n\t\t\tbunsan /= n;\n\t\t\tsigma.add(Math.abs(Math.sqrt(bunsan)));\n\t\t}\n\t\t\n\t\tfor(double d : sigma){\n\t\t\tSystem.out.println(d);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n", "n", "i;", "i", "int s[] = new int[1000];", "s", "new int[1000]", "1000", "double myu", "myu", "bunsan;", "bunsan", "ArrayList<Double> sigma = new ArrayList<Double>();", "sigma", "new ArrayList<Double>()", "while(true){\n\t\t\tmyu = 0;\n\t\t\tbunsan = 0;\n\t\t\tn = sc.nextInt();\n\t\t\t\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tmyu += s[i];\n\t\t\t}\n\t\t\t\n\t\t\tmyu /= n;\n\t\t\t\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\tbunsan += Math.pow((s[i] - myu), 2);\n\t\t\t}\n\t\t\tbunsan /= n;\n\t\t\tsigma.add(Math.abs(Math.sqrt(bunsan)));\n\t\t}", "true", "{\n\t\t\tmyu = 0;\n\t\t\tbunsan = 0;\n\t\t\tn = sc.nextInt();\n\t\t\t\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tmyu += s[i];\n\t\t\t}\n\t\t\t\n\t\t\tmyu /= n;\n\t\t\t\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\tbunsan += Math.pow((s[i] - myu), 2);\n\t\t\t}\n\t\t\tbunsan /= n;\n\t\t\tsigma.add(Math.abs(Math.sqrt(bunsan)));\n\t\t}", "myu = 0", "myu", "0", "bunsan = 0", "bunsan", "0", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n == 0){\n\t\t\t\tbreak;\n\t\t\t}", "n == 0", "n", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "for(i = 0; i < n; i++){\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tmyu += s[i];\n\t\t\t}", "i = 0;", "i = 0", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tmyu += s[i];\n\t\t\t}", "{\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tmyu += s[i];\n\t\t\t}", "s[i] = sc.nextInt()", "s[i]", "s", "i", "sc.nextInt()", "sc.nextInt", "sc", "myu += s[i]", "myu", "s[i]", "s", "i", "myu /= n", "myu", "n", "for(i = 0; i < n; i++){\n\t\t\t\tbunsan += Math.pow((s[i] - myu), 2);\n\t\t\t}", "i = 0;", "i = 0", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tbunsan += Math.pow((s[i] - myu), 2);\n\t\t\t}", "{\n\t\t\t\tbunsan += Math.pow((s[i] - myu), 2);\n\t\t\t}", "bunsan += Math.pow((s[i] - myu), 2)", "bunsan", "Math.pow((s[i] - myu), 2)", "Math.pow", "Math", "(s[i] - myu)", "s[i]", "s", "i", "myu", "2", "bunsan /= n", "bunsan", "n", "sigma.add(Math.abs(Math.sqrt(bunsan)))", "sigma.add", "sigma", "Math.abs(Math.sqrt(bunsan))", "Math.abs", "Math", "Math.sqrt(bunsan)", "Math.sqrt", "Math", "bunsan", "for(double d : sigma){\n\t\t\tSystem.out.println(d);\n\t\t}", "double d", "sigma", "{\n\t\t\tSystem.out.println(d);\n\t\t}", "{\n\t\t\tSystem.out.println(d);\n\t\t}", "System.out.println(d)", "System.out.println", "System.out", "System", "System.out", "d", "String args[]", "args", "public class Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n, i;\n\t\tint s[] = new int[1000];\n\t\tdouble myu, bunsan;\n\t\tArrayList<Double> sigma = new ArrayList<Double>();\n\t\t\n\t\twhile(true){\n\t\t\tmyu = 0;\n\t\t\tbunsan = 0;\n\t\t\tn = sc.nextInt();\n\t\t\t\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tmyu += s[i];\n\t\t\t}\n\t\t\t\n\t\t\tmyu /= n;\n\t\t\t\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\tbunsan += Math.pow((s[i] - myu), 2);\n\t\t\t}\n\t\t\tbunsan /= n;\n\t\t\tsigma.add(Math.abs(Math.sqrt(bunsan)));\n\t\t}\n\t\t\n\t\tfor(double d : sigma){\n\t\t\tSystem.out.println(d);\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 n, i;\n\t\tint s[] = new int[1000];\n\t\tdouble myu, bunsan;\n\t\tArrayList<Double> sigma = new ArrayList<Double>();\n\t\t\n\t\twhile(true){\n\t\t\tmyu = 0;\n\t\t\tbunsan = 0;\n\t\t\tn = sc.nextInt();\n\t\t\t\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tmyu += s[i];\n\t\t\t}\n\t\t\t\n\t\t\tmyu /= n;\n\t\t\t\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\tbunsan += Math.pow((s[i] - myu), 2);\n\t\t\t}\n\t\t\tbunsan /= n;\n\t\t\tsigma.add(Math.abs(Math.sqrt(bunsan)));\n\t\t}\n\t\t\n\t\tfor(double d : sigma){\n\t\t\tSystem.out.println(d);\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 n, i; int s[] = new int[1000]; double myu, bunsan; ArrayList<Double> sigma = new ArrayList<Double>(); while(true){ myu = 0; bunsan = 0; n = sc.nextInt(); if(n == 0){ break; } for(i = 0; i < n; i++){ s[i] = sc.nextInt(); myu += s[i]; } myu /= n; for(i = 0; i < n; i++){ bunsan += Math.pow((s[i] - myu), 2); } bunsan /= n; sigma.add(Math.abs(Math.sqrt(bunsan))); } for(double d : sigma){ System.out.println(d); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 14, 2, 0, 13, 4, 18, 13, 4, 18, 13, 17, 3, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 41, 13, 17, 28, 13, 13, 30, 30, 0, 13, 13, 41, 13, 2, 20, 13, 41, 13, 17, 28, 13, 13, 30, 30, 0, 13, 2, 2, 13, 13, 2, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 17, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 113, 5 ], [ 113, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 24, 25 ], [ 25, 26 ], [ 18, 27 ], [ 17, 28 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 31, 36 ], [ 14, 37 ], [ 37, 38 ], [ 37, 39 ], [ 14, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 41, 49 ], [ 49, 50 ], [ 50, 51 ], [ 41, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 61, 62 ], [ 61, 63 ], [ 14, 64 ], [ 64, 65 ], [ 64, 66 ], [ 14, 67 ], [ 67, 68 ], [ 67, 69 ], [ 67, 70 ], [ 71, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 14, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 14, 80 ], [ 80, 81 ], [ 80, 82 ], [ 14, 83 ], [ 83, 84 ], [ 83, 85 ], [ 83, 86 ], [ 87, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 94, 95 ], [ 94, 96 ], [ 14, 97 ], [ 97, 98 ], [ 97, 99 ], [ 14, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 100, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 6, 110 ], [ 110, 111 ], [ 0, 112 ], [ 112, 113 ], [ 112, 114 ] ]
[ "import java.io.*;\n \npublic class Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n while(true){\n int n;\n if((n = Integer.parseInt(br.readLine())) == 0)\n break;\n \n String[] pointsStr = br.readLine().split(\" \");\n int[] points = new int[n];\n for(int i = 0;i < n;i++){\n points[i] = Integer.parseInt(pointsStr[i]);\n }\n \n int sum = 0;\n for(int point : points){\n sum += point;\n }\n double mean = (new Double(sum)) / n;\n double disp = 0;\n for(int point : points){\n disp += (point - mean) * (point - mean);\n }\n disp /= n;\n System.out.printf(\"%.8f%n\", Math.sqrt(disp));\n }\n }\n \n}", "import java.io.*;", "io.*", "java", "public class Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n while(true){\n int n;\n if((n = Integer.parseInt(br.readLine())) == 0)\n break;\n \n String[] pointsStr = br.readLine().split(\" \");\n int[] points = new int[n];\n for(int i = 0;i < n;i++){\n points[i] = Integer.parseInt(pointsStr[i]);\n }\n \n int sum = 0;\n for(int point : points){\n sum += point;\n }\n double mean = (new Double(sum)) / n;\n double disp = 0;\n for(int point : points){\n disp += (point - mean) * (point - mean);\n }\n disp /= n;\n System.out.printf(\"%.8f%n\", Math.sqrt(disp));\n }\n }\n \n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n while(true){\n int n;\n if((n = Integer.parseInt(br.readLine())) == 0)\n break;\n \n String[] pointsStr = br.readLine().split(\" \");\n int[] points = new int[n];\n for(int i = 0;i < n;i++){\n points[i] = Integer.parseInt(pointsStr[i]);\n }\n \n int sum = 0;\n for(int point : points){\n sum += point;\n }\n double mean = (new Double(sum)) / n;\n double disp = 0;\n for(int point : points){\n disp += (point - mean) * (point - mean);\n }\n disp /= n;\n System.out.printf(\"%.8f%n\", Math.sqrt(disp));\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n while(true){\n int n;\n if((n = Integer.parseInt(br.readLine())) == 0)\n break;\n \n String[] pointsStr = br.readLine().split(\" \");\n int[] points = new int[n];\n for(int i = 0;i < n;i++){\n points[i] = Integer.parseInt(pointsStr[i]);\n }\n \n int sum = 0;\n for(int point : points){\n sum += point;\n }\n double mean = (new Double(sum)) / n;\n double disp = 0;\n for(int point : points){\n disp += (point - mean) * (point - mean);\n }\n disp /= n;\n System.out.printf(\"%.8f%n\", Math.sqrt(disp));\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while(true){\n int n;\n if((n = Integer.parseInt(br.readLine())) == 0)\n break;\n \n String[] pointsStr = br.readLine().split(\" \");\n int[] points = new int[n];\n for(int i = 0;i < n;i++){\n points[i] = Integer.parseInt(pointsStr[i]);\n }\n \n int sum = 0;\n for(int point : points){\n sum += point;\n }\n double mean = (new Double(sum)) / n;\n double disp = 0;\n for(int point : points){\n disp += (point - mean) * (point - mean);\n }\n disp /= n;\n System.out.printf(\"%.8f%n\", Math.sqrt(disp));\n }", "true", "{\n int n;\n if((n = Integer.parseInt(br.readLine())) == 0)\n break;\n \n String[] pointsStr = br.readLine().split(\" \");\n int[] points = new int[n];\n for(int i = 0;i < n;i++){\n points[i] = Integer.parseInt(pointsStr[i]);\n }\n \n int sum = 0;\n for(int point : points){\n sum += point;\n }\n double mean = (new Double(sum)) / n;\n double disp = 0;\n for(int point : points){\n disp += (point - mean) * (point - mean);\n }\n disp /= n;\n System.out.printf(\"%.8f%n\", Math.sqrt(disp));\n }", "int n;", "n", "if((n = Integer.parseInt(br.readLine())) == 0)\n break;", "(n = Integer.parseInt(br.readLine())) == 0", "(n = Integer.parseInt(br.readLine()))", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "0", "break;", "String[] pointsStr = br.readLine().split(\" \");", "pointsStr", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int[] points = new int[n];", "points", "new int[n]", "n", "for(int i = 0;i < n;i++){\n points[i] = Integer.parseInt(pointsStr[i]);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n points[i] = Integer.parseInt(pointsStr[i]);\n }", "{\n points[i] = Integer.parseInt(pointsStr[i]);\n }", "points[i] = Integer.parseInt(pointsStr[i])", "points[i]", "points", "i", "Integer.parseInt(pointsStr[i])", "Integer.parseInt", "Integer", "pointsStr[i]", "pointsStr", "i", "int sum = 0;", "sum", "0", "for(int point : points){\n sum += point;\n }", "int point", "points", "{\n sum += point;\n }", "{\n sum += point;\n }", "sum += point", "sum", "point", "double mean = (new Double(sum)) / n;", "mean", "(new Double(sum)) / n", "(new Double(sum))", "n", "double disp = 0;", "disp", "0", "for(int point : points){\n disp += (point - mean) * (point - mean);\n }", "int point", "points", "{\n disp += (point - mean) * (point - mean);\n }", "{\n disp += (point - mean) * (point - mean);\n }", "disp += (point - mean) * (point - mean)", "disp", "(point - mean) * (point - mean)", "(point - mean)", "point", "mean", "(point - mean)", "point", "mean", "disp /= n", "disp", "n", "System.out.printf(\"%.8f%n\", Math.sqrt(disp))", "System.out.printf", "System.out", "System", "System.out", "\"%.8f%n\"", "Math.sqrt(disp)", "Math.sqrt", "Math", "disp", "String[] args", "args", "public class Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n while(true){\n int n;\n if((n = Integer.parseInt(br.readLine())) == 0)\n break;\n \n String[] pointsStr = br.readLine().split(\" \");\n int[] points = new int[n];\n for(int i = 0;i < n;i++){\n points[i] = Integer.parseInt(pointsStr[i]);\n }\n \n int sum = 0;\n for(int point : points){\n sum += point;\n }\n double mean = (new Double(sum)) / n;\n double disp = 0;\n for(int point : points){\n disp += (point - mean) * (point - mean);\n }\n disp /= n;\n System.out.printf(\"%.8f%n\", Math.sqrt(disp));\n }\n }\n \n}", "public class Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n while(true){\n int n;\n if((n = Integer.parseInt(br.readLine())) == 0)\n break;\n \n String[] pointsStr = br.readLine().split(\" \");\n int[] points = new int[n];\n for(int i = 0;i < n;i++){\n points[i] = Integer.parseInt(pointsStr[i]);\n }\n \n int sum = 0;\n for(int point : points){\n sum += point;\n }\n double mean = (new Double(sum)) / n;\n double disp = 0;\n for(int point : points){\n disp += (point - mean) * (point - mean);\n }\n disp /= n;\n System.out.printf(\"%.8f%n\", Math.sqrt(disp));\n }\n }\n \n}", "Main" ]
import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while(true){ int n; if((n = Integer.parseInt(br.readLine())) == 0) break; String[] pointsStr = br.readLine().split(" "); int[] points = new int[n]; for(int i = 0;i < n;i++){ points[i] = Integer.parseInt(pointsStr[i]); } int sum = 0; for(int point : points){ sum += point; } double mean = (new Double(sum)) / n; double disp = 0; for(int point : points){ disp += (point - mean) * (point - mean); } disp /= n; System.out.printf("%.8f%n", Math.sqrt(disp)); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 17, 41, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 0, 13, 13, 0, 13, 2, 13, 13, 0, 13, 2, 2, 13, 13, 2, 2, 2, 13, 13, 13, 13, 0, 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 ], [ 96, 5 ], [ 96, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 20, 32 ], [ 32, 33 ], [ 32, 34 ], [ 20, 35 ], [ 35, 36 ], [ 35, 37 ], [ 20, 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 ], [ 53, 54 ], [ 54, 55 ], [ 50, 56 ], [ 56, 57 ], [ 56, 58 ], [ 50, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 20, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 70, 76 ], [ 20, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 20, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 83, 89 ], [ 8, 90 ], [ 90, 91 ], [ 91, 92 ], [ 6, 93 ], [ 93, 94 ], [ 0, 95 ], [ 95, 96 ], [ 95, 97 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n int i;\n double dis,sta;\n Scanner sc=new Scanner(System.in);\n\n while(true){\n int n=sc.nextInt();\n if(n==0){\n break;\n }\n int sum=0,sqsum=0;\n for(i=0;i<n;i++){\n int score=sc.nextInt();\n sum+=score;\n sqsum+=score*score;\n }\n dis=(double)sqsum/n-(double)sum/n*(double)sum/n;\n sta=Math.sqrt(dis);\n System.out.printf(\"%.8f\\n\",sta);\n }\n sc.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n int i;\n double dis,sta;\n Scanner sc=new Scanner(System.in);\n\n while(true){\n int n=sc.nextInt();\n if(n==0){\n break;\n }\n int sum=0,sqsum=0;\n for(i=0;i<n;i++){\n int score=sc.nextInt();\n sum+=score;\n sqsum+=score*score;\n }\n dis=(double)sqsum/n-(double)sum/n*(double)sum/n;\n sta=Math.sqrt(dis);\n System.out.printf(\"%.8f\\n\",sta);\n }\n sc.close();\n }\n}", "Main", "public static void main(String[] args){\n int i;\n double dis,sta;\n Scanner sc=new Scanner(System.in);\n\n while(true){\n int n=sc.nextInt();\n if(n==0){\n break;\n }\n int sum=0,sqsum=0;\n for(i=0;i<n;i++){\n int score=sc.nextInt();\n sum+=score;\n sqsum+=score*score;\n }\n dis=(double)sqsum/n-(double)sum/n*(double)sum/n;\n sta=Math.sqrt(dis);\n System.out.printf(\"%.8f\\n\",sta);\n }\n sc.close();\n }", "main", "{\n int i;\n double dis,sta;\n Scanner sc=new Scanner(System.in);\n\n while(true){\n int n=sc.nextInt();\n if(n==0){\n break;\n }\n int sum=0,sqsum=0;\n for(i=0;i<n;i++){\n int score=sc.nextInt();\n sum+=score;\n sqsum+=score*score;\n }\n dis=(double)sqsum/n-(double)sum/n*(double)sum/n;\n sta=Math.sqrt(dis);\n System.out.printf(\"%.8f\\n\",sta);\n }\n sc.close();\n }", "int i;", "i", "double dis", "dis", "sta;", "sta", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n int n=sc.nextInt();\n if(n==0){\n break;\n }\n int sum=0,sqsum=0;\n for(i=0;i<n;i++){\n int score=sc.nextInt();\n sum+=score;\n sqsum+=score*score;\n }\n dis=(double)sqsum/n-(double)sum/n*(double)sum/n;\n sta=Math.sqrt(dis);\n System.out.printf(\"%.8f\\n\",sta);\n }", "true", "{\n int n=sc.nextInt();\n if(n==0){\n break;\n }\n int sum=0,sqsum=0;\n for(i=0;i<n;i++){\n int score=sc.nextInt();\n sum+=score;\n sqsum+=score*score;\n }\n dis=(double)sqsum/n-(double)sum/n*(double)sum/n;\n sta=Math.sqrt(dis);\n System.out.printf(\"%.8f\\n\",sta);\n }", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n==0){\n break;\n }", "n==0", "n", "0", "{\n break;\n }", "break;", "int sum=0", "sum", "0", "sqsum=0;", "sqsum", "0", "for(i=0;i<n;i++){\n int score=sc.nextInt();\n sum+=score;\n sqsum+=score*score;\n }", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n int score=sc.nextInt();\n sum+=score;\n sqsum+=score*score;\n }", "{\n int score=sc.nextInt();\n sum+=score;\n sqsum+=score*score;\n }", "int score=sc.nextInt();", "score", "sc.nextInt()", "sc.nextInt", "sc", "sum+=score", "sum", "score", "sqsum+=score*score", "sqsum", "score*score", "score", "score", "dis=(double)sqsum/n-(double)sum/n*(double)sum/n", "dis", "(double)sqsum/n-(double)sum/n*(double)sum/n", "(double)sqsum/n", "(double)sqsum", "n", "(double)sum/n*(double)sum/n", "(double)sum/n*(double)sum", "(double)sum/n", "(double)sum", "n", "(double)sum", "n", "sta=Math.sqrt(dis)", "sta", "Math.sqrt(dis)", "Math.sqrt", "Math", "dis", "System.out.printf(\"%.8f\\n\",sta)", "System.out.printf", "System.out", "System", "System.out", "\"%.8f\\n\"", "sta", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n int i;\n double dis,sta;\n Scanner sc=new Scanner(System.in);\n\n while(true){\n int n=sc.nextInt();\n if(n==0){\n break;\n }\n int sum=0,sqsum=0;\n for(i=0;i<n;i++){\n int score=sc.nextInt();\n sum+=score;\n sqsum+=score*score;\n }\n dis=(double)sqsum/n-(double)sum/n*(double)sum/n;\n sta=Math.sqrt(dis);\n System.out.printf(\"%.8f\\n\",sta);\n }\n sc.close();\n }\n}", "public class Main{\n public static void main(String[] args){\n int i;\n double dis,sta;\n Scanner sc=new Scanner(System.in);\n\n while(true){\n int n=sc.nextInt();\n if(n==0){\n break;\n }\n int sum=0,sqsum=0;\n for(i=0;i<n;i++){\n int score=sc.nextInt();\n sum+=score;\n sqsum+=score*score;\n }\n dis=(double)sqsum/n-(double)sum/n*(double)sum/n;\n sta=Math.sqrt(dis);\n System.out.printf(\"%.8f\\n\",sta);\n }\n sc.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ int i; double dis,sta; Scanner sc=new Scanner(System.in); while(true){ int n=sc.nextInt(); if(n==0){ break; } int sum=0,sqsum=0; for(i=0;i<n;i++){ int score=sc.nextInt(); sum+=score; sqsum+=score*score; } dis=(double)sqsum/n-(double)sum/n*(double)sum/n; sta=Math.sqrt(dis); System.out.printf("%.8f\n",sta); } sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 3, 41, 13, 20, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 4, 18, 13, 2, 18, 13, 13, 13, 17, 13, 4, 18, 18, 13, 13, 4, 18, 13, 13, 17, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 119, 14 ], [ 119, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 23, 34 ], [ 34, 35 ], [ 34, 36 ], [ 23, 38 ], [ 38, 39 ], [ 38, 40 ], [ 23, 41 ], [ 41, 42 ], [ 41, 43 ], [ 23, 44 ], [ 44, 45 ], [ 44, 46 ], [ 23, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 47, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 65, 66 ], [ 59, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 23, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 23, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 82, 83 ], [ 82, 84 ], [ 77, 85 ], [ 85, 86 ], [ 86, 87 ], [ 77, 88 ], [ 89, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 93, 101 ], [ 92, 102 ], [ 23, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 108, 112 ], [ 17, 113 ], [ 113, 114 ], [ 114, 115 ], [ 15, 116 ], [ 116, 117 ], [ 0, 118 ], [ 118, 119 ], [ 118, 120 ] ]
[ "import java.awt.print.Printable;\nimport java.util.Scanner;\nimport javax.sound.midi.SysexMessage;\nimport java.lang.Math;\n \npublic class Main{ \n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n\n while(true){\n int n = sc.nextInt();\n if(n==0)\n break;\n int scores[]=new int[n];\n int sum=0;\n double ave=0.0;\n double div=0.0;\n for(int i=0;i<n;i++){\n scores[i]=sc.nextInt();\n sum+=scores[i];\n }\n ave = (double)sum/(double)n;\n\n for(int i=0;i<n;i++){\n div += (Math.pow(scores[i]-ave,2))/n;\n }\n\n System.out.println(Math.pow(div, 0.5));\n }\n sc.close();\n \n } \n}", "import java.awt.print.Printable;", "Printable", "java.awt.print", "import java.util.Scanner;", "Scanner", "java.util", "import javax.sound.midi.SysexMessage;", "SysexMessage", "javax.sound.midi", "import java.lang.Math;", "Math", "java.lang", "public class Main{ \n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n\n while(true){\n int n = sc.nextInt();\n if(n==0)\n break;\n int scores[]=new int[n];\n int sum=0;\n double ave=0.0;\n double div=0.0;\n for(int i=0;i<n;i++){\n scores[i]=sc.nextInt();\n sum+=scores[i];\n }\n ave = (double)sum/(double)n;\n\n for(int i=0;i<n;i++){\n div += (Math.pow(scores[i]-ave,2))/n;\n }\n\n System.out.println(Math.pow(div, 0.5));\n }\n sc.close();\n \n } \n}", "Main", "public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n\n while(true){\n int n = sc.nextInt();\n if(n==0)\n break;\n int scores[]=new int[n];\n int sum=0;\n double ave=0.0;\n double div=0.0;\n for(int i=0;i<n;i++){\n scores[i]=sc.nextInt();\n sum+=scores[i];\n }\n ave = (double)sum/(double)n;\n\n for(int i=0;i<n;i++){\n div += (Math.pow(scores[i]-ave,2))/n;\n }\n\n System.out.println(Math.pow(div, 0.5));\n }\n sc.close();\n \n }", "main", "{\n\n Scanner sc = new Scanner(System.in);\n\n while(true){\n int n = sc.nextInt();\n if(n==0)\n break;\n int scores[]=new int[n];\n int sum=0;\n double ave=0.0;\n double div=0.0;\n for(int i=0;i<n;i++){\n scores[i]=sc.nextInt();\n sum+=scores[i];\n }\n ave = (double)sum/(double)n;\n\n for(int i=0;i<n;i++){\n div += (Math.pow(scores[i]-ave,2))/n;\n }\n\n System.out.println(Math.pow(div, 0.5));\n }\n sc.close();\n \n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n int n = sc.nextInt();\n if(n==0)\n break;\n int scores[]=new int[n];\n int sum=0;\n double ave=0.0;\n double div=0.0;\n for(int i=0;i<n;i++){\n scores[i]=sc.nextInt();\n sum+=scores[i];\n }\n ave = (double)sum/(double)n;\n\n for(int i=0;i<n;i++){\n div += (Math.pow(scores[i]-ave,2))/n;\n }\n\n System.out.println(Math.pow(div, 0.5));\n }", "true", "{\n int n = sc.nextInt();\n if(n==0)\n break;\n int scores[]=new int[n];\n int sum=0;\n double ave=0.0;\n double div=0.0;\n for(int i=0;i<n;i++){\n scores[i]=sc.nextInt();\n sum+=scores[i];\n }\n ave = (double)sum/(double)n;\n\n for(int i=0;i<n;i++){\n div += (Math.pow(scores[i]-ave,2))/n;\n }\n\n System.out.println(Math.pow(div, 0.5));\n }", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n==0)\n break;", "n==0", "n", "0", "break;", "int scores[]=new int[n];", "scores", "new int[n]", "n", "int sum=0;", "sum", "0", "double ave=0.0;", "ave", "0.0", "double div=0.0;", "div", "0.0", "for(int i=0;i<n;i++){\n scores[i]=sc.nextInt();\n sum+=scores[i];\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n scores[i]=sc.nextInt();\n sum+=scores[i];\n }", "{\n scores[i]=sc.nextInt();\n sum+=scores[i];\n }", "scores[i]=sc.nextInt()", "scores[i]", "scores", "i", "sc.nextInt()", "sc.nextInt", "sc", "sum+=scores[i]", "sum", "scores[i]", "scores", "i", "ave = (double)sum/(double)n", "ave", "(double)sum/(double)n", "(double)sum", "(double)n", "for(int i=0;i<n;i++){\n div += (Math.pow(scores[i]-ave,2))/n;\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n div += (Math.pow(scores[i]-ave,2))/n;\n }", "{\n div += (Math.pow(scores[i]-ave,2))/n;\n }", "div += (Math.pow(scores[i]-ave,2))/n", "div", "(Math.pow(scores[i]-ave,2))/n", "(Math.pow(scores[i]-ave,2))", "Math.pow", "Math", "scores[i]-ave", "scores[i]", "scores", "i", "ave", "2", "n", "System.out.println(Math.pow(div, 0.5))", "System.out.println", "System.out", "System", "System.out", "Math.pow(div, 0.5)", "Math.pow", "Math", "div", "0.5", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main{ \n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n\n while(true){\n int n = sc.nextInt();\n if(n==0)\n break;\n int scores[]=new int[n];\n int sum=0;\n double ave=0.0;\n double div=0.0;\n for(int i=0;i<n;i++){\n scores[i]=sc.nextInt();\n sum+=scores[i];\n }\n ave = (double)sum/(double)n;\n\n for(int i=0;i<n;i++){\n div += (Math.pow(scores[i]-ave,2))/n;\n }\n\n System.out.println(Math.pow(div, 0.5));\n }\n sc.close();\n \n } \n}", "public class Main{ \n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n\n while(true){\n int n = sc.nextInt();\n if(n==0)\n break;\n int scores[]=new int[n];\n int sum=0;\n double ave=0.0;\n double div=0.0;\n for(int i=0;i<n;i++){\n scores[i]=sc.nextInt();\n sum+=scores[i];\n }\n ave = (double)sum/(double)n;\n\n for(int i=0;i<n;i++){\n div += (Math.pow(scores[i]-ave,2))/n;\n }\n\n System.out.println(Math.pow(div, 0.5));\n }\n sc.close();\n \n } \n}", "Main" ]
import java.awt.print.Printable; import java.util.Scanner; import javax.sound.midi.SysexMessage; import java.lang.Math; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(true){ int n = sc.nextInt(); if(n==0) break; int scores[]=new int[n]; int sum=0; double ave=0.0; double div=0.0; for(int i=0;i<n;i++){ scores[i]=sc.nextInt(); sum+=scores[i]; } ave = (double)sum/(double)n; for(int i=0;i<n;i++){ div += (Math.pow(scores[i]-ave,2))/n; } System.out.println(Math.pow(div, 0.5)); } sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 0, 13, 18, 13, 13, 0, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 0, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 123, 5 ], [ 123, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 16, 28 ], [ 28, 29 ], [ 28, 30 ], [ 16, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 39, 41 ], [ 32, 42 ], [ 42, 43 ], [ 43, 44 ], [ 32, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 52, 53 ], [ 16, 54 ], [ 54, 55 ], [ 54, 56 ], [ 16, 57 ], [ 57, 58 ], [ 57, 59 ], [ 16, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 60, 70 ], [ 70, 71 ], [ 71, 72 ], [ 60, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 16, 79 ], [ 79, 80 ], [ 79, 81 ], [ 16, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 89, 91 ], [ 82, 92 ], [ 92, 93 ], [ 93, 94 ], [ 82, 95 ], [ 96, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 99, 107 ], [ 16, 108 ], [ 108, 109 ], [ 108, 110 ], [ 16, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 116, 117 ], [ 117, 118 ], [ 116, 119 ], [ 6, 120 ], [ 120, 121 ], [ 0, 122 ], [ 122, 123 ], [ 122, 124 ] ]
[ "import java.util.Scanner;\npublic class Main {\npublic static void main(String[] args) {\n// 標準入力からデータを読み込む準備\ntry (Scanner sc = new Scanner(System.in)) {\nwhile (true) {\nint n = sc.nextInt();\nif (n == 0) { break; }\nint[] scores = new int[n];\nfor (int i = 0; i < scores.length; i++) {\nscores[i] = sc.nextInt();\n}\ndouble average = 0, variance = 0;\n// … 平均値averageと,分散varianceを計算しよう …\nfor(int i=0;i<scores.length;i++)average+=scores[i];\naverage/=n;\nfor(int i=0;i<scores.length;i++){\n variance+=Math.pow(scores[i]-average,2);\n}\nvariance/=n;\nSystem.out.println(Math.sqrt(variance));\n}\n}\n}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\npublic static void main(String[] args) {\n// 標準入力からデータを読み込む準備\ntry (Scanner sc = new Scanner(System.in)) {\nwhile (true) {\nint n = sc.nextInt();\nif (n == 0) { break; }\nint[] scores = new int[n];\nfor (int i = 0; i < scores.length; i++) {\nscores[i] = sc.nextInt();\n}\ndouble average = 0, variance = 0;\n// … 平均値averageと,分散varianceを計算しよう …\nfor(int i=0;i<scores.length;i++)average+=scores[i];\naverage/=n;\nfor(int i=0;i<scores.length;i++){\n variance+=Math.pow(scores[i]-average,2);\n}\nvariance/=n;\nSystem.out.println(Math.sqrt(variance));\n}\n}\n}\n}", "Main", "public static void main(String[] args) {\n// 標準入力からデータを読み込む準備\ntry (Scanner sc = new Scanner(System.in)) {\nwhile (true) {\nint n = sc.nextInt();\nif (n == 0) { break; }\nint[] scores = new int[n];\nfor (int i = 0; i < scores.length; i++) {\nscores[i] = sc.nextInt();\n}\ndouble average = 0, variance = 0;\n// … 平均値averageと,分散varianceを計算しよう …\nfor(int i=0;i<scores.length;i++)average+=scores[i];\naverage/=n;\nfor(int i=0;i<scores.length;i++){\n variance+=Math.pow(scores[i]-average,2);\n}\nvariance/=n;\nSystem.out.println(Math.sqrt(variance));\n}\n}\n}", "main", "{\n// 標準入力からデータを読み込む準備\ntry (Scanner sc = new Scanner(System.in)) {\nwhile (true) {\nint n = sc.nextInt();\nif (n == 0) { break; }\nint[] scores = new int[n];\nfor (int i = 0; i < scores.length; i++) {\nscores[i] = sc.nextInt();\n}\ndouble average = 0, variance = 0;\n// … 平均値averageと,分散varianceを計算しよう …\nfor(int i=0;i<scores.length;i++)average+=scores[i];\naverage/=n;\nfor(int i=0;i<scores.length;i++){\n variance+=Math.pow(scores[i]-average,2);\n}\nvariance/=n;\nSystem.out.println(Math.sqrt(variance));\n}\n}\n}", "try (Scanner sc = new Scanner(System.in)) {\nwhile (true) {\nint n = sc.nextInt();\nif (n == 0) { break; }\nint[] scores = new int[n];\nfor (int i = 0; i < scores.length; i++) {\nscores[i] = sc.nextInt();\n}\ndouble average = 0, variance = 0;\n// … 平均値averageと,分散varianceを計算しよう …\nfor(int i=0;i<scores.length;i++)average+=scores[i];\naverage/=n;\nfor(int i=0;i<scores.length;i++){\n variance+=Math.pow(scores[i]-average,2);\n}\nvariance/=n;\nSystem.out.println(Math.sqrt(variance));\n}\n}", "{\nwhile (true) {\nint n = sc.nextInt();\nif (n == 0) { break; }\nint[] scores = new int[n];\nfor (int i = 0; i < scores.length; i++) {\nscores[i] = sc.nextInt();\n}\ndouble average = 0, variance = 0;\n// … 平均値averageと,分散varianceを計算しよう …\nfor(int i=0;i<scores.length;i++)average+=scores[i];\naverage/=n;\nfor(int i=0;i<scores.length;i++){\n variance+=Math.pow(scores[i]-average,2);\n}\nvariance/=n;\nSystem.out.println(Math.sqrt(variance));\n}\n}", "Scanner sc = new Scanner(System.in)", "Scanner sc = new Scanner(System.in)", "new Scanner(System.in)", "while (true) {\nint n = sc.nextInt();\nif (n == 0) { break; }\nint[] scores = new int[n];\nfor (int i = 0; i < scores.length; i++) {\nscores[i] = sc.nextInt();\n}\ndouble average = 0, variance = 0;\n// … 平均値averageと,分散varianceを計算しよう …\nfor(int i=0;i<scores.length;i++)average+=scores[i];\naverage/=n;\nfor(int i=0;i<scores.length;i++){\n variance+=Math.pow(scores[i]-average,2);\n}\nvariance/=n;\nSystem.out.println(Math.sqrt(variance));\n}", "true", "{\nint n = sc.nextInt();\nif (n == 0) { break; }\nint[] scores = new int[n];\nfor (int i = 0; i < scores.length; i++) {\nscores[i] = sc.nextInt();\n}\ndouble average = 0, variance = 0;\n// … 平均値averageと,分散varianceを計算しよう …\nfor(int i=0;i<scores.length;i++)average+=scores[i];\naverage/=n;\nfor(int i=0;i<scores.length;i++){\n variance+=Math.pow(scores[i]-average,2);\n}\nvariance/=n;\nSystem.out.println(Math.sqrt(variance));\n}", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if (n == 0) { break; }", "n == 0", "n", "0", "{ break; }", "break;", "int[] scores = new int[n];", "scores", "new int[n]", "n", "for (int i = 0; i < scores.length; i++) {\nscores[i] = sc.nextInt();\n}", "int i = 0;", "int i = 0;", "i", "0", "i < scores.length", "i", "scores.length", "scores", "scores.length", "i++", "i++", "i", "{\nscores[i] = sc.nextInt();\n}", "{\nscores[i] = sc.nextInt();\n}", "scores[i] = sc.nextInt()", "scores[i]", "scores", "i", "sc.nextInt()", "sc.nextInt", "sc", "double average = 0", "average", "0", "variance = 0;", "variance", "0", "for(int i=0;i<scores.length;i++)average+=scores[i];", "int i=0;", "int i=0;", "i", "0", "i<scores.length", "i", "scores.length", "scores", "scores.length", "i++", "i++", "i", "average+=scores[i];", "average+=scores[i]", "average", "scores[i]", "scores", "i", "average/=n", "average", "n", "for(int i=0;i<scores.length;i++){\n variance+=Math.pow(scores[i]-average,2);\n}", "int i=0;", "int i=0;", "i", "0", "i<scores.length", "i", "scores.length", "scores", "scores.length", "i++", "i++", "i", "{\n variance+=Math.pow(scores[i]-average,2);\n}", "{\n variance+=Math.pow(scores[i]-average,2);\n}", "variance+=Math.pow(scores[i]-average,2)", "variance", "Math.pow(scores[i]-average,2)", "Math.pow", "Math", "scores[i]-average", "scores[i]", "scores", "i", "average", "2", "variance/=n", "variance", "n", "System.out.println(Math.sqrt(variance))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(variance)", "Math.sqrt", "Math", "variance", "String[] args", "args", "public class Main {\npublic static void main(String[] args) {\n// 標準入力からデータを読み込む準備\ntry (Scanner sc = new Scanner(System.in)) {\nwhile (true) {\nint n = sc.nextInt();\nif (n == 0) { break; }\nint[] scores = new int[n];\nfor (int i = 0; i < scores.length; i++) {\nscores[i] = sc.nextInt();\n}\ndouble average = 0, variance = 0;\n// … 平均値averageと,分散varianceを計算しよう …\nfor(int i=0;i<scores.length;i++)average+=scores[i];\naverage/=n;\nfor(int i=0;i<scores.length;i++){\n variance+=Math.pow(scores[i]-average,2);\n}\nvariance/=n;\nSystem.out.println(Math.sqrt(variance));\n}\n}\n}\n}", "public class Main {\npublic static void main(String[] args) {\n// 標準入力からデータを読み込む準備\ntry (Scanner sc = new Scanner(System.in)) {\nwhile (true) {\nint n = sc.nextInt();\nif (n == 0) { break; }\nint[] scores = new int[n];\nfor (int i = 0; i < scores.length; i++) {\nscores[i] = sc.nextInt();\n}\ndouble average = 0, variance = 0;\n// … 平均値averageと,分散varianceを計算しよう …\nfor(int i=0;i<scores.length;i++)average+=scores[i];\naverage/=n;\nfor(int i=0;i<scores.length;i++){\n variance+=Math.pow(scores[i]-average,2);\n}\nvariance/=n;\nSystem.out.println(Math.sqrt(variance));\n}\n}\n}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // 標準入力からデータを読み込む準備 try (Scanner sc = new Scanner(System.in)) { while (true) { int n = sc.nextInt(); if (n == 0) { break; } int[] scores = new int[n]; for (int i = 0; i < scores.length; i++) { scores[i] = sc.nextInt(); } double average = 0, variance = 0; // … 平均値averageと,分散varianceを計算しよう … for(int i=0;i<scores.length;i++)average+=scores[i]; average/=n; for(int i=0;i<scores.length;i++){ variance+=Math.pow(scores[i]-average,2); } variance/=n; System.out.println(Math.sqrt(variance)); } } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 20, 42, 2, 0, 13, 4, 18, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 0, 13, 18, 13, 13, 0, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 0, 13, 2, 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 ], [ 4, 8 ], [ 8, 9 ], [ 8, 10 ], [ 10, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 15, 20 ], [ 11, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 21, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 32, 33 ], [ 33, 34 ], [ 26, 35 ], [ 25, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 39, 44 ], [ 36, 45 ], [ 45, 46 ], [ 45, 47 ], [ 36, 49 ], [ 49, 50 ], [ 49, 51 ], [ 36, 52 ], [ 52, 53 ], [ 52, 54 ], [ 36, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 55, 63 ], [ 63, 64 ], [ 64, 65 ], [ 55, 66 ], [ 67, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 75, 76 ], [ 75, 77 ], [ 67, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 36, 83 ], [ 83, 84 ], [ 83, 85 ], [ 36, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 91, 92 ], [ 91, 93 ], [ 86, 94 ], [ 94, 95 ], [ 95, 96 ], [ 86, 97 ], [ 98, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 104, 108 ], [ 101, 109 ], [ 36, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 112, 114 ], [ 36, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 8, 124 ], [ 124, 125 ] ]
[ "/* ITP1_10_C */\nimport java.io.*;\n\nclass Main\n{\n public static int student;\n public static void main(String[] args)\n {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n while((student = Integer.parseInt(br.readLine())) != 0){\n String[] str = br.readLine().split(\" \");\n double[] score = new double[student];\n double mean = 0;\n double variance = 0;\n\n for(int i = 0; i < student; i++){\n score[i] = Integer.parseInt(str[i]);\n mean += score[i];\n }\n mean /= student;\n\n for(int i = 0; i < student; i++){\n variance += Math.pow((score[i] - mean), 2);\n }\n variance = variance / student;\n \n System.out.println(Math.sqrt(variance));\n }\n }catch(Exception e){\n System.out.println(e);\n }\n }\n}", "import java.io.*;", "io.*", "java", "class Main\n{\n public static int student;\n public static void main(String[] args)\n {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n while((student = Integer.parseInt(br.readLine())) != 0){\n String[] str = br.readLine().split(\" \");\n double[] score = new double[student];\n double mean = 0;\n double variance = 0;\n\n for(int i = 0; i < student; i++){\n score[i] = Integer.parseInt(str[i]);\n mean += score[i];\n }\n mean /= student;\n\n for(int i = 0; i < student; i++){\n variance += Math.pow((score[i] - mean), 2);\n }\n variance = variance / student;\n \n System.out.println(Math.sqrt(variance));\n }\n }catch(Exception e){\n System.out.println(e);\n }\n }\n}", "Main", "public static int student;", "student", "public static void main(String[] args)\n {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n while((student = Integer.parseInt(br.readLine())) != 0){\n String[] str = br.readLine().split(\" \");\n double[] score = new double[student];\n double mean = 0;\n double variance = 0;\n\n for(int i = 0; i < student; i++){\n score[i] = Integer.parseInt(str[i]);\n mean += score[i];\n }\n mean /= student;\n\n for(int i = 0; i < student; i++){\n variance += Math.pow((score[i] - mean), 2);\n }\n variance = variance / student;\n \n System.out.println(Math.sqrt(variance));\n }\n }catch(Exception e){\n System.out.println(e);\n }\n }", "main", "{\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n while((student = Integer.parseInt(br.readLine())) != 0){\n String[] str = br.readLine().split(\" \");\n double[] score = new double[student];\n double mean = 0;\n double variance = 0;\n\n for(int i = 0; i < student; i++){\n score[i] = Integer.parseInt(str[i]);\n mean += score[i];\n }\n mean /= student;\n\n for(int i = 0; i < student; i++){\n variance += Math.pow((score[i] - mean), 2);\n }\n variance = variance / student;\n \n System.out.println(Math.sqrt(variance));\n }\n }catch(Exception e){\n System.out.println(e);\n }\n }", "try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n while((student = Integer.parseInt(br.readLine())) != 0){\n String[] str = br.readLine().split(\" \");\n double[] score = new double[student];\n double mean = 0;\n double variance = 0;\n\n for(int i = 0; i < student; i++){\n score[i] = Integer.parseInt(str[i]);\n mean += score[i];\n }\n mean /= student;\n\n for(int i = 0; i < student; i++){\n variance += Math.pow((score[i] - mean), 2);\n }\n variance = variance / student;\n \n System.out.println(Math.sqrt(variance));\n }\n }catch(Exception e){\n System.out.println(e);\n }", "catch(Exception e){\n System.out.println(e);\n }", "Exception e", "{\n System.out.println(e);\n }", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n while((student = Integer.parseInt(br.readLine())) != 0){\n String[] str = br.readLine().split(\" \");\n double[] score = new double[student];\n double mean = 0;\n double variance = 0;\n\n for(int i = 0; i < student; i++){\n score[i] = Integer.parseInt(str[i]);\n mean += score[i];\n }\n mean /= student;\n\n for(int i = 0; i < student; i++){\n variance += Math.pow((score[i] - mean), 2);\n }\n variance = variance / student;\n \n System.out.println(Math.sqrt(variance));\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while((student = Integer.parseInt(br.readLine())) != 0){\n String[] str = br.readLine().split(\" \");\n double[] score = new double[student];\n double mean = 0;\n double variance = 0;\n\n for(int i = 0; i < student; i++){\n score[i] = Integer.parseInt(str[i]);\n mean += score[i];\n }\n mean /= student;\n\n for(int i = 0; i < student; i++){\n variance += Math.pow((score[i] - mean), 2);\n }\n variance = variance / student;\n \n System.out.println(Math.sqrt(variance));\n }", "(student = Integer.parseInt(br.readLine())) != 0", "(student = Integer.parseInt(br.readLine()))", "student", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "0", "{\n String[] str = br.readLine().split(\" \");\n double[] score = new double[student];\n double mean = 0;\n double variance = 0;\n\n for(int i = 0; i < student; i++){\n score[i] = Integer.parseInt(str[i]);\n mean += score[i];\n }\n mean /= student;\n\n for(int i = 0; i < student; i++){\n variance += Math.pow((score[i] - mean), 2);\n }\n variance = variance / student;\n \n System.out.println(Math.sqrt(variance));\n }", "String[] str = br.readLine().split(\" \");", "str", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "double[] score = new double[student];", "score", "new double[student]", "student", "double mean = 0;", "mean", "0", "double variance = 0;", "variance", "0", "for(int i = 0; i < student; i++){\n score[i] = Integer.parseInt(str[i]);\n mean += score[i];\n }", "int i = 0;", "int i = 0;", "i", "0", "i < student", "i", "student", "i++", "i++", "i", "{\n score[i] = Integer.parseInt(str[i]);\n mean += score[i];\n }", "{\n score[i] = Integer.parseInt(str[i]);\n mean += score[i];\n }", "score[i] = Integer.parseInt(str[i])", "score[i]", "score", "i", "Integer.parseInt(str[i])", "Integer.parseInt", "Integer", "str[i]", "str", "i", "mean += score[i]", "mean", "score[i]", "score", "i", "mean /= student", "mean", "student", "for(int i = 0; i < student; i++){\n variance += Math.pow((score[i] - mean), 2);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < student", "i", "student", "i++", "i++", "i", "{\n variance += Math.pow((score[i] - mean), 2);\n }", "{\n variance += Math.pow((score[i] - mean), 2);\n }", "variance += Math.pow((score[i] - mean), 2)", "variance", "Math.pow((score[i] - mean), 2)", "Math.pow", "Math", "(score[i] - mean)", "score[i]", "score", "i", "mean", "2", "variance = variance / student", "variance", "variance / student", "variance", "student", "System.out.println(Math.sqrt(variance))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(variance)", "Math.sqrt", "Math", "variance", "String[] args", "args" ]
/* ITP1_10_C */ import java.io.*; class Main { public static int student; public static void main(String[] args) { try{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while((student = Integer.parseInt(br.readLine())) != 0){ String[] str = br.readLine().split(" "); double[] score = new double[student]; double mean = 0; double variance = 0; for(int i = 0; i < student; i++){ score[i] = Integer.parseInt(str[i]); mean += score[i]; } mean /= student; for(int i = 0; i < student; i++){ variance += Math.pow((score[i] - mean), 2); } variance = variance / student; System.out.println(Math.sqrt(variance)); } }catch(Exception e){ System.out.println(e); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 4, 18, 13, 3, 41, 13, 17, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 41, 13, 2, 4, 18, 13, 13, 4, 18, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 41, 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 ], [ 118, 5 ], [ 118, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 26, 30 ], [ 16, 31 ], [ 31, 32 ], [ 31, 33 ], [ 16, 34 ], [ 34, 35 ], [ 34, 36 ], [ 16, 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 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 50, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 16, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 65, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 16, 74 ], [ 74, 75 ], [ 74, 76 ], [ 16, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 82, 83 ], [ 82, 84 ], [ 77, 85 ], [ 85, 86 ], [ 86, 87 ], [ 77, 88 ], [ 89, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 92, 100 ], [ 16, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 106, 107 ], [ 106, 108 ], [ 16, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 6, 115 ], [ 115, 116 ], [ 0, 117 ], [ 117, 118 ], [ 117, 119 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(scan.hasNext()){\n\t\t\tint n = scan.nextInt();\n\t\t\tif(n == 0){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tint s[] = new int[n];\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = Double.valueOf(sum) / Double.valueOf(n);\n\t\t\tdouble sig = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tsig += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\tdouble a = Math.sqrt(sig / n);\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(scan.hasNext()){\n\t\t\tint n = scan.nextInt();\n\t\t\tif(n == 0){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tint s[] = new int[n];\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = Double.valueOf(sum) / Double.valueOf(n);\n\t\t\tdouble sig = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tsig += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\tdouble a = Math.sqrt(sig / n);\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(scan.hasNext()){\n\t\t\tint n = scan.nextInt();\n\t\t\tif(n == 0){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tint s[] = new int[n];\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = Double.valueOf(sum) / Double.valueOf(n);\n\t\t\tdouble sig = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tsig += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\tdouble a = Math.sqrt(sig / n);\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(scan.hasNext()){\n\t\t\tint n = scan.nextInt();\n\t\t\tif(n == 0){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tint s[] = new int[n];\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = Double.valueOf(sum) / Double.valueOf(n);\n\t\t\tdouble sig = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tsig += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\tdouble a = Math.sqrt(sig / n);\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(scan.hasNext()){\n\t\t\tint n = scan.nextInt();\n\t\t\tif(n == 0){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tint s[] = new int[n];\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = Double.valueOf(sum) / Double.valueOf(n);\n\t\t\tdouble sig = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tsig += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\tdouble a = Math.sqrt(sig / n);\n\t\t\tSystem.out.println(a);\n\t\t}", "scan.hasNext()", "scan.hasNext", "scan", "{\n\t\t\tint n = scan.nextInt();\n\t\t\tif(n == 0){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tint s[] = new int[n];\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = Double.valueOf(sum) / Double.valueOf(n);\n\t\t\tdouble sig = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tsig += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\tdouble a = Math.sqrt(sig / n);\n\t\t\tSystem.out.println(a);\n\t\t}", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "if(n == 0){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}", "n == 0", "n", "0", "{\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}", "scan.close()", "scan.close", "scan", "break;", "int sum = 0;", "sum", "0", "int s[] = new int[n];", "s", "new int[n]", "n", "for(int i = 0; i < n; i++){\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}", "{\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}", "s[i] = scan.nextInt()", "s[i]", "s", "i", "scan.nextInt()", "scan.nextInt", "scan", "sum += s[i]", "sum", "s[i]", "s", "i", "double m = Double.valueOf(sum) / Double.valueOf(n);", "m", "Double.valueOf(sum) / Double.valueOf(n)", "Double.valueOf(sum)", "Double.valueOf", "Double", "sum", "Double.valueOf(n)", "Double.valueOf", "Double", "n", "double sig = 0;", "sig", "0", "for(int i = 0; i < n; i++){\n\t\t\t\tsig += Math.pow(s[i] - m, 2);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tsig += Math.pow(s[i] - m, 2);\n\t\t\t}", "{\n\t\t\t\tsig += Math.pow(s[i] - m, 2);\n\t\t\t}", "sig += Math.pow(s[i] - m, 2)", "sig", "Math.pow(s[i] - m, 2)", "Math.pow", "Math", "s[i] - m", "s[i]", "s", "i", "m", "2", "double a = Math.sqrt(sig / n);", "a", "Math.sqrt(sig / n)", "Math.sqrt", "Math", "sig / n", "sig", "n", "System.out.println(a)", "System.out.println", "System.out", "System", "System.out", "a", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(scan.hasNext()){\n\t\t\tint n = scan.nextInt();\n\t\t\tif(n == 0){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tint s[] = new int[n];\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = Double.valueOf(sum) / Double.valueOf(n);\n\t\t\tdouble sig = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tsig += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\tdouble a = Math.sqrt(sig / n);\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(scan.hasNext()){\n\t\t\tint n = scan.nextInt();\n\t\t\tif(n == 0){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tint s[] = new int[n];\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = Double.valueOf(sum) / Double.valueOf(n);\n\t\t\tdouble sig = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tsig += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\tdouble a = Math.sqrt(sig / n);\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); while(scan.hasNext()){ int n = scan.nextInt(); if(n == 0){ scan.close(); break; } int sum = 0; int s[] = new int[n]; for(int i = 0; i < n; i++){ s[i] = scan.nextInt(); sum += s[i]; } double m = Double.valueOf(sum) / Double.valueOf(n); double sig = 0; for(int i = 0; i < n; i++){ sig += Math.pow(s[i] - m, 2); } double a = Math.sqrt(sig / n); System.out.println(a); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 17, 42, 17, 30, 41, 13, 20, 17, 0, 18, 13, 17, 4, 18, 13, 14, 4, 18, 18, 13, 17, 17, 30, 3, 0, 18, 13, 17, 4, 18, 13, 4, 18, 13, 13, 40, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 18, 13, 17, 17, 41, 13, 20, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 0, 13, 18, 13, 13, 41, 13, 2, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 2, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 175, 8 ], [ 175, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 11, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 32, 33 ], [ 33, 34 ], [ 23, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 35, 42 ], [ 42, 43 ], [ 23, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 23, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 23, 55 ], [ 55, 56 ], [ 11, 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 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 69, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 81, 82 ], [ 81, 83 ], [ 69, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 69, 92 ], [ 92, 93 ], [ 92, 94 ], [ 69, 96 ], [ 96, 97 ], [ 96, 98 ], [ 69, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 104, 105 ], [ 104, 106 ], [ 99, 107 ], [ 107, 108 ], [ 108, 109 ], [ 99, 110 ], [ 111, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 116, 117 ], [ 117, 118 ], [ 116, 119 ], [ 119, 120 ], [ 119, 121 ], [ 111, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 124, 126 ], [ 69, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 129, 131 ], [ 69, 132 ], [ 132, 133 ], [ 132, 134 ], [ 69, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 135, 140 ], [ 140, 141 ], [ 140, 142 ], [ 135, 143 ], [ 143, 144 ], [ 144, 145 ], [ 135, 146 ], [ 147, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 150, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 156, 160 ], [ 69, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 161, 166 ], [ 166, 167 ], [ 167, 168 ], [ 166, 169 ], [ 169, 170 ], [ 169, 171 ], [ 9, 172 ], [ 172, 173 ], [ 0, 174 ], [ 174, 175 ], [ 174, 176 ] ]
[ "import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tArrayList<String[]> all = new ArrayList<String[]>();\n\t\tint count = 0;\n\n\t\twhile (true) {\n\t\t\tString[] kari = new String[2];\n\t\t\tkari[0] = sc.nextLine();\n\n\t\t\tif (kari[0].equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tkari[1] = sc.nextLine();\n\n\t\t\tall.add(kari);\n\t\t\tcount++;\n\t\t}\n\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tString[] kari = all.get(i);\n\t\t\tdouble n = Double.parseDouble(kari[0]);\n\t\t\tString[] stu = kari[1].split(\" \");\n\t\t\tdouble[] student = new double[(int)n];\n\t\t\tdouble sum = 0;\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tstudent[j] = Double.parseDouble(stu[j]);\n\t\t\t\tsum += student[j];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\n\t\t\tdouble answer = 0;\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tanswer += (student[j] - m) * (student[j] - m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(answer/n));\n\t\t}\n\n\t}\n\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tArrayList<String[]> all = new ArrayList<String[]>();\n\t\tint count = 0;\n\n\t\twhile (true) {\n\t\t\tString[] kari = new String[2];\n\t\t\tkari[0] = sc.nextLine();\n\n\t\t\tif (kari[0].equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tkari[1] = sc.nextLine();\n\n\t\t\tall.add(kari);\n\t\t\tcount++;\n\t\t}\n\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tString[] kari = all.get(i);\n\t\t\tdouble n = Double.parseDouble(kari[0]);\n\t\t\tString[] stu = kari[1].split(\" \");\n\t\t\tdouble[] student = new double[(int)n];\n\t\t\tdouble sum = 0;\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tstudent[j] = Double.parseDouble(stu[j]);\n\t\t\t\tsum += student[j];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\n\t\t\tdouble answer = 0;\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tanswer += (student[j] - m) * (student[j] - m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(answer/n));\n\t\t}\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tArrayList<String[]> all = new ArrayList<String[]>();\n\t\tint count = 0;\n\n\t\twhile (true) {\n\t\t\tString[] kari = new String[2];\n\t\t\tkari[0] = sc.nextLine();\n\n\t\t\tif (kari[0].equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tkari[1] = sc.nextLine();\n\n\t\t\tall.add(kari);\n\t\t\tcount++;\n\t\t}\n\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tString[] kari = all.get(i);\n\t\t\tdouble n = Double.parseDouble(kari[0]);\n\t\t\tString[] stu = kari[1].split(\" \");\n\t\t\tdouble[] student = new double[(int)n];\n\t\t\tdouble sum = 0;\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tstudent[j] = Double.parseDouble(stu[j]);\n\t\t\t\tsum += student[j];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\n\t\t\tdouble answer = 0;\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tanswer += (student[j] - m) * (student[j] - m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(answer/n));\n\t\t}\n\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tArrayList<String[]> all = new ArrayList<String[]>();\n\t\tint count = 0;\n\n\t\twhile (true) {\n\t\t\tString[] kari = new String[2];\n\t\t\tkari[0] = sc.nextLine();\n\n\t\t\tif (kari[0].equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tkari[1] = sc.nextLine();\n\n\t\t\tall.add(kari);\n\t\t\tcount++;\n\t\t}\n\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tString[] kari = all.get(i);\n\t\t\tdouble n = Double.parseDouble(kari[0]);\n\t\t\tString[] stu = kari[1].split(\" \");\n\t\t\tdouble[] student = new double[(int)n];\n\t\t\tdouble sum = 0;\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tstudent[j] = Double.parseDouble(stu[j]);\n\t\t\t\tsum += student[j];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\n\t\t\tdouble answer = 0;\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tanswer += (student[j] - m) * (student[j] - m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(answer/n));\n\t\t}\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "ArrayList<String[]> all = new ArrayList<String[]>();", "all", "new ArrayList<String[]>()", "int count = 0;", "count", "0", "while (true) {\n\t\t\tString[] kari = new String[2];\n\t\t\tkari[0] = sc.nextLine();\n\n\t\t\tif (kari[0].equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tkari[1] = sc.nextLine();\n\n\t\t\tall.add(kari);\n\t\t\tcount++;\n\t\t}", "true", "{\n\t\t\tString[] kari = new String[2];\n\t\t\tkari[0] = sc.nextLine();\n\n\t\t\tif (kari[0].equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tkari[1] = sc.nextLine();\n\n\t\t\tall.add(kari);\n\t\t\tcount++;\n\t\t}", "String[] kari = new String[2];", "kari", "new String[2]", "2", "kari[0] = sc.nextLine()", "kari[0]", "kari", "0", "sc.nextLine()", "sc.nextLine", "sc", "if (kari[0].equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}", "kari[0].equals(\"0\")", "kari[0].equals", "kari[0]", "kari", "0", "\"0\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "kari[1] = sc.nextLine()", "kari[1]", "kari", "1", "sc.nextLine()", "sc.nextLine", "sc", "all.add(kari)", "all.add", "all", "kari", "count++", "count", "for (int i = 0; i < count; i++) {\n\t\t\tString[] kari = all.get(i);\n\t\t\tdouble n = Double.parseDouble(kari[0]);\n\t\t\tString[] stu = kari[1].split(\" \");\n\t\t\tdouble[] student = new double[(int)n];\n\t\t\tdouble sum = 0;\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tstudent[j] = Double.parseDouble(stu[j]);\n\t\t\t\tsum += student[j];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\n\t\t\tdouble answer = 0;\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tanswer += (student[j] - m) * (student[j] - m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(answer/n));\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < count", "i", "count", "i++", "i++", "i", "{\n\t\t\tString[] kari = all.get(i);\n\t\t\tdouble n = Double.parseDouble(kari[0]);\n\t\t\tString[] stu = kari[1].split(\" \");\n\t\t\tdouble[] student = new double[(int)n];\n\t\t\tdouble sum = 0;\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tstudent[j] = Double.parseDouble(stu[j]);\n\t\t\t\tsum += student[j];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\n\t\t\tdouble answer = 0;\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tanswer += (student[j] - m) * (student[j] - m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(answer/n));\n\t\t}", "{\n\t\t\tString[] kari = all.get(i);\n\t\t\tdouble n = Double.parseDouble(kari[0]);\n\t\t\tString[] stu = kari[1].split(\" \");\n\t\t\tdouble[] student = new double[(int)n];\n\t\t\tdouble sum = 0;\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tstudent[j] = Double.parseDouble(stu[j]);\n\t\t\t\tsum += student[j];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\n\t\t\tdouble answer = 0;\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tanswer += (student[j] - m) * (student[j] - m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(answer/n));\n\t\t}", "String[] kari = all.get(i);", "kari", "all.get(i)", "all.get", "all", "i", "double n = Double.parseDouble(kari[0]);", "n", "Double.parseDouble(kari[0])", "Double.parseDouble", "Double", "kari[0]", "kari", "0", "String[] stu = kari[1].split(\" \");", "stu", "kari[1].split(\" \")", "kari[1].split", "kari[1]", "kari", "1", "\" \"", "double[] student = new double[(int)n];", "student", "new double[(int)n]", "(int)n", "double sum = 0;", "sum", "0", "for (int j = 0; j < n; j++) {\n\t\t\t\tstudent[j] = Double.parseDouble(stu[j]);\n\t\t\t\tsum += student[j];\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < n", "j", "n", "j++", "j++", "j", "{\n\t\t\t\tstudent[j] = Double.parseDouble(stu[j]);\n\t\t\t\tsum += student[j];\n\t\t\t}", "{\n\t\t\t\tstudent[j] = Double.parseDouble(stu[j]);\n\t\t\t\tsum += student[j];\n\t\t\t}", "student[j] = Double.parseDouble(stu[j])", "student[j]", "student", "j", "Double.parseDouble(stu[j])", "Double.parseDouble", "Double", "stu[j]", "stu", "j", "sum += student[j]", "sum", "student[j]", "student", "j", "double m = sum / n;", "m", "sum / n", "sum", "n", "double answer = 0;", "answer", "0", "for (int j = 0; j < n; j++) {\n\t\t\t\tanswer += (student[j] - m) * (student[j] - m);\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < n", "j", "n", "j++", "j++", "j", "{\n\t\t\t\tanswer += (student[j] - m) * (student[j] - m);\n\t\t\t}", "{\n\t\t\t\tanswer += (student[j] - m) * (student[j] - m);\n\t\t\t}", "answer += (student[j] - m) * (student[j] - m)", "answer", "(student[j] - m) * (student[j] - m)", "(student[j] - m)", "student[j]", "student", "j", "m", "(student[j] - m)", "student[j]", "student", "j", "m", "System.out.println(Math.sqrt(answer/n))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(answer/n)", "Math.sqrt", "Math", "answer/n", "answer", "n", "String[] args", "args", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tArrayList<String[]> all = new ArrayList<String[]>();\n\t\tint count = 0;\n\n\t\twhile (true) {\n\t\t\tString[] kari = new String[2];\n\t\t\tkari[0] = sc.nextLine();\n\n\t\t\tif (kari[0].equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tkari[1] = sc.nextLine();\n\n\t\t\tall.add(kari);\n\t\t\tcount++;\n\t\t}\n\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tString[] kari = all.get(i);\n\t\t\tdouble n = Double.parseDouble(kari[0]);\n\t\t\tString[] stu = kari[1].split(\" \");\n\t\t\tdouble[] student = new double[(int)n];\n\t\t\tdouble sum = 0;\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tstudent[j] = Double.parseDouble(stu[j]);\n\t\t\t\tsum += student[j];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\n\t\t\tdouble answer = 0;\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tanswer += (student[j] - m) * (student[j] - m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(answer/n));\n\t\t}\n\n\t}\n\n}", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tArrayList<String[]> all = new ArrayList<String[]>();\n\t\tint count = 0;\n\n\t\twhile (true) {\n\t\t\tString[] kari = new String[2];\n\t\t\tkari[0] = sc.nextLine();\n\n\t\t\tif (kari[0].equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tkari[1] = sc.nextLine();\n\n\t\t\tall.add(kari);\n\t\t\tcount++;\n\t\t}\n\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tString[] kari = all.get(i);\n\t\t\tdouble n = Double.parseDouble(kari[0]);\n\t\t\tString[] stu = kari[1].split(\" \");\n\t\t\tdouble[] student = new double[(int)n];\n\t\t\tdouble sum = 0;\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tstudent[j] = Double.parseDouble(stu[j]);\n\t\t\t\tsum += student[j];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\n\t\t\tdouble answer = 0;\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tanswer += (student[j] - m) * (student[j] - m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(answer/n));\n\t\t}\n\n\t}\n\n}", "Main" ]
import java.util.ArrayList; import java.util.Scanner; public class Main{ public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); ArrayList<String[]> all = new ArrayList<String[]>(); int count = 0; while (true) { String[] kari = new String[2]; kari[0] = sc.nextLine(); if (kari[0].equals("0")) { break; } kari[1] = sc.nextLine(); all.add(kari); count++; } for (int i = 0; i < count; i++) { String[] kari = all.get(i); double n = Double.parseDouble(kari[0]); String[] stu = kari[1].split(" "); double[] student = new double[(int)n]; double sum = 0; for (int j = 0; j < n; j++) { student[j] = Double.parseDouble(stu[j]); sum += student[j]; } double m = sum / n; double answer = 0; for (int j = 0; j < n; j++) { answer += (student[j] - m) * (student[j] - m); } System.out.println(Math.sqrt(answer/n)); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 20, 17, 42, 4, 18, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 20, 0, 13, 4, 18, 13, 14, 2, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 4, 18, 13, 13, 3, 0, 13, 13, 41, 13, 20, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 40, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 23, 13, 6, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 12, 13, 30, 0, 13, 13, 0, 13, 13, 0, 13, 13, 0, 13, 2, 13, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 28, 13, 13, 30, 30, 0, 13, 2, 2, 13, 13, 2, 13, 13, 0, 13, 13, 0, 13, 4, 18, 13, 2, 13, 13, 12, 13, 30, 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 ], [ 201, 11 ], [ 201, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 14, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 25, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 33, 34 ], [ 33, 35 ], [ 29, 36 ], [ 36, 37 ], [ 36, 38 ], [ 29, 39 ], [ 39, 40 ], [ 39, 41 ], [ 29, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 29, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 29, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 52, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 65, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 69, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 69, 79 ], [ 64, 80 ], [ 80, 81 ], [ 80, 82 ], [ 29, 83 ], [ 83, 84 ], [ 83, 85 ], [ 29, 86 ], [ 86, 87 ], [ 87, 88 ], [ 29, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 93, 94 ], [ 94, 95 ], [ 29, 96 ], [ 96, 97 ], [ 14, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 103, 104 ], [ 103, 105 ], [ 98, 106 ], [ 106, 107 ], [ 107, 108 ], [ 98, 109 ], [ 110, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 116, 117 ], [ 116, 118 ], [ 12, 119 ], [ 119, 120 ], [ 0, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 126, 127 ], [ 126, 128 ], [ 121, 129 ], [ 129, 130 ], [ 129, 131 ], [ 121, 132 ], [ 132, 133 ], [ 132, 134 ], [ 121, 135 ], [ 135, 136 ], [ 135, 137 ], [ 121, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 140, 144 ], [ 144, 145 ], [ 144, 146 ], [ 140, 147 ], [ 147, 148 ], [ 147, 149 ], [ 140, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 152, 154 ], [ 138, 155 ], [ 155, 156 ], [ 138, 157 ], [ 157, 158 ], [ 138, 159 ], [ 159, 160 ], [ 121, 161 ], [ 161, 162 ], [ 161, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 163, 167 ], [ 167, 168 ], [ 167, 169 ], [ 163, 170 ], [ 170, 171 ], [ 170, 172 ], [ 170, 173 ], [ 174, 174 ], [ 174, 175 ], [ 175, 176 ], [ 175, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 177, 181 ], [ 181, 182 ], [ 181, 183 ], [ 174, 184 ], [ 184, 185 ], [ 184, 186 ], [ 163, 187 ], [ 187, 188 ], [ 187, 189 ], [ 189, 190 ], [ 190, 191 ], [ 189, 192 ], [ 192, 193 ], [ 192, 194 ], [ 121, 195 ], [ 195, 196 ], [ 195, 197 ], [ 197, 198 ], [ 198, 199 ], [ 0, 200 ], [ 200, 201 ], [ 200, 202 ] ]
[ "\n\nimport java.awt.List;\nimport java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// 標準入力\n\t\tScanner sc = new Scanner(System.in);\n\t\t//\n\t\tint roop = 0;\n\t\t// 答えの配列\n\t\tdouble[] double_array = new double[100];\n\t\t// 何個入力があるか\n\t\twhile (sc.hasNext()) {\n\t\t\t\n\t\t\t//値を初期化\n\t\t\tint input_number = 0;\n\t\t\tint points = 0;\n\t\t\tint all_points = 0;\n\t\t\t// 入力数の配列\n\t\t\tArrayList<Integer> input_array = new ArrayList<Integer>();\n\t\t\t\n\t\t\tinput_number = sc.nextInt();\n\n\t\t\t// 入力値が0だった場合、結果を出力\n\t\t\tif (input_number == 0) \n\t\t\t\tbreak;\n\t\t\t\n\n\t\t\t// 入力個数分まわす\n\t\t\tfor (int i = 0; i < input_number; i++) {\n\n\t\t\t\t//\n\t\t\t\twhile (sc.hasNext()) {\n\t\t\t\t\t//\n\t\t\t\t\tpoints = sc.nextInt();\n\t\t\t\t\tinput_array.add(points);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// 合計値\n\t\t\t\tall_points += points;\n\t\t\t}\n\t\t\t// インスタンスを作る\n\t\t\tSta_Math obj = new Sta_Math(all_points, input_number, input_array);\n\t\t\tobj.cast_standard();\n\t\t\t//\n\t\t\tdouble_array[roop] = obj.getStandard();\n\t\t\troop++;\n\t\t}\n\t\tfor (int i = 0; i < roop; i++) {\n\t\t\tSystem.out.println(double_array[i]);\n\t\t}\n\t}\n}\n\nclass Sta_Math {\n\n\t// 合計値\n\tprivate int all = 0;\n\t// 入力個数\n\tprivate int input_number = 0;\n\t// 平均\n\tprivate double average = 0;\n\t// 標準偏差\n\tprivate double standard = 0;\n\t// 入力数字列\n\tArrayList<Integer> input_arr = null;\n\n\t// コンストラクタ\n\tSta_Math(int a, int i, ArrayList<Integer> b) {\n\t\tall = a;\n\t\tinput_number = i;\n\t\tinput_arr = b;\n\t\taverage = (double)a / i;\n\t}\n\n\t// 標準偏差を計算\n\tpublic void cast_standard() {\n\t\tdouble hoge = 0;\n\t\t// 分子に使う数\n\t\tdouble namerator = 0;\n\t\t// 入っている数列分まわす\n\t\tfor (int val : input_arr) {\n\t\t\thoge = (val - average) * (val - average);\n\t\t\tnamerator += hoge;\n\t\t}\n\n\t\tstandard = Math.sqrt(namerator / input_number);\n\t}\n\n\t// ゲッター\n\tpublic double getStandard() {\n\t\treturn standard;\n\t}\n\n}", "import java.awt.List;", "List", "java.awt", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// 標準入力\n\t\tScanner sc = new Scanner(System.in);\n\t\t//\n\t\tint roop = 0;\n\t\t// 答えの配列\n\t\tdouble[] double_array = new double[100];\n\t\t// 何個入力があるか\n\t\twhile (sc.hasNext()) {\n\t\t\t\n\t\t\t//値を初期化\n\t\t\tint input_number = 0;\n\t\t\tint points = 0;\n\t\t\tint all_points = 0;\n\t\t\t// 入力数の配列\n\t\t\tArrayList<Integer> input_array = new ArrayList<Integer>();\n\t\t\t\n\t\t\tinput_number = sc.nextInt();\n\n\t\t\t// 入力値が0だった場合、結果を出力\n\t\t\tif (input_number == 0) \n\t\t\t\tbreak;\n\t\t\t\n\n\t\t\t// 入力個数分まわす\n\t\t\tfor (int i = 0; i < input_number; i++) {\n\n\t\t\t\t//\n\t\t\t\twhile (sc.hasNext()) {\n\t\t\t\t\t//\n\t\t\t\t\tpoints = sc.nextInt();\n\t\t\t\t\tinput_array.add(points);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// 合計値\n\t\t\t\tall_points += points;\n\t\t\t}\n\t\t\t// インスタンスを作る\n\t\t\tSta_Math obj = new Sta_Math(all_points, input_number, input_array);\n\t\t\tobj.cast_standard();\n\t\t\t//\n\t\t\tdouble_array[roop] = obj.getStandard();\n\t\t\troop++;\n\t\t}\n\t\tfor (int i = 0; i < roop; i++) {\n\t\t\tSystem.out.println(double_array[i]);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\t// 標準入力\n\t\tScanner sc = new Scanner(System.in);\n\t\t//\n\t\tint roop = 0;\n\t\t// 答えの配列\n\t\tdouble[] double_array = new double[100];\n\t\t// 何個入力があるか\n\t\twhile (sc.hasNext()) {\n\t\t\t\n\t\t\t//値を初期化\n\t\t\tint input_number = 0;\n\t\t\tint points = 0;\n\t\t\tint all_points = 0;\n\t\t\t// 入力数の配列\n\t\t\tArrayList<Integer> input_array = new ArrayList<Integer>();\n\t\t\t\n\t\t\tinput_number = sc.nextInt();\n\n\t\t\t// 入力値が0だった場合、結果を出力\n\t\t\tif (input_number == 0) \n\t\t\t\tbreak;\n\t\t\t\n\n\t\t\t// 入力個数分まわす\n\t\t\tfor (int i = 0; i < input_number; i++) {\n\n\t\t\t\t//\n\t\t\t\twhile (sc.hasNext()) {\n\t\t\t\t\t//\n\t\t\t\t\tpoints = sc.nextInt();\n\t\t\t\t\tinput_array.add(points);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// 合計値\n\t\t\t\tall_points += points;\n\t\t\t}\n\t\t\t// インスタンスを作る\n\t\t\tSta_Math obj = new Sta_Math(all_points, input_number, input_array);\n\t\t\tobj.cast_standard();\n\t\t\t//\n\t\t\tdouble_array[roop] = obj.getStandard();\n\t\t\troop++;\n\t\t}\n\t\tfor (int i = 0; i < roop; i++) {\n\t\t\tSystem.out.println(double_array[i]);\n\t\t}\n\t}", "main", "{\n\t\t// 標準入力\n\t\tScanner sc = new Scanner(System.in);\n\t\t//\n\t\tint roop = 0;\n\t\t// 答えの配列\n\t\tdouble[] double_array = new double[100];\n\t\t// 何個入力があるか\n\t\twhile (sc.hasNext()) {\n\t\t\t\n\t\t\t//値を初期化\n\t\t\tint input_number = 0;\n\t\t\tint points = 0;\n\t\t\tint all_points = 0;\n\t\t\t// 入力数の配列\n\t\t\tArrayList<Integer> input_array = new ArrayList<Integer>();\n\t\t\t\n\t\t\tinput_number = sc.nextInt();\n\n\t\t\t// 入力値が0だった場合、結果を出力\n\t\t\tif (input_number == 0) \n\t\t\t\tbreak;\n\t\t\t\n\n\t\t\t// 入力個数分まわす\n\t\t\tfor (int i = 0; i < input_number; i++) {\n\n\t\t\t\t//\n\t\t\t\twhile (sc.hasNext()) {\n\t\t\t\t\t//\n\t\t\t\t\tpoints = sc.nextInt();\n\t\t\t\t\tinput_array.add(points);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// 合計値\n\t\t\t\tall_points += points;\n\t\t\t}\n\t\t\t// インスタンスを作る\n\t\t\tSta_Math obj = new Sta_Math(all_points, input_number, input_array);\n\t\t\tobj.cast_standard();\n\t\t\t//\n\t\t\tdouble_array[roop] = obj.getStandard();\n\t\t\troop++;\n\t\t}\n\t\tfor (int i = 0; i < roop; i++) {\n\t\t\tSystem.out.println(double_array[i]);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int roop = 0;", "roop", "0", "double[] double_array = new double[100];", "double_array", "new double[100]", "100", "while (sc.hasNext()) {\n\t\t\t\n\t\t\t//値を初期化\n\t\t\tint input_number = 0;\n\t\t\tint points = 0;\n\t\t\tint all_points = 0;\n\t\t\t// 入力数の配列\n\t\t\tArrayList<Integer> input_array = new ArrayList<Integer>();\n\t\t\t\n\t\t\tinput_number = sc.nextInt();\n\n\t\t\t// 入力値が0だった場合、結果を出力\n\t\t\tif (input_number == 0) \n\t\t\t\tbreak;\n\t\t\t\n\n\t\t\t// 入力個数分まわす\n\t\t\tfor (int i = 0; i < input_number; i++) {\n\n\t\t\t\t//\n\t\t\t\twhile (sc.hasNext()) {\n\t\t\t\t\t//\n\t\t\t\t\tpoints = sc.nextInt();\n\t\t\t\t\tinput_array.add(points);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// 合計値\n\t\t\t\tall_points += points;\n\t\t\t}\n\t\t\t// インスタンスを作る\n\t\t\tSta_Math obj = new Sta_Math(all_points, input_number, input_array);\n\t\t\tobj.cast_standard();\n\t\t\t//\n\t\t\tdouble_array[roop] = obj.getStandard();\n\t\t\troop++;\n\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\t\n\t\t\t//値を初期化\n\t\t\tint input_number = 0;\n\t\t\tint points = 0;\n\t\t\tint all_points = 0;\n\t\t\t// 入力数の配列\n\t\t\tArrayList<Integer> input_array = new ArrayList<Integer>();\n\t\t\t\n\t\t\tinput_number = sc.nextInt();\n\n\t\t\t// 入力値が0だった場合、結果を出力\n\t\t\tif (input_number == 0) \n\t\t\t\tbreak;\n\t\t\t\n\n\t\t\t// 入力個数分まわす\n\t\t\tfor (int i = 0; i < input_number; i++) {\n\n\t\t\t\t//\n\t\t\t\twhile (sc.hasNext()) {\n\t\t\t\t\t//\n\t\t\t\t\tpoints = sc.nextInt();\n\t\t\t\t\tinput_array.add(points);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// 合計値\n\t\t\t\tall_points += points;\n\t\t\t}\n\t\t\t// インスタンスを作る\n\t\t\tSta_Math obj = new Sta_Math(all_points, input_number, input_array);\n\t\t\tobj.cast_standard();\n\t\t\t//\n\t\t\tdouble_array[roop] = obj.getStandard();\n\t\t\troop++;\n\t\t}", "int input_number = 0;", "input_number", "0", "int points = 0;", "points", "0", "int all_points = 0;", "all_points", "0", "ArrayList<Integer> input_array = new ArrayList<Integer>();", "input_array", "new ArrayList<Integer>()", "input_number = sc.nextInt()", "input_number", "sc.nextInt()", "sc.nextInt", "sc", "if (input_number == 0) \n\t\t\t\tbreak;", "input_number == 0", "input_number", "0", "break;", "for (int i = 0; i < input_number; i++) {\n\n\t\t\t\t//\n\t\t\t\twhile (sc.hasNext()) {\n\t\t\t\t\t//\n\t\t\t\t\tpoints = sc.nextInt();\n\t\t\t\t\tinput_array.add(points);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// 合計値\n\t\t\t\tall_points += points;\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < input_number", "i", "input_number", "i++", "i++", "i", "{\n\n\t\t\t\t//\n\t\t\t\twhile (sc.hasNext()) {\n\t\t\t\t\t//\n\t\t\t\t\tpoints = sc.nextInt();\n\t\t\t\t\tinput_array.add(points);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// 合計値\n\t\t\t\tall_points += points;\n\t\t\t}", "{\n\n\t\t\t\t//\n\t\t\t\twhile (sc.hasNext()) {\n\t\t\t\t\t//\n\t\t\t\t\tpoints = sc.nextInt();\n\t\t\t\t\tinput_array.add(points);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// 合計値\n\t\t\t\tall_points += points;\n\t\t\t}", "while (sc.hasNext()) {\n\t\t\t\t\t//\n\t\t\t\t\tpoints = sc.nextInt();\n\t\t\t\t\tinput_array.add(points);\n\t\t\t\t\tbreak;\n\t\t\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\t\t\t//\n\t\t\t\t\tpoints = sc.nextInt();\n\t\t\t\t\tinput_array.add(points);\n\t\t\t\t\tbreak;\n\t\t\t\t}", "points = sc.nextInt()", "points", "sc.nextInt()", "sc.nextInt", "sc", "input_array.add(points)", "input_array.add", "input_array", "points", "break;", "all_points += points", "all_points", "points", "Sta_Math obj = new Sta_Math(all_points, input_number, input_array);", "obj", "new Sta_Math(all_points, input_number, input_array)", "obj.cast_standard()", "obj.cast_standard", "obj", "double_array[roop] = obj.getStandard()", "double_array[roop]", "double_array", "roop", "obj.getStandard()", "obj.getStandard", "obj", "roop++", "roop", "for (int i = 0; i < roop; i++) {\n\t\t\tSystem.out.println(double_array[i]);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < roop", "i", "roop", "i++", "i++", "i", "{\n\t\t\tSystem.out.println(double_array[i]);\n\t\t}", "{\n\t\t\tSystem.out.println(double_array[i]);\n\t\t}", "System.out.println(double_array[i])", "System.out.println", "System.out", "System", "System.out", "double_array[i]", "double_array", "i", "String[] args", "args", "class Sta_Math {\n\n\t// 合計値\n\tprivate int all = 0;\n\t// 入力個数\n\tprivate int input_number = 0;\n\t// 平均\n\tprivate double average = 0;\n\t// 標準偏差\n\tprivate double standard = 0;\n\t// 入力数字列\n\tArrayList<Integer> input_arr = null;\n\n\t// コンストラクタ\n\tSta_Math(int a, int i, ArrayList<Integer> b) {\n\t\tall = a;\n\t\tinput_number = i;\n\t\tinput_arr = b;\n\t\taverage = (double)a / i;\n\t}\n\n\t// 標準偏差を計算\n\tpublic void cast_standard() {\n\t\tdouble hoge = 0;\n\t\t// 分子に使う数\n\t\tdouble namerator = 0;\n\t\t// 入っている数列分まわす\n\t\tfor (int val : input_arr) {\n\t\t\thoge = (val - average) * (val - average);\n\t\t\tnamerator += hoge;\n\t\t}\n\n\t\tstandard = Math.sqrt(namerator / input_number);\n\t}\n\n\t// ゲッター\n\tpublic double getStandard() {\n\t\treturn standard;\n\t}\n\n}", "Sta_Math", "// 合計値\n\tprivate int all = 0;", "all", "0", "// 入力個数\n\tprivate int input_number = 0;", "input_number", "0", "// 平均\n\tprivate double average = 0;", "average", "0", "// 標準偏差\n\tprivate double standard = 0;", "standard", "0", "// 入力数字列\n\tArrayList<Integer> input_arr = null;", "input_arr", "null", "// コンストラクタ\n\tSta_Math(int a, int i, ArrayList<Integer> b) {\n\t\tall = a;\n\t\tinput_number = i;\n\t\tinput_arr = b;\n\t\taverage = (double)a / i;\n\t}", "Sta_Math", "{\n\t\tall = a;\n\t\tinput_number = i;\n\t\tinput_arr = b;\n\t\taverage = (double)a / i;\n\t}", "all = a", "all", "a", "input_number = i", "input_number", "i", "input_arr = b", "input_arr", "b", "average = (double)a / i", "average", "(double)a / i", "(double)a", "i", "int a", "a", "int i", "i", "ArrayList<Integer> b", "b", "// 標準偏差を計算\n\tpublic void cast_standard() {\n\t\tdouble hoge = 0;\n\t\t// 分子に使う数\n\t\tdouble namerator = 0;\n\t\t// 入っている数列分まわす\n\t\tfor (int val : input_arr) {\n\t\t\thoge = (val - average) * (val - average);\n\t\t\tnamerator += hoge;\n\t\t}\n\n\t\tstandard = Math.sqrt(namerator / input_number);\n\t}", "cast_standard", "{\n\t\tdouble hoge = 0;\n\t\t// 分子に使う数\n\t\tdouble namerator = 0;\n\t\t// 入っている数列分まわす\n\t\tfor (int val : input_arr) {\n\t\t\thoge = (val - average) * (val - average);\n\t\t\tnamerator += hoge;\n\t\t}\n\n\t\tstandard = Math.sqrt(namerator / input_number);\n\t}", "double hoge = 0;", "hoge", "0", "double namerator = 0;", "namerator", "0", "for (int val : input_arr) {\n\t\t\thoge = (val - average) * (val - average);\n\t\t\tnamerator += hoge;\n\t\t}", "int val", "input_arr", "{\n\t\t\thoge = (val - average) * (val - average);\n\t\t\tnamerator += hoge;\n\t\t}", "{\n\t\t\thoge = (val - average) * (val - average);\n\t\t\tnamerator += hoge;\n\t\t}", "hoge = (val - average) * (val - average)", "hoge", "(val - average) * (val - average)", "(val - average)", "val", "average", "(val - average)", "val", "average", "namerator += hoge", "namerator", "hoge", "standard = Math.sqrt(namerator / input_number)", "standard", "Math.sqrt(namerator / input_number)", "Math.sqrt", "Math", "namerator / input_number", "namerator", "input_number", "// ゲッター\n\tpublic double getStandard() {\n\t\treturn standard;\n\t}", "getStandard", "{\n\t\treturn standard;\n\t}", "return standard;", "standard", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// 標準入力\n\t\tScanner sc = new Scanner(System.in);\n\t\t//\n\t\tint roop = 0;\n\t\t// 答えの配列\n\t\tdouble[] double_array = new double[100];\n\t\t// 何個入力があるか\n\t\twhile (sc.hasNext()) {\n\t\t\t\n\t\t\t//値を初期化\n\t\t\tint input_number = 0;\n\t\t\tint points = 0;\n\t\t\tint all_points = 0;\n\t\t\t// 入力数の配列\n\t\t\tArrayList<Integer> input_array = new ArrayList<Integer>();\n\t\t\t\n\t\t\tinput_number = sc.nextInt();\n\n\t\t\t// 入力値が0だった場合、結果を出力\n\t\t\tif (input_number == 0) \n\t\t\t\tbreak;\n\t\t\t\n\n\t\t\t// 入力個数分まわす\n\t\t\tfor (int i = 0; i < input_number; i++) {\n\n\t\t\t\t//\n\t\t\t\twhile (sc.hasNext()) {\n\t\t\t\t\t//\n\t\t\t\t\tpoints = sc.nextInt();\n\t\t\t\t\tinput_array.add(points);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// 合計値\n\t\t\t\tall_points += points;\n\t\t\t}\n\t\t\t// インスタンスを作る\n\t\t\tSta_Math obj = new Sta_Math(all_points, input_number, input_array);\n\t\t\tobj.cast_standard();\n\t\t\t//\n\t\t\tdouble_array[roop] = obj.getStandard();\n\t\t\troop++;\n\t\t}\n\t\tfor (int i = 0; i < roop; i++) {\n\t\t\tSystem.out.println(double_array[i]);\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// 標準入力\n\t\tScanner sc = new Scanner(System.in);\n\t\t//\n\t\tint roop = 0;\n\t\t// 答えの配列\n\t\tdouble[] double_array = new double[100];\n\t\t// 何個入力があるか\n\t\twhile (sc.hasNext()) {\n\t\t\t\n\t\t\t//値を初期化\n\t\t\tint input_number = 0;\n\t\t\tint points = 0;\n\t\t\tint all_points = 0;\n\t\t\t// 入力数の配列\n\t\t\tArrayList<Integer> input_array = new ArrayList<Integer>();\n\t\t\t\n\t\t\tinput_number = sc.nextInt();\n\n\t\t\t// 入力値が0だった場合、結果を出力\n\t\t\tif (input_number == 0) \n\t\t\t\tbreak;\n\t\t\t\n\n\t\t\t// 入力個数分まわす\n\t\t\tfor (int i = 0; i < input_number; i++) {\n\n\t\t\t\t//\n\t\t\t\twhile (sc.hasNext()) {\n\t\t\t\t\t//\n\t\t\t\t\tpoints = sc.nextInt();\n\t\t\t\t\tinput_array.add(points);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// 合計値\n\t\t\t\tall_points += points;\n\t\t\t}\n\t\t\t// インスタンスを作る\n\t\t\tSta_Math obj = new Sta_Math(all_points, input_number, input_array);\n\t\t\tobj.cast_standard();\n\t\t\t//\n\t\t\tdouble_array[roop] = obj.getStandard();\n\t\t\troop++;\n\t\t}\n\t\tfor (int i = 0; i < roop; i++) {\n\t\t\tSystem.out.println(double_array[i]);\n\t\t}\n\t}\n}", "Main" ]
import java.awt.List; import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { // 標準入力 Scanner sc = new Scanner(System.in); // int roop = 0; // 答えの配列 double[] double_array = new double[100]; // 何個入力があるか while (sc.hasNext()) { //値を初期化 int input_number = 0; int points = 0; int all_points = 0; // 入力数の配列 ArrayList<Integer> input_array = new ArrayList<Integer>(); input_number = sc.nextInt(); // 入力値が0だった場合、結果を出力 if (input_number == 0) break; // 入力個数分まわす for (int i = 0; i < input_number; i++) { // while (sc.hasNext()) { // points = sc.nextInt(); input_array.add(points); break; } // 合計値 all_points += points; } // インスタンスを作る Sta_Math obj = new Sta_Math(all_points, input_number, input_array); obj.cast_standard(); // double_array[roop] = obj.getStandard(); roop++; } for (int i = 0; i < roop; i++) { System.out.println(double_array[i]); } } } class Sta_Math { // 合計値 private int all = 0; // 入力個数 private int input_number = 0; // 平均 private double average = 0; // 標準偏差 private double standard = 0; // 入力数字列 ArrayList<Integer> input_arr = null; // コンストラクタ Sta_Math(int a, int i, ArrayList<Integer> b) { all = a; input_number = i; input_arr = b; average = (double)a / i; } // 標準偏差を計算 public void cast_standard() { double hoge = 0; // 分子に使う数 double namerator = 0; // 入っている数列分まわす for (int val : input_arr) { hoge = (val - average) * (val - average); namerator += hoge; } standard = Math.sqrt(namerator / input_number); } // ゲッター public double getStandard() { return standard; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 17, 11, 1, 0, 13, 17, 1, 40, 13, 30, 30, 41, 13, 17, 41, 13, 17, 0, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 30, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 2, 13, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 0, 13, 2, 13, 13, 0, 13, 4, 18, 13, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 133, 5 ], [ 133, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 36, 37 ], [ 30, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 43, 45 ], [ 39, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 39, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 51, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 58, 66 ], [ 66, 67 ], [ 67, 68 ], [ 58, 69 ], [ 70, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 70, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 57, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 39, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 93, 94 ], [ 93, 95 ], [ 88, 96 ], [ 96, 97 ], [ 97, 98 ], [ 88, 99 ], [ 100, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 103, 111 ], [ 39, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 114, 116 ], [ 39, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 120, 121 ], [ 119, 122 ], [ 119, 123 ], [ 39, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 6, 130 ], [ 130, 131 ], [ 0, 132 ], [ 132, 133 ], [ 132, 134 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int i, j, k;\n double a, b, m, n;\n double[] Score = new double[10000];\n for(i = 0; ; i++){\n int Total = 0;\n double Totalup = 0.0;\n n = sc.nextDouble();\n if(n == 0.0){\n break;\n } else{\n for(j = 0; j < n; j++){\n Score[j] = sc.nextDouble();\n Total += Score[j];\n }\n m = Total / n;\n }\n for(k = 0; k < n; k++){\n Totalup += Math.pow(Score[k] - m, 2.0);\n }\n a = Totalup / n;\n b = Math.pow(a, 0.5);\n System.out.println(b);\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 i, j, k;\n double a, b, m, n;\n double[] Score = new double[10000];\n for(i = 0; ; i++){\n int Total = 0;\n double Totalup = 0.0;\n n = sc.nextDouble();\n if(n == 0.0){\n break;\n } else{\n for(j = 0; j < n; j++){\n Score[j] = sc.nextDouble();\n Total += Score[j];\n }\n m = Total / n;\n }\n for(k = 0; k < n; k++){\n Totalup += Math.pow(Score[k] - m, 2.0);\n }\n a = Totalup / n;\n b = Math.pow(a, 0.5);\n System.out.println(b);\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int i, j, k;\n double a, b, m, n;\n double[] Score = new double[10000];\n for(i = 0; ; i++){\n int Total = 0;\n double Totalup = 0.0;\n n = sc.nextDouble();\n if(n == 0.0){\n break;\n } else{\n for(j = 0; j < n; j++){\n Score[j] = sc.nextDouble();\n Total += Score[j];\n }\n m = Total / n;\n }\n for(k = 0; k < n; k++){\n Totalup += Math.pow(Score[k] - m, 2.0);\n }\n a = Totalup / n;\n b = Math.pow(a, 0.5);\n System.out.println(b);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int i, j, k;\n double a, b, m, n;\n double[] Score = new double[10000];\n for(i = 0; ; i++){\n int Total = 0;\n double Totalup = 0.0;\n n = sc.nextDouble();\n if(n == 0.0){\n break;\n } else{\n for(j = 0; j < n; j++){\n Score[j] = sc.nextDouble();\n Total += Score[j];\n }\n m = Total / n;\n }\n for(k = 0; k < n; k++){\n Totalup += Math.pow(Score[k] - m, 2.0);\n }\n a = Totalup / n;\n b = Math.pow(a, 0.5);\n System.out.println(b);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int i", "i", "j", "j", "k;", "k", "double a", "a", "b", "b", "m", "m", "n;", "n", "double[] Score = new double[10000];", "Score", "new double[10000]", "10000", "for(i = 0; ; i++){\n int Total = 0;\n double Totalup = 0.0;\n n = sc.nextDouble();\n if(n == 0.0){\n break;\n } else{\n for(j = 0; j < n; j++){\n Score[j] = sc.nextDouble();\n Total += Score[j];\n }\n m = Total / n;\n }\n for(k = 0; k < n; k++){\n Totalup += Math.pow(Score[k] - m, 2.0);\n }\n a = Totalup / n;\n b = Math.pow(a, 0.5);\n System.out.println(b);\n }", "i = 0;", "i = 0", "i", "0", "i++", "i++", "i", "{\n int Total = 0;\n double Totalup = 0.0;\n n = sc.nextDouble();\n if(n == 0.0){\n break;\n } else{\n for(j = 0; j < n; j++){\n Score[j] = sc.nextDouble();\n Total += Score[j];\n }\n m = Total / n;\n }\n for(k = 0; k < n; k++){\n Totalup += Math.pow(Score[k] - m, 2.0);\n }\n a = Totalup / n;\n b = Math.pow(a, 0.5);\n System.out.println(b);\n }", "{\n int Total = 0;\n double Totalup = 0.0;\n n = sc.nextDouble();\n if(n == 0.0){\n break;\n } else{\n for(j = 0; j < n; j++){\n Score[j] = sc.nextDouble();\n Total += Score[j];\n }\n m = Total / n;\n }\n for(k = 0; k < n; k++){\n Totalup += Math.pow(Score[k] - m, 2.0);\n }\n a = Totalup / n;\n b = Math.pow(a, 0.5);\n System.out.println(b);\n }", "int Total = 0;", "Total", "0", "double Totalup = 0.0;", "Totalup", "0.0", "n = sc.nextDouble()", "n", "sc.nextDouble()", "sc.nextDouble", "sc", "if(n == 0.0){\n break;\n } else{\n for(j = 0; j < n; j++){\n Score[j] = sc.nextDouble();\n Total += Score[j];\n }\n m = Total / n;\n }", "n == 0.0", "n", "0.0", "{\n break;\n }", "break;", "{\n for(j = 0; j < n; j++){\n Score[j] = sc.nextDouble();\n Total += Score[j];\n }\n m = Total / n;\n }", "for(j = 0; j < n; j++){\n Score[j] = sc.nextDouble();\n Total += Score[j];\n }", "j = 0;", "j = 0", "j", "0", "j < n", "j", "n", "j++", "j++", "j", "{\n Score[j] = sc.nextDouble();\n Total += Score[j];\n }", "{\n Score[j] = sc.nextDouble();\n Total += Score[j];\n }", "Score[j] = sc.nextDouble()", "Score[j]", "Score", "j", "sc.nextDouble()", "sc.nextDouble", "sc", "Total += Score[j]", "Total", "Score[j]", "Score", "j", "m = Total / n", "m", "Total / n", "Total", "n", "for(k = 0; k < n; k++){\n Totalup += Math.pow(Score[k] - m, 2.0);\n }", "k = 0;", "k = 0", "k", "0", "k < n", "k", "n", "k++", "k++", "k", "{\n Totalup += Math.pow(Score[k] - m, 2.0);\n }", "{\n Totalup += Math.pow(Score[k] - m, 2.0);\n }", "Totalup += Math.pow(Score[k] - m, 2.0)", "Totalup", "Math.pow(Score[k] - m, 2.0)", "Math.pow", "Math", "Score[k] - m", "Score[k]", "Score", "k", "m", "2.0", "a = Totalup / n", "a", "Totalup / n", "Totalup", "n", "b = Math.pow(a, 0.5)", "b", "Math.pow(a, 0.5)", "Math.pow", "Math", "a", "0.5", "System.out.println(b)", "System.out.println", "System.out", "System", "System.out", "b", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int i, j, k;\n double a, b, m, n;\n double[] Score = new double[10000];\n for(i = 0; ; i++){\n int Total = 0;\n double Totalup = 0.0;\n n = sc.nextDouble();\n if(n == 0.0){\n break;\n } else{\n for(j = 0; j < n; j++){\n Score[j] = sc.nextDouble();\n Total += Score[j];\n }\n m = Total / n;\n }\n for(k = 0; k < n; k++){\n Totalup += Math.pow(Score[k] - m, 2.0);\n }\n a = Totalup / n;\n b = Math.pow(a, 0.5);\n System.out.println(b);\n }\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int i, j, k;\n double a, b, m, n;\n double[] Score = new double[10000];\n for(i = 0; ; i++){\n int Total = 0;\n double Totalup = 0.0;\n n = sc.nextDouble();\n if(n == 0.0){\n break;\n } else{\n for(j = 0; j < n; j++){\n Score[j] = sc.nextDouble();\n Total += Score[j];\n }\n m = Total / n;\n }\n for(k = 0; k < n; k++){\n Totalup += Math.pow(Score[k] - m, 2.0);\n }\n a = Totalup / n;\n b = Math.pow(a, 0.5);\n System.out.println(b);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int i, j, k; double a, b, m, n; double[] Score = new double[10000]; for(i = 0; ; i++){ int Total = 0; double Totalup = 0.0; n = sc.nextDouble(); if(n == 0.0){ break; } else{ for(j = 0; j < n; j++){ Score[j] = sc.nextDouble(); Total += Score[j]; } m = Total / n; } for(k = 0; k < n; k++){ Totalup += Math.pow(Score[k] - m, 2.0); } a = Totalup / n; b = Math.pow(a, 0.5); System.out.println(b); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 20, 42, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 4, 18, 13, 2, 4, 18, 13, 2, 13, 13, 17, 0, 13, 4, 18, 13, 0, 13, 17, 0, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 24 ], [ 24, 25 ], [ 24, 26 ], [ 11, 27 ], [ 27, 28 ], [ 27, 29 ], [ 11, 30 ], [ 30, 31 ], [ 30, 32 ], [ 11, 33 ], [ 33, 34 ], [ 33, 35 ], [ 11, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 41, 49 ], [ 49, 50 ], [ 50, 51 ], [ 41, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 53, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 40, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 40, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 76, 77 ], [ 76, 78 ], [ 71, 79 ], [ 79, 80 ], [ 80, 81 ], [ 71, 82 ], [ 83, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 86, 94 ], [ 40, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 102, 103 ], [ 102, 104 ], [ 98, 105 ], [ 40, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 40, 111 ], [ 111, 112 ], [ 111, 113 ], [ 40, 114 ], [ 114, 115 ], [ 114, 116 ], [ 11, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 122, 123 ], [ 123, 124 ], [ 9, 125 ], [ 125, 126 ] ]
[ "import java.io.IOException;\nimport java.util.Scanner;\n\nclass Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tScanner scane = new Scanner(System.in);\n\n\t\tdouble n = scane.nextDouble();\n\n\t\tdouble[] nums = new double[1000];\n\n\t\tdouble totala = 0;\n\n\t\tdouble average = 0;\n\n\t\tdouble bunsan = 0;\n\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\twhile (n != 0) {\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tnums[i] = scane.nextDouble();\n\t\t\t\ttotala += nums[i];\n\t\t\t}\n\n\t\t\taverage = totala / n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\t\tbunsan += Math.pow((nums[i] - average), 2);\n\t\t\t}\n\n\t\t\tbuilder.append(Math.sqrt(bunsan / n) + \"\\n\");\n\n\t\t\tn = scane.nextDouble();\n\n\t\t\ttotala = 0;\n\t\t\tbunsan = 0;\n\n\t\t}\n\n\t\tSystem.out.print(builder.toString());\n\n\t}\n\n}", "import java.io.IOException;", "IOException", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tScanner scane = new Scanner(System.in);\n\n\t\tdouble n = scane.nextDouble();\n\n\t\tdouble[] nums = new double[1000];\n\n\t\tdouble totala = 0;\n\n\t\tdouble average = 0;\n\n\t\tdouble bunsan = 0;\n\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\twhile (n != 0) {\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tnums[i] = scane.nextDouble();\n\t\t\t\ttotala += nums[i];\n\t\t\t}\n\n\t\t\taverage = totala / n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\t\tbunsan += Math.pow((nums[i] - average), 2);\n\t\t\t}\n\n\t\t\tbuilder.append(Math.sqrt(bunsan / n) + \"\\n\");\n\n\t\t\tn = scane.nextDouble();\n\n\t\t\ttotala = 0;\n\t\t\tbunsan = 0;\n\n\t\t}\n\n\t\tSystem.out.print(builder.toString());\n\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\n\t\tScanner scane = new Scanner(System.in);\n\n\t\tdouble n = scane.nextDouble();\n\n\t\tdouble[] nums = new double[1000];\n\n\t\tdouble totala = 0;\n\n\t\tdouble average = 0;\n\n\t\tdouble bunsan = 0;\n\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\twhile (n != 0) {\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tnums[i] = scane.nextDouble();\n\t\t\t\ttotala += nums[i];\n\t\t\t}\n\n\t\t\taverage = totala / n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\t\tbunsan += Math.pow((nums[i] - average), 2);\n\t\t\t}\n\n\t\t\tbuilder.append(Math.sqrt(bunsan / n) + \"\\n\");\n\n\t\t\tn = scane.nextDouble();\n\n\t\t\ttotala = 0;\n\t\t\tbunsan = 0;\n\n\t\t}\n\n\t\tSystem.out.print(builder.toString());\n\n\t}", "main", "{\n\n\t\tScanner scane = new Scanner(System.in);\n\n\t\tdouble n = scane.nextDouble();\n\n\t\tdouble[] nums = new double[1000];\n\n\t\tdouble totala = 0;\n\n\t\tdouble average = 0;\n\n\t\tdouble bunsan = 0;\n\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\twhile (n != 0) {\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tnums[i] = scane.nextDouble();\n\t\t\t\ttotala += nums[i];\n\t\t\t}\n\n\t\t\taverage = totala / n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\t\tbunsan += Math.pow((nums[i] - average), 2);\n\t\t\t}\n\n\t\t\tbuilder.append(Math.sqrt(bunsan / n) + \"\\n\");\n\n\t\t\tn = scane.nextDouble();\n\n\t\t\ttotala = 0;\n\t\t\tbunsan = 0;\n\n\t\t}\n\n\t\tSystem.out.print(builder.toString());\n\n\t}", "Scanner scane = new Scanner(System.in);", "scane", "new Scanner(System.in)", "double n = scane.nextDouble();", "n", "scane.nextDouble()", "scane.nextDouble", "scane", "double[] nums = new double[1000];", "nums", "new double[1000]", "1000", "double totala = 0;", "totala", "0", "double average = 0;", "average", "0", "double bunsan = 0;", "bunsan", "0", "StringBuilder builder = new StringBuilder();", "builder", "new StringBuilder()", "while (n != 0) {\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tnums[i] = scane.nextDouble();\n\t\t\t\ttotala += nums[i];\n\t\t\t}\n\n\t\t\taverage = totala / n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\t\tbunsan += Math.pow((nums[i] - average), 2);\n\t\t\t}\n\n\t\t\tbuilder.append(Math.sqrt(bunsan / n) + \"\\n\");\n\n\t\t\tn = scane.nextDouble();\n\n\t\t\ttotala = 0;\n\t\t\tbunsan = 0;\n\n\t\t}", "n != 0", "n", "0", "{\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tnums[i] = scane.nextDouble();\n\t\t\t\ttotala += nums[i];\n\t\t\t}\n\n\t\t\taverage = totala / n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\t\tbunsan += Math.pow((nums[i] - average), 2);\n\t\t\t}\n\n\t\t\tbuilder.append(Math.sqrt(bunsan / n) + \"\\n\");\n\n\t\t\tn = scane.nextDouble();\n\n\t\t\ttotala = 0;\n\t\t\tbunsan = 0;\n\n\t\t}", "for (int i = 0; i < n; i++) {\n\t\t\t\tnums[i] = scane.nextDouble();\n\t\t\t\ttotala += nums[i];\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tnums[i] = scane.nextDouble();\n\t\t\t\ttotala += nums[i];\n\t\t\t}", "{\n\t\t\t\tnums[i] = scane.nextDouble();\n\t\t\t\ttotala += nums[i];\n\t\t\t}", "nums[i] = scane.nextDouble()", "nums[i]", "nums", "i", "scane.nextDouble()", "scane.nextDouble", "scane", "totala += nums[i]", "totala", "nums[i]", "nums", "i", "average = totala / n", "average", "totala / n", "totala", "n", "for (int i = 0; i < n; i++) {\n\n\t\t\t\tbunsan += Math.pow((nums[i] - average), 2);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\n\t\t\t\tbunsan += Math.pow((nums[i] - average), 2);\n\t\t\t}", "{\n\n\t\t\t\tbunsan += Math.pow((nums[i] - average), 2);\n\t\t\t}", "bunsan += Math.pow((nums[i] - average), 2)", "bunsan", "Math.pow((nums[i] - average), 2)", "Math.pow", "Math", "(nums[i] - average)", "nums[i]", "nums", "i", "average", "2", "builder.append(Math.sqrt(bunsan / n) + \"\\n\")", "builder.append", "builder", "Math.sqrt(bunsan / n) + \"\\n\"", "Math.sqrt(bunsan / n)", "Math.sqrt", "Math", "bunsan / n", "bunsan", "n", "\"\\n\"", "n = scane.nextDouble()", "n", "scane.nextDouble()", "scane.nextDouble", "scane", "totala = 0", "totala", "0", "bunsan = 0", "bunsan", "0", "System.out.print(builder.toString())", "System.out.print", "System.out", "System", "System.out", "builder.toString()", "builder.toString", "builder", "String[] args", "args" ]
import java.io.IOException; import java.util.Scanner; class Main { public static void main(String[] args) throws IOException { Scanner scane = new Scanner(System.in); double n = scane.nextDouble(); double[] nums = new double[1000]; double totala = 0; double average = 0; double bunsan = 0; StringBuilder builder = new StringBuilder(); while (n != 0) { for (int i = 0; i < n; i++) { nums[i] = scane.nextDouble(); totala += nums[i]; } average = totala / n; for (int i = 0; i < n; i++) { bunsan += Math.pow((nums[i] - average), 2); } builder.append(Math.sqrt(bunsan / n) + "\n"); n = scane.nextDouble(); totala = 0; bunsan = 0; } System.out.print(builder.toString()); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 2, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 18, 13, 13, 13, 0, 13, 2, 13, 13, 0, 13, 2, 13, 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 ], [ 142, 5 ], [ 142, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 16, 28 ], [ 28, 29 ], [ 28, 30 ], [ 16, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 39, 41 ], [ 32, 42 ], [ 42, 43 ], [ 43, 44 ], [ 32, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 52, 53 ], [ 16, 54 ], [ 54, 55 ], [ 54, 56 ], [ 16, 57 ], [ 57, 58 ], [ 57, 59 ], [ 16, 60 ], [ 60, 61 ], [ 60, 62 ], [ 16, 63 ], [ 63, 64 ], [ 63, 65 ], [ 16, 66 ], [ 66, 67 ], [ 66, 68 ], [ 16, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 69, 79 ], [ 79, 80 ], [ 80, 81 ], [ 69, 82 ], [ 83, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 16, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 16, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 103, 105 ], [ 96, 106 ], [ 106, 107 ], [ 107, 108 ], [ 96, 109 ], [ 110, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 110, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 120, 122 ], [ 16, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 127, 129 ], [ 16, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 130, 135 ], [ 135, 136 ], [ 136, 137 ], [ 135, 138 ], [ 6, 139 ], [ 139, 140 ], [ 0, 141 ], [ 141, 142 ], [ 141, 143 ] ]
[ "import java.util.Scanner;\npublic class Main { \n public static void main(String[] args) { \n try (Scanner sc = new Scanner(System.in)) { \n while (true) { \n int n = sc.nextInt(); \n if (n == 0) { \n break; \n } \n int[] scores = new int[n]; \n for (int i = 0; i < scores.length; i++) { \n scores[i] = sc.nextInt(); \n } \n double sum = 0, average = 0, variance = 0, x = 0, xsum = 0; \n for (int j = 0; j < scores.length; j++) {\n sum+=scores[j];\n }\n average = sum / scores.length;\n for (int k = 0; k < scores.length; k++) {\n x=scores[k]-average;\n xsum+=x*x;\n }\n variance = xsum / scores.length;\n System.out.println(Math.sqrt(variance)); \n } \n } \n } \n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main { \n public static void main(String[] args) { \n try (Scanner sc = new Scanner(System.in)) { \n while (true) { \n int n = sc.nextInt(); \n if (n == 0) { \n break; \n } \n int[] scores = new int[n]; \n for (int i = 0; i < scores.length; i++) { \n scores[i] = sc.nextInt(); \n } \n double sum = 0, average = 0, variance = 0, x = 0, xsum = 0; \n for (int j = 0; j < scores.length; j++) {\n sum+=scores[j];\n }\n average = sum / scores.length;\n for (int k = 0; k < scores.length; k++) {\n x=scores[k]-average;\n xsum+=x*x;\n }\n variance = xsum / scores.length;\n System.out.println(Math.sqrt(variance)); \n } \n } \n } \n}", "Main", "public static void main(String[] args) { \n try (Scanner sc = new Scanner(System.in)) { \n while (true) { \n int n = sc.nextInt(); \n if (n == 0) { \n break; \n } \n int[] scores = new int[n]; \n for (int i = 0; i < scores.length; i++) { \n scores[i] = sc.nextInt(); \n } \n double sum = 0, average = 0, variance = 0, x = 0, xsum = 0; \n for (int j = 0; j < scores.length; j++) {\n sum+=scores[j];\n }\n average = sum / scores.length;\n for (int k = 0; k < scores.length; k++) {\n x=scores[k]-average;\n xsum+=x*x;\n }\n variance = xsum / scores.length;\n System.out.println(Math.sqrt(variance)); \n } \n } \n }", "main", "{ \n try (Scanner sc = new Scanner(System.in)) { \n while (true) { \n int n = sc.nextInt(); \n if (n == 0) { \n break; \n } \n int[] scores = new int[n]; \n for (int i = 0; i < scores.length; i++) { \n scores[i] = sc.nextInt(); \n } \n double sum = 0, average = 0, variance = 0, x = 0, xsum = 0; \n for (int j = 0; j < scores.length; j++) {\n sum+=scores[j];\n }\n average = sum / scores.length;\n for (int k = 0; k < scores.length; k++) {\n x=scores[k]-average;\n xsum+=x*x;\n }\n variance = xsum / scores.length;\n System.out.println(Math.sqrt(variance)); \n } \n } \n }", "try (Scanner sc = new Scanner(System.in)) { \n while (true) { \n int n = sc.nextInt(); \n if (n == 0) { \n break; \n } \n int[] scores = new int[n]; \n for (int i = 0; i < scores.length; i++) { \n scores[i] = sc.nextInt(); \n } \n double sum = 0, average = 0, variance = 0, x = 0, xsum = 0; \n for (int j = 0; j < scores.length; j++) {\n sum+=scores[j];\n }\n average = sum / scores.length;\n for (int k = 0; k < scores.length; k++) {\n x=scores[k]-average;\n xsum+=x*x;\n }\n variance = xsum / scores.length;\n System.out.println(Math.sqrt(variance)); \n } \n }", "{ \n while (true) { \n int n = sc.nextInt(); \n if (n == 0) { \n break; \n } \n int[] scores = new int[n]; \n for (int i = 0; i < scores.length; i++) { \n scores[i] = sc.nextInt(); \n } \n double sum = 0, average = 0, variance = 0, x = 0, xsum = 0; \n for (int j = 0; j < scores.length; j++) {\n sum+=scores[j];\n }\n average = sum / scores.length;\n for (int k = 0; k < scores.length; k++) {\n x=scores[k]-average;\n xsum+=x*x;\n }\n variance = xsum / scores.length;\n System.out.println(Math.sqrt(variance)); \n } \n }", "Scanner sc = new Scanner(System.in)", "Scanner sc = new Scanner(System.in)", "new Scanner(System.in)", "while (true) { \n int n = sc.nextInt(); \n if (n == 0) { \n break; \n } \n int[] scores = new int[n]; \n for (int i = 0; i < scores.length; i++) { \n scores[i] = sc.nextInt(); \n } \n double sum = 0, average = 0, variance = 0, x = 0, xsum = 0; \n for (int j = 0; j < scores.length; j++) {\n sum+=scores[j];\n }\n average = sum / scores.length;\n for (int k = 0; k < scores.length; k++) {\n x=scores[k]-average;\n xsum+=x*x;\n }\n variance = xsum / scores.length;\n System.out.println(Math.sqrt(variance)); \n }", "true", "{ \n int n = sc.nextInt(); \n if (n == 0) { \n break; \n } \n int[] scores = new int[n]; \n for (int i = 0; i < scores.length; i++) { \n scores[i] = sc.nextInt(); \n } \n double sum = 0, average = 0, variance = 0, x = 0, xsum = 0; \n for (int j = 0; j < scores.length; j++) {\n sum+=scores[j];\n }\n average = sum / scores.length;\n for (int k = 0; k < scores.length; k++) {\n x=scores[k]-average;\n xsum+=x*x;\n }\n variance = xsum / scores.length;\n System.out.println(Math.sqrt(variance)); \n }", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if (n == 0) { \n break; \n }", "n == 0", "n", "0", "{ \n break; \n }", "break;", "int[] scores = new int[n];", "scores", "new int[n]", "n", "for (int i = 0; i < scores.length; i++) { \n scores[i] = sc.nextInt(); \n }", "int i = 0;", "int i = 0;", "i", "0", "i < scores.length", "i", "scores.length", "scores", "scores.length", "i++", "i++", "i", "{ \n scores[i] = sc.nextInt(); \n }", "{ \n scores[i] = sc.nextInt(); \n }", "scores[i] = sc.nextInt()", "scores[i]", "scores", "i", "sc.nextInt()", "sc.nextInt", "sc", "double sum = 0", "sum", "0", "average = 0", "average", "0", "variance = 0", "variance", "0", "x = 0", "x", "0", "xsum = 0;", "xsum", "0", "for (int j = 0; j < scores.length; j++) {\n sum+=scores[j];\n }", "int j = 0;", "int j = 0;", "j", "0", "j < scores.length", "j", "scores.length", "scores", "scores.length", "j++", "j++", "j", "{\n sum+=scores[j];\n }", "{\n sum+=scores[j];\n }", "sum+=scores[j]", "sum", "scores[j]", "scores", "j", "average = sum / scores.length", "average", "sum / scores.length", "sum", "scores.length", "scores", "scores.length", "for (int k = 0; k < scores.length; k++) {\n x=scores[k]-average;\n xsum+=x*x;\n }", "int k = 0;", "int k = 0;", "k", "0", "k < scores.length", "k", "scores.length", "scores", "scores.length", "k++", "k++", "k", "{\n x=scores[k]-average;\n xsum+=x*x;\n }", "{\n x=scores[k]-average;\n xsum+=x*x;\n }", "x=scores[k]-average", "x", "scores[k]-average", "scores[k]", "scores", "k", "average", "xsum+=x*x", "xsum", "x*x", "x", "x", "variance = xsum / scores.length", "variance", "xsum / scores.length", "xsum", "scores.length", "scores", "scores.length", "System.out.println(Math.sqrt(variance))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(variance)", "Math.sqrt", "Math", "variance", "String[] args", "args", "public class Main { \n public static void main(String[] args) { \n try (Scanner sc = new Scanner(System.in)) { \n while (true) { \n int n = sc.nextInt(); \n if (n == 0) { \n break; \n } \n int[] scores = new int[n]; \n for (int i = 0; i < scores.length; i++) { \n scores[i] = sc.nextInt(); \n } \n double sum = 0, average = 0, variance = 0, x = 0, xsum = 0; \n for (int j = 0; j < scores.length; j++) {\n sum+=scores[j];\n }\n average = sum / scores.length;\n for (int k = 0; k < scores.length; k++) {\n x=scores[k]-average;\n xsum+=x*x;\n }\n variance = xsum / scores.length;\n System.out.println(Math.sqrt(variance)); \n } \n } \n } \n}", "public class Main { \n public static void main(String[] args) { \n try (Scanner sc = new Scanner(System.in)) { \n while (true) { \n int n = sc.nextInt(); \n if (n == 0) { \n break; \n } \n int[] scores = new int[n]; \n for (int i = 0; i < scores.length; i++) { \n scores[i] = sc.nextInt(); \n } \n double sum = 0, average = 0, variance = 0, x = 0, xsum = 0; \n for (int j = 0; j < scores.length; j++) {\n sum+=scores[j];\n }\n average = sum / scores.length;\n for (int k = 0; k < scores.length; k++) {\n x=scores[k]-average;\n xsum+=x*x;\n }\n variance = xsum / scores.length;\n System.out.println(Math.sqrt(variance)); \n } \n } \n } \n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { while (true) { int n = sc.nextInt(); if (n == 0) { break; } int[] scores = new int[n]; for (int i = 0; i < scores.length; i++) { scores[i] = sc.nextInt(); } double sum = 0, average = 0, variance = 0, x = 0, xsum = 0; for (int j = 0; j < scores.length; j++) { sum+=scores[j]; } average = sum / scores.length; for (int k = 0; k < scores.length; k++) { x=scores[k]-average; xsum+=x*x; } variance = xsum / scores.length; System.out.println(Math.sqrt(variance)); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 29, 2, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 2, 13, 17, 3, 0, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 41, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 2, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 13, 2, 18, 13, 13, 13, 0, 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 ], [ 133, 5 ], [ 133, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 10, 12 ], [ 6, 13 ], [ 13, 14 ], [ 133, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 17, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 27, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 27, 38 ], [ 38, 39 ], [ 38, 40 ], [ 27, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 47, 48 ], [ 47, 49 ], [ 42, 50 ], [ 50, 51 ], [ 51, 52 ], [ 42, 53 ], [ 54, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 60, 61 ], [ 27, 62 ], [ 62, 63 ], [ 27, 64 ], [ 64, 65 ], [ 64, 66 ], [ 27, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 72, 73 ], [ 72, 74 ], [ 67, 75 ], [ 75, 76 ], [ 76, 77 ], [ 67, 78 ], [ 79, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 82, 84 ], [ 27, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 27, 90 ], [ 90, 91 ], [ 90, 92 ], [ 27, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 98, 99 ], [ 98, 100 ], [ 93, 101 ], [ 101, 102 ], [ 102, 103 ], [ 93, 104 ], [ 105, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 27, 115 ], [ 115, 116 ], [ 115, 117 ], [ 27, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 27, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 15, 130 ], [ 130, 131 ], [ 0, 132 ], [ 132, 133 ], [ 132, 134 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n\n\tpublic static double beki2(double x){\n\t\treturn x*x;\n\t}\n\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n;\n\t\tint []s;\n\t\twhile(true){\n\t\t\tn = sc.nextInt();\n\t\t\tif(n==0)\n\t\t\t\tbreak;\n\t\t\ts = new int[n];\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\ts[i]=sc.nextInt();\n\t\t\t}\n\t\t\tdouble ave;\n\t\t\tint sum=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsum+=s[i];\n\t\t\t}\n\t\t\tave = (double)sum/n;\n\t\t\tdouble vari=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tvari += beki2(s[i]-ave);\n\t\t\t}\n\t\t\tvari/=n;\n\t\t\tdouble dev=Math.sqrt(vari);\n\t\t\tSystem.out.println(dev);\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\n\tpublic static double beki2(double x){\n\t\treturn x*x;\n\t}\n\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n;\n\t\tint []s;\n\t\twhile(true){\n\t\t\tn = sc.nextInt();\n\t\t\tif(n==0)\n\t\t\t\tbreak;\n\t\t\ts = new int[n];\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\ts[i]=sc.nextInt();\n\t\t\t}\n\t\t\tdouble ave;\n\t\t\tint sum=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsum+=s[i];\n\t\t\t}\n\t\t\tave = (double)sum/n;\n\t\t\tdouble vari=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tvari += beki2(s[i]-ave);\n\t\t\t}\n\t\t\tvari/=n;\n\t\t\tdouble dev=Math.sqrt(vari);\n\t\t\tSystem.out.println(dev);\n\t\t}\n\t}\n}", "Main", "public static double beki2(double x){\n\t\treturn x*x;\n\t}", "beki2", "{\n\t\treturn x*x;\n\t}", "return x*x;", "x*x", "x", "x", "double x", "x", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n;\n\t\tint []s;\n\t\twhile(true){\n\t\t\tn = sc.nextInt();\n\t\t\tif(n==0)\n\t\t\t\tbreak;\n\t\t\ts = new int[n];\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\ts[i]=sc.nextInt();\n\t\t\t}\n\t\t\tdouble ave;\n\t\t\tint sum=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsum+=s[i];\n\t\t\t}\n\t\t\tave = (double)sum/n;\n\t\t\tdouble vari=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tvari += beki2(s[i]-ave);\n\t\t\t}\n\t\t\tvari/=n;\n\t\t\tdouble dev=Math.sqrt(vari);\n\t\t\tSystem.out.println(dev);\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n;\n\t\tint []s;\n\t\twhile(true){\n\t\t\tn = sc.nextInt();\n\t\t\tif(n==0)\n\t\t\t\tbreak;\n\t\t\ts = new int[n];\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\ts[i]=sc.nextInt();\n\t\t\t}\n\t\t\tdouble ave;\n\t\t\tint sum=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsum+=s[i];\n\t\t\t}\n\t\t\tave = (double)sum/n;\n\t\t\tdouble vari=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tvari += beki2(s[i]-ave);\n\t\t\t}\n\t\t\tvari/=n;\n\t\t\tdouble dev=Math.sqrt(vari);\n\t\t\tSystem.out.println(dev);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n;", "n", "int []s;", "s", "while(true){\n\t\t\tn = sc.nextInt();\n\t\t\tif(n==0)\n\t\t\t\tbreak;\n\t\t\ts = new int[n];\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\ts[i]=sc.nextInt();\n\t\t\t}\n\t\t\tdouble ave;\n\t\t\tint sum=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsum+=s[i];\n\t\t\t}\n\t\t\tave = (double)sum/n;\n\t\t\tdouble vari=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tvari += beki2(s[i]-ave);\n\t\t\t}\n\t\t\tvari/=n;\n\t\t\tdouble dev=Math.sqrt(vari);\n\t\t\tSystem.out.println(dev);\n\t\t}", "true", "{\n\t\t\tn = sc.nextInt();\n\t\t\tif(n==0)\n\t\t\t\tbreak;\n\t\t\ts = new int[n];\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\ts[i]=sc.nextInt();\n\t\t\t}\n\t\t\tdouble ave;\n\t\t\tint sum=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsum+=s[i];\n\t\t\t}\n\t\t\tave = (double)sum/n;\n\t\t\tdouble vari=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tvari += beki2(s[i]-ave);\n\t\t\t}\n\t\t\tvari/=n;\n\t\t\tdouble dev=Math.sqrt(vari);\n\t\t\tSystem.out.println(dev);\n\t\t}", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n==0)\n\t\t\t\tbreak;", "n==0", "n", "0", "break;", "s = new int[n]", "s", "new int[n]", "n", "for(int i=0;i<n;i++){\n\t\t\t\ts[i]=sc.nextInt();\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\ts[i]=sc.nextInt();\n\t\t\t}", "{\n\t\t\t\ts[i]=sc.nextInt();\n\t\t\t}", "s[i]=sc.nextInt()", "s[i]", "s", "i", "sc.nextInt()", "sc.nextInt", "sc", "double ave;", "ave", "int sum=0;", "sum", "0", "for(int i=0;i<n;i++){\n\t\t\t\tsum+=s[i];\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tsum+=s[i];\n\t\t\t}", "{\n\t\t\t\tsum+=s[i];\n\t\t\t}", "sum+=s[i]", "sum", "s[i]", "s", "i", "ave = (double)sum/n", "ave", "(double)sum/n", "(double)sum", "n", "double vari=0;", "vari", "0", "for(int i=0;i<n;i++){\n\t\t\t\tvari += beki2(s[i]-ave);\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tvari += beki2(s[i]-ave);\n\t\t\t}", "{\n\t\t\t\tvari += beki2(s[i]-ave);\n\t\t\t}", "vari += beki2(s[i]-ave)", "vari", "beki2(s[i]-ave)", "beki2", "s[i]-ave", "s[i]", "s", "i", "ave", "vari/=n", "vari", "n", "double dev=Math.sqrt(vari);", "dev", "Math.sqrt(vari)", "Math.sqrt", "Math", "vari", "System.out.println(dev)", "System.out.println", "System.out", "System", "System.out", "dev", "String[] args", "args", "public class Main{\n\n\tpublic static double beki2(double x){\n\t\treturn x*x;\n\t}\n\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n;\n\t\tint []s;\n\t\twhile(true){\n\t\t\tn = sc.nextInt();\n\t\t\tif(n==0)\n\t\t\t\tbreak;\n\t\t\ts = new int[n];\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\ts[i]=sc.nextInt();\n\t\t\t}\n\t\t\tdouble ave;\n\t\t\tint sum=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsum+=s[i];\n\t\t\t}\n\t\t\tave = (double)sum/n;\n\t\t\tdouble vari=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tvari += beki2(s[i]-ave);\n\t\t\t}\n\t\t\tvari/=n;\n\t\t\tdouble dev=Math.sqrt(vari);\n\t\t\tSystem.out.println(dev);\n\t\t}\n\t}\n}", "public class Main{\n\n\tpublic static double beki2(double x){\n\t\treturn x*x;\n\t}\n\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n;\n\t\tint []s;\n\t\twhile(true){\n\t\t\tn = sc.nextInt();\n\t\t\tif(n==0)\n\t\t\t\tbreak;\n\t\t\ts = new int[n];\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\ts[i]=sc.nextInt();\n\t\t\t}\n\t\t\tdouble ave;\n\t\t\tint sum=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsum+=s[i];\n\t\t\t}\n\t\t\tave = (double)sum/n;\n\t\t\tdouble vari=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tvari += beki2(s[i]-ave);\n\t\t\t}\n\t\t\tvari/=n;\n\t\t\tdouble dev=Math.sqrt(vari);\n\t\t\tSystem.out.println(dev);\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main{ public static double beki2(double x){ return x*x; } public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n; int []s; while(true){ n = sc.nextInt(); if(n==0) break; s = new int[n]; for(int i=0;i<n;i++){ s[i]=sc.nextInt(); } double ave; int sum=0; for(int i=0;i<n;i++){ sum+=s[i]; } ave = (double)sum/n; double vari=0; for(int i=0;i<n;i++){ vari += beki2(s[i]-ave); } vari/=n; double dev=Math.sqrt(vari); System.out.println(dev); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 2, 13, 17, 3, 11, 1, 0, 13, 17, 0, 13, 17, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 24, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 24, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 40, 41 ], [ 40, 42 ], [ 36, 43 ], [ 43, 44 ], [ 43, 45 ], [ 35, 46 ], [ 46, 47 ], [ 46, 48 ], [ 35, 49 ], [ 49, 50 ], [ 50, 51 ], [ 35, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 53, 59 ], [ 59, 60 ], [ 59, 61 ], [ 53, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 24, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 83, 85 ], [ 6, 86 ], [ 86, 87 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint i, n;\n\t\tdouble s, sum, sum2;\n\t\twhile(true){\n\t\t\tn = sc.nextInt();\n\t\t\tif(n==0) break;\n\t\t\tfor(i=0, sum=0, sum2=0; i<n; i++){\n\t\t\t\ts = sc.nextDouble();\n\t\t\t\tsum += s;\n\t\t\t\tsum2 += s*s;\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(sum2/n-(sum/n)*(sum/n)));\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint i, n;\n\t\tdouble s, sum, sum2;\n\t\twhile(true){\n\t\t\tn = sc.nextInt();\n\t\t\tif(n==0) break;\n\t\t\tfor(i=0, sum=0, sum2=0; i<n; i++){\n\t\t\t\ts = sc.nextDouble();\n\t\t\t\tsum += s;\n\t\t\t\tsum2 += s*s;\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(sum2/n-(sum/n)*(sum/n)));\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint i, n;\n\t\tdouble s, sum, sum2;\n\t\twhile(true){\n\t\t\tn = sc.nextInt();\n\t\t\tif(n==0) break;\n\t\t\tfor(i=0, sum=0, sum2=0; i<n; i++){\n\t\t\t\ts = sc.nextDouble();\n\t\t\t\tsum += s;\n\t\t\t\tsum2 += s*s;\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(sum2/n-(sum/n)*(sum/n)));\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint i, n;\n\t\tdouble s, sum, sum2;\n\t\twhile(true){\n\t\t\tn = sc.nextInt();\n\t\t\tif(n==0) break;\n\t\t\tfor(i=0, sum=0, sum2=0; i<n; i++){\n\t\t\t\ts = sc.nextDouble();\n\t\t\t\tsum += s;\n\t\t\t\tsum2 += s*s;\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(sum2/n-(sum/n)*(sum/n)));\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int i", "i", "n;", "n", "double s", "s", "sum", "sum", "sum2;", "sum2", "while(true){\n\t\t\tn = sc.nextInt();\n\t\t\tif(n==0) break;\n\t\t\tfor(i=0, sum=0, sum2=0; i<n; i++){\n\t\t\t\ts = sc.nextDouble();\n\t\t\t\tsum += s;\n\t\t\t\tsum2 += s*s;\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(sum2/n-(sum/n)*(sum/n)));\n\t\t}", "true", "{\n\t\t\tn = sc.nextInt();\n\t\t\tif(n==0) break;\n\t\t\tfor(i=0, sum=0, sum2=0; i<n; i++){\n\t\t\t\ts = sc.nextDouble();\n\t\t\t\tsum += s;\n\t\t\t\tsum2 += s*s;\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(sum2/n-(sum/n)*(sum/n)));\n\t\t}", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n==0) break;", "n==0", "n", "0", "break;", "for(i=0, sum=0, sum2=0; i<n; i++){\n\t\t\t\ts = sc.nextDouble();\n\t\t\t\tsum += s;\n\t\t\t\tsum2 += s*s;\n\t\t\t}", "i=0, sum=0, sum2=0;", "i=0", "i", "0", "sum=0", "sum", "0", "sum2=0", "sum2", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\ts = sc.nextDouble();\n\t\t\t\tsum += s;\n\t\t\t\tsum2 += s*s;\n\t\t\t}", "{\n\t\t\t\ts = sc.nextDouble();\n\t\t\t\tsum += s;\n\t\t\t\tsum2 += s*s;\n\t\t\t}", "s = sc.nextDouble()", "s", "sc.nextDouble()", "sc.nextDouble", "sc", "sum += s", "sum", "s", "sum2 += s*s", "sum2", "s*s", "s", "s", "System.out.println(Math.sqrt(sum2/n-(sum/n)*(sum/n)))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(sum2/n-(sum/n)*(sum/n))", "Math.sqrt", "Math", "sum2/n-(sum/n)*(sum/n)", "sum2/n", "sum2", "n", "(sum/n)*(sum/n)", "(sum/n)", "sum", "n", "(sum/n)", "sum", "n", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int i, n; double s, sum, sum2; while(true){ n = sc.nextInt(); if(n==0) break; for(i=0, sum=0, sum2=0; i<n; i++){ s = sc.nextDouble(); sum += s; sum2 += s*s; } System.out.println(Math.sqrt(sum2/n-(sum/n)*(sum/n))); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 3, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 2, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 4, 18, 4, 18, 13, 4, 18, 13, 2, 13, 13, 17, 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 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 17, 28 ], [ 28, 29 ], [ 28, 30 ], [ 17, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 17, 52 ], [ 52, 53 ], [ 52, 54 ], [ 17, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 55, 63 ], [ 63, 64 ], [ 64, 65 ], [ 55, 66 ], [ 67, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 17, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 17, 78 ], [ 78, 79 ], [ 78, 80 ], [ 17, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 86, 87 ], [ 86, 88 ], [ 81, 89 ], [ 89, 90 ], [ 90, 91 ], [ 81, 92 ], [ 93, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 96, 104 ], [ 17, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 113, 114 ], [ 113, 115 ], [ 105, 116 ], [ 8, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 6, 123 ], [ 123, 124 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n StringBuilder output = new StringBuilder();\n\n while (true) {\n int amount = scan.nextInt();\n if (amount == 0)\n break;\n int[] scores = new int[amount];\n for (int i = 0; i < amount; i++) {\n scores[i] = scan.nextInt();\n }\n\n double average = 0.0;\n for (int i = 0; i < amount; i++) {\n average += scores[i];\n }\n average = average / (double)amount;\n\n double sq_sum = 0.0;\n for (int i = 0; i < amount; i++) {\n sq_sum += Math.pow(scores[i] - average, 2);\n }\n\n output.append(Math.sqrt(sq_sum / amount)).append('\\n');\n }\n\n System.out.print(output);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n StringBuilder output = new StringBuilder();\n\n while (true) {\n int amount = scan.nextInt();\n if (amount == 0)\n break;\n int[] scores = new int[amount];\n for (int i = 0; i < amount; i++) {\n scores[i] = scan.nextInt();\n }\n\n double average = 0.0;\n for (int i = 0; i < amount; i++) {\n average += scores[i];\n }\n average = average / (double)amount;\n\n double sq_sum = 0.0;\n for (int i = 0; i < amount; i++) {\n sq_sum += Math.pow(scores[i] - average, 2);\n }\n\n output.append(Math.sqrt(sq_sum / amount)).append('\\n');\n }\n\n System.out.print(output);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n StringBuilder output = new StringBuilder();\n\n while (true) {\n int amount = scan.nextInt();\n if (amount == 0)\n break;\n int[] scores = new int[amount];\n for (int i = 0; i < amount; i++) {\n scores[i] = scan.nextInt();\n }\n\n double average = 0.0;\n for (int i = 0; i < amount; i++) {\n average += scores[i];\n }\n average = average / (double)amount;\n\n double sq_sum = 0.0;\n for (int i = 0; i < amount; i++) {\n sq_sum += Math.pow(scores[i] - average, 2);\n }\n\n output.append(Math.sqrt(sq_sum / amount)).append('\\n');\n }\n\n System.out.print(output);\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n StringBuilder output = new StringBuilder();\n\n while (true) {\n int amount = scan.nextInt();\n if (amount == 0)\n break;\n int[] scores = new int[amount];\n for (int i = 0; i < amount; i++) {\n scores[i] = scan.nextInt();\n }\n\n double average = 0.0;\n for (int i = 0; i < amount; i++) {\n average += scores[i];\n }\n average = average / (double)amount;\n\n double sq_sum = 0.0;\n for (int i = 0; i < amount; i++) {\n sq_sum += Math.pow(scores[i] - average, 2);\n }\n\n output.append(Math.sqrt(sq_sum / amount)).append('\\n');\n }\n\n System.out.print(output);\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "StringBuilder output = new StringBuilder();", "output", "new StringBuilder()", "while (true) {\n int amount = scan.nextInt();\n if (amount == 0)\n break;\n int[] scores = new int[amount];\n for (int i = 0; i < amount; i++) {\n scores[i] = scan.nextInt();\n }\n\n double average = 0.0;\n for (int i = 0; i < amount; i++) {\n average += scores[i];\n }\n average = average / (double)amount;\n\n double sq_sum = 0.0;\n for (int i = 0; i < amount; i++) {\n sq_sum += Math.pow(scores[i] - average, 2);\n }\n\n output.append(Math.sqrt(sq_sum / amount)).append('\\n');\n }", "true", "{\n int amount = scan.nextInt();\n if (amount == 0)\n break;\n int[] scores = new int[amount];\n for (int i = 0; i < amount; i++) {\n scores[i] = scan.nextInt();\n }\n\n double average = 0.0;\n for (int i = 0; i < amount; i++) {\n average += scores[i];\n }\n average = average / (double)amount;\n\n double sq_sum = 0.0;\n for (int i = 0; i < amount; i++) {\n sq_sum += Math.pow(scores[i] - average, 2);\n }\n\n output.append(Math.sqrt(sq_sum / amount)).append('\\n');\n }", "int amount = scan.nextInt();", "amount", "scan.nextInt()", "scan.nextInt", "scan", "if (amount == 0)\n break;", "amount == 0", "amount", "0", "break;", "int[] scores = new int[amount];", "scores", "new int[amount]", "amount", "for (int i = 0; i < amount; i++) {\n scores[i] = scan.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < amount", "i", "amount", "i++", "i++", "i", "{\n scores[i] = scan.nextInt();\n }", "{\n scores[i] = scan.nextInt();\n }", "scores[i] = scan.nextInt()", "scores[i]", "scores", "i", "scan.nextInt()", "scan.nextInt", "scan", "double average = 0.0;", "average", "0.0", "for (int i = 0; i < amount; i++) {\n average += scores[i];\n }", "int i = 0;", "int i = 0;", "i", "0", "i < amount", "i", "amount", "i++", "i++", "i", "{\n average += scores[i];\n }", "{\n average += scores[i];\n }", "average += scores[i]", "average", "scores[i]", "scores", "i", "average = average / (double)amount", "average", "average / (double)amount", "average", "(double)amount", "double sq_sum = 0.0;", "sq_sum", "0.0", "for (int i = 0; i < amount; i++) {\n sq_sum += Math.pow(scores[i] - average, 2);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < amount", "i", "amount", "i++", "i++", "i", "{\n sq_sum += Math.pow(scores[i] - average, 2);\n }", "{\n sq_sum += Math.pow(scores[i] - average, 2);\n }", "sq_sum += Math.pow(scores[i] - average, 2)", "sq_sum", "Math.pow(scores[i] - average, 2)", "Math.pow", "Math", "scores[i] - average", "scores[i]", "scores", "i", "average", "2", "output.append(Math.sqrt(sq_sum / amount)).append('\\n')", "output.append(Math.sqrt(sq_sum / amount)).append", "output.append(Math.sqrt(sq_sum / amount))", "output.append", "output", "Math.sqrt(sq_sum / amount)", "Math.sqrt", "Math", "sq_sum / amount", "sq_sum", "amount", "'\\n'", "System.out.print(output)", "System.out.print", "System.out", "System", "System.out", "output", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); StringBuilder output = new StringBuilder(); while (true) { int amount = scan.nextInt(); if (amount == 0) break; int[] scores = new int[amount]; for (int i = 0; i < amount; i++) { scores[i] = scan.nextInt(); } double average = 0.0; for (int i = 0; i < amount; i++) { average += scores[i]; } average = average / (double)amount; double sq_sum = 0.0; for (int i = 0; i < amount; i++) { sq_sum += Math.pow(scores[i] - average, 2); } output.append(Math.sqrt(sq_sum / amount)).append('\n'); } System.out.print(output); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 42, 2, 13, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 18, 13, 13, 41, 13, 2, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 4, 18, 13, 18, 13, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 2, 13, 13, 0, 13, 4, 18, 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 ], [ 120, 11 ], [ 120, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 33, 38 ], [ 30, 39 ], [ 39, 40 ], [ 39, 41 ], [ 30, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 47, 48 ], [ 47, 49 ], [ 42, 50 ], [ 50, 51 ], [ 51, 52 ], [ 42, 53 ], [ 54, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 60, 61 ], [ 60, 62 ], [ 30, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 30, 68 ], [ 68, 69 ], [ 68, 70 ], [ 30, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 76, 77 ], [ 76, 78 ], [ 71, 79 ], [ 79, 80 ], [ 80, 81 ], [ 71, 82 ], [ 83, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 93, 94 ], [ 93, 95 ], [ 89, 96 ], [ 86, 97 ], [ 30, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 106, 107 ], [ 106, 108 ], [ 30, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 114, 115 ], [ 115, 116 ], [ 12, 117 ], [ 117, 118 ], [ 0, 119 ], [ 119, 120 ], [ 119, 121 ] ]
[ "import java.io.InputStreamReader;\nimport java.io.BufferedReader;\nimport java.io.IOException;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\twhile (n != 0) {\n\t\t\tString[] pointAry = br.readLine().split(\" \");\n\t\t\tdouble total = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ttotal += Integer.parseInt(pointAry[i]);\n\t\t\t}\n\t\t\tdouble mean = total / n;\n\t\t\tdouble var = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tvar += Math.pow(Integer.parseInt(pointAry[i]) - mean, 2);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(var / n));\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t}\n\t}\n}", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\twhile (n != 0) {\n\t\t\tString[] pointAry = br.readLine().split(\" \");\n\t\t\tdouble total = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ttotal += Integer.parseInt(pointAry[i]);\n\t\t\t}\n\t\t\tdouble mean = total / n;\n\t\t\tdouble var = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tvar += Math.pow(Integer.parseInt(pointAry[i]) - mean, 2);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(var / n));\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\twhile (n != 0) {\n\t\t\tString[] pointAry = br.readLine().split(\" \");\n\t\t\tdouble total = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ttotal += Integer.parseInt(pointAry[i]);\n\t\t\t}\n\t\t\tdouble mean = total / n;\n\t\t\tdouble var = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tvar += Math.pow(Integer.parseInt(pointAry[i]) - mean, 2);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(var / n));\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\twhile (n != 0) {\n\t\t\tString[] pointAry = br.readLine().split(\" \");\n\t\t\tdouble total = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ttotal += Integer.parseInt(pointAry[i]);\n\t\t\t}\n\t\t\tdouble mean = total / n;\n\t\t\tdouble var = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tvar += Math.pow(Integer.parseInt(pointAry[i]) - mean, 2);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(var / n));\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "while (n != 0) {\n\t\t\tString[] pointAry = br.readLine().split(\" \");\n\t\t\tdouble total = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ttotal += Integer.parseInt(pointAry[i]);\n\t\t\t}\n\t\t\tdouble mean = total / n;\n\t\t\tdouble var = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tvar += Math.pow(Integer.parseInt(pointAry[i]) - mean, 2);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(var / n));\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t}", "n != 0", "n", "0", "{\n\t\t\tString[] pointAry = br.readLine().split(\" \");\n\t\t\tdouble total = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ttotal += Integer.parseInt(pointAry[i]);\n\t\t\t}\n\t\t\tdouble mean = total / n;\n\t\t\tdouble var = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tvar += Math.pow(Integer.parseInt(pointAry[i]) - mean, 2);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(var / n));\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t}", "String[] pointAry = br.readLine().split(\" \");", "pointAry", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "double total = 0;", "total", "0", "for (int i = 0; i < n; i++) {\n\t\t\t\ttotal += Integer.parseInt(pointAry[i]);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\ttotal += Integer.parseInt(pointAry[i]);\n\t\t\t}", "{\n\t\t\t\ttotal += Integer.parseInt(pointAry[i]);\n\t\t\t}", "total += Integer.parseInt(pointAry[i])", "total", "Integer.parseInt(pointAry[i])", "Integer.parseInt", "Integer", "pointAry[i]", "pointAry", "i", "double mean = total / n;", "mean", "total / n", "total", "n", "double var = 0;", "var", "0", "for (int i = 0; i < n; i++) {\n\t\t\t\tvar += Math.pow(Integer.parseInt(pointAry[i]) - mean, 2);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tvar += Math.pow(Integer.parseInt(pointAry[i]) - mean, 2);\n\t\t\t}", "{\n\t\t\t\tvar += Math.pow(Integer.parseInt(pointAry[i]) - mean, 2);\n\t\t\t}", "var += Math.pow(Integer.parseInt(pointAry[i]) - mean, 2)", "var", "Math.pow(Integer.parseInt(pointAry[i]) - mean, 2)", "Math.pow", "Math", "Integer.parseInt(pointAry[i]) - mean", "Integer.parseInt(pointAry[i])", "Integer.parseInt", "Integer", "pointAry[i]", "pointAry", "i", "mean", "2", "System.out.println(Math.sqrt(var / n))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(var / n)", "Math.sqrt", "Math", "var / n", "var", "n", "n = Integer.parseInt(br.readLine())", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\twhile (n != 0) {\n\t\t\tString[] pointAry = br.readLine().split(\" \");\n\t\t\tdouble total = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ttotal += Integer.parseInt(pointAry[i]);\n\t\t\t}\n\t\t\tdouble mean = total / n;\n\t\t\tdouble var = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tvar += Math.pow(Integer.parseInt(pointAry[i]) - mean, 2);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(var / n));\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\twhile (n != 0) {\n\t\t\tString[] pointAry = br.readLine().split(\" \");\n\t\t\tdouble total = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ttotal += Integer.parseInt(pointAry[i]);\n\t\t\t}\n\t\t\tdouble mean = total / n;\n\t\t\tdouble var = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tvar += Math.pow(Integer.parseInt(pointAry[i]) - mean, 2);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(var / n));\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t}\n\t}\n}", "Main" ]
import java.io.InputStreamReader; import java.io.BufferedReader; import java.io.IOException; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); while (n != 0) { String[] pointAry = br.readLine().split(" "); double total = 0; for (int i = 0; i < n; i++) { total += Integer.parseInt(pointAry[i]); } double mean = total / n; double var = 0; for (int i = 0; i < n; i++) { var += Math.pow(Integer.parseInt(pointAry[i]) - mean, 2); } System.out.println(Math.sqrt(var / n)); n = Integer.parseInt(br.readLine()); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 42, 4, 13, 0, 13, 4, 18, 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, 4, 18, 13, 4, 13, 13, 28, 13, 13, 30, 30, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 28, 13, 13, 30, 0, 13, 13, 28, 13, 13, 30, 0, 13, 4, 18, 13, 2, 2, 13, 18, 13, 13, 13, 17, 0, 13, 4, 18, 13, 2, 13, 18, 13, 13, 29, 13, 23, 13, 12, 13, 30, 14, 2, 13, 17, 30, 29, 17, 30, 29, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 135, 8 ], [ 135, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 20, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 33, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 28, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 56, 57 ], [ 56, 58 ], [ 11, 59 ], [ 59, 60 ], [ 59, 61 ], [ 59, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 9, 70 ], [ 70, 71 ], [ 135, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 78, 80 ], [ 74, 81 ], [ 81, 82 ], [ 81, 83 ], [ 81, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 74, 88 ], [ 88, 89 ], [ 88, 90 ], [ 88, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 100, 102 ], [ 97, 103 ], [ 94, 104 ], [ 74, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 112, 114 ], [ 74, 115 ], [ 115, 116 ], [ 72, 117 ], [ 117, 118 ], [ 135, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 126, 127 ], [ 127, 128 ], [ 122, 129 ], [ 129, 130 ], [ 130, 131 ], [ 119, 132 ], [ 132, 133 ], [ 0, 134 ], [ 134, 135 ], [ 134, 136 ] ]
[ "import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tArrayList<Double> standardDeviationList = new ArrayList<Double>();\n\n\t\tint inputCount;\n\t\twhile (EndDecision(inputCount = sc.nextInt())) {\n\t\t\tint[] scores = new int[inputCount];\n\t\t\tfor (int i = 0; i < inputCount; i++) {\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t}\n\t\t\tstandardDeviationList.add(StandardDeviationCalculation(scores));\n\t\t}\n\n\t\tfor (double value : standardDeviationList) {\n\t\t\tSystem.out.println(value);\n\t\t}\n\n\t}\n\n\tprivate static double StandardDeviationCalculation(int[] scores) {\n\t\tdouble sum = 0;\n\t\tdouble standardDeviation = 0;\n\t\tfor (int i : scores)\n\t\t\tsum += i;\n\t\tfor (int i : scores)\n\t\t\tstandardDeviation += Math.pow((sum / scores.length) - i, 2);\n\t\tstandardDeviation = Math.sqrt(standardDeviation / scores.length);\n\n\t\treturn standardDeviation;\n\t}\n\n\tprivate static boolean EndDecision(int i) {\n\t\tif (i == 0) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}\n\n}\n", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tArrayList<Double> standardDeviationList = new ArrayList<Double>();\n\n\t\tint inputCount;\n\t\twhile (EndDecision(inputCount = sc.nextInt())) {\n\t\t\tint[] scores = new int[inputCount];\n\t\t\tfor (int i = 0; i < inputCount; i++) {\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t}\n\t\t\tstandardDeviationList.add(StandardDeviationCalculation(scores));\n\t\t}\n\n\t\tfor (double value : standardDeviationList) {\n\t\t\tSystem.out.println(value);\n\t\t}\n\n\t}\n\n\tprivate static double StandardDeviationCalculation(int[] scores) {\n\t\tdouble sum = 0;\n\t\tdouble standardDeviation = 0;\n\t\tfor (int i : scores)\n\t\t\tsum += i;\n\t\tfor (int i : scores)\n\t\t\tstandardDeviation += Math.pow((sum / scores.length) - i, 2);\n\t\tstandardDeviation = Math.sqrt(standardDeviation / scores.length);\n\n\t\treturn standardDeviation;\n\t}\n\n\tprivate static boolean EndDecision(int i) {\n\t\tif (i == 0) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tArrayList<Double> standardDeviationList = new ArrayList<Double>();\n\n\t\tint inputCount;\n\t\twhile (EndDecision(inputCount = sc.nextInt())) {\n\t\t\tint[] scores = new int[inputCount];\n\t\t\tfor (int i = 0; i < inputCount; i++) {\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t}\n\t\t\tstandardDeviationList.add(StandardDeviationCalculation(scores));\n\t\t}\n\n\t\tfor (double value : standardDeviationList) {\n\t\t\tSystem.out.println(value);\n\t\t}\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tArrayList<Double> standardDeviationList = new ArrayList<Double>();\n\n\t\tint inputCount;\n\t\twhile (EndDecision(inputCount = sc.nextInt())) {\n\t\t\tint[] scores = new int[inputCount];\n\t\t\tfor (int i = 0; i < inputCount; i++) {\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t}\n\t\t\tstandardDeviationList.add(StandardDeviationCalculation(scores));\n\t\t}\n\n\t\tfor (double value : standardDeviationList) {\n\t\t\tSystem.out.println(value);\n\t\t}\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "ArrayList<Double> standardDeviationList = new ArrayList<Double>();", "standardDeviationList", "new ArrayList<Double>()", "int inputCount;", "inputCount", "while (EndDecision(inputCount = sc.nextInt())) {\n\t\t\tint[] scores = new int[inputCount];\n\t\t\tfor (int i = 0; i < inputCount; i++) {\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t}\n\t\t\tstandardDeviationList.add(StandardDeviationCalculation(scores));\n\t\t}", "EndDecision(inputCount = sc.nextInt())", "EndDecision", "inputCount = sc.nextInt()", "inputCount", "sc.nextInt()", "sc.nextInt", "sc", "{\n\t\t\tint[] scores = new int[inputCount];\n\t\t\tfor (int i = 0; i < inputCount; i++) {\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t}\n\t\t\tstandardDeviationList.add(StandardDeviationCalculation(scores));\n\t\t}", "int[] scores = new int[inputCount];", "scores", "new int[inputCount]", "inputCount", "for (int i = 0; i < inputCount; i++) {\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < inputCount", "i", "inputCount", "i++", "i++", "i", "{\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t}", "{\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t}", "scores[i] = sc.nextInt()", "scores[i]", "scores", "i", "sc.nextInt()", "sc.nextInt", "sc", "standardDeviationList.add(StandardDeviationCalculation(scores))", "standardDeviationList.add", "standardDeviationList", "StandardDeviationCalculation(scores)", "StandardDeviationCalculation", "scores", "for (double value : standardDeviationList) {\n\t\t\tSystem.out.println(value);\n\t\t}", "double value", "standardDeviationList", "{\n\t\t\tSystem.out.println(value);\n\t\t}", "{\n\t\t\tSystem.out.println(value);\n\t\t}", "System.out.println(value)", "System.out.println", "System.out", "System", "System.out", "value", "String[] args", "args", "private static double StandardDeviationCalculation(int[] scores) {\n\t\tdouble sum = 0;\n\t\tdouble standardDeviation = 0;\n\t\tfor (int i : scores)\n\t\t\tsum += i;\n\t\tfor (int i : scores)\n\t\t\tstandardDeviation += Math.pow((sum / scores.length) - i, 2);\n\t\tstandardDeviation = Math.sqrt(standardDeviation / scores.length);\n\n\t\treturn standardDeviation;\n\t}", "StandardDeviationCalculation", "{\n\t\tdouble sum = 0;\n\t\tdouble standardDeviation = 0;\n\t\tfor (int i : scores)\n\t\t\tsum += i;\n\t\tfor (int i : scores)\n\t\t\tstandardDeviation += Math.pow((sum / scores.length) - i, 2);\n\t\tstandardDeviation = Math.sqrt(standardDeviation / scores.length);\n\n\t\treturn standardDeviation;\n\t}", "double sum = 0;", "sum", "0", "double standardDeviation = 0;", "standardDeviation", "0", "for (int i : scores)\n\t\t\tsum += i;", "int i", "scores", "sum += i;", "sum += i", "sum", "i", "for (int i : scores)\n\t\t\tstandardDeviation += Math.pow((sum / scores.length) - i, 2);", "int i", "scores", "standardDeviation += Math.pow((sum / scores.length) - i, 2);", "standardDeviation += Math.pow((sum / scores.length) - i, 2)", "standardDeviation", "Math.pow((sum / scores.length) - i, 2)", "Math.pow", "Math", "(sum / scores.length) - i", "(sum / scores.length)", "sum", "scores.length", "scores", "scores.length", "i", "2", "standardDeviation = Math.sqrt(standardDeviation / scores.length)", "standardDeviation", "Math.sqrt(standardDeviation / scores.length)", "Math.sqrt", "Math", "standardDeviation / scores.length", "standardDeviation", "scores.length", "scores", "scores.length", "return standardDeviation;", "standardDeviation", "int[] scores", "scores", "private static boolean EndDecision(int i) {\n\t\tif (i == 0) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "EndDecision", "{\n\t\tif (i == 0) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "if (i == 0) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}", "i == 0", "i", "0", "{\n\t\t\treturn false;\n\t\t}", "return false;", "false", "{\n\t\t\treturn true;\n\t\t}", "return true;", "true", "int i", "i", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tArrayList<Double> standardDeviationList = new ArrayList<Double>();\n\n\t\tint inputCount;\n\t\twhile (EndDecision(inputCount = sc.nextInt())) {\n\t\t\tint[] scores = new int[inputCount];\n\t\t\tfor (int i = 0; i < inputCount; i++) {\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t}\n\t\t\tstandardDeviationList.add(StandardDeviationCalculation(scores));\n\t\t}\n\n\t\tfor (double value : standardDeviationList) {\n\t\t\tSystem.out.println(value);\n\t\t}\n\n\t}\n\n\tprivate static double StandardDeviationCalculation(int[] scores) {\n\t\tdouble sum = 0;\n\t\tdouble standardDeviation = 0;\n\t\tfor (int i : scores)\n\t\t\tsum += i;\n\t\tfor (int i : scores)\n\t\t\tstandardDeviation += Math.pow((sum / scores.length) - i, 2);\n\t\tstandardDeviation = Math.sqrt(standardDeviation / scores.length);\n\n\t\treturn standardDeviation;\n\t}\n\n\tprivate static boolean EndDecision(int i) {\n\t\tif (i == 0) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tArrayList<Double> standardDeviationList = new ArrayList<Double>();\n\n\t\tint inputCount;\n\t\twhile (EndDecision(inputCount = sc.nextInt())) {\n\t\t\tint[] scores = new int[inputCount];\n\t\t\tfor (int i = 0; i < inputCount; i++) {\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t}\n\t\t\tstandardDeviationList.add(StandardDeviationCalculation(scores));\n\t\t}\n\n\t\tfor (double value : standardDeviationList) {\n\t\t\tSystem.out.println(value);\n\t\t}\n\n\t}\n\n\tprivate static double StandardDeviationCalculation(int[] scores) {\n\t\tdouble sum = 0;\n\t\tdouble standardDeviation = 0;\n\t\tfor (int i : scores)\n\t\t\tsum += i;\n\t\tfor (int i : scores)\n\t\t\tstandardDeviation += Math.pow((sum / scores.length) - i, 2);\n\t\tstandardDeviation = Math.sqrt(standardDeviation / scores.length);\n\n\t\treturn standardDeviation;\n\t}\n\n\tprivate static boolean EndDecision(int i) {\n\t\tif (i == 0) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); ArrayList<Double> standardDeviationList = new ArrayList<Double>(); int inputCount; while (EndDecision(inputCount = sc.nextInt())) { int[] scores = new int[inputCount]; for (int i = 0; i < inputCount; i++) { scores[i] = sc.nextInt(); } standardDeviationList.add(StandardDeviationCalculation(scores)); } for (double value : standardDeviationList) { System.out.println(value); } } private static double StandardDeviationCalculation(int[] scores) { double sum = 0; double standardDeviation = 0; for (int i : scores) sum += i; for (int i : scores) standardDeviation += Math.pow((sum / scores.length) - i, 2); standardDeviation = Math.sqrt(standardDeviation / scores.length); return standardDeviation; } private static boolean EndDecision(int i) { if (i == 0) { return false; } else { return true; } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 13, 41, 13, 17, 41, 13, 17, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 0, 13, 18, 13, 13, 0, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 41, 13, 2, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 131, 11 ], [ 131, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 22, 29 ], [ 20, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 30, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 39, 44 ], [ 30, 45 ], [ 45, 46 ], [ 45, 47 ], [ 30, 49 ], [ 49, 50 ], [ 49, 51 ], [ 30, 52 ], [ 52, 53 ], [ 52, 54 ], [ 30, 55 ], [ 55, 56 ], [ 30, 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 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 77, 79 ], [ 69, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 82, 84 ], [ 30, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 30, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 95, 96 ], [ 95, 97 ], [ 90, 98 ], [ 98, 99 ], [ 99, 100 ], [ 90, 101 ], [ 102, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 108, 112 ], [ 105, 113 ], [ 30, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 116, 118 ], [ 30, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 124, 125 ], [ 125, 126 ], [ 124, 127 ], [ 12, 128 ], [ 128, 129 ], [ 0, 130 ], [ 130, 131 ], [ 130, 132 ] ]
[ "import java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.BufferedReader;\n\npublic class Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String line;\n\n while(!((line = br.readLine()).equals(\"0\"))){\n int n = Integer.parseInt(line);\n String[] input = br.readLine().split(\" \");\n int[] data = new int[n];\n\n double sum = 0;\n double squaresum = 0;\n double average;\n\n for(int i = 0; i < n; i++){\n data[i] = Integer.parseInt(input[i]);\n sum += data[i];\n }\n\n average = sum/n;\n\n for(int i = 0; i < n; i++){\n squaresum += Math.pow(data[i]-average , 2);\n }\n\n double variance = squaresum / n;\n\n System.out.println(Math.sqrt(variance));\n }\n }\n}", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.BufferedReader;", "BufferedReader", "java.io", "public class Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String line;\n\n while(!((line = br.readLine()).equals(\"0\"))){\n int n = Integer.parseInt(line);\n String[] input = br.readLine().split(\" \");\n int[] data = new int[n];\n\n double sum = 0;\n double squaresum = 0;\n double average;\n\n for(int i = 0; i < n; i++){\n data[i] = Integer.parseInt(input[i]);\n sum += data[i];\n }\n\n average = sum/n;\n\n for(int i = 0; i < n; i++){\n squaresum += Math.pow(data[i]-average , 2);\n }\n\n double variance = squaresum / n;\n\n System.out.println(Math.sqrt(variance));\n }\n }\n}", "Main", "public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String line;\n\n while(!((line = br.readLine()).equals(\"0\"))){\n int n = Integer.parseInt(line);\n String[] input = br.readLine().split(\" \");\n int[] data = new int[n];\n\n double sum = 0;\n double squaresum = 0;\n double average;\n\n for(int i = 0; i < n; i++){\n data[i] = Integer.parseInt(input[i]);\n sum += data[i];\n }\n\n average = sum/n;\n\n for(int i = 0; i < n; i++){\n squaresum += Math.pow(data[i]-average , 2);\n }\n\n double variance = squaresum / n;\n\n System.out.println(Math.sqrt(variance));\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String line;\n\n while(!((line = br.readLine()).equals(\"0\"))){\n int n = Integer.parseInt(line);\n String[] input = br.readLine().split(\" \");\n int[] data = new int[n];\n\n double sum = 0;\n double squaresum = 0;\n double average;\n\n for(int i = 0; i < n; i++){\n data[i] = Integer.parseInt(input[i]);\n sum += data[i];\n }\n\n average = sum/n;\n\n for(int i = 0; i < n; i++){\n squaresum += Math.pow(data[i]-average , 2);\n }\n\n double variance = squaresum / n;\n\n System.out.println(Math.sqrt(variance));\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String line;", "line", "while(!((line = br.readLine()).equals(\"0\"))){\n int n = Integer.parseInt(line);\n String[] input = br.readLine().split(\" \");\n int[] data = new int[n];\n\n double sum = 0;\n double squaresum = 0;\n double average;\n\n for(int i = 0; i < n; i++){\n data[i] = Integer.parseInt(input[i]);\n sum += data[i];\n }\n\n average = sum/n;\n\n for(int i = 0; i < n; i++){\n squaresum += Math.pow(data[i]-average , 2);\n }\n\n double variance = squaresum / n;\n\n System.out.println(Math.sqrt(variance));\n }", "!((line = br.readLine()).equals(\"0\"))", "((line = br.readLine()).equals(\"0\"))", "(line = br.readLine()).equals", "(line = br.readLine())", "line", "br.readLine()", "br.readLine", "br", "\"0\"", "{\n int n = Integer.parseInt(line);\n String[] input = br.readLine().split(\" \");\n int[] data = new int[n];\n\n double sum = 0;\n double squaresum = 0;\n double average;\n\n for(int i = 0; i < n; i++){\n data[i] = Integer.parseInt(input[i]);\n sum += data[i];\n }\n\n average = sum/n;\n\n for(int i = 0; i < n; i++){\n squaresum += Math.pow(data[i]-average , 2);\n }\n\n double variance = squaresum / n;\n\n System.out.println(Math.sqrt(variance));\n }", "int n = Integer.parseInt(line);", "n", "Integer.parseInt(line)", "Integer.parseInt", "Integer", "line", "String[] input = br.readLine().split(\" \");", "input", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int[] data = new int[n];", "data", "new int[n]", "n", "double sum = 0;", "sum", "0", "double squaresum = 0;", "squaresum", "0", "double average;", "average", "for(int i = 0; i < n; i++){\n data[i] = Integer.parseInt(input[i]);\n sum += data[i];\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n data[i] = Integer.parseInt(input[i]);\n sum += data[i];\n }", "{\n data[i] = Integer.parseInt(input[i]);\n sum += data[i];\n }", "data[i] = Integer.parseInt(input[i])", "data[i]", "data", "i", "Integer.parseInt(input[i])", "Integer.parseInt", "Integer", "input[i]", "input", "i", "sum += data[i]", "sum", "data[i]", "data", "i", "average = sum/n", "average", "sum/n", "sum", "n", "for(int i = 0; i < n; i++){\n squaresum += Math.pow(data[i]-average , 2);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n squaresum += Math.pow(data[i]-average , 2);\n }", "{\n squaresum += Math.pow(data[i]-average , 2);\n }", "squaresum += Math.pow(data[i]-average , 2)", "squaresum", "Math.pow(data[i]-average , 2)", "Math.pow", "Math", "data[i]-average", "data[i]", "data", "i", "average", "2", "double variance = squaresum / n;", "variance", "squaresum / n", "squaresum", "n", "System.out.println(Math.sqrt(variance))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(variance)", "Math.sqrt", "Math", "variance", "String[] args", "args", "public class Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String line;\n\n while(!((line = br.readLine()).equals(\"0\"))){\n int n = Integer.parseInt(line);\n String[] input = br.readLine().split(\" \");\n int[] data = new int[n];\n\n double sum = 0;\n double squaresum = 0;\n double average;\n\n for(int i = 0; i < n; i++){\n data[i] = Integer.parseInt(input[i]);\n sum += data[i];\n }\n\n average = sum/n;\n\n for(int i = 0; i < n; i++){\n squaresum += Math.pow(data[i]-average , 2);\n }\n\n double variance = squaresum / n;\n\n System.out.println(Math.sqrt(variance));\n }\n }\n}", "public class Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String line;\n\n while(!((line = br.readLine()).equals(\"0\"))){\n int n = Integer.parseInt(line);\n String[] input = br.readLine().split(\" \");\n int[] data = new int[n];\n\n double sum = 0;\n double squaresum = 0;\n double average;\n\n for(int i = 0; i < n; i++){\n data[i] = Integer.parseInt(input[i]);\n sum += data[i];\n }\n\n average = sum/n;\n\n for(int i = 0; i < n; i++){\n squaresum += Math.pow(data[i]-average , 2);\n }\n\n double variance = squaresum / n;\n\n System.out.println(Math.sqrt(variance));\n }\n }\n}", "Main" ]
import java.io.IOException; import java.io.InputStreamReader; import java.io.BufferedReader; public class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line; while(!((line = br.readLine()).equals("0"))){ int n = Integer.parseInt(line); String[] input = br.readLine().split(" "); int[] data = new int[n]; double sum = 0; double squaresum = 0; double average; for(int i = 0; i < n; i++){ data[i] = Integer.parseInt(input[i]); sum += data[i]; } average = sum/n; for(int i = 0; i < n; i++){ squaresum += Math.pow(data[i]-average , 2); } double variance = squaresum / n; System.out.println(Math.sqrt(variance)); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 41, 13, 20, 17, 41, 13, 41, 13, 41, 13, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 0, 13, 17, 0, 13, 17, 14, 2, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 0, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 0, 18, 13, 13, 4, 18, 13, 2, 13, 13, 40, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 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 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 8, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 31, 37 ], [ 37, 38 ], [ 37, 39 ], [ 31, 40 ], [ 40, 41 ], [ 40, 42 ], [ 31, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 31, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 49, 57 ], [ 57, 58 ], [ 58, 59 ], [ 49, 60 ], [ 61, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 67, 68 ], [ 61, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 31, 74 ], [ 74, 75 ], [ 74, 76 ], [ 31, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 82, 83 ], [ 82, 84 ], [ 77, 85 ], [ 85, 86 ], [ 86, 87 ], [ 77, 88 ], [ 89, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 92, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 31, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 110, 111 ], [ 110, 112 ], [ 31, 113 ], [ 113, 114 ], [ 8, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 120, 121 ], [ 120, 122 ], [ 115, 123 ], [ 123, 124 ], [ 124, 125 ], [ 115, 126 ], [ 127, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 133, 134 ], [ 133, 135 ], [ 6, 136 ], [ 136, 137 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n int N[] = new int[1000];\n double SD[] = new double[1000];\n double Ave,Sum;\n int Num,K=0;\n\n while(true){\n Num = scanner.nextInt();\n Ave = 0;\n Sum = 0;\n if(Num==0){\n break;\n }\n for(int i=0;i<Num;i++){\n N[i] = scanner.nextInt();\n Ave += N[i];\n }\n Ave /= Num;\n\n for(int i=0;i<Num;i++){\n Sum += (N[i]-Ave)*(N[i]-Ave);\n }\n\n SD[K] = Math.sqrt(Sum/Num);\n K++;\n }\n\n for(int i=0;i<K;i++){\n System.out.println(SD[i]);\n }\n\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n int N[] = new int[1000];\n double SD[] = new double[1000];\n double Ave,Sum;\n int Num,K=0;\n\n while(true){\n Num = scanner.nextInt();\n Ave = 0;\n Sum = 0;\n if(Num==0){\n break;\n }\n for(int i=0;i<Num;i++){\n N[i] = scanner.nextInt();\n Ave += N[i];\n }\n Ave /= Num;\n\n for(int i=0;i<Num;i++){\n Sum += (N[i]-Ave)*(N[i]-Ave);\n }\n\n SD[K] = Math.sqrt(Sum/Num);\n K++;\n }\n\n for(int i=0;i<K;i++){\n System.out.println(SD[i]);\n }\n\n }\n}", "Main", "public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n int N[] = new int[1000];\n double SD[] = new double[1000];\n double Ave,Sum;\n int Num,K=0;\n\n while(true){\n Num = scanner.nextInt();\n Ave = 0;\n Sum = 0;\n if(Num==0){\n break;\n }\n for(int i=0;i<Num;i++){\n N[i] = scanner.nextInt();\n Ave += N[i];\n }\n Ave /= Num;\n\n for(int i=0;i<Num;i++){\n Sum += (N[i]-Ave)*(N[i]-Ave);\n }\n\n SD[K] = Math.sqrt(Sum/Num);\n K++;\n }\n\n for(int i=0;i<K;i++){\n System.out.println(SD[i]);\n }\n\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n\n int N[] = new int[1000];\n double SD[] = new double[1000];\n double Ave,Sum;\n int Num,K=0;\n\n while(true){\n Num = scanner.nextInt();\n Ave = 0;\n Sum = 0;\n if(Num==0){\n break;\n }\n for(int i=0;i<Num;i++){\n N[i] = scanner.nextInt();\n Ave += N[i];\n }\n Ave /= Num;\n\n for(int i=0;i<Num;i++){\n Sum += (N[i]-Ave)*(N[i]-Ave);\n }\n\n SD[K] = Math.sqrt(Sum/Num);\n K++;\n }\n\n for(int i=0;i<K;i++){\n System.out.println(SD[i]);\n }\n\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int N[] = new int[1000];", "N", "new int[1000]", "1000", "double SD[] = new double[1000];", "SD", "new double[1000]", "1000", "double Ave", "Ave", "Sum;", "Sum", "int Num", "Num", "K=0;", "K", "0", "while(true){\n Num = scanner.nextInt();\n Ave = 0;\n Sum = 0;\n if(Num==0){\n break;\n }\n for(int i=0;i<Num;i++){\n N[i] = scanner.nextInt();\n Ave += N[i];\n }\n Ave /= Num;\n\n for(int i=0;i<Num;i++){\n Sum += (N[i]-Ave)*(N[i]-Ave);\n }\n\n SD[K] = Math.sqrt(Sum/Num);\n K++;\n }", "true", "{\n Num = scanner.nextInt();\n Ave = 0;\n Sum = 0;\n if(Num==0){\n break;\n }\n for(int i=0;i<Num;i++){\n N[i] = scanner.nextInt();\n Ave += N[i];\n }\n Ave /= Num;\n\n for(int i=0;i<Num;i++){\n Sum += (N[i]-Ave)*(N[i]-Ave);\n }\n\n SD[K] = Math.sqrt(Sum/Num);\n K++;\n }", "Num = scanner.nextInt()", "Num", "scanner.nextInt()", "scanner.nextInt", "scanner", "Ave = 0", "Ave", "0", "Sum = 0", "Sum", "0", "if(Num==0){\n break;\n }", "Num==0", "Num", "0", "{\n break;\n }", "break;", "for(int i=0;i<Num;i++){\n N[i] = scanner.nextInt();\n Ave += N[i];\n }", "int i=0;", "int i=0;", "i", "0", "i<Num", "i", "Num", "i++", "i++", "i", "{\n N[i] = scanner.nextInt();\n Ave += N[i];\n }", "{\n N[i] = scanner.nextInt();\n Ave += N[i];\n }", "N[i] = scanner.nextInt()", "N[i]", "N", "i", "scanner.nextInt()", "scanner.nextInt", "scanner", "Ave += N[i]", "Ave", "N[i]", "N", "i", "Ave /= Num", "Ave", "Num", "for(int i=0;i<Num;i++){\n Sum += (N[i]-Ave)*(N[i]-Ave);\n }", "int i=0;", "int i=0;", "i", "0", "i<Num", "i", "Num", "i++", "i++", "i", "{\n Sum += (N[i]-Ave)*(N[i]-Ave);\n }", "{\n Sum += (N[i]-Ave)*(N[i]-Ave);\n }", "Sum += (N[i]-Ave)*(N[i]-Ave)", "Sum", "(N[i]-Ave)*(N[i]-Ave)", "(N[i]-Ave)", "N[i]", "N", "i", "Ave", "(N[i]-Ave)", "N[i]", "N", "i", "Ave", "SD[K] = Math.sqrt(Sum/Num)", "SD[K]", "SD", "K", "Math.sqrt(Sum/Num)", "Math.sqrt", "Math", "Sum/Num", "Sum", "Num", "K++", "K", "for(int i=0;i<K;i++){\n System.out.println(SD[i]);\n }", "int i=0;", "int i=0;", "i", "0", "i<K", "i", "K", "i++", "i++", "i", "{\n System.out.println(SD[i]);\n }", "{\n System.out.println(SD[i]);\n }", "System.out.println(SD[i])", "System.out.println", "System.out", "System", "System.out", "SD[i]", "SD", "i", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int N[] = new int[1000]; double SD[] = new double[1000]; double Ave,Sum; int Num,K=0; while(true){ Num = scanner.nextInt(); Ave = 0; Sum = 0; if(Num==0){ break; } for(int i=0;i<Num;i++){ N[i] = scanner.nextInt(); Ave += N[i]; } Ave /= Num; for(int i=0;i<Num;i++){ Sum += (N[i]-Ave)*(N[i]-Ave); } SD[K] = Math.sqrt(Sum/Num); K++; } for(int i=0;i<K;i++){ System.out.println(SD[i]); } } }