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, 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, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 4, 18, 13, 0, 13, 4, 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, 4, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 114, 11 ], [ 114, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 26, 27 ], [ 27, 28 ], [ 20, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 20, 34 ], [ 34, 35 ], [ 34, 36 ], [ 20, 37 ], [ 37, 38 ], [ 37, 39 ], [ 20, 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 ], [ 53, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 60, 61 ], [ 52, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 20, 68 ], [ 68, 69 ], [ 68, 70 ], [ 20, 71 ], [ 71, 72 ], [ 71, 73 ], [ 20, 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 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 92, 97 ], [ 89, 98 ], [ 20, 99 ], [ 99, 100 ], [ 99, 101 ], [ 20, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 12, 111 ], [ 111, 112 ], [ 0, 113 ], [ 113, 114 ], [ 113, 115 ] ]
[ "import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while (true) {\n int n = Integer.parseInt(sc.next());\n if (n == 0) break;\n\n List<Integer> S = new ArrayList<>();\n double ave = 0.0;\n for (int i = 0; i < n; i++) {\n S.add(Integer.parseInt(sc.next()));\n ave += S.get(i);\n }\n ave /= n;\n\n double ans = 0.0;\n for (int i = 0; i < n; i++) {\n ans += Math.pow((S.get(i) - ave), 2.0);\n }\n ans /= n;\n\n System.out.println(Math.sqrt(ans));\n }\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 public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while (true) {\n int n = Integer.parseInt(sc.next());\n if (n == 0) break;\n\n List<Integer> S = new ArrayList<>();\n double ave = 0.0;\n for (int i = 0; i < n; i++) {\n S.add(Integer.parseInt(sc.next()));\n ave += S.get(i);\n }\n ave /= n;\n\n double ans = 0.0;\n for (int i = 0; i < n; i++) {\n ans += Math.pow((S.get(i) - ave), 2.0);\n }\n ans /= n;\n\n System.out.println(Math.sqrt(ans));\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while (true) {\n int n = Integer.parseInt(sc.next());\n if (n == 0) break;\n\n List<Integer> S = new ArrayList<>();\n double ave = 0.0;\n for (int i = 0; i < n; i++) {\n S.add(Integer.parseInt(sc.next()));\n ave += S.get(i);\n }\n ave /= n;\n\n double ans = 0.0;\n for (int i = 0; i < n; i++) {\n ans += Math.pow((S.get(i) - ave), 2.0);\n }\n ans /= n;\n\n System.out.println(Math.sqrt(ans));\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n while (true) {\n int n = Integer.parseInt(sc.next());\n if (n == 0) break;\n\n List<Integer> S = new ArrayList<>();\n double ave = 0.0;\n for (int i = 0; i < n; i++) {\n S.add(Integer.parseInt(sc.next()));\n ave += S.get(i);\n }\n ave /= n;\n\n double ans = 0.0;\n for (int i = 0; i < n; i++) {\n ans += Math.pow((S.get(i) - ave), 2.0);\n }\n ans /= n;\n\n System.out.println(Math.sqrt(ans));\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\n List<Integer> S = new ArrayList<>();\n double ave = 0.0;\n for (int i = 0; i < n; i++) {\n S.add(Integer.parseInt(sc.next()));\n ave += S.get(i);\n }\n ave /= n;\n\n double ans = 0.0;\n for (int i = 0; i < n; i++) {\n ans += Math.pow((S.get(i) - ave), 2.0);\n }\n ans /= n;\n\n System.out.println(Math.sqrt(ans));\n }", "true", "{\n int n = Integer.parseInt(sc.next());\n if (n == 0) break;\n\n List<Integer> S = new ArrayList<>();\n double ave = 0.0;\n for (int i = 0; i < n; i++) {\n S.add(Integer.parseInt(sc.next()));\n ave += S.get(i);\n }\n ave /= n;\n\n double ans = 0.0;\n for (int i = 0; i < n; i++) {\n ans += Math.pow((S.get(i) - ave), 2.0);\n }\n ans /= n;\n\n System.out.println(Math.sqrt(ans));\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;", "List<Integer> S = new ArrayList<>();", "S", "new ArrayList<>()", "double ave = 0.0;", "ave", "0.0", "for (int i = 0; i < n; i++) {\n S.add(Integer.parseInt(sc.next()));\n ave += S.get(i);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n S.add(Integer.parseInt(sc.next()));\n ave += S.get(i);\n }", "{\n S.add(Integer.parseInt(sc.next()));\n ave += S.get(i);\n }", "S.add(Integer.parseInt(sc.next()))", "S.add", "S", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "ave += S.get(i)", "ave", "S.get(i)", "S.get", "S", "i", "ave /= n", "ave", "n", "double ans = 0.0;", "ans", "0.0", "for (int i = 0; i < n; i++) {\n ans += Math.pow((S.get(i) - ave), 2.0);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n ans += Math.pow((S.get(i) - ave), 2.0);\n }", "{\n ans += Math.pow((S.get(i) - ave), 2.0);\n }", "ans += Math.pow((S.get(i) - ave), 2.0)", "ans", "Math.pow((S.get(i) - ave), 2.0)", "Math.pow", "Math", "(S.get(i) - ave)", "S.get(i)", "S.get", "S", "i", "ave", "2.0", "ans /= n", "ans", "n", "System.out.println(Math.sqrt(ans))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(ans)", "Math.sqrt", "Math", "ans", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while (true) {\n int n = Integer.parseInt(sc.next());\n if (n == 0) break;\n\n List<Integer> S = new ArrayList<>();\n double ave = 0.0;\n for (int i = 0; i < n; i++) {\n S.add(Integer.parseInt(sc.next()));\n ave += S.get(i);\n }\n ave /= n;\n\n double ans = 0.0;\n for (int i = 0; i < n; i++) {\n ans += Math.pow((S.get(i) - ave), 2.0);\n }\n ans /= n;\n\n System.out.println(Math.sqrt(ans));\n }\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 n = Integer.parseInt(sc.next());\n if (n == 0) break;\n\n List<Integer> S = new ArrayList<>();\n double ave = 0.0;\n for (int i = 0; i < n; i++) {\n S.add(Integer.parseInt(sc.next()));\n ave += S.get(i);\n }\n ave /= n;\n\n double ans = 0.0;\n for (int i = 0; i < n; i++) {\n ans += Math.pow((S.get(i) - ave), 2.0);\n }\n ans /= n;\n\n System.out.println(Math.sqrt(ans));\n }\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 sc = new Scanner(System.in); while (true) { int n = Integer.parseInt(sc.next()); if (n == 0) break; List<Integer> S = new ArrayList<>(); double ave = 0.0; for (int i = 0; i < n; i++) { S.add(Integer.parseInt(sc.next())); ave += S.get(i); } ave /= n; double ans = 0.0; for (int i = 0; i < n; i++) { ans += Math.pow((S.get(i) - ave), 2.0); } ans /= n; System.out.println(Math.sqrt(ans)); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 17, 41, 13, 4, 18, 13, 14, 2, 13, 17, 3, 41, 13, 20, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 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, 41, 13, 4, 18, 13, 2, 13, 13, 41, 13, 4, 18, 13, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 117, 5 ], [ 117, 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 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 31, 32 ], [ 31, 33 ], [ 14, 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 ], [ 14, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 14, 64 ], [ 64, 65 ], [ 64, 66 ], [ 14, 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 ], [ 14, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 98, 99 ], [ 98, 100 ], [ 14, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 103, 107 ], [ 14, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 6, 114 ], [ 114, 115 ], [ 0, 116 ], [ 116, 117 ], [ 116, 118 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n \tScanner sc = new Scanner(System.in);\n \twhile(true) {\n\t \tlong sum=0;\n\t \tint n = sc.nextInt();\n\t \tif(n==0) break;\n\t \tdouble a[]= new double[n+1];\n\t \tfor(int i=0;i<n;i++) {\n\t \t\ta[i]=sc.nextDouble();\n\t \t\tsum += a[i];\n\t \t}\n\t \tdouble m = sum/(double)n;\n\t \tdouble suma = 0;\n\t \tfor(int i=0;i<n;i++) {\n\t \t\tsuma += (a[i]-m)*(a[i]-m);\n\t \t}\n\t \tdouble A = Math.sqrt(suma/n);\n\t \tString str = String.format(\"%.10f\",A);\n\t \tSystem.out.println(str);\n \t}\n \t\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n \tScanner sc = new Scanner(System.in);\n \twhile(true) {\n\t \tlong sum=0;\n\t \tint n = sc.nextInt();\n\t \tif(n==0) break;\n\t \tdouble a[]= new double[n+1];\n\t \tfor(int i=0;i<n;i++) {\n\t \t\ta[i]=sc.nextDouble();\n\t \t\tsum += a[i];\n\t \t}\n\t \tdouble m = sum/(double)n;\n\t \tdouble suma = 0;\n\t \tfor(int i=0;i<n;i++) {\n\t \t\tsuma += (a[i]-m)*(a[i]-m);\n\t \t}\n\t \tdouble A = Math.sqrt(suma/n);\n\t \tString str = String.format(\"%.10f\",A);\n\t \tSystem.out.println(str);\n \t}\n \t\n }\n}", "Main", "public static void main(String[] args) {\n \tScanner sc = new Scanner(System.in);\n \twhile(true) {\n\t \tlong sum=0;\n\t \tint n = sc.nextInt();\n\t \tif(n==0) break;\n\t \tdouble a[]= new double[n+1];\n\t \tfor(int i=0;i<n;i++) {\n\t \t\ta[i]=sc.nextDouble();\n\t \t\tsum += a[i];\n\t \t}\n\t \tdouble m = sum/(double)n;\n\t \tdouble suma = 0;\n\t \tfor(int i=0;i<n;i++) {\n\t \t\tsuma += (a[i]-m)*(a[i]-m);\n\t \t}\n\t \tdouble A = Math.sqrt(suma/n);\n\t \tString str = String.format(\"%.10f\",A);\n\t \tSystem.out.println(str);\n \t}\n \t\n }", "main", "{\n \tScanner sc = new Scanner(System.in);\n \twhile(true) {\n\t \tlong sum=0;\n\t \tint n = sc.nextInt();\n\t \tif(n==0) break;\n\t \tdouble a[]= new double[n+1];\n\t \tfor(int i=0;i<n;i++) {\n\t \t\ta[i]=sc.nextDouble();\n\t \t\tsum += a[i];\n\t \t}\n\t \tdouble m = sum/(double)n;\n\t \tdouble suma = 0;\n\t \tfor(int i=0;i<n;i++) {\n\t \t\tsuma += (a[i]-m)*(a[i]-m);\n\t \t}\n\t \tdouble A = Math.sqrt(suma/n);\n\t \tString str = String.format(\"%.10f\",A);\n\t \tSystem.out.println(str);\n \t}\n \t\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true) {\n\t \tlong sum=0;\n\t \tint n = sc.nextInt();\n\t \tif(n==0) break;\n\t \tdouble a[]= new double[n+1];\n\t \tfor(int i=0;i<n;i++) {\n\t \t\ta[i]=sc.nextDouble();\n\t \t\tsum += a[i];\n\t \t}\n\t \tdouble m = sum/(double)n;\n\t \tdouble suma = 0;\n\t \tfor(int i=0;i<n;i++) {\n\t \t\tsuma += (a[i]-m)*(a[i]-m);\n\t \t}\n\t \tdouble A = Math.sqrt(suma/n);\n\t \tString str = String.format(\"%.10f\",A);\n\t \tSystem.out.println(str);\n \t}", "true", "{\n\t \tlong sum=0;\n\t \tint n = sc.nextInt();\n\t \tif(n==0) break;\n\t \tdouble a[]= new double[n+1];\n\t \tfor(int i=0;i<n;i++) {\n\t \t\ta[i]=sc.nextDouble();\n\t \t\tsum += a[i];\n\t \t}\n\t \tdouble m = sum/(double)n;\n\t \tdouble suma = 0;\n\t \tfor(int i=0;i<n;i++) {\n\t \t\tsuma += (a[i]-m)*(a[i]-m);\n\t \t}\n\t \tdouble A = Math.sqrt(suma/n);\n\t \tString str = String.format(\"%.10f\",A);\n\t \tSystem.out.println(str);\n \t}", "long sum=0;", "sum", "0", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n==0) break;", "n==0", "n", "0", "break;", "double a[]= new double[n+1];", "a", "new double[n+1]", "n+1", "n", "1", "for(int i=0;i<n;i++) {\n\t \t\ta[i]=sc.nextDouble();\n\t \t\tsum += a[i];\n\t \t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t \t\ta[i]=sc.nextDouble();\n\t \t\tsum += a[i];\n\t \t}", "{\n\t \t\ta[i]=sc.nextDouble();\n\t \t\tsum += a[i];\n\t \t}", "a[i]=sc.nextDouble()", "a[i]", "a", "i", "sc.nextDouble()", "sc.nextDouble", "sc", "sum += a[i]", "sum", "a[i]", "a", "i", "double m = sum/(double)n;", "m", "sum/(double)n", "sum", "(double)n", "double suma = 0;", "suma", "0", "for(int i=0;i<n;i++) {\n\t \t\tsuma += (a[i]-m)*(a[i]-m);\n\t \t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t \t\tsuma += (a[i]-m)*(a[i]-m);\n\t \t}", "{\n\t \t\tsuma += (a[i]-m)*(a[i]-m);\n\t \t}", "suma += (a[i]-m)*(a[i]-m)", "suma", "(a[i]-m)*(a[i]-m)", "(a[i]-m)", "a[i]", "a", "i", "m", "(a[i]-m)", "a[i]", "a", "i", "m", "double A = Math.sqrt(suma/n);", "A", "Math.sqrt(suma/n)", "Math.sqrt", "Math", "suma/n", "suma", "n", "String str = String.format(\"%.10f\",A);", "str", "String.format(\"%.10f\",A)", "String.format", "String", "\"%.10f\"", "A", "System.out.println(str)", "System.out.println", "System.out", "System", "System.out", "str", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n \tScanner sc = new Scanner(System.in);\n \twhile(true) {\n\t \tlong sum=0;\n\t \tint n = sc.nextInt();\n\t \tif(n==0) break;\n\t \tdouble a[]= new double[n+1];\n\t \tfor(int i=0;i<n;i++) {\n\t \t\ta[i]=sc.nextDouble();\n\t \t\tsum += a[i];\n\t \t}\n\t \tdouble m = sum/(double)n;\n\t \tdouble suma = 0;\n\t \tfor(int i=0;i<n;i++) {\n\t \t\tsuma += (a[i]-m)*(a[i]-m);\n\t \t}\n\t \tdouble A = Math.sqrt(suma/n);\n\t \tString str = String.format(\"%.10f\",A);\n\t \tSystem.out.println(str);\n \t}\n \t\n }\n}", "public class Main {\n public static void main(String[] args) {\n \tScanner sc = new Scanner(System.in);\n \twhile(true) {\n\t \tlong sum=0;\n\t \tint n = sc.nextInt();\n\t \tif(n==0) break;\n\t \tdouble a[]= new double[n+1];\n\t \tfor(int i=0;i<n;i++) {\n\t \t\ta[i]=sc.nextDouble();\n\t \t\tsum += a[i];\n\t \t}\n\t \tdouble m = sum/(double)n;\n\t \tdouble suma = 0;\n\t \tfor(int i=0;i<n;i++) {\n\t \t\tsuma += (a[i]-m)*(a[i]-m);\n\t \t}\n\t \tdouble A = Math.sqrt(suma/n);\n\t \tString str = String.format(\"%.10f\",A);\n\t \tSystem.out.println(str);\n \t}\n \t\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(true) { long sum=0; int n = sc.nextInt(); if(n==0) break; double a[]= new double[n+1]; for(int i=0;i<n;i++) { a[i]=sc.nextDouble(); sum += a[i]; } double m = sum/(double)n; double suma = 0; for(int i=0;i<n;i++) { suma += (a[i]-m)*(a[i]-m); } double A = Math.sqrt(suma/n); String str = String.format("%.10f",A); System.out.println(str); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 3, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 20, 18, 13, 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, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 41, 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, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 155, 11 ], [ 155, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 20, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 20, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 20, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 20, 49 ], [ 49, 50 ], [ 49, 51 ], [ 52, 53 ], [ 52, 54 ], [ 20, 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 ], [ 20, 78 ], [ 78, 79 ], [ 78, 80 ], [ 20, 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 ], [ 96, 98 ], [ 20, 99 ], [ 99, 100 ], [ 99, 101 ], [ 20, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 104, 106 ], [ 20, 107 ], [ 107, 108 ], [ 107, 109 ], [ 20, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 115, 116 ], [ 115, 117 ], [ 110, 118 ], [ 118, 119 ], [ 119, 120 ], [ 110, 121 ], [ 122, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 125, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 131, 135 ], [ 20, 136 ], [ 136, 137 ], [ 136, 138 ], [ 20, 139 ], [ 139, 140 ], [ 139, 141 ], [ 141, 142 ], [ 142, 143 ], [ 141, 144 ], [ 20, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 145, 150 ], [ 145, 151 ], [ 12, 152 ], [ 152, 153 ], [ 0, 154 ], [ 154, 155 ], [ 154, 156 ] ]
[ "import java.io.*;\nimport java.util.Arrays;\nimport java.util.Scanner;\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\twhile(true){\n\t\t\tString fst = br.readLine();\n\t\t\tint n = Integer.parseInt(fst);\n\t\t\tif(n==0){break;}\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tdouble[] s = new double[str.length];\n\t\t\tfor (int j = 0; j<n ; j++ ) {\n\t\t\t\ts[j] = Double.parseDouble(str[j]);\n\t\t\t}\n\n\t\t\tdouble sum = 0.0;\n\t\t\tfor (int j = 0; j<n ; j++ ) {\n\t\t\t\tsum += s[j];\n\t\t\t}\n\t\t\tdouble num = n;\n\t\t\tdouble avr = sum/num;\n\t\t\tdouble a = 0.0;\n\t\t\tfor (int j = 0; j<n ; j++) {\n\t\t\t\ta += (s[j]-avr)*(s[j]-avr);\t\t\n\t\t\t}\n\t\t\ta /= num;\n\t\t\ta = Math.sqrt(a);\n\t\t\tSystem.out.printf(\"%.6f\\n\",a);\n\t\t}\n\t}\n}", "import java.io.*;", "io.*", "java", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String[] args) throws IOException{ \n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString fst = br.readLine();\n\t\t\tint n = Integer.parseInt(fst);\n\t\t\tif(n==0){break;}\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tdouble[] s = new double[str.length];\n\t\t\tfor (int j = 0; j<n ; j++ ) {\n\t\t\t\ts[j] = Double.parseDouble(str[j]);\n\t\t\t}\n\n\t\t\tdouble sum = 0.0;\n\t\t\tfor (int j = 0; j<n ; j++ ) {\n\t\t\t\tsum += s[j];\n\t\t\t}\n\t\t\tdouble num = n;\n\t\t\tdouble avr = sum/num;\n\t\t\tdouble a = 0.0;\n\t\t\tfor (int j = 0; j<n ; j++) {\n\t\t\t\ta += (s[j]-avr)*(s[j]-avr);\t\t\n\t\t\t}\n\t\t\ta /= num;\n\t\t\ta = Math.sqrt(a);\n\t\t\tSystem.out.printf(\"%.6f\\n\",a);\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\twhile(true){\n\t\t\tString fst = br.readLine();\n\t\t\tint n = Integer.parseInt(fst);\n\t\t\tif(n==0){break;}\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tdouble[] s = new double[str.length];\n\t\t\tfor (int j = 0; j<n ; j++ ) {\n\t\t\t\ts[j] = Double.parseDouble(str[j]);\n\t\t\t}\n\n\t\t\tdouble sum = 0.0;\n\t\t\tfor (int j = 0; j<n ; j++ ) {\n\t\t\t\tsum += s[j];\n\t\t\t}\n\t\t\tdouble num = n;\n\t\t\tdouble avr = sum/num;\n\t\t\tdouble a = 0.0;\n\t\t\tfor (int j = 0; j<n ; j++) {\n\t\t\t\ta += (s[j]-avr)*(s[j]-avr);\t\t\n\t\t\t}\n\t\t\ta /= num;\n\t\t\ta = Math.sqrt(a);\n\t\t\tSystem.out.printf(\"%.6f\\n\",a);\n\t\t}\n\t}", "main", "{ \n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString fst = br.readLine();\n\t\t\tint n = Integer.parseInt(fst);\n\t\t\tif(n==0){break;}\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tdouble[] s = new double[str.length];\n\t\t\tfor (int j = 0; j<n ; j++ ) {\n\t\t\t\ts[j] = Double.parseDouble(str[j]);\n\t\t\t}\n\n\t\t\tdouble sum = 0.0;\n\t\t\tfor (int j = 0; j<n ; j++ ) {\n\t\t\t\tsum += s[j];\n\t\t\t}\n\t\t\tdouble num = n;\n\t\t\tdouble avr = sum/num;\n\t\t\tdouble a = 0.0;\n\t\t\tfor (int j = 0; j<n ; j++) {\n\t\t\t\ta += (s[j]-avr)*(s[j]-avr);\t\t\n\t\t\t}\n\t\t\ta /= num;\n\t\t\ta = Math.sqrt(a);\n\t\t\tSystem.out.printf(\"%.6f\\n\",a);\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while(true){\n\t\t\tString fst = br.readLine();\n\t\t\tint n = Integer.parseInt(fst);\n\t\t\tif(n==0){break;}\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tdouble[] s = new double[str.length];\n\t\t\tfor (int j = 0; j<n ; j++ ) {\n\t\t\t\ts[j] = Double.parseDouble(str[j]);\n\t\t\t}\n\n\t\t\tdouble sum = 0.0;\n\t\t\tfor (int j = 0; j<n ; j++ ) {\n\t\t\t\tsum += s[j];\n\t\t\t}\n\t\t\tdouble num = n;\n\t\t\tdouble avr = sum/num;\n\t\t\tdouble a = 0.0;\n\t\t\tfor (int j = 0; j<n ; j++) {\n\t\t\t\ta += (s[j]-avr)*(s[j]-avr);\t\t\n\t\t\t}\n\t\t\ta /= num;\n\t\t\ta = Math.sqrt(a);\n\t\t\tSystem.out.printf(\"%.6f\\n\",a);\n\t\t}", "true", "{\n\t\t\tString fst = br.readLine();\n\t\t\tint n = Integer.parseInt(fst);\n\t\t\tif(n==0){break;}\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tdouble[] s = new double[str.length];\n\t\t\tfor (int j = 0; j<n ; j++ ) {\n\t\t\t\ts[j] = Double.parseDouble(str[j]);\n\t\t\t}\n\n\t\t\tdouble sum = 0.0;\n\t\t\tfor (int j = 0; j<n ; j++ ) {\n\t\t\t\tsum += s[j];\n\t\t\t}\n\t\t\tdouble num = n;\n\t\t\tdouble avr = sum/num;\n\t\t\tdouble a = 0.0;\n\t\t\tfor (int j = 0; j<n ; j++) {\n\t\t\t\ta += (s[j]-avr)*(s[j]-avr);\t\t\n\t\t\t}\n\t\t\ta /= num;\n\t\t\ta = Math.sqrt(a);\n\t\t\tSystem.out.printf(\"%.6f\\n\",a);\n\t\t}", "String fst = br.readLine();", "fst", "br.readLine()", "br.readLine", "br", "int n = Integer.parseInt(fst);", "n", "Integer.parseInt(fst)", "Integer.parseInt", "Integer", "fst", "if(n==0){break;}", "n==0", "n", "0", "{break;}", "break;", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "String[] str = line.split(\" \");", "str", "line.split(\" \")", "line.split", "line", "\" \"", "double[] s = new double[str.length];", "s", "new double[str.length]", "str.length", "str", "str.length", "for (int j = 0; j<n ; j++ ) {\n\t\t\t\ts[j] = Double.parseDouble(str[j]);\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j<n", "j", "n", "j++", "j++", "j", "{\n\t\t\t\ts[j] = Double.parseDouble(str[j]);\n\t\t\t}", "{\n\t\t\t\ts[j] = Double.parseDouble(str[j]);\n\t\t\t}", "s[j] = Double.parseDouble(str[j])", "s[j]", "s", "j", "Double.parseDouble(str[j])", "Double.parseDouble", "Double", "str[j]", "str", "j", "double sum = 0.0;", "sum", "0.0", "for (int j = 0; j<n ; j++ ) {\n\t\t\t\tsum += s[j];\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j<n", "j", "n", "j++", "j++", "j", "{\n\t\t\t\tsum += s[j];\n\t\t\t}", "{\n\t\t\t\tsum += s[j];\n\t\t\t}", "sum += s[j]", "sum", "s[j]", "s", "j", "double num = n;", "num", "n", "double avr = sum/num;", "avr", "sum/num", "sum", "num", "double a = 0.0;", "a", "0.0", "for (int j = 0; j<n ; j++) {\n\t\t\t\ta += (s[j]-avr)*(s[j]-avr);\t\t\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j<n", "j", "n", "j++", "j++", "j", "{\n\t\t\t\ta += (s[j]-avr)*(s[j]-avr);\t\t\n\t\t\t}", "{\n\t\t\t\ta += (s[j]-avr)*(s[j]-avr);\t\t\n\t\t\t}", "a += (s[j]-avr)*(s[j]-avr)", "a", "(s[j]-avr)*(s[j]-avr)", "(s[j]-avr)", "s[j]", "s", "j", "avr", "(s[j]-avr)", "s[j]", "s", "j", "avr", "a /= num", "a", "num", "a = Math.sqrt(a)", "a", "Math.sqrt(a)", "Math.sqrt", "Math", "a", "System.out.printf(\"%.6f\\n\",a)", "System.out.printf", "System.out", "System", "System.out", "\"%.6f\\n\"", "a", "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\twhile(true){\n\t\t\tString fst = br.readLine();\n\t\t\tint n = Integer.parseInt(fst);\n\t\t\tif(n==0){break;}\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tdouble[] s = new double[str.length];\n\t\t\tfor (int j = 0; j<n ; j++ ) {\n\t\t\t\ts[j] = Double.parseDouble(str[j]);\n\t\t\t}\n\n\t\t\tdouble sum = 0.0;\n\t\t\tfor (int j = 0; j<n ; j++ ) {\n\t\t\t\tsum += s[j];\n\t\t\t}\n\t\t\tdouble num = n;\n\t\t\tdouble avr = sum/num;\n\t\t\tdouble a = 0.0;\n\t\t\tfor (int j = 0; j<n ; j++) {\n\t\t\t\ta += (s[j]-avr)*(s[j]-avr);\t\t\n\t\t\t}\n\t\t\ta /= num;\n\t\t\ta = Math.sqrt(a);\n\t\t\tSystem.out.printf(\"%.6f\\n\",a);\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\twhile(true){\n\t\t\tString fst = br.readLine();\n\t\t\tint n = Integer.parseInt(fst);\n\t\t\tif(n==0){break;}\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tdouble[] s = new double[str.length];\n\t\t\tfor (int j = 0; j<n ; j++ ) {\n\t\t\t\ts[j] = Double.parseDouble(str[j]);\n\t\t\t}\n\n\t\t\tdouble sum = 0.0;\n\t\t\tfor (int j = 0; j<n ; j++ ) {\n\t\t\t\tsum += s[j];\n\t\t\t}\n\t\t\tdouble num = n;\n\t\t\tdouble avr = sum/num;\n\t\t\tdouble a = 0.0;\n\t\t\tfor (int j = 0; j<n ; j++) {\n\t\t\t\ta += (s[j]-avr)*(s[j]-avr);\t\t\n\t\t\t}\n\t\t\ta /= num;\n\t\t\ta = Math.sqrt(a);\n\t\t\tSystem.out.printf(\"%.6f\\n\",a);\n\t\t}\n\t}\n}", "Main" ]
import java.io.*; import java.util.Arrays; import java.util.Scanner; public class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while(true){ String fst = br.readLine(); int n = Integer.parseInt(fst); if(n==0){break;} String line = br.readLine(); String[] str = line.split(" "); double[] s = new double[str.length]; for (int j = 0; j<n ; j++ ) { s[j] = Double.parseDouble(str[j]); } double sum = 0.0; for (int j = 0; j<n ; j++ ) { sum += s[j]; } double num = n; double avr = sum/num; double a = 0.0; for (int j = 0; j<n ; j++) { a += (s[j]-avr)*(s[j]-avr); } a /= num; a = Math.sqrt(a); System.out.printf("%.6f\n",a); } } }
[ 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, 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, 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, 4, 18, 18, 13, 13, 17, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 107, 5 ], [ 107, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 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, 30 ], [ 30, 31 ], [ 30, 32 ], [ 26, 33 ], [ 33, 34 ], [ 33, 35 ], [ 26, 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 ], [ 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 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 80, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 26, 91 ], [ 91, 92 ], [ 91, 93 ], [ 26, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 94, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 6, 104 ], [ 104, 105 ], [ 0, 106 ], [ 106, 107 ], [ 106, 108 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n;\n double m, a2;\n while ((n = sc.nextInt()) != 0) {\n m = 0;\n a2 = 0;\n int s[] = new int[n];\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextInt();\n m += s[i];\n }\n m /= n;\n for (int i = 0; i < n; i++) {\n a2 += (s[i] - m) * (s[i] - m);\n }\n a2 /= n;\n System.out.printf(\"%f\\n\", Math.sqrt(a2));\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 double m, a2;\n while ((n = sc.nextInt()) != 0) {\n m = 0;\n a2 = 0;\n int s[] = new int[n];\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextInt();\n m += s[i];\n }\n m /= n;\n for (int i = 0; i < n; i++) {\n a2 += (s[i] - m) * (s[i] - m);\n }\n a2 /= n;\n System.out.printf(\"%f\\n\", Math.sqrt(a2));\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n;\n double m, a2;\n while ((n = sc.nextInt()) != 0) {\n m = 0;\n a2 = 0;\n int s[] = new int[n];\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextInt();\n m += s[i];\n }\n m /= n;\n for (int i = 0; i < n; i++) {\n a2 += (s[i] - m) * (s[i] - m);\n }\n a2 /= n;\n System.out.printf(\"%f\\n\", Math.sqrt(a2));\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n;\n double m, a2;\n while ((n = sc.nextInt()) != 0) {\n m = 0;\n a2 = 0;\n int s[] = new int[n];\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextInt();\n m += s[i];\n }\n m /= n;\n for (int i = 0; i < n; i++) {\n a2 += (s[i] - m) * (s[i] - m);\n }\n a2 /= n;\n System.out.printf(\"%f\\n\", Math.sqrt(a2));\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n;", "n", "double m", "m", "a2;", "a2", "while ((n = sc.nextInt()) != 0) {\n m = 0;\n a2 = 0;\n int s[] = new int[n];\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextInt();\n m += s[i];\n }\n m /= n;\n for (int i = 0; i < n; i++) {\n a2 += (s[i] - m) * (s[i] - m);\n }\n a2 /= n;\n System.out.printf(\"%f\\n\", Math.sqrt(a2));\n }", "(n = sc.nextInt()) != 0", "(n = sc.nextInt())", "n", "sc.nextInt()", "sc.nextInt", "sc", "0", "{\n m = 0;\n a2 = 0;\n int s[] = new int[n];\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextInt();\n m += s[i];\n }\n m /= n;\n for (int i = 0; i < n; i++) {\n a2 += (s[i] - m) * (s[i] - m);\n }\n a2 /= n;\n System.out.printf(\"%f\\n\", Math.sqrt(a2));\n }", "m = 0", "m", "0", "a2 = 0", "a2", "0", "int s[] = new int[n];", "s", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n s[i] = sc.nextInt();\n m += s[i];\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n s[i] = sc.nextInt();\n m += s[i];\n }", "{\n s[i] = sc.nextInt();\n m += s[i];\n }", "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 = 0; i < n; i++) {\n a2 += (s[i] - m) * (s[i] - m);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n a2 += (s[i] - m) * (s[i] - m);\n }", "{\n a2 += (s[i] - m) * (s[i] - m);\n }", "a2 += (s[i] - m) * (s[i] - m)", "a2", "(s[i] - m) * (s[i] - m)", "(s[i] - m)", "s[i]", "s", "i", "m", "(s[i] - m)", "s[i]", "s", "i", "m", "a2 /= n", "a2", "n", "System.out.printf(\"%f\\n\", Math.sqrt(a2))", "System.out.printf", "System.out", "System", "System.out", "\"%f\\n\"", "Math.sqrt(a2)", "Math.sqrt", "Math", "a2", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n;\n double m, a2;\n while ((n = sc.nextInt()) != 0) {\n m = 0;\n a2 = 0;\n int s[] = new int[n];\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextInt();\n m += s[i];\n }\n m /= n;\n for (int i = 0; i < n; i++) {\n a2 += (s[i] - m) * (s[i] - m);\n }\n a2 /= n;\n System.out.printf(\"%f\\n\", Math.sqrt(a2));\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n;\n double m, a2;\n while ((n = sc.nextInt()) != 0) {\n m = 0;\n a2 = 0;\n int s[] = new int[n];\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextInt();\n m += s[i];\n }\n m /= n;\n for (int i = 0; i < n; i++) {\n a2 += (s[i] - m) * (s[i] - m);\n }\n a2 /= n;\n System.out.printf(\"%f\\n\", Math.sqrt(a2));\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; double m, a2; while ((n = sc.nextInt()) != 0) { m = 0; a2 = 0; int s[] = new int[n]; for (int i = 0; i < n; i++) { s[i] = sc.nextInt(); m += s[i]; } m /= n; for (int i = 0; i < n; i++) { a2 += (s[i] - m) * (s[i] - m); } a2 /= n; System.out.printf("%f\n", Math.sqrt(a2)); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 42, 17, 30, 41, 13, 17, 41, 13, 17, 41, 13, 41, 13, 4, 18, 13, 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, 14, 2, 13, 17, 3, 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, 41, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 113, 5 ], [ 113, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 18, 22 ], [ 22, 23 ], [ 22, 24 ], [ 18, 25 ], [ 25, 26 ], [ 18, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 18, 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 ], [ 44, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 44, 55 ], [ 55, 56 ], [ 55, 57 ], [ 18, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 18, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 18, 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 ], [ 18, 94 ], [ 94, 95 ], [ 94, 96 ], [ 18, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 18, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 103, 109 ], [ 6, 110 ], [ 110, 111 ], [ 0, 112 ], [ 112, 113 ], [ 112, 114 ] ]
[ "import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int[] data = new int[1000];\n while(true){\n int sum = 0;\n double p = 0;\n double ave;\n int n = scanner.nextInt();\n for (int i = 0; i < n; i++){\n int a = scanner.nextInt();\n data[i] = a;\n sum += a;\n }\n if(n == 0) break;\n ave = (double)sum / n;\n for(int i = 0; i < n; i++){\n p += ((double)data[i] - ave)*((double)data[i] - ave);\n }\n p /= n;\n double s = Math.sqrt(p);\n System.out.printf(\"%.8f\\n\", s);\n }\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int[] data = new int[1000];\n while(true){\n int sum = 0;\n double p = 0;\n double ave;\n int n = scanner.nextInt();\n for (int i = 0; i < n; i++){\n int a = scanner.nextInt();\n data[i] = a;\n sum += a;\n }\n if(n == 0) break;\n ave = (double)sum / n;\n for(int i = 0; i < n; i++){\n p += ((double)data[i] - ave)*((double)data[i] - ave);\n }\n p /= n;\n double s = Math.sqrt(p);\n System.out.printf(\"%.8f\\n\", s);\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int[] data = new int[1000];\n while(true){\n int sum = 0;\n double p = 0;\n double ave;\n int n = scanner.nextInt();\n for (int i = 0; i < n; i++){\n int a = scanner.nextInt();\n data[i] = a;\n sum += a;\n }\n if(n == 0) break;\n ave = (double)sum / n;\n for(int i = 0; i < n; i++){\n p += ((double)data[i] - ave)*((double)data[i] - ave);\n }\n p /= n;\n double s = Math.sqrt(p);\n System.out.printf(\"%.8f\\n\", s);\n }\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n int[] data = new int[1000];\n while(true){\n int sum = 0;\n double p = 0;\n double ave;\n int n = scanner.nextInt();\n for (int i = 0; i < n; i++){\n int a = scanner.nextInt();\n data[i] = a;\n sum += a;\n }\n if(n == 0) break;\n ave = (double)sum / n;\n for(int i = 0; i < n; i++){\n p += ((double)data[i] - ave)*((double)data[i] - ave);\n }\n p /= n;\n double s = Math.sqrt(p);\n System.out.printf(\"%.8f\\n\", s);\n }\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int[] data = new int[1000];", "data", "new int[1000]", "1000", "while(true){\n int sum = 0;\n double p = 0;\n double ave;\n int n = scanner.nextInt();\n for (int i = 0; i < n; i++){\n int a = scanner.nextInt();\n data[i] = a;\n sum += a;\n }\n if(n == 0) break;\n ave = (double)sum / n;\n for(int i = 0; i < n; i++){\n p += ((double)data[i] - ave)*((double)data[i] - ave);\n }\n p /= n;\n double s = Math.sqrt(p);\n System.out.printf(\"%.8f\\n\", s);\n }", "true", "{\n int sum = 0;\n double p = 0;\n double ave;\n int n = scanner.nextInt();\n for (int i = 0; i < n; i++){\n int a = scanner.nextInt();\n data[i] = a;\n sum += a;\n }\n if(n == 0) break;\n ave = (double)sum / n;\n for(int i = 0; i < n; i++){\n p += ((double)data[i] - ave)*((double)data[i] - ave);\n }\n p /= n;\n double s = Math.sqrt(p);\n System.out.printf(\"%.8f\\n\", s);\n }", "int sum = 0;", "sum", "0", "double p = 0;", "p", "0", "double ave;", "ave", "int n = scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "for (int i = 0; i < n; i++){\n int a = scanner.nextInt();\n data[i] = a;\n sum += a;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n int a = scanner.nextInt();\n data[i] = a;\n sum += a;\n }", "{\n int a = scanner.nextInt();\n data[i] = a;\n sum += a;\n }", "int a = scanner.nextInt();", "a", "scanner.nextInt()", "scanner.nextInt", "scanner", "data[i] = a", "data[i]", "data", "i", "a", "sum += a", "sum", "a", "if(n == 0) break;", "n == 0", "n", "0", "break;", "ave = (double)sum / n", "ave", "(double)sum / n", "(double)sum", "n", "for(int i = 0; i < n; i++){\n p += ((double)data[i] - ave)*((double)data[i] - ave);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n p += ((double)data[i] - ave)*((double)data[i] - ave);\n }", "{\n p += ((double)data[i] - ave)*((double)data[i] - ave);\n }", "p += ((double)data[i] - ave)*((double)data[i] - ave)", "p", "((double)data[i] - ave)*((double)data[i] - ave)", "((double)data[i] - ave)", "(double)data[i]", "data", "i", "ave", "((double)data[i] - ave)", "(double)data[i]", "data", "i", "ave", "p /= n", "p", "n", "double s = Math.sqrt(p);", "s", "Math.sqrt(p)", "Math.sqrt", "Math", "p", "System.out.printf(\"%.8f\\n\", s)", "System.out.printf", "System.out", "System", "System.out", "\"%.8f\\n\"", "s", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int[] data = new int[1000];\n while(true){\n int sum = 0;\n double p = 0;\n double ave;\n int n = scanner.nextInt();\n for (int i = 0; i < n; i++){\n int a = scanner.nextInt();\n data[i] = a;\n sum += a;\n }\n if(n == 0) break;\n ave = (double)sum / n;\n for(int i = 0; i < n; i++){\n p += ((double)data[i] - ave)*((double)data[i] - ave);\n }\n p /= n;\n double s = Math.sqrt(p);\n System.out.printf(\"%.8f\\n\", s);\n }\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int[] data = new int[1000];\n while(true){\n int sum = 0;\n double p = 0;\n double ave;\n int n = scanner.nextInt();\n for (int i = 0; i < n; i++){\n int a = scanner.nextInt();\n data[i] = a;\n sum += a;\n }\n if(n == 0) break;\n ave = (double)sum / n;\n for(int i = 0; i < n; i++){\n p += ((double)data[i] - ave)*((double)data[i] - ave);\n }\n p /= n;\n double s = Math.sqrt(p);\n System.out.printf(\"%.8f\\n\", s);\n }\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int[] data = new int[1000]; while(true){ int sum = 0; double p = 0; double ave; int n = scanner.nextInt(); for (int i = 0; i < n; i++){ int a = scanner.nextInt(); data[i] = a; sum += a; } if(n == 0) break; ave = (double)sum / n; for(int i = 0; i < n; i++){ p += ((double)data[i] - ave)*((double)data[i] - ave); } p /= n; double s = Math.sqrt(p); System.out.printf("%.8f\n", s); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 0, 13, 4, 18, 13, 42, 2, 13, 17, 30, 0, 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, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 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, 0, 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 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ], [ 8, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 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 ], [ 29, 62 ], [ 62, 63 ], [ 62, 64 ], [ 29, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 70, 71 ], [ 70, 72 ], [ 65, 73 ], [ 73, 74 ], [ 74, 75 ], [ 65, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 84, 86 ], [ 79, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 91, 92 ], [ 91, 93 ], [ 29, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 94, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 103, 104 ], [ 103, 105 ], [ 29, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 6, 111 ], [ 111, 112 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n int n, sum;\n int[] s;\n double dev;\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n while (n != 0) {\n s = new int [n];\n sum = 0;\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextInt();\n sum += s[i];\n }\n dev = 0;\n for (int i = 0; i < n; i++) \n dev += (s[i] - ((double)sum / n)) * ((double)s[i] - (sum / n));\n System.out.printf(\"%.9f\\n\", Math.sqrt(dev / n));\n n = sc.nextInt();\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String[] args) {\n int n, sum;\n int[] s;\n double dev;\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n while (n != 0) {\n s = new int [n];\n sum = 0;\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextInt();\n sum += s[i];\n }\n dev = 0;\n for (int i = 0; i < n; i++) \n dev += (s[i] - ((double)sum / n)) * ((double)s[i] - (sum / n));\n System.out.printf(\"%.9f\\n\", Math.sqrt(dev / n));\n n = sc.nextInt();\n }\n }\n}", "Main", "public static void main(String[] args) {\n int n, sum;\n int[] s;\n double dev;\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n while (n != 0) {\n s = new int [n];\n sum = 0;\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextInt();\n sum += s[i];\n }\n dev = 0;\n for (int i = 0; i < n; i++) \n dev += (s[i] - ((double)sum / n)) * ((double)s[i] - (sum / n));\n System.out.printf(\"%.9f\\n\", Math.sqrt(dev / n));\n n = sc.nextInt();\n }\n }", "main", "{\n int n, sum;\n int[] s;\n double dev;\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n while (n != 0) {\n s = new int [n];\n sum = 0;\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextInt();\n sum += s[i];\n }\n dev = 0;\n for (int i = 0; i < n; i++) \n dev += (s[i] - ((double)sum / n)) * ((double)s[i] - (sum / n));\n System.out.printf(\"%.9f\\n\", Math.sqrt(dev / n));\n n = sc.nextInt();\n }\n }", "int n", "n", "sum;", "sum", "int[] s;", "s", "double dev;", "dev", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "while (n != 0) {\n s = new int [n];\n sum = 0;\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextInt();\n sum += s[i];\n }\n dev = 0;\n for (int i = 0; i < n; i++) \n dev += (s[i] - ((double)sum / n)) * ((double)s[i] - (sum / n));\n System.out.printf(\"%.9f\\n\", Math.sqrt(dev / n));\n n = sc.nextInt();\n }", "n != 0", "n", "0", "{\n s = new int [n];\n sum = 0;\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextInt();\n sum += s[i];\n }\n dev = 0;\n for (int i = 0; i < n; i++) \n dev += (s[i] - ((double)sum / n)) * ((double)s[i] - (sum / n));\n System.out.printf(\"%.9f\\n\", Math.sqrt(dev / n));\n n = sc.nextInt();\n }", "s = new int [n]", "s", "new int [n]", "n", "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", "dev = 0", "dev", "0", "for (int i = 0; i < n; i++) \n dev += (s[i] - ((double)sum / n)) * ((double)s[i] - (sum / n));", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "dev += (s[i] - ((double)sum / n)) * ((double)s[i] - (sum / n));", "dev += (s[i] - ((double)sum / n)) * ((double)s[i] - (sum / n))", "dev", "(s[i] - ((double)sum / n)) * ((double)s[i] - (sum / n))", "(s[i] - ((double)sum / n))", "s[i]", "s", "i", "((double)sum / n)", "(double)sum", "n", "((double)s[i] - (sum / n))", "(double)s[i]", "s", "i", "(sum / n)", "sum", "n", "System.out.printf(\"%.9f\\n\", Math.sqrt(dev / n))", "System.out.printf", "System.out", "System", "System.out", "\"%.9f\\n\"", "Math.sqrt(dev / n)", "Math.sqrt", "Math", "dev / n", "dev", "n", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args) { int n, sum; int[] s; double dev; Scanner sc = new Scanner(System.in); n = sc.nextInt(); while (n != 0) { s = new int [n]; sum = 0; for (int i = 0; i < n; i++) { s[i] = sc.nextInt(); sum += s[i]; } dev = 0; for (int i = 0; i < n; i++) dev += (s[i] - ((double)sum / n)) * ((double)s[i] - (sum / n)); System.out.printf("%.9f\n", Math.sqrt(dev / n)); n = sc.nextInt(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 42, 17, 30, 41, 13, 17, 41, 13, 17, 41, 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, 41, 13, 17, 41, 13, 17, 0, 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, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 120, 5 ], [ 120, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 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 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 44, 46 ], [ 37, 47 ], [ 47, 48 ], [ 48, 49 ], [ 37, 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 ], [ 16, 67 ], [ 67, 68 ], [ 67, 69 ], [ 16, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 16, 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 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 92, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 16, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 16, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 6, 117 ], [ 117, 118 ], [ 0, 119 ], [ 119, 120 ], [ 119, 121 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[]args){\n try(Scanner sc = new Scanner(System.in)){\n while(true){\n int sum=0;\n double sqsum=0;\n int n=sc.nextInt();\n if(n==0) break;\n int[] score = new int[n];\n for(int i=0;i<score.length;i++){\n score[i]=sc.nextInt();\n sum+=score[i];\n }\n double ave=0,bunsan=0;\n ave=(double) sum/n;\n for(int i=0;i<score.length;i++){\n sqsum+=(score[i]-ave)*(score[i]-ave);\n }\n bunsan=(double) sqsum/n;\n System.out.println(Math.sqrt(bunsan));\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 sum=0;\n double sqsum=0;\n int n=sc.nextInt();\n if(n==0) break;\n int[] score = new int[n];\n for(int i=0;i<score.length;i++){\n score[i]=sc.nextInt();\n sum+=score[i];\n }\n double ave=0,bunsan=0;\n ave=(double) sum/n;\n for(int i=0;i<score.length;i++){\n sqsum+=(score[i]-ave)*(score[i]-ave);\n }\n bunsan=(double) sqsum/n;\n System.out.println(Math.sqrt(bunsan));\n }\n } \n }\n}", "Main", "public static void main(String[]args){\n try(Scanner sc = new Scanner(System.in)){\n while(true){\n int sum=0;\n double sqsum=0;\n int n=sc.nextInt();\n if(n==0) break;\n int[] score = new int[n];\n for(int i=0;i<score.length;i++){\n score[i]=sc.nextInt();\n sum+=score[i];\n }\n double ave=0,bunsan=0;\n ave=(double) sum/n;\n for(int i=0;i<score.length;i++){\n sqsum+=(score[i]-ave)*(score[i]-ave);\n }\n bunsan=(double) sqsum/n;\n System.out.println(Math.sqrt(bunsan));\n }\n } \n }", "main", "{\n try(Scanner sc = new Scanner(System.in)){\n while(true){\n int sum=0;\n double sqsum=0;\n int n=sc.nextInt();\n if(n==0) break;\n int[] score = new int[n];\n for(int i=0;i<score.length;i++){\n score[i]=sc.nextInt();\n sum+=score[i];\n }\n double ave=0,bunsan=0;\n ave=(double) sum/n;\n for(int i=0;i<score.length;i++){\n sqsum+=(score[i]-ave)*(score[i]-ave);\n }\n bunsan=(double) sqsum/n;\n System.out.println(Math.sqrt(bunsan));\n }\n } \n }", "try(Scanner sc = new Scanner(System.in)){\n while(true){\n int sum=0;\n double sqsum=0;\n int n=sc.nextInt();\n if(n==0) break;\n int[] score = new int[n];\n for(int i=0;i<score.length;i++){\n score[i]=sc.nextInt();\n sum+=score[i];\n }\n double ave=0,bunsan=0;\n ave=(double) sum/n;\n for(int i=0;i<score.length;i++){\n sqsum+=(score[i]-ave)*(score[i]-ave);\n }\n bunsan=(double) sqsum/n;\n System.out.println(Math.sqrt(bunsan));\n }\n }", "{\n while(true){\n int sum=0;\n double sqsum=0;\n int n=sc.nextInt();\n if(n==0) break;\n int[] score = new int[n];\n for(int i=0;i<score.length;i++){\n score[i]=sc.nextInt();\n sum+=score[i];\n }\n double ave=0,bunsan=0;\n ave=(double) sum/n;\n for(int i=0;i<score.length;i++){\n sqsum+=(score[i]-ave)*(score[i]-ave);\n }\n bunsan=(double) sqsum/n;\n System.out.println(Math.sqrt(bunsan));\n }\n }", "Scanner sc = new Scanner(System.in)", "Scanner sc = new Scanner(System.in)", "new Scanner(System.in)", "while(true){\n int sum=0;\n double sqsum=0;\n int n=sc.nextInt();\n if(n==0) break;\n int[] score = new int[n];\n for(int i=0;i<score.length;i++){\n score[i]=sc.nextInt();\n sum+=score[i];\n }\n double ave=0,bunsan=0;\n ave=(double) sum/n;\n for(int i=0;i<score.length;i++){\n sqsum+=(score[i]-ave)*(score[i]-ave);\n }\n bunsan=(double) sqsum/n;\n System.out.println(Math.sqrt(bunsan));\n }", "true", "{\n int sum=0;\n double sqsum=0;\n int n=sc.nextInt();\n if(n==0) break;\n int[] score = new int[n];\n for(int i=0;i<score.length;i++){\n score[i]=sc.nextInt();\n sum+=score[i];\n }\n double ave=0,bunsan=0;\n ave=(double) sum/n;\n for(int i=0;i<score.length;i++){\n sqsum+=(score[i]-ave)*(score[i]-ave);\n }\n bunsan=(double) sqsum/n;\n System.out.println(Math.sqrt(bunsan));\n }", "int sum=0;", "sum", "0", "double sqsum=0;", "sqsum", "0", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n==0) break;", "n==0", "n", "0", "break;", "int[] score = new int[n];", "score", "new int[n]", "n", "for(int i=0;i<score.length;i++){\n score[i]=sc.nextInt();\n sum+=score[i];\n }", "int i=0;", "int i=0;", "i", "0", "i<score.length", "i", "score.length", "score", "score.length", "i++", "i++", "i", "{\n score[i]=sc.nextInt();\n sum+=score[i];\n }", "{\n score[i]=sc.nextInt();\n sum+=score[i];\n }", "score[i]=sc.nextInt()", "score[i]", "score", "i", "sc.nextInt()", "sc.nextInt", "sc", "sum+=score[i]", "sum", "score[i]", "score", "i", "double ave=0", "ave", "0", "bunsan=0;", "bunsan", "0", "ave=(double) sum/n", "ave", "(double) sum/n", "(double) sum", "n", "for(int i=0;i<score.length;i++){\n sqsum+=(score[i]-ave)*(score[i]-ave);\n }", "int i=0;", "int i=0;", "i", "0", "i<score.length", "i", "score.length", "score", "score.length", "i++", "i++", "i", "{\n sqsum+=(score[i]-ave)*(score[i]-ave);\n }", "{\n sqsum+=(score[i]-ave)*(score[i]-ave);\n }", "sqsum+=(score[i]-ave)*(score[i]-ave)", "sqsum", "(score[i]-ave)*(score[i]-ave)", "(score[i]-ave)", "score[i]", "score", "i", "ave", "(score[i]-ave)", "score[i]", "score", "i", "ave", "bunsan=(double) sqsum/n", "bunsan", "(double) sqsum/n", "(double) sqsum", "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 public static void main(String[]args){\n try(Scanner sc = new Scanner(System.in)){\n while(true){\n int sum=0;\n double sqsum=0;\n int n=sc.nextInt();\n if(n==0) break;\n int[] score = new int[n];\n for(int i=0;i<score.length;i++){\n score[i]=sc.nextInt();\n sum+=score[i];\n }\n double ave=0,bunsan=0;\n ave=(double) sum/n;\n for(int i=0;i<score.length;i++){\n sqsum+=(score[i]-ave)*(score[i]-ave);\n }\n bunsan=(double) sqsum/n;\n System.out.println(Math.sqrt(bunsan));\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 sum=0;\n double sqsum=0;\n int n=sc.nextInt();\n if(n==0) break;\n int[] score = new int[n];\n for(int i=0;i<score.length;i++){\n score[i]=sc.nextInt();\n sum+=score[i];\n }\n double ave=0,bunsan=0;\n ave=(double) sum/n;\n for(int i=0;i<score.length;i++){\n sqsum+=(score[i]-ave)*(score[i]-ave);\n }\n bunsan=(double) sqsum/n;\n System.out.println(Math.sqrt(bunsan));\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 sum=0; double sqsum=0; int n=sc.nextInt(); if(n==0) break; int[] score = new int[n]; for(int i=0;i<score.length;i++){ score[i]=sc.nextInt(); sum+=score[i]; } double ave=0,bunsan=0; ave=(double) sum/n; for(int i=0;i<score.length;i++){ sqsum+=(score[i]-ave)*(score[i]-ave); } bunsan=(double) sqsum/n; System.out.println(Math.sqrt(bunsan)); } } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 12, 13, 30, 0, 13, 20, 41, 13, 20, 17, 41, 13, 20, 17, 17, 41, 13, 20, 17, 41, 13, 17, 41, 13, 17, 11, 1, 30, 30, 0, 18, 13, 13, 4, 18, 13, 14, 2, 18, 13, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 13, 4, 18, 13, 40, 13, 40, 13, 41, 13, 20, 17, 41, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 18, 13, 13, 13, 0, 18, 13, 13, 2, 13, 18, 13, 13, 0, 13, 17, 41, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 18, 18, 13, 13, 13, 18, 13, 13, 2, 18, 18, 13, 13, 13, 18, 13, 13, 0, 18, 13, 13, 4, 18, 13, 2, 13, 18, 13, 13, 0, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 226, 5 ], [ 226, 6 ], [ 6, 7 ], [ 226, 8 ], [ 8, 9 ], [ 8, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 14, 16 ], [ 10, 18 ], [ 18, 19 ], [ 18, 20 ], [ 10, 23 ], [ 23, 24 ], [ 23, 25 ], [ 10, 27 ], [ 27, 28 ], [ 27, 29 ], [ 10, 30 ], [ 30, 31 ], [ 30, 32 ], [ 10, 33 ], [ 33, 34 ], [ 33, 35 ], [ 36, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 36, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 44, 50 ], [ 50, 51 ], [ 36, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 52, 62 ], [ 62, 63 ], [ 63, 64 ], [ 52, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 67, 73 ], [ 73, 74 ], [ 74, 75 ], [ 36, 76 ], [ 76, 77 ], [ 36, 78 ], [ 78, 79 ], [ 10, 80 ], [ 80, 81 ], [ 80, 82 ], [ 10, 84 ], [ 84, 85 ], [ 84, 86 ], [ 10, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 92, 93 ], [ 92, 94 ], [ 87, 95 ], [ 95, 96 ], [ 96, 97 ], [ 87, 98 ], [ 99, 99 ], [ 99, 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 ], [ 114, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 99, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 128, 130 ], [ 99, 131 ], [ 131, 132 ], [ 131, 133 ], [ 10, 134 ], [ 134, 135 ], [ 134, 136 ], [ 10, 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 ], [ 157, 158 ], [ 157, 159 ], [ 150, 160 ], [ 160, 161 ], [ 161, 162 ], [ 150, 163 ], [ 164, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 169, 173 ], [ 168, 174 ], [ 174, 175 ], [ 174, 176 ], [ 167, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 178, 182 ], [ 177, 183 ], [ 183, 184 ], [ 183, 185 ], [ 149, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 186, 190 ], [ 190, 191 ], [ 191, 192 ], [ 190, 193 ], [ 193, 194 ], [ 193, 195 ], [ 195, 196 ], [ 195, 197 ], [ 149, 198 ], [ 198, 199 ], [ 198, 200 ], [ 10, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 203, 205 ], [ 201, 206 ], [ 206, 207 ], [ 206, 208 ], [ 201, 209 ], [ 209, 210 ], [ 210, 211 ], [ 201, 212 ], [ 213, 213 ], [ 213, 214 ], [ 214, 215 ], [ 215, 216 ], [ 216, 217 ], [ 216, 218 ], [ 214, 219 ], [ 214, 220 ], [ 220, 221 ], [ 220, 222 ], [ 8, 223 ], [ 223, 224 ], [ 0, 225 ], [ 225, 226 ], [ 225, 227 ] ]
[ "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\tint n[]=new int[15];\n\t\tint score[][]=new int[15][1000];\n\t\tdouble ans[]=new double[1000];\n\t\tint i=0;\n\t\tint count=0;\n\t\tfor(;;) {\n\t\t\tn[i]=sc.nextInt();\n\t\t\tif(n[i]==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int j=0;j<n[i];j++) {\n\t\t\t\tscore[i][j]=sc.nextInt();\n\t\t\t\t//System.out.print(i+\" \"+j+\"=\"+score[i][j]+\"\\n\");\n\t\t\t}\n\t\t\ti++;\n\t\t\tcount++;\n\t\t}\n\t\t//平均の取得\n\t\tdouble m[]=new double[15];\n\t\tint sum=0;\n\t\tfor(i=0;i<count;i++) {\n\t\t\tfor(int j=0;j<n[i];j++) {\n\t\t\t\tsum+=score[i][j];\n\t\t\t}\n\t\t\tm[i]=(double)sum/n[i];\n\t\t\t//System.out.println(i+\" \"+m[i]);\n\t\t\tsum=0;\n\t\t}\n\t\t//標準偏差\n\t\tdouble Sum=0;\n\t\tfor(i=0;i<count;i++) {\n\t\t\tfor(int j=0;j<n[i];j++) {\n\t\t\t\tSum+=(double)(score[i][j]-m[i])*(score[i][j]-m[i]);\n\t\t\t\t//System.out.print(i+\" \"+j+\":\"+Sum+\"\\n\");\n\t\t\t}\n\t\t\tans[i]=Math.sqrt((double)Sum/n[i]);\n\t\t\t//System.out.print(ans[i]);\n\t\t\tSum=0;\n\t\t}\n\t\tfor(i=0;i<count;i++) {\n\t\t\tSystem.out.printf(\"%.08f\\n\",ans[i]);\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\tint n[]=new int[15];\n\t\tint score[][]=new int[15][1000];\n\t\tdouble ans[]=new double[1000];\n\t\tint i=0;\n\t\tint count=0;\n\t\tfor(;;) {\n\t\t\tn[i]=sc.nextInt();\n\t\t\tif(n[i]==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int j=0;j<n[i];j++) {\n\t\t\t\tscore[i][j]=sc.nextInt();\n\t\t\t\t//System.out.print(i+\" \"+j+\"=\"+score[i][j]+\"\\n\");\n\t\t\t}\n\t\t\ti++;\n\t\t\tcount++;\n\t\t}\n\t\t//平均の取得\n\t\tdouble m[]=new double[15];\n\t\tint sum=0;\n\t\tfor(i=0;i<count;i++) {\n\t\t\tfor(int j=0;j<n[i];j++) {\n\t\t\t\tsum+=score[i][j];\n\t\t\t}\n\t\t\tm[i]=(double)sum/n[i];\n\t\t\t//System.out.println(i+\" \"+m[i]);\n\t\t\tsum=0;\n\t\t}\n\t\t//標準偏差\n\t\tdouble Sum=0;\n\t\tfor(i=0;i<count;i++) {\n\t\t\tfor(int j=0;j<n[i];j++) {\n\t\t\t\tSum+=(double)(score[i][j]-m[i])*(score[i][j]-m[i]);\n\t\t\t\t//System.out.print(i+\" \"+j+\":\"+Sum+\"\\n\");\n\t\t\t}\n\t\t\tans[i]=Math.sqrt((double)Sum/n[i]);\n\t\t\t//System.out.print(ans[i]);\n\t\t\tSum=0;\n\t\t}\n\t\tfor(i=0;i<count;i++) {\n\t\t\tSystem.out.printf(\"%.08f\\n\",ans[i]);\n\t\t}\n\t}\n}", "Main", "public static Scanner sc;", "sc", "public static void main(String[] args) {\n\t\tsc=new Scanner(System.in);\n\t\tint n[]=new int[15];\n\t\tint score[][]=new int[15][1000];\n\t\tdouble ans[]=new double[1000];\n\t\tint i=0;\n\t\tint count=0;\n\t\tfor(;;) {\n\t\t\tn[i]=sc.nextInt();\n\t\t\tif(n[i]==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int j=0;j<n[i];j++) {\n\t\t\t\tscore[i][j]=sc.nextInt();\n\t\t\t\t//System.out.print(i+\" \"+j+\"=\"+score[i][j]+\"\\n\");\n\t\t\t}\n\t\t\ti++;\n\t\t\tcount++;\n\t\t}\n\t\t//平均の取得\n\t\tdouble m[]=new double[15];\n\t\tint sum=0;\n\t\tfor(i=0;i<count;i++) {\n\t\t\tfor(int j=0;j<n[i];j++) {\n\t\t\t\tsum+=score[i][j];\n\t\t\t}\n\t\t\tm[i]=(double)sum/n[i];\n\t\t\t//System.out.println(i+\" \"+m[i]);\n\t\t\tsum=0;\n\t\t}\n\t\t//標準偏差\n\t\tdouble Sum=0;\n\t\tfor(i=0;i<count;i++) {\n\t\t\tfor(int j=0;j<n[i];j++) {\n\t\t\t\tSum+=(double)(score[i][j]-m[i])*(score[i][j]-m[i]);\n\t\t\t\t//System.out.print(i+\" \"+j+\":\"+Sum+\"\\n\");\n\t\t\t}\n\t\t\tans[i]=Math.sqrt((double)Sum/n[i]);\n\t\t\t//System.out.print(ans[i]);\n\t\t\tSum=0;\n\t\t}\n\t\tfor(i=0;i<count;i++) {\n\t\t\tSystem.out.printf(\"%.08f\\n\",ans[i]);\n\t\t}\n\t}", "main", "{\n\t\tsc=new Scanner(System.in);\n\t\tint n[]=new int[15];\n\t\tint score[][]=new int[15][1000];\n\t\tdouble ans[]=new double[1000];\n\t\tint i=0;\n\t\tint count=0;\n\t\tfor(;;) {\n\t\t\tn[i]=sc.nextInt();\n\t\t\tif(n[i]==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int j=0;j<n[i];j++) {\n\t\t\t\tscore[i][j]=sc.nextInt();\n\t\t\t\t//System.out.print(i+\" \"+j+\"=\"+score[i][j]+\"\\n\");\n\t\t\t}\n\t\t\ti++;\n\t\t\tcount++;\n\t\t}\n\t\t//平均の取得\n\t\tdouble m[]=new double[15];\n\t\tint sum=0;\n\t\tfor(i=0;i<count;i++) {\n\t\t\tfor(int j=0;j<n[i];j++) {\n\t\t\t\tsum+=score[i][j];\n\t\t\t}\n\t\t\tm[i]=(double)sum/n[i];\n\t\t\t//System.out.println(i+\" \"+m[i]);\n\t\t\tsum=0;\n\t\t}\n\t\t//標準偏差\n\t\tdouble Sum=0;\n\t\tfor(i=0;i<count;i++) {\n\t\t\tfor(int j=0;j<n[i];j++) {\n\t\t\t\tSum+=(double)(score[i][j]-m[i])*(score[i][j]-m[i]);\n\t\t\t\t//System.out.print(i+\" \"+j+\":\"+Sum+\"\\n\");\n\t\t\t}\n\t\t\tans[i]=Math.sqrt((double)Sum/n[i]);\n\t\t\t//System.out.print(ans[i]);\n\t\t\tSum=0;\n\t\t}\n\t\tfor(i=0;i<count;i++) {\n\t\t\tSystem.out.printf(\"%.08f\\n\",ans[i]);\n\t\t}\n\t}", "sc=new Scanner(System.in)", "sc", "new Scanner(System.in)", "int n[]=new int[15];", "n", "new int[15]", "15", "int score[][]=new int[15][1000];", "score", "new int[15][1000]", "15", "1000", "double ans[]=new double[1000];", "ans", "new double[1000]", "1000", "int i=0;", "i", "0", "int count=0;", "count", "0", "for(;;) {\n\t\t\tn[i]=sc.nextInt();\n\t\t\tif(n[i]==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int j=0;j<n[i];j++) {\n\t\t\t\tscore[i][j]=sc.nextInt();\n\t\t\t\t//System.out.print(i+\" \"+j+\"=\"+score[i][j]+\"\\n\");\n\t\t\t}\n\t\t\ti++;\n\t\t\tcount++;\n\t\t}", ";", "{\n\t\t\tn[i]=sc.nextInt();\n\t\t\tif(n[i]==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int j=0;j<n[i];j++) {\n\t\t\t\tscore[i][j]=sc.nextInt();\n\t\t\t\t//System.out.print(i+\" \"+j+\"=\"+score[i][j]+\"\\n\");\n\t\t\t}\n\t\t\ti++;\n\t\t\tcount++;\n\t\t}", "{\n\t\t\tn[i]=sc.nextInt();\n\t\t\tif(n[i]==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int j=0;j<n[i];j++) {\n\t\t\t\tscore[i][j]=sc.nextInt();\n\t\t\t\t//System.out.print(i+\" \"+j+\"=\"+score[i][j]+\"\\n\");\n\t\t\t}\n\t\t\ti++;\n\t\t\tcount++;\n\t\t}", "n[i]=sc.nextInt()", "n[i]", "n", "i", "sc.nextInt()", "sc.nextInt", "sc", "if(n[i]==0) {\n\t\t\t\tbreak;\n\t\t\t}", "n[i]==0", "n[i]", "n", "i", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "for(int j=0;j<n[i];j++) {\n\t\t\t\tscore[i][j]=sc.nextInt();\n\t\t\t\t//System.out.print(i+\" \"+j+\"=\"+score[i][j]+\"\\n\");\n\t\t\t}", "int j=0;", "int j=0;", "j", "0", "j<n[i]", "j", "n[i]", "n", "i", "j++", "j++", "j", "{\n\t\t\t\tscore[i][j]=sc.nextInt();\n\t\t\t\t//System.out.print(i+\" \"+j+\"=\"+score[i][j]+\"\\n\");\n\t\t\t}", "{\n\t\t\t\tscore[i][j]=sc.nextInt();\n\t\t\t\t//System.out.print(i+\" \"+j+\"=\"+score[i][j]+\"\\n\");\n\t\t\t}", "score[i][j]=sc.nextInt()", "score[i][j]", "score[i]", "score", "i", "j", "sc.nextInt()", "sc.nextInt", "sc", "i++", "i", "count++", "count", "double m[]=new double[15];", "m", "new double[15]", "15", "int sum=0;", "sum", "0", "for(i=0;i<count;i++) {\n\t\t\tfor(int j=0;j<n[i];j++) {\n\t\t\t\tsum+=score[i][j];\n\t\t\t}\n\t\t\tm[i]=(double)sum/n[i];\n\t\t\t//System.out.println(i+\" \"+m[i]);\n\t\t\tsum=0;\n\t\t}", "i=0;", "i=0", "i", "0", "i<count", "i", "count", "i++", "i++", "i", "{\n\t\t\tfor(int j=0;j<n[i];j++) {\n\t\t\t\tsum+=score[i][j];\n\t\t\t}\n\t\t\tm[i]=(double)sum/n[i];\n\t\t\t//System.out.println(i+\" \"+m[i]);\n\t\t\tsum=0;\n\t\t}", "{\n\t\t\tfor(int j=0;j<n[i];j++) {\n\t\t\t\tsum+=score[i][j];\n\t\t\t}\n\t\t\tm[i]=(double)sum/n[i];\n\t\t\t//System.out.println(i+\" \"+m[i]);\n\t\t\tsum=0;\n\t\t}", "for(int j=0;j<n[i];j++) {\n\t\t\t\tsum+=score[i][j];\n\t\t\t}", "int j=0;", "int j=0;", "j", "0", "j<n[i]", "j", "n[i]", "n", "i", "j++", "j++", "j", "{\n\t\t\t\tsum+=score[i][j];\n\t\t\t}", "{\n\t\t\t\tsum+=score[i][j];\n\t\t\t}", "sum+=score[i][j]", "sum", "score[i][j]", "score[i]", "score", "i", "j", "m[i]=(double)sum/n[i]", "m[i]", "m", "i", "(double)sum/n[i]", "(double)sum", "n[i]", "n", "i", "sum=0", "sum", "0", "double Sum=0;", "Sum", "0", "for(i=0;i<count;i++) {\n\t\t\tfor(int j=0;j<n[i];j++) {\n\t\t\t\tSum+=(double)(score[i][j]-m[i])*(score[i][j]-m[i]);\n\t\t\t\t//System.out.print(i+\" \"+j+\":\"+Sum+\"\\n\");\n\t\t\t}\n\t\t\tans[i]=Math.sqrt((double)Sum/n[i]);\n\t\t\t//System.out.print(ans[i]);\n\t\t\tSum=0;\n\t\t}", "i=0;", "i=0", "i", "0", "i<count", "i", "count", "i++", "i++", "i", "{\n\t\t\tfor(int j=0;j<n[i];j++) {\n\t\t\t\tSum+=(double)(score[i][j]-m[i])*(score[i][j]-m[i]);\n\t\t\t\t//System.out.print(i+\" \"+j+\":\"+Sum+\"\\n\");\n\t\t\t}\n\t\t\tans[i]=Math.sqrt((double)Sum/n[i]);\n\t\t\t//System.out.print(ans[i]);\n\t\t\tSum=0;\n\t\t}", "{\n\t\t\tfor(int j=0;j<n[i];j++) {\n\t\t\t\tSum+=(double)(score[i][j]-m[i])*(score[i][j]-m[i]);\n\t\t\t\t//System.out.print(i+\" \"+j+\":\"+Sum+\"\\n\");\n\t\t\t}\n\t\t\tans[i]=Math.sqrt((double)Sum/n[i]);\n\t\t\t//System.out.print(ans[i]);\n\t\t\tSum=0;\n\t\t}", "for(int j=0;j<n[i];j++) {\n\t\t\t\tSum+=(double)(score[i][j]-m[i])*(score[i][j]-m[i]);\n\t\t\t\t//System.out.print(i+\" \"+j+\":\"+Sum+\"\\n\");\n\t\t\t}", "int j=0;", "int j=0;", "j", "0", "j<n[i]", "j", "n[i]", "n", "i", "j++", "j++", "j", "{\n\t\t\t\tSum+=(double)(score[i][j]-m[i])*(score[i][j]-m[i]);\n\t\t\t\t//System.out.print(i+\" \"+j+\":\"+Sum+\"\\n\");\n\t\t\t}", "{\n\t\t\t\tSum+=(double)(score[i][j]-m[i])*(score[i][j]-m[i]);\n\t\t\t\t//System.out.print(i+\" \"+j+\":\"+Sum+\"\\n\");\n\t\t\t}", "Sum+=(double)(score[i][j]-m[i])*(score[i][j]-m[i])", "Sum", "(double)(score[i][j]-m[i])*(score[i][j]-m[i])", "(double)(score[i][j]-m[i])", "score[i][j]", "score[i]", "score", "i", "j", "m[i]", "m", "i", "(score[i][j]-m[i])", "score[i][j]", "score[i]", "score", "i", "j", "m[i]", "m", "i", "ans[i]=Math.sqrt((double)Sum/n[i])", "ans[i]", "ans", "i", "Math.sqrt((double)Sum/n[i])", "Math.sqrt", "Math", "(double)Sum/n[i]", "(double)Sum", "n[i]", "n", "i", "Sum=0", "Sum", "0", "for(i=0;i<count;i++) {\n\t\t\tSystem.out.printf(\"%.08f\\n\",ans[i]);\n\t\t}", "i=0;", "i=0", "i", "0", "i<count", "i", "count", "i++", "i++", "i", "{\n\t\t\tSystem.out.printf(\"%.08f\\n\",ans[i]);\n\t\t}", "{\n\t\t\tSystem.out.printf(\"%.08f\\n\",ans[i]);\n\t\t}", "System.out.printf(\"%.08f\\n\",ans[i])", "System.out.printf", "System.out", "System", "System.out", "\"%.08f\\n\"", "ans[i]", "ans", "i", "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\tint n[]=new int[15];\n\t\tint score[][]=new int[15][1000];\n\t\tdouble ans[]=new double[1000];\n\t\tint i=0;\n\t\tint count=0;\n\t\tfor(;;) {\n\t\t\tn[i]=sc.nextInt();\n\t\t\tif(n[i]==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int j=0;j<n[i];j++) {\n\t\t\t\tscore[i][j]=sc.nextInt();\n\t\t\t\t//System.out.print(i+\" \"+j+\"=\"+score[i][j]+\"\\n\");\n\t\t\t}\n\t\t\ti++;\n\t\t\tcount++;\n\t\t}\n\t\t//平均の取得\n\t\tdouble m[]=new double[15];\n\t\tint sum=0;\n\t\tfor(i=0;i<count;i++) {\n\t\t\tfor(int j=0;j<n[i];j++) {\n\t\t\t\tsum+=score[i][j];\n\t\t\t}\n\t\t\tm[i]=(double)sum/n[i];\n\t\t\t//System.out.println(i+\" \"+m[i]);\n\t\t\tsum=0;\n\t\t}\n\t\t//標準偏差\n\t\tdouble Sum=0;\n\t\tfor(i=0;i<count;i++) {\n\t\t\tfor(int j=0;j<n[i];j++) {\n\t\t\t\tSum+=(double)(score[i][j]-m[i])*(score[i][j]-m[i]);\n\t\t\t\t//System.out.print(i+\" \"+j+\":\"+Sum+\"\\n\");\n\t\t\t}\n\t\t\tans[i]=Math.sqrt((double)Sum/n[i]);\n\t\t\t//System.out.print(ans[i]);\n\t\t\tSum=0;\n\t\t}\n\t\tfor(i=0;i<count;i++) {\n\t\t\tSystem.out.printf(\"%.08f\\n\",ans[i]);\n\t\t}\n\t}\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\tint n[]=new int[15];\n\t\tint score[][]=new int[15][1000];\n\t\tdouble ans[]=new double[1000];\n\t\tint i=0;\n\t\tint count=0;\n\t\tfor(;;) {\n\t\t\tn[i]=sc.nextInt();\n\t\t\tif(n[i]==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int j=0;j<n[i];j++) {\n\t\t\t\tscore[i][j]=sc.nextInt();\n\t\t\t\t//System.out.print(i+\" \"+j+\"=\"+score[i][j]+\"\\n\");\n\t\t\t}\n\t\t\ti++;\n\t\t\tcount++;\n\t\t}\n\t\t//平均の取得\n\t\tdouble m[]=new double[15];\n\t\tint sum=0;\n\t\tfor(i=0;i<count;i++) {\n\t\t\tfor(int j=0;j<n[i];j++) {\n\t\t\t\tsum+=score[i][j];\n\t\t\t}\n\t\t\tm[i]=(double)sum/n[i];\n\t\t\t//System.out.println(i+\" \"+m[i]);\n\t\t\tsum=0;\n\t\t}\n\t\t//標準偏差\n\t\tdouble Sum=0;\n\t\tfor(i=0;i<count;i++) {\n\t\t\tfor(int j=0;j<n[i];j++) {\n\t\t\t\tSum+=(double)(score[i][j]-m[i])*(score[i][j]-m[i]);\n\t\t\t\t//System.out.print(i+\" \"+j+\":\"+Sum+\"\\n\");\n\t\t\t}\n\t\t\tans[i]=Math.sqrt((double)Sum/n[i]);\n\t\t\t//System.out.print(ans[i]);\n\t\t\tSum=0;\n\t\t}\n\t\tfor(i=0;i<count;i++) {\n\t\t\tSystem.out.printf(\"%.08f\\n\",ans[i]);\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static Scanner sc; public static void main(String[] args) { sc=new Scanner(System.in); int n[]=new int[15]; int score[][]=new int[15][1000]; double ans[]=new double[1000]; int i=0; int count=0; for(;;) { n[i]=sc.nextInt(); if(n[i]==0) { break; } for(int j=0;j<n[i];j++) { score[i][j]=sc.nextInt(); //System.out.print(i+" "+j+"="+score[i][j]+"\n"); } i++; count++; } //平均の取得 double m[]=new double[15]; int sum=0; for(i=0;i<count;i++) { for(int j=0;j<n[i];j++) { sum+=score[i][j]; } m[i]=(double)sum/n[i]; //System.out.println(i+" "+m[i]); sum=0; } //標準偏差 double Sum=0; for(i=0;i<count;i++) { for(int j=0;j<n[i];j++) { Sum+=(double)(score[i][j]-m[i])*(score[i][j]-m[i]); //System.out.print(i+" "+j+":"+Sum+"\n"); } ans[i]=Math.sqrt((double)Sum/n[i]); //System.out.print(ans[i]); Sum=0; } for(i=0;i<count;i++) { System.out.printf("%.08f\n",ans[i]); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 38, 30, 14, 2, 13, 17, 4, 18, 13, 30, 0, 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, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 41, 13, 4, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 4, 13, 2, 18, 13, 13, 13, 17, 13, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 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, 29, 2, 13, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 149, 8 ], [ 149, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 22, 23 ], [ 15, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 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 ], [ 52, 53 ], [ 52, 54 ], [ 45, 55 ], [ 55, 56 ], [ 56, 57 ], [ 45, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 65, 66 ], [ 30, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 30, 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 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 91, 98 ], [ 90, 99 ], [ 30, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 30, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 9, 112 ], [ 112, 113 ], [ 149, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 120, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 127, 129 ], [ 120, 130 ], [ 130, 131 ], [ 131, 132 ], [ 120, 133 ], [ 134, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 137, 139 ], [ 116, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 143, 145 ], [ 114, 146 ], [ 146, 147 ], [ 0, 148 ], [ 148, 149 ], [ 148, 150 ] ]
[ "import static java.lang.Math.*;\n\nimport java.util.Scanner;\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = null;\n\t\ttry{\n\t\t\tscan = new Scanner(System.in);\n\t\t\twhile(true){\n\t\t\t\tint n = scan.nextInt();\n\t\t\t\tif(n == 0)break;\n\t\t\t\tint[] data = new int[n];\n\t\t\t\tfor(int i = 0 ; i < data.length;i++){\n\t\t\t\t\tdata[i] = scan.nextInt();\n\t\t\t\t}\n\t\t\t\tdouble ave = ave(data);\n\t\t\t\tdouble alpha = 0;\n\t\t\t\tfor(int i = 0 ; i < n;i++){\n\t\t\t\t\talpha += pow((data[i] - ave),2) / n;\n\t\t\t\t}\n\t\t\t\talpha =Math.sqrt(alpha);\n\t\t\t\tSystem.out.println(alpha);\n\t\t\t}\n\t\t}finally{\n\t\t\tif(scan!=null)scan.close();\n\t\t}\n\t}\n\tpublic static double ave (int [] data){\n\t\tdouble sum = 0;\n\t\tfor(int i = 0 ; i < data.length;i++){\n\t\t\tsum += data[i];\n\t\t}\n\t\treturn sum / data.length;\n\t}\n}", "import static java.lang.Math.*;", "import static java.lang.Math.*;", "import static java.lang.Math.*;", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = null;\n\t\ttry{\n\t\t\tscan = new Scanner(System.in);\n\t\t\twhile(true){\n\t\t\t\tint n = scan.nextInt();\n\t\t\t\tif(n == 0)break;\n\t\t\t\tint[] data = new int[n];\n\t\t\t\tfor(int i = 0 ; i < data.length;i++){\n\t\t\t\t\tdata[i] = scan.nextInt();\n\t\t\t\t}\n\t\t\t\tdouble ave = ave(data);\n\t\t\t\tdouble alpha = 0;\n\t\t\t\tfor(int i = 0 ; i < n;i++){\n\t\t\t\t\talpha += pow((data[i] - ave),2) / n;\n\t\t\t\t}\n\t\t\t\talpha =Math.sqrt(alpha);\n\t\t\t\tSystem.out.println(alpha);\n\t\t\t}\n\t\t}finally{\n\t\t\tif(scan!=null)scan.close();\n\t\t}\n\t}\n\tpublic static double ave (int [] data){\n\t\tdouble sum = 0;\n\t\tfor(int i = 0 ; i < data.length;i++){\n\t\t\tsum += data[i];\n\t\t}\n\t\treturn sum / data.length;\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner scan = null;\n\t\ttry{\n\t\t\tscan = new Scanner(System.in);\n\t\t\twhile(true){\n\t\t\t\tint n = scan.nextInt();\n\t\t\t\tif(n == 0)break;\n\t\t\t\tint[] data = new int[n];\n\t\t\t\tfor(int i = 0 ; i < data.length;i++){\n\t\t\t\t\tdata[i] = scan.nextInt();\n\t\t\t\t}\n\t\t\t\tdouble ave = ave(data);\n\t\t\t\tdouble alpha = 0;\n\t\t\t\tfor(int i = 0 ; i < n;i++){\n\t\t\t\t\talpha += pow((data[i] - ave),2) / n;\n\t\t\t\t}\n\t\t\t\talpha =Math.sqrt(alpha);\n\t\t\t\tSystem.out.println(alpha);\n\t\t\t}\n\t\t}finally{\n\t\t\tif(scan!=null)scan.close();\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = null;\n\t\ttry{\n\t\t\tscan = new Scanner(System.in);\n\t\t\twhile(true){\n\t\t\t\tint n = scan.nextInt();\n\t\t\t\tif(n == 0)break;\n\t\t\t\tint[] data = new int[n];\n\t\t\t\tfor(int i = 0 ; i < data.length;i++){\n\t\t\t\t\tdata[i] = scan.nextInt();\n\t\t\t\t}\n\t\t\t\tdouble ave = ave(data);\n\t\t\t\tdouble alpha = 0;\n\t\t\t\tfor(int i = 0 ; i < n;i++){\n\t\t\t\t\talpha += pow((data[i] - ave),2) / n;\n\t\t\t\t}\n\t\t\t\talpha =Math.sqrt(alpha);\n\t\t\t\tSystem.out.println(alpha);\n\t\t\t}\n\t\t}finally{\n\t\t\tif(scan!=null)scan.close();\n\t\t}\n\t}", "Scanner scan = null;", "scan", "null", "try{\n\t\t\tscan = new Scanner(System.in);\n\t\t\twhile(true){\n\t\t\t\tint n = scan.nextInt();\n\t\t\t\tif(n == 0)break;\n\t\t\t\tint[] data = new int[n];\n\t\t\t\tfor(int i = 0 ; i < data.length;i++){\n\t\t\t\t\tdata[i] = scan.nextInt();\n\t\t\t\t}\n\t\t\t\tdouble ave = ave(data);\n\t\t\t\tdouble alpha = 0;\n\t\t\t\tfor(int i = 0 ; i < n;i++){\n\t\t\t\t\talpha += pow((data[i] - ave),2) / n;\n\t\t\t\t}\n\t\t\t\talpha =Math.sqrt(alpha);\n\t\t\t\tSystem.out.println(alpha);\n\t\t\t}\n\t\t}finally{\n\t\t\tif(scan!=null)scan.close();\n\t\t}", "{\n\t\t\tif(scan!=null)scan.close();\n\t\t}", "if(scan!=null)scan.close();", "scan!=null", "scan", "null", "scan.close()", "scan.close", "scan", "{\n\t\t\tscan = new Scanner(System.in);\n\t\t\twhile(true){\n\t\t\t\tint n = scan.nextInt();\n\t\t\t\tif(n == 0)break;\n\t\t\t\tint[] data = new int[n];\n\t\t\t\tfor(int i = 0 ; i < data.length;i++){\n\t\t\t\t\tdata[i] = scan.nextInt();\n\t\t\t\t}\n\t\t\t\tdouble ave = ave(data);\n\t\t\t\tdouble alpha = 0;\n\t\t\t\tfor(int i = 0 ; i < n;i++){\n\t\t\t\t\talpha += pow((data[i] - ave),2) / n;\n\t\t\t\t}\n\t\t\t\talpha =Math.sqrt(alpha);\n\t\t\t\tSystem.out.println(alpha);\n\t\t\t}\n\t\t}", "scan = new Scanner(System.in)", "scan", "new Scanner(System.in)", "while(true){\n\t\t\t\tint n = scan.nextInt();\n\t\t\t\tif(n == 0)break;\n\t\t\t\tint[] data = new int[n];\n\t\t\t\tfor(int i = 0 ; i < data.length;i++){\n\t\t\t\t\tdata[i] = scan.nextInt();\n\t\t\t\t}\n\t\t\t\tdouble ave = ave(data);\n\t\t\t\tdouble alpha = 0;\n\t\t\t\tfor(int i = 0 ; i < n;i++){\n\t\t\t\t\talpha += pow((data[i] - ave),2) / n;\n\t\t\t\t}\n\t\t\t\talpha =Math.sqrt(alpha);\n\t\t\t\tSystem.out.println(alpha);\n\t\t\t}", "true", "{\n\t\t\t\tint n = scan.nextInt();\n\t\t\t\tif(n == 0)break;\n\t\t\t\tint[] data = new int[n];\n\t\t\t\tfor(int i = 0 ; i < data.length;i++){\n\t\t\t\t\tdata[i] = scan.nextInt();\n\t\t\t\t}\n\t\t\t\tdouble ave = ave(data);\n\t\t\t\tdouble alpha = 0;\n\t\t\t\tfor(int i = 0 ; i < n;i++){\n\t\t\t\t\talpha += pow((data[i] - ave),2) / n;\n\t\t\t\t}\n\t\t\t\talpha =Math.sqrt(alpha);\n\t\t\t\tSystem.out.println(alpha);\n\t\t\t}", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "if(n == 0)break;", "n == 0", "n", "0", "break;", "int[] data = new int[n];", "data", "new int[n]", "n", "for(int i = 0 ; i < data.length;i++){\n\t\t\t\t\tdata[i] = scan.nextInt();\n\t\t\t\t}", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < data.length", "i", "data.length", "data", "data.length", "i++", "i++", "i", "{\n\t\t\t\t\tdata[i] = scan.nextInt();\n\t\t\t\t}", "{\n\t\t\t\t\tdata[i] = scan.nextInt();\n\t\t\t\t}", "data[i] = scan.nextInt()", "data[i]", "data", "i", "scan.nextInt()", "scan.nextInt", "scan", "double ave = ave(data);", "ave", "ave(data)", "ave", "data", "double alpha = 0;", "alpha", "0", "for(int i = 0 ; i < n;i++){\n\t\t\t\t\talpha += pow((data[i] - ave),2) / n;\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\talpha += pow((data[i] - ave),2) / n;\n\t\t\t\t}", "{\n\t\t\t\t\talpha += pow((data[i] - ave),2) / n;\n\t\t\t\t}", "alpha += pow((data[i] - ave),2) / n", "alpha", "pow((data[i] - ave),2) / n", "pow((data[i] - ave),2)", "pow", "(data[i] - ave)", "data[i]", "data", "i", "ave", "2", "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 static double ave (int [] data){\n\t\tdouble sum = 0;\n\t\tfor(int i = 0 ; i < data.length;i++){\n\t\t\tsum += data[i];\n\t\t}\n\t\treturn sum / data.length;\n\t}", "ave", "{\n\t\tdouble sum = 0;\n\t\tfor(int i = 0 ; i < data.length;i++){\n\t\t\tsum += data[i];\n\t\t}\n\t\treturn sum / data.length;\n\t}", "double sum = 0;", "sum", "0", "for(int i = 0 ; i < data.length;i++){\n\t\t\tsum += data[i];\n\t\t}", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < data.length", "i", "data.length", "data", "data.length", "i++", "i++", "i", "{\n\t\t\tsum += data[i];\n\t\t}", "{\n\t\t\tsum += data[i];\n\t\t}", "sum += data[i]", "sum", "data[i]", "data", "i", "return sum / data.length;", "sum / data.length", "sum", "data.length", "data", "data.length", "int [] data", "data", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = null;\n\t\ttry{\n\t\t\tscan = new Scanner(System.in);\n\t\t\twhile(true){\n\t\t\t\tint n = scan.nextInt();\n\t\t\t\tif(n == 0)break;\n\t\t\t\tint[] data = new int[n];\n\t\t\t\tfor(int i = 0 ; i < data.length;i++){\n\t\t\t\t\tdata[i] = scan.nextInt();\n\t\t\t\t}\n\t\t\t\tdouble ave = ave(data);\n\t\t\t\tdouble alpha = 0;\n\t\t\t\tfor(int i = 0 ; i < n;i++){\n\t\t\t\t\talpha += pow((data[i] - ave),2) / n;\n\t\t\t\t}\n\t\t\t\talpha =Math.sqrt(alpha);\n\t\t\t\tSystem.out.println(alpha);\n\t\t\t}\n\t\t}finally{\n\t\t\tif(scan!=null)scan.close();\n\t\t}\n\t}\n\tpublic static double ave (int [] data){\n\t\tdouble sum = 0;\n\t\tfor(int i = 0 ; i < data.length;i++){\n\t\t\tsum += data[i];\n\t\t}\n\t\treturn sum / data.length;\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = null;\n\t\ttry{\n\t\t\tscan = new Scanner(System.in);\n\t\t\twhile(true){\n\t\t\t\tint n = scan.nextInt();\n\t\t\t\tif(n == 0)break;\n\t\t\t\tint[] data = new int[n];\n\t\t\t\tfor(int i = 0 ; i < data.length;i++){\n\t\t\t\t\tdata[i] = scan.nextInt();\n\t\t\t\t}\n\t\t\t\tdouble ave = ave(data);\n\t\t\t\tdouble alpha = 0;\n\t\t\t\tfor(int i = 0 ; i < n;i++){\n\t\t\t\t\talpha += pow((data[i] - ave),2) / n;\n\t\t\t\t}\n\t\t\t\talpha =Math.sqrt(alpha);\n\t\t\t\tSystem.out.println(alpha);\n\t\t\t}\n\t\t}finally{\n\t\t\tif(scan!=null)scan.close();\n\t\t}\n\t}\n\tpublic static double ave (int [] data){\n\t\tdouble sum = 0;\n\t\tfor(int i = 0 ; i < data.length;i++){\n\t\t\tsum += data[i];\n\t\t}\n\t\treturn sum / data.length;\n\t}\n}", "Main" ]
import static java.lang.Math.*; import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = null; try{ scan = new Scanner(System.in); while(true){ int n = scan.nextInt(); if(n == 0)break; int[] data = new int[n]; for(int i = 0 ; i < data.length;i++){ data[i] = scan.nextInt(); } double ave = ave(data); double alpha = 0; for(int i = 0 ; i < n;i++){ alpha += pow((data[i] - ave),2) / n; } alpha =Math.sqrt(alpha); System.out.println(alpha); } }finally{ if(scan!=null)scan.close(); } } public static double ave (int [] data){ double sum = 0; for(int i = 0 ; i < data.length;i++){ sum += data[i]; } return sum / data.length; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 14, 2, 13, 17, 3, 41, 13, 20, 13, 41, 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, 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, 4, 18, 13, 2, 13, 13, 4, 18, 18, 13, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 114, 5 ], [ 114, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 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 ], [ 17, 34 ], [ 34, 35 ], [ 34, 36 ], [ 17, 37 ], [ 37, 38 ], [ 37, 39 ], [ 17, 40 ], [ 40, 41 ], [ 17, 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 ], [ 17, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 17, 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 ], [ 87, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 87, 95 ], [ 17, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 101, 102 ], [ 101, 103 ], [ 17, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 104, 110 ], [ 6, 111 ], [ 111, 112 ], [ 0, 113 ], [ 113, 114 ], [ 113, 115 ] ]
[ "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 = 100;\n\n while(true){\n n = sc.nextInt();\n if(n==0) break;\n double s[] = new double[n];\n double m, sum = 0d, sum2 = 0d;\n double result;\n\n for(int i=0; i<n; i++){\n s[i] = (double)sc.nextInt();\n sum += s[i]; \n }\n m = sum / n;\n\n for(int i=0; i<n; i++){\n sum2 += Math.pow(s[i]-m, 2);\n }\n result = Math.sqrt(sum2/n); \n\n System.out.printf(\"%.8f\\n\", result);\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 = 100;\n\n while(true){\n n = sc.nextInt();\n if(n==0) break;\n double s[] = new double[n];\n double m, sum = 0d, sum2 = 0d;\n double result;\n\n for(int i=0; i<n; i++){\n s[i] = (double)sc.nextInt();\n sum += s[i]; \n }\n m = sum / n;\n\n for(int i=0; i<n; i++){\n sum2 += Math.pow(s[i]-m, 2);\n }\n result = Math.sqrt(sum2/n); \n\n System.out.printf(\"%.8f\\n\", result);\n }\n }\n}", "Main", "public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int n = 100;\n\n while(true){\n n = sc.nextInt();\n if(n==0) break;\n double s[] = new double[n];\n double m, sum = 0d, sum2 = 0d;\n double result;\n\n for(int i=0; i<n; i++){\n s[i] = (double)sc.nextInt();\n sum += s[i]; \n }\n m = sum / n;\n\n for(int i=0; i<n; i++){\n sum2 += Math.pow(s[i]-m, 2);\n }\n result = Math.sqrt(sum2/n); \n\n System.out.printf(\"%.8f\\n\", result);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = 100;\n\n while(true){\n n = sc.nextInt();\n if(n==0) break;\n double s[] = new double[n];\n double m, sum = 0d, sum2 = 0d;\n double result;\n\n for(int i=0; i<n; i++){\n s[i] = (double)sc.nextInt();\n sum += s[i]; \n }\n m = sum / n;\n\n for(int i=0; i<n; i++){\n sum2 += Math.pow(s[i]-m, 2);\n }\n result = Math.sqrt(sum2/n); \n\n System.out.printf(\"%.8f\\n\", result);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = 100;", "n", "100", "while(true){\n n = sc.nextInt();\n if(n==0) break;\n double s[] = new double[n];\n double m, sum = 0d, sum2 = 0d;\n double result;\n\n for(int i=0; i<n; i++){\n s[i] = (double)sc.nextInt();\n sum += s[i]; \n }\n m = sum / n;\n\n for(int i=0; i<n; i++){\n sum2 += Math.pow(s[i]-m, 2);\n }\n result = Math.sqrt(sum2/n); \n\n System.out.printf(\"%.8f\\n\", result);\n }", "true", "{\n n = sc.nextInt();\n if(n==0) break;\n double s[] = new double[n];\n double m, sum = 0d, sum2 = 0d;\n double result;\n\n for(int i=0; i<n; i++){\n s[i] = (double)sc.nextInt();\n sum += s[i]; \n }\n m = sum / n;\n\n for(int i=0; i<n; i++){\n sum2 += Math.pow(s[i]-m, 2);\n }\n result = Math.sqrt(sum2/n); \n\n System.out.printf(\"%.8f\\n\", result);\n }", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n==0) break;", "n==0", "n", "0", "break;", "double s[] = new double[n];", "s", "new double[n]", "n", "double m", "m", "sum = 0d", "sum", "0d", "sum2 = 0d;", "sum2", "0d", "double result;", "result", "for(int i=0; i<n; i++){\n s[i] = (double)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] = (double)sc.nextInt();\n sum += s[i]; \n }", "{\n s[i] = (double)sc.nextInt();\n sum += s[i]; \n }", "s[i] = (double)sc.nextInt()", "s[i]", "s", "i", "(double)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 sum2 += Math.pow(s[i]-m, 2);\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n sum2 += Math.pow(s[i]-m, 2);\n }", "{\n sum2 += Math.pow(s[i]-m, 2);\n }", "sum2 += Math.pow(s[i]-m, 2)", "sum2", "Math.pow(s[i]-m, 2)", "Math.pow", "Math", "s[i]-m", "s[i]", "s", "i", "m", "2", "result = Math.sqrt(sum2/n)", "result", "Math.sqrt(sum2/n)", "Math.sqrt", "Math", "sum2/n", "sum2", "n", "System.out.printf(\"%.8f\\n\", result)", "System.out.printf", "System.out", "System", "System.out", "\"%.8f\\n\"", "result", "String args[]", "args", "public class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int n = 100;\n\n while(true){\n n = sc.nextInt();\n if(n==0) break;\n double s[] = new double[n];\n double m, sum = 0d, sum2 = 0d;\n double result;\n\n for(int i=0; i<n; i++){\n s[i] = (double)sc.nextInt();\n sum += s[i]; \n }\n m = sum / n;\n\n for(int i=0; i<n; i++){\n sum2 += Math.pow(s[i]-m, 2);\n }\n result = Math.sqrt(sum2/n); \n\n System.out.printf(\"%.8f\\n\", result);\n }\n }\n}", "public class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int n = 100;\n\n while(true){\n n = sc.nextInt();\n if(n==0) break;\n double s[] = new double[n];\n double m, sum = 0d, sum2 = 0d;\n double result;\n\n for(int i=0; i<n; i++){\n s[i] = (double)sc.nextInt();\n sum += s[i]; \n }\n m = sum / n;\n\n for(int i=0; i<n; i++){\n sum2 += Math.pow(s[i]-m, 2);\n }\n result = Math.sqrt(sum2/n); \n\n System.out.printf(\"%.8f\\n\", result);\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 = 100; while(true){ n = sc.nextInt(); if(n==0) break; double s[] = new double[n]; double m, sum = 0d, sum2 = 0d; double result; for(int i=0; i<n; i++){ s[i] = (double)sc.nextInt(); sum += s[i]; } m = sum / n; for(int i=0; i<n; i++){ sum2 += Math.pow(s[i]-m, 2); } result = Math.sqrt(sum2/n); System.out.printf("%.8f\n", result); } } }
[ 7, 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, 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, 4, 18, 13, 18, 13, 13, 17, 0, 13, 2, 13, 13, 41, 13, 2, 2, 13, 13, 4, 18, 13, 13, 17, 41, 13, 4, 18, 13, 13, 17, 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 ], [ 112, 5 ], [ 112, 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, 30 ], [ 30, 31 ], [ 30, 32 ], [ 16, 33 ], [ 33, 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 ], [ 51, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 69, 70 ], [ 69, 71 ], [ 66, 72 ], [ 16, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 16, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 84, 88 ], [ 16, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 91, 95 ], [ 16, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 101, 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 public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n;\n while(true){\n n = sc.nextInt();\n if(n==0) break;\n double sum=0;\n double sum2=0;\n double ave;\n double[] data = new double[n]; \n for(int i=0;i<n;i++){\n data[i] = sc.nextDouble();\n sum += data[i];\n sum2 += Math.pow(data[i],2);\n }\n ave = sum/(double)n;\n double bunsan=sum2/n-Math.pow(ave,2);\n double a = Math.pow(bunsan,0.5);\n System.out.println(String.format(\"%.8f\",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 n;\n while(true){\n n = sc.nextInt();\n if(n==0) break;\n double sum=0;\n double sum2=0;\n double ave;\n double[] data = new double[n]; \n for(int i=0;i<n;i++){\n data[i] = sc.nextDouble();\n sum += data[i];\n sum2 += Math.pow(data[i],2);\n }\n ave = sum/(double)n;\n double bunsan=sum2/n-Math.pow(ave,2);\n double a = Math.pow(bunsan,0.5);\n System.out.println(String.format(\"%.8f\",a));\n }\n sc.close();\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n;\n while(true){\n n = sc.nextInt();\n if(n==0) break;\n double sum=0;\n double sum2=0;\n double ave;\n double[] data = new double[n]; \n for(int i=0;i<n;i++){\n data[i] = sc.nextDouble();\n sum += data[i];\n sum2 += Math.pow(data[i],2);\n }\n ave = sum/(double)n;\n double bunsan=sum2/n-Math.pow(ave,2);\n double a = Math.pow(bunsan,0.5);\n System.out.println(String.format(\"%.8f\",a));\n }\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n;\n while(true){\n n = sc.nextInt();\n if(n==0) break;\n double sum=0;\n double sum2=0;\n double ave;\n double[] data = new double[n]; \n for(int i=0;i<n;i++){\n data[i] = sc.nextDouble();\n sum += data[i];\n sum2 += Math.pow(data[i],2);\n }\n ave = sum/(double)n;\n double bunsan=sum2/n-Math.pow(ave,2);\n double a = Math.pow(bunsan,0.5);\n System.out.println(String.format(\"%.8f\",a));\n }\n sc.close();\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) break;\n double sum=0;\n double sum2=0;\n double ave;\n double[] data = new double[n]; \n for(int i=0;i<n;i++){\n data[i] = sc.nextDouble();\n sum += data[i];\n sum2 += Math.pow(data[i],2);\n }\n ave = sum/(double)n;\n double bunsan=sum2/n-Math.pow(ave,2);\n double a = Math.pow(bunsan,0.5);\n System.out.println(String.format(\"%.8f\",a));\n }", "true", "{\n n = sc.nextInt();\n if(n==0) break;\n double sum=0;\n double sum2=0;\n double ave;\n double[] data = new double[n]; \n for(int i=0;i<n;i++){\n data[i] = sc.nextDouble();\n sum += data[i];\n sum2 += Math.pow(data[i],2);\n }\n ave = sum/(double)n;\n double bunsan=sum2/n-Math.pow(ave,2);\n double a = Math.pow(bunsan,0.5);\n System.out.println(String.format(\"%.8f\",a));\n }", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n==0) break;", "n==0", "n", "0", "break;", "double sum=0;", "sum", "0", "double sum2=0;", "sum2", "0", "double ave;", "ave", "double[] data = new double[n];", "data", "new double[n]", "n", "for(int i=0;i<n;i++){\n data[i] = sc.nextDouble();\n sum += data[i];\n sum2 += Math.pow(data[i],2);\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n data[i] = sc.nextDouble();\n sum += data[i];\n sum2 += Math.pow(data[i],2);\n }", "{\n data[i] = sc.nextDouble();\n sum += data[i];\n sum2 += Math.pow(data[i],2);\n }", "data[i] = sc.nextDouble()", "data[i]", "data", "i", "sc.nextDouble()", "sc.nextDouble", "sc", "sum += data[i]", "sum", "data[i]", "data", "i", "sum2 += Math.pow(data[i],2)", "sum2", "Math.pow(data[i],2)", "Math.pow", "Math", "data[i]", "data", "i", "2", "ave = sum/(double)n", "ave", "sum/(double)n", "sum", "(double)n", "double bunsan=sum2/n-Math.pow(ave,2);", "bunsan", "sum2/n-Math.pow(ave,2)", "sum2/n", "sum2", "n", "Math.pow(ave,2)", "Math.pow", "Math", "ave", "2", "double a = Math.pow(bunsan,0.5);", "a", "Math.pow(bunsan,0.5)", "Math.pow", "Math", "bunsan", "0.5", "System.out.println(String.format(\"%.8f\",a))", "System.out.println", "System.out", "System", "System.out", "String.format(\"%.8f\",a)", "String.format", "String", "\"%.8f\"", "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 n;\n while(true){\n n = sc.nextInt();\n if(n==0) break;\n double sum=0;\n double sum2=0;\n double ave;\n double[] data = new double[n]; \n for(int i=0;i<n;i++){\n data[i] = sc.nextDouble();\n sum += data[i];\n sum2 += Math.pow(data[i],2);\n }\n ave = sum/(double)n;\n double bunsan=sum2/n-Math.pow(ave,2);\n double a = Math.pow(bunsan,0.5);\n System.out.println(String.format(\"%.8f\",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 n;\n while(true){\n n = sc.nextInt();\n if(n==0) break;\n double sum=0;\n double sum2=0;\n double ave;\n double[] data = new double[n]; \n for(int i=0;i<n;i++){\n data[i] = sc.nextDouble();\n sum += data[i];\n sum2 += Math.pow(data[i],2);\n }\n ave = sum/(double)n;\n double bunsan=sum2/n-Math.pow(ave,2);\n double a = Math.pow(bunsan,0.5);\n System.out.println(String.format(\"%.8f\",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 n; while(true){ n = sc.nextInt(); if(n==0) break; double sum=0; double sum2=0; double ave; double[] data = new double[n]; for(int i=0;i<n;i++){ data[i] = sc.nextDouble(); sum += data[i]; sum2 += Math.pow(data[i],2); } ave = sum/(double)n; double bunsan=sum2/n-Math.pow(ave,2); double a = Math.pow(bunsan,0.5); System.out.println(String.format("%.8f",a)); } sc.close(); } }
[ 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, 4, 18, 13, 41, 13, 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, 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, 17, 4, 18, 13, 2, 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 ], [ 17, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 14, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 14, 39 ], [ 39, 40 ], [ 39, 41 ], [ 14, 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 ], [ 14, 63 ], [ 63, 64 ], [ 63, 65 ], [ 14, 66 ], [ 66, 67 ], [ 66, 68 ], [ 14, 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 ], [ 84, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 91, 92 ], [ 91, 93 ], [ 87, 94 ], [ 84, 95 ], [ 14, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 96, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 105, 106 ], [ 105, 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) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\twhile(true){\n\t\t\tint n = Integer.parseInt(scan.nextLine());\n\t\t\tif(n == 0) break;\n\t\t\tString str = scan.nextLine();\n\t\t\tString[] points = str.split(\" \");\n\t\t\t\n\t\t\tdouble m = 0.0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tm += Integer.parseInt(points[i]);\n\t\t\t}\n\t\t\tm /= n;\n\t\t\t\n\t\t\tdouble num = 0.0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tnum += Math.pow((Integer.parseInt(points[i]) - m ), 2);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.printf(\"%.8f\\n\", (Math.sqrt(num / n)));\n\t\t\t\n\t\t}\n\t\t\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\t\n\t\t\n\t\t\n\t\t\n\t\twhile(true){\n\t\t\tint n = Integer.parseInt(scan.nextLine());\n\t\t\tif(n == 0) break;\n\t\t\tString str = scan.nextLine();\n\t\t\tString[] points = str.split(\" \");\n\t\t\t\n\t\t\tdouble m = 0.0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tm += Integer.parseInt(points[i]);\n\t\t\t}\n\t\t\tm /= n;\n\t\t\t\n\t\t\tdouble num = 0.0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tnum += Math.pow((Integer.parseInt(points[i]) - m ), 2);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.printf(\"%.8f\\n\", (Math.sqrt(num / n)));\n\t\t\t\n\t\t}\n\t\t\t\t\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\twhile(true){\n\t\t\tint n = Integer.parseInt(scan.nextLine());\n\t\t\tif(n == 0) break;\n\t\t\tString str = scan.nextLine();\n\t\t\tString[] points = str.split(\" \");\n\t\t\t\n\t\t\tdouble m = 0.0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tm += Integer.parseInt(points[i]);\n\t\t\t}\n\t\t\tm /= n;\n\t\t\t\n\t\t\tdouble num = 0.0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tnum += Math.pow((Integer.parseInt(points[i]) - m ), 2);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.printf(\"%.8f\\n\", (Math.sqrt(num / n)));\n\t\t\t\n\t\t}\n\t\t\t\t\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\twhile(true){\n\t\t\tint n = Integer.parseInt(scan.nextLine());\n\t\t\tif(n == 0) break;\n\t\t\tString str = scan.nextLine();\n\t\t\tString[] points = str.split(\" \");\n\t\t\t\n\t\t\tdouble m = 0.0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tm += Integer.parseInt(points[i]);\n\t\t\t}\n\t\t\tm /= n;\n\t\t\t\n\t\t\tdouble num = 0.0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tnum += Math.pow((Integer.parseInt(points[i]) - m ), 2);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.printf(\"%.8f\\n\", (Math.sqrt(num / n)));\n\t\t\t\n\t\t}\n\t\t\t\t\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(true){\n\t\t\tint n = Integer.parseInt(scan.nextLine());\n\t\t\tif(n == 0) break;\n\t\t\tString str = scan.nextLine();\n\t\t\tString[] points = str.split(\" \");\n\t\t\t\n\t\t\tdouble m = 0.0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tm += Integer.parseInt(points[i]);\n\t\t\t}\n\t\t\tm /= n;\n\t\t\t\n\t\t\tdouble num = 0.0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tnum += Math.pow((Integer.parseInt(points[i]) - m ), 2);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.printf(\"%.8f\\n\", (Math.sqrt(num / n)));\n\t\t\t\n\t\t}", "true", "{\n\t\t\tint n = Integer.parseInt(scan.nextLine());\n\t\t\tif(n == 0) break;\n\t\t\tString str = scan.nextLine();\n\t\t\tString[] points = str.split(\" \");\n\t\t\t\n\t\t\tdouble m = 0.0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tm += Integer.parseInt(points[i]);\n\t\t\t}\n\t\t\tm /= n;\n\t\t\t\n\t\t\tdouble num = 0.0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tnum += Math.pow((Integer.parseInt(points[i]) - m ), 2);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.printf(\"%.8f\\n\", (Math.sqrt(num / n)));\n\t\t\t\n\t\t}", "int n = Integer.parseInt(scan.nextLine());", "n", "Integer.parseInt(scan.nextLine())", "Integer.parseInt", "Integer", "scan.nextLine()", "scan.nextLine", "scan", "if(n == 0) break;", "n == 0", "n", "0", "break;", "String str = scan.nextLine();", "str", "scan.nextLine()", "scan.nextLine", "scan", "String[] points = str.split(\" \");", "points", "str.split(\" \")", "str.split", "str", "\" \"", "double m = 0.0;", "m", "0.0", "for (int i = 0; i < n; i++) {\n\t\t\t\tm += Integer.parseInt(points[i]);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tm += Integer.parseInt(points[i]);\n\t\t\t}", "{\n\t\t\t\tm += Integer.parseInt(points[i]);\n\t\t\t}", "m += Integer.parseInt(points[i])", "m", "Integer.parseInt(points[i])", "Integer.parseInt", "Integer", "points[i]", "points", "i", "m /= n", "m", "n", "double num = 0.0;", "num", "0.0", "for (int i = 0; i < n; i++) {\n\t\t\t\tnum += Math.pow((Integer.parseInt(points[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\tnum += Math.pow((Integer.parseInt(points[i]) - m ), 2);\n\t\t\t}", "{\n\t\t\t\tnum += Math.pow((Integer.parseInt(points[i]) - m ), 2);\n\t\t\t}", "num += Math.pow((Integer.parseInt(points[i]) - m ), 2)", "num", "Math.pow((Integer.parseInt(points[i]) - m ), 2)", "Math.pow", "Math", "(Integer.parseInt(points[i]) - m )", "Integer.parseInt(points[i])", "Integer.parseInt", "Integer", "points[i]", "points", "i", "m", "2", "System.out.printf(\"%.8f\\n\", (Math.sqrt(num / n)))", "System.out.printf", "System.out", "System", "System.out", "\"%.8f\\n\"", "(Math.sqrt(num / n))", "Math.sqrt", "Math", "num / n", "num", "n", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\twhile(true){\n\t\t\tint n = Integer.parseInt(scan.nextLine());\n\t\t\tif(n == 0) break;\n\t\t\tString str = scan.nextLine();\n\t\t\tString[] points = str.split(\" \");\n\t\t\t\n\t\t\tdouble m = 0.0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tm += Integer.parseInt(points[i]);\n\t\t\t}\n\t\t\tm /= n;\n\t\t\t\n\t\t\tdouble num = 0.0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tnum += Math.pow((Integer.parseInt(points[i]) - m ), 2);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.printf(\"%.8f\\n\", (Math.sqrt(num / n)));\n\t\t\t\n\t\t}\n\t\t\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\t\n\t\t\n\t\t\n\t\t\n\t\twhile(true){\n\t\t\tint n = Integer.parseInt(scan.nextLine());\n\t\t\tif(n == 0) break;\n\t\t\tString str = scan.nextLine();\n\t\t\tString[] points = str.split(\" \");\n\t\t\t\n\t\t\tdouble m = 0.0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tm += Integer.parseInt(points[i]);\n\t\t\t}\n\t\t\tm /= n;\n\t\t\t\n\t\t\tdouble num = 0.0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tnum += Math.pow((Integer.parseInt(points[i]) - m ), 2);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.printf(\"%.8f\\n\", (Math.sqrt(num / n)));\n\t\t\t\n\t\t}\n\t\t\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(true){ int n = Integer.parseInt(scan.nextLine()); if(n == 0) break; String str = scan.nextLine(); String[] points = str.split(" "); double m = 0.0; for (int i = 0; i < n; i++) { m += Integer.parseInt(points[i]); } m /= n; double num = 0.0; for (int i = 0; i < n; i++) { num += Math.pow((Integer.parseInt(points[i]) - m ), 2); } System.out.printf("%.8f\n", (Math.sqrt(num / n))); } } }
[ 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, 30, 0, 13, 2, 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, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 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 ], [ 136, 5 ], [ 136, 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 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 79, 81 ], [ 16, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 16, 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 ], [ 16, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 121, 123 ], [ 16, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 129, 130 ], [ 130, 131 ], [ 129, 132 ], [ 6, 133 ], [ 133, 134 ], [ 0, 135 ], [ 135, 136 ], [ 135, 137 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry(Scanner sc=new Scanner(System.in)){\n\t\t\twhile(true) {\n\t\t\t\tint n=sc.nextInt();\n\t\t\t\tif(n==0) {break;}\n\t\t\t\tint score[]=new int[n];\n\t\t\tfor(int i=0;i<score.length;i++) {\n\t\t\t\tscore[i]=sc.nextInt();\n\t\t\t}\n\t\t\tdouble average=0, variance=0;\n\t\t\tfor(int i=0;i<score.length;i++) {\n\t\t\t\taverage=average+(double)score[i];\n\t\t\t}\n\t\t\taverage=average/(double)score.length;\n\t\t\tfor(int i=0;i<score.length;i++) {\n\t\t\t\tvariance=variance+Math.pow(score[i]-average,2.0);\n\t\t\t}\n\t\t\tvariance=variance/(double)score.length;\n\t\t\tSystem.out.println(Math.sqrt(variance));\n\t\t\t\n\t\t}\n\t}\n\t\n\n}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry(Scanner sc=new Scanner(System.in)){\n\t\t\twhile(true) {\n\t\t\t\tint n=sc.nextInt();\n\t\t\t\tif(n==0) {break;}\n\t\t\t\tint score[]=new int[n];\n\t\t\tfor(int i=0;i<score.length;i++) {\n\t\t\t\tscore[i]=sc.nextInt();\n\t\t\t}\n\t\t\tdouble average=0, variance=0;\n\t\t\tfor(int i=0;i<score.length;i++) {\n\t\t\t\taverage=average+(double)score[i];\n\t\t\t}\n\t\t\taverage=average/(double)score.length;\n\t\t\tfor(int i=0;i<score.length;i++) {\n\t\t\t\tvariance=variance+Math.pow(score[i]-average,2.0);\n\t\t\t}\n\t\t\tvariance=variance/(double)score.length;\n\t\t\tSystem.out.println(Math.sqrt(variance));\n\t\t\t\n\t\t}\n\t}\n\t\n\n}\n}", "Main", "public static void main(String[] args) {\n\t\ttry(Scanner sc=new Scanner(System.in)){\n\t\t\twhile(true) {\n\t\t\t\tint n=sc.nextInt();\n\t\t\t\tif(n==0) {break;}\n\t\t\t\tint score[]=new int[n];\n\t\t\tfor(int i=0;i<score.length;i++) {\n\t\t\t\tscore[i]=sc.nextInt();\n\t\t\t}\n\t\t\tdouble average=0, variance=0;\n\t\t\tfor(int i=0;i<score.length;i++) {\n\t\t\t\taverage=average+(double)score[i];\n\t\t\t}\n\t\t\taverage=average/(double)score.length;\n\t\t\tfor(int i=0;i<score.length;i++) {\n\t\t\t\tvariance=variance+Math.pow(score[i]-average,2.0);\n\t\t\t}\n\t\t\tvariance=variance/(double)score.length;\n\t\t\tSystem.out.println(Math.sqrt(variance));\n\t\t\t\n\t\t}\n\t}\n\t\n\n}", "main", "{\n\t\ttry(Scanner sc=new Scanner(System.in)){\n\t\t\twhile(true) {\n\t\t\t\tint n=sc.nextInt();\n\t\t\t\tif(n==0) {break;}\n\t\t\t\tint score[]=new int[n];\n\t\t\tfor(int i=0;i<score.length;i++) {\n\t\t\t\tscore[i]=sc.nextInt();\n\t\t\t}\n\t\t\tdouble average=0, variance=0;\n\t\t\tfor(int i=0;i<score.length;i++) {\n\t\t\t\taverage=average+(double)score[i];\n\t\t\t}\n\t\t\taverage=average/(double)score.length;\n\t\t\tfor(int i=0;i<score.length;i++) {\n\t\t\t\tvariance=variance+Math.pow(score[i]-average,2.0);\n\t\t\t}\n\t\t\tvariance=variance/(double)score.length;\n\t\t\tSystem.out.println(Math.sqrt(variance));\n\t\t\t\n\t\t}\n\t}\n\t\n\n}", "try(Scanner sc=new Scanner(System.in)){\n\t\t\twhile(true) {\n\t\t\t\tint n=sc.nextInt();\n\t\t\t\tif(n==0) {break;}\n\t\t\t\tint score[]=new int[n];\n\t\t\tfor(int i=0;i<score.length;i++) {\n\t\t\t\tscore[i]=sc.nextInt();\n\t\t\t}\n\t\t\tdouble average=0, variance=0;\n\t\t\tfor(int i=0;i<score.length;i++) {\n\t\t\t\taverage=average+(double)score[i];\n\t\t\t}\n\t\t\taverage=average/(double)score.length;\n\t\t\tfor(int i=0;i<score.length;i++) {\n\t\t\t\tvariance=variance+Math.pow(score[i]-average,2.0);\n\t\t\t}\n\t\t\tvariance=variance/(double)score.length;\n\t\t\tSystem.out.println(Math.sqrt(variance));\n\t\t\t\n\t\t}\n\t}", "{\n\t\t\twhile(true) {\n\t\t\t\tint n=sc.nextInt();\n\t\t\t\tif(n==0) {break;}\n\t\t\t\tint score[]=new int[n];\n\t\t\tfor(int i=0;i<score.length;i++) {\n\t\t\t\tscore[i]=sc.nextInt();\n\t\t\t}\n\t\t\tdouble average=0, variance=0;\n\t\t\tfor(int i=0;i<score.length;i++) {\n\t\t\t\taverage=average+(double)score[i];\n\t\t\t}\n\t\t\taverage=average/(double)score.length;\n\t\t\tfor(int i=0;i<score.length;i++) {\n\t\t\t\tvariance=variance+Math.pow(score[i]-average,2.0);\n\t\t\t}\n\t\t\tvariance=variance/(double)score.length;\n\t\t\tSystem.out.println(Math.sqrt(variance));\n\t\t\t\n\t\t}\n\t}", "Scanner sc=new Scanner(System.in)", "Scanner sc=new Scanner(System.in)", "new Scanner(System.in)", "while(true) {\n\t\t\t\tint n=sc.nextInt();\n\t\t\t\tif(n==0) {break;}\n\t\t\t\tint score[]=new int[n];\n\t\t\tfor(int i=0;i<score.length;i++) {\n\t\t\t\tscore[i]=sc.nextInt();\n\t\t\t}\n\t\t\tdouble average=0, variance=0;\n\t\t\tfor(int i=0;i<score.length;i++) {\n\t\t\t\taverage=average+(double)score[i];\n\t\t\t}\n\t\t\taverage=average/(double)score.length;\n\t\t\tfor(int i=0;i<score.length;i++) {\n\t\t\t\tvariance=variance+Math.pow(score[i]-average,2.0);\n\t\t\t}\n\t\t\tvariance=variance/(double)score.length;\n\t\t\tSystem.out.println(Math.sqrt(variance));\n\t\t\t\n\t\t}", "true", "{\n\t\t\t\tint n=sc.nextInt();\n\t\t\t\tif(n==0) {break;}\n\t\t\t\tint score[]=new int[n];\n\t\t\tfor(int i=0;i<score.length;i++) {\n\t\t\t\tscore[i]=sc.nextInt();\n\t\t\t}\n\t\t\tdouble average=0, variance=0;\n\t\t\tfor(int i=0;i<score.length;i++) {\n\t\t\t\taverage=average+(double)score[i];\n\t\t\t}\n\t\t\taverage=average/(double)score.length;\n\t\t\tfor(int i=0;i<score.length;i++) {\n\t\t\t\tvariance=variance+Math.pow(score[i]-average,2.0);\n\t\t\t}\n\t\t\tvariance=variance/(double)score.length;\n\t\t\tSystem.out.println(Math.sqrt(variance));\n\t\t\t\n\t\t}", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n==0) {break;}", "n==0", "n", "0", "{break;}", "break;", "int score[]=new int[n];", "score", "new int[n]", "n", "for(int i=0;i<score.length;i++) {\n\t\t\t\tscore[i]=sc.nextInt();\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<score.length", "i", "score.length", "score", "score.length", "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", "double average=0", "average", "0", "variance=0;", "variance", "0", "for(int i=0;i<score.length;i++) {\n\t\t\t\taverage=average+(double)score[i];\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<score.length", "i", "score.length", "score", "score.length", "i++", "i++", "i", "{\n\t\t\t\taverage=average+(double)score[i];\n\t\t\t}", "{\n\t\t\t\taverage=average+(double)score[i];\n\t\t\t}", "average=average+(double)score[i]", "average", "average+(double)score[i]", "average", "(double)score[i]", "score", "i", "average=average/(double)score.length", "average", "average/(double)score.length", "average", "(double)score.length", "score", "score.length", "for(int i=0;i<score.length;i++) {\n\t\t\t\tvariance=variance+Math.pow(score[i]-average,2.0);\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<score.length", "i", "score.length", "score", "score.length", "i++", "i++", "i", "{\n\t\t\t\tvariance=variance+Math.pow(score[i]-average,2.0);\n\t\t\t}", "{\n\t\t\t\tvariance=variance+Math.pow(score[i]-average,2.0);\n\t\t\t}", "variance=variance+Math.pow(score[i]-average,2.0)", "variance", "variance+Math.pow(score[i]-average,2.0)", "variance", "Math.pow(score[i]-average,2.0)", "Math.pow", "Math", "score[i]-average", "score[i]", "score", "i", "average", "2.0", "variance=variance/(double)score.length", "variance", "variance/(double)score.length", "variance", "(double)score.length", "score", "score.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\tpublic static void main(String[] args) {\n\t\ttry(Scanner sc=new Scanner(System.in)){\n\t\t\twhile(true) {\n\t\t\t\tint n=sc.nextInt();\n\t\t\t\tif(n==0) {break;}\n\t\t\t\tint score[]=new int[n];\n\t\t\tfor(int i=0;i<score.length;i++) {\n\t\t\t\tscore[i]=sc.nextInt();\n\t\t\t}\n\t\t\tdouble average=0, variance=0;\n\t\t\tfor(int i=0;i<score.length;i++) {\n\t\t\t\taverage=average+(double)score[i];\n\t\t\t}\n\t\t\taverage=average/(double)score.length;\n\t\t\tfor(int i=0;i<score.length;i++) {\n\t\t\t\tvariance=variance+Math.pow(score[i]-average,2.0);\n\t\t\t}\n\t\t\tvariance=variance/(double)score.length;\n\t\t\tSystem.out.println(Math.sqrt(variance));\n\t\t\t\n\t\t}\n\t}\n\t\n\n}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry(Scanner sc=new Scanner(System.in)){\n\t\t\twhile(true) {\n\t\t\t\tint n=sc.nextInt();\n\t\t\t\tif(n==0) {break;}\n\t\t\t\tint score[]=new int[n];\n\t\t\tfor(int i=0;i<score.length;i++) {\n\t\t\t\tscore[i]=sc.nextInt();\n\t\t\t}\n\t\t\tdouble average=0, variance=0;\n\t\t\tfor(int i=0;i<score.length;i++) {\n\t\t\t\taverage=average+(double)score[i];\n\t\t\t}\n\t\t\taverage=average/(double)score.length;\n\t\t\tfor(int i=0;i<score.length;i++) {\n\t\t\t\tvariance=variance+Math.pow(score[i]-average,2.0);\n\t\t\t}\n\t\t\tvariance=variance/(double)score.length;\n\t\t\tSystem.out.println(Math.sqrt(variance));\n\t\t\t\n\t\t}\n\t}\n\t\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 score[]=new int[n]; for(int i=0;i<score.length;i++) { score[i]=sc.nextInt(); } double average=0, variance=0; for(int i=0;i<score.length;i++) { average=average+(double)score[i]; } average=average/(double)score.length; for(int i=0;i<score.length;i++) { variance=variance+Math.pow(score[i]-average,2.0); } variance=variance/(double)score.length; System.out.println(Math.sqrt(variance)); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 42, 2, 13, 17, 30, 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, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 13, 41, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 17, 13, 0, 13, 4, 18, 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 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 29, 31 ], [ 21, 32 ], [ 32, 33 ], [ 32, 34 ], [ 21, 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 ], [ 21, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 21, 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 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 81, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 80, 92 ], [ 21, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 21, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 99, 105 ], [ 21, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 8, 111 ], [ 111, 112 ], [ 112, 113 ], [ 6, 114 ], [ 114, 115 ], [ 0, 116 ], [ 116, 117 ], [ 116, 118 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] arg){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n while(n != 0){\n int[] s = new int[n];\n int sum = 0;\n double ave = 0;\n double a = 0;\n for(int i = 0; i<n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n ave = (double) sum / n;\n for(int j = 0; j <n; j++){\n a += (double)(s[j] - ave)*(s[j] - ave) / n;\n } \n double b = Math.sqrt(a);\n System.out.printf(\"%.8f\\n\",b);\n n = sc.nextInt();\n }\n sc.close();\n }\n \n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] arg){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n while(n != 0){\n int[] s = new int[n];\n int sum = 0;\n double ave = 0;\n double a = 0;\n for(int i = 0; i<n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n ave = (double) sum / n;\n for(int j = 0; j <n; j++){\n a += (double)(s[j] - ave)*(s[j] - ave) / n;\n } \n double b = Math.sqrt(a);\n System.out.printf(\"%.8f\\n\",b);\n n = sc.nextInt();\n }\n sc.close();\n }\n \n}", "Main", "public static void main(String[] arg){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n while(n != 0){\n int[] s = new int[n];\n int sum = 0;\n double ave = 0;\n double a = 0;\n for(int i = 0; i<n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n ave = (double) sum / n;\n for(int j = 0; j <n; j++){\n a += (double)(s[j] - ave)*(s[j] - ave) / n;\n } \n double b = Math.sqrt(a);\n System.out.printf(\"%.8f\\n\",b);\n n = sc.nextInt();\n }\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n while(n != 0){\n int[] s = new int[n];\n int sum = 0;\n double ave = 0;\n double a = 0;\n for(int i = 0; i<n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n ave = (double) sum / n;\n for(int j = 0; j <n; j++){\n a += (double)(s[j] - ave)*(s[j] - ave) / n;\n } \n double b = Math.sqrt(a);\n System.out.printf(\"%.8f\\n\",b);\n n = sc.nextInt();\n }\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "while(n != 0){\n int[] s = new int[n];\n int sum = 0;\n double ave = 0;\n double a = 0;\n for(int i = 0; i<n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n ave = (double) sum / n;\n for(int j = 0; j <n; j++){\n a += (double)(s[j] - ave)*(s[j] - ave) / n;\n } \n double b = Math.sqrt(a);\n System.out.printf(\"%.8f\\n\",b);\n n = sc.nextInt();\n }", "n != 0", "n", "0", "{\n int[] s = new int[n];\n int sum = 0;\n double ave = 0;\n double a = 0;\n for(int i = 0; i<n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n ave = (double) sum / n;\n for(int j = 0; j <n; j++){\n a += (double)(s[j] - ave)*(s[j] - ave) / n;\n } \n double b = Math.sqrt(a);\n System.out.printf(\"%.8f\\n\",b);\n n = sc.nextInt();\n }", "int[] s = new int[n];", "s", "new int[n]", "n", "int sum = 0;", "sum", "0", "double ave = 0;", "ave", "0", "double a = 0;", "a", "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", "ave = (double) sum / n", "ave", "(double) sum / n", "(double) sum", "n", "for(int j = 0; j <n; j++){\n a += (double)(s[j] - ave)*(s[j] - ave) / n;\n }", "int j = 0;", "int j = 0;", "j", "0", "j <n", "j", "n", "j++", "j++", "j", "{\n a += (double)(s[j] - ave)*(s[j] - ave) / n;\n }", "{\n a += (double)(s[j] - ave)*(s[j] - ave) / n;\n }", "a += (double)(s[j] - ave)*(s[j] - ave) / n", "a", "(double)(s[j] - ave)*(s[j] - ave) / n", "(double)(s[j] - ave)*(s[j] - ave)", "(double)(s[j] - ave)", "s[j]", "s", "j", "ave", "(s[j] - ave)", "s[j]", "s", "j", "ave", "n", "double b = Math.sqrt(a);", "b", "Math.sqrt(a)", "Math.sqrt", "Math", "a", "System.out.printf(\"%.8f\\n\",b)", "System.out.printf", "System.out", "System", "System.out", "\"%.8f\\n\"", "b", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "sc.close()", "sc.close", "sc", "String[] arg", "arg", "public class Main{\n public static void main(String[] arg){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n while(n != 0){\n int[] s = new int[n];\n int sum = 0;\n double ave = 0;\n double a = 0;\n for(int i = 0; i<n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n ave = (double) sum / n;\n for(int j = 0; j <n; j++){\n a += (double)(s[j] - ave)*(s[j] - ave) / n;\n } \n double b = Math.sqrt(a);\n System.out.printf(\"%.8f\\n\",b);\n n = sc.nextInt();\n }\n sc.close();\n }\n \n}", "public class Main{\n public static void main(String[] arg){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n while(n != 0){\n int[] s = new int[n];\n int sum = 0;\n double ave = 0;\n double a = 0;\n for(int i = 0; i<n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n ave = (double) sum / n;\n for(int j = 0; j <n; j++){\n a += (double)(s[j] - ave)*(s[j] - ave) / n;\n } \n double b = Math.sqrt(a);\n System.out.printf(\"%.8f\\n\",b);\n n = sc.nextInt();\n }\n sc.close();\n }\n \n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] arg){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); while(n != 0){ int[] s = new int[n]; int sum = 0; double ave = 0; double a = 0; for(int i = 0; i<n; i++){ s[i] = sc.nextInt(); sum += s[i]; } ave = (double) sum / n; for(int j = 0; j <n; j++){ a += (double)(s[j] - ave)*(s[j] - ave) / n; } double b = Math.sqrt(a); System.out.printf("%.8f\n",b); n = sc.nextInt(); } sc.close(); } }
[ 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, 42, 17, 30, 0, 13, 17, 0, 13, 17, 0, 13, 17, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 17, 41, 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, 18, 13, 13, 0, 13, 2, 13, 13, 11, 1, 0, 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, 18, 13, 13, 2, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 156, 11 ], [ 156, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 14, 22 ], [ 22, 23 ], [ 14, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 14, 28 ], [ 28, 29 ], [ 14, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 36, 38 ], [ 32, 39 ], [ 39, 40 ], [ 39, 41 ], [ 32, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 32, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 47, 52 ], [ 32, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 32, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 32, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 32, 70 ], [ 70, 71 ], [ 70, 72 ], [ 32, 73 ], [ 73, 74 ], [ 73, 75 ], [ 32, 76 ], [ 76, 77 ], [ 76, 78 ], [ 32, 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 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 100, 101 ], [ 100, 102 ], [ 92, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 32, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 110, 112 ], [ 32, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 118, 119 ], [ 118, 120 ], [ 113, 121 ], [ 121, 122 ], [ 122, 123 ], [ 113, 124 ], [ 125, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 129, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 132, 136 ], [ 129, 137 ], [ 128, 138 ], [ 32, 139 ], [ 139, 140 ], [ 139, 141 ], [ 141, 142 ], [ 142, 143 ], [ 141, 144 ], [ 32, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 145, 150 ], [ 150, 151 ], [ 150, 152 ], [ 12, 153 ], [ 153, 154 ], [ 0, 155 ], [ 155, 156 ], [ 155, 157 ] ]
[ "\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader( new InputStreamReader( System.in ) );\n\n\t\tint i;\n\t\tString n;\n\t\tdouble avg,a,sum1,sum2;\n\t\t//double[] x = new double[1000 + 1];\n\n\t\twhile(true){\n\t\t\tsum1=0;\n\t\t\tsum2=0;\n\t\t\ta=0;\n\t\t\tn=br.readLine();\n\t\t\tif(n.equals(\"0\"))break;\n\t\t\tint num=Integer.parseInt(n);\n\n\t\t\tString c=br.readLine();\n\t\t\tString b[]=c.split(\" \");\n\t\t\tdouble d=0,sum=0;\n\t\t\tdouble e[]=new double[num];\n\n\t\t\tfor(i=0;i<num;i++){\n\n\t\t\t\te[i] = Double.parseDouble( b[i] );\n\n\t\t\t\tsum1+=e[i];\n\t\t\t}\n\t\t\tavg=sum1/num;\n\t\t\tfor(i=0;i<num;i++){\n\n\t\t\t\tsum2+= (Math.pow((e[i]-avg),2)/num);\n\t\t\t}\n\t\t\ta=Math.sqrt(sum2);\n\t\t\tSystem.out.printf(a + \"\\n\" );\n\t\t}\n\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader( new InputStreamReader( System.in ) );\n\n\t\tint i;\n\t\tString n;\n\t\tdouble avg,a,sum1,sum2;\n\t\t//double[] x = new double[1000 + 1];\n\n\t\twhile(true){\n\t\t\tsum1=0;\n\t\t\tsum2=0;\n\t\t\ta=0;\n\t\t\tn=br.readLine();\n\t\t\tif(n.equals(\"0\"))break;\n\t\t\tint num=Integer.parseInt(n);\n\n\t\t\tString c=br.readLine();\n\t\t\tString b[]=c.split(\" \");\n\t\t\tdouble d=0,sum=0;\n\t\t\tdouble e[]=new double[num];\n\n\t\t\tfor(i=0;i<num;i++){\n\n\t\t\t\te[i] = Double.parseDouble( b[i] );\n\n\t\t\t\tsum1+=e[i];\n\t\t\t}\n\t\t\tavg=sum1/num;\n\t\t\tfor(i=0;i<num;i++){\n\n\t\t\t\tsum2+= (Math.pow((e[i]-avg),2)/num);\n\t\t\t}\n\t\t\ta=Math.sqrt(sum2);\n\t\t\tSystem.out.printf(a + \"\\n\" );\n\t\t}\n\n\t}\n}", "Main", "public static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader( new InputStreamReader( System.in ) );\n\n\t\tint i;\n\t\tString n;\n\t\tdouble avg,a,sum1,sum2;\n\t\t//double[] x = new double[1000 + 1];\n\n\t\twhile(true){\n\t\t\tsum1=0;\n\t\t\tsum2=0;\n\t\t\ta=0;\n\t\t\tn=br.readLine();\n\t\t\tif(n.equals(\"0\"))break;\n\t\t\tint num=Integer.parseInt(n);\n\n\t\t\tString c=br.readLine();\n\t\t\tString b[]=c.split(\" \");\n\t\t\tdouble d=0,sum=0;\n\t\t\tdouble e[]=new double[num];\n\n\t\t\tfor(i=0;i<num;i++){\n\n\t\t\t\te[i] = Double.parseDouble( b[i] );\n\n\t\t\t\tsum1+=e[i];\n\t\t\t}\n\t\t\tavg=sum1/num;\n\t\t\tfor(i=0;i<num;i++){\n\n\t\t\t\tsum2+= (Math.pow((e[i]-avg),2)/num);\n\t\t\t}\n\t\t\ta=Math.sqrt(sum2);\n\t\t\tSystem.out.printf(a + \"\\n\" );\n\t\t}\n\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader( new InputStreamReader( System.in ) );\n\n\t\tint i;\n\t\tString n;\n\t\tdouble avg,a,sum1,sum2;\n\t\t//double[] x = new double[1000 + 1];\n\n\t\twhile(true){\n\t\t\tsum1=0;\n\t\t\tsum2=0;\n\t\t\ta=0;\n\t\t\tn=br.readLine();\n\t\t\tif(n.equals(\"0\"))break;\n\t\t\tint num=Integer.parseInt(n);\n\n\t\t\tString c=br.readLine();\n\t\t\tString b[]=c.split(\" \");\n\t\t\tdouble d=0,sum=0;\n\t\t\tdouble e[]=new double[num];\n\n\t\t\tfor(i=0;i<num;i++){\n\n\t\t\t\te[i] = Double.parseDouble( b[i] );\n\n\t\t\t\tsum1+=e[i];\n\t\t\t}\n\t\t\tavg=sum1/num;\n\t\t\tfor(i=0;i<num;i++){\n\n\t\t\t\tsum2+= (Math.pow((e[i]-avg),2)/num);\n\t\t\t}\n\t\t\ta=Math.sqrt(sum2);\n\t\t\tSystem.out.printf(a + \"\\n\" );\n\t\t}\n\n\t}", "BufferedReader br = new BufferedReader( new InputStreamReader( System.in ) );", "br", "new BufferedReader( new InputStreamReader( System.in ) )", "int i;", "i", "String n;", "n", "double avg", "avg", "a", "a", "sum1", "sum1", "sum2;", "sum2", "while(true){\n\t\t\tsum1=0;\n\t\t\tsum2=0;\n\t\t\ta=0;\n\t\t\tn=br.readLine();\n\t\t\tif(n.equals(\"0\"))break;\n\t\t\tint num=Integer.parseInt(n);\n\n\t\t\tString c=br.readLine();\n\t\t\tString b[]=c.split(\" \");\n\t\t\tdouble d=0,sum=0;\n\t\t\tdouble e[]=new double[num];\n\n\t\t\tfor(i=0;i<num;i++){\n\n\t\t\t\te[i] = Double.parseDouble( b[i] );\n\n\t\t\t\tsum1+=e[i];\n\t\t\t}\n\t\t\tavg=sum1/num;\n\t\t\tfor(i=0;i<num;i++){\n\n\t\t\t\tsum2+= (Math.pow((e[i]-avg),2)/num);\n\t\t\t}\n\t\t\ta=Math.sqrt(sum2);\n\t\t\tSystem.out.printf(a + \"\\n\" );\n\t\t}", "true", "{\n\t\t\tsum1=0;\n\t\t\tsum2=0;\n\t\t\ta=0;\n\t\t\tn=br.readLine();\n\t\t\tif(n.equals(\"0\"))break;\n\t\t\tint num=Integer.parseInt(n);\n\n\t\t\tString c=br.readLine();\n\t\t\tString b[]=c.split(\" \");\n\t\t\tdouble d=0,sum=0;\n\t\t\tdouble e[]=new double[num];\n\n\t\t\tfor(i=0;i<num;i++){\n\n\t\t\t\te[i] = Double.parseDouble( b[i] );\n\n\t\t\t\tsum1+=e[i];\n\t\t\t}\n\t\t\tavg=sum1/num;\n\t\t\tfor(i=0;i<num;i++){\n\n\t\t\t\tsum2+= (Math.pow((e[i]-avg),2)/num);\n\t\t\t}\n\t\t\ta=Math.sqrt(sum2);\n\t\t\tSystem.out.printf(a + \"\\n\" );\n\t\t}", "sum1=0", "sum1", "0", "sum2=0", "sum2", "0", "a=0", "a", "0", "n=br.readLine()", "n", "br.readLine()", "br.readLine", "br", "if(n.equals(\"0\"))break;", "n.equals(\"0\")", "n.equals", "n", "\"0\"", "break;", "int num=Integer.parseInt(n);", "num", "Integer.parseInt(n)", "Integer.parseInt", "Integer", "n", "String c=br.readLine();", "c", "br.readLine()", "br.readLine", "br", "String b[]=c.split(\" \");", "b", "c.split(\" \")", "c.split", "c", "\" \"", "double d=0", "d", "0", "sum=0;", "sum", "0", "double e[]=new double[num];", "e", "new double[num]", "num", "for(i=0;i<num;i++){\n\n\t\t\t\te[i] = Double.parseDouble( b[i] );\n\n\t\t\t\tsum1+=e[i];\n\t\t\t}", "i=0;", "i=0", "i", "0", "i<num", "i", "num", "i++", "i++", "i", "{\n\n\t\t\t\te[i] = Double.parseDouble( b[i] );\n\n\t\t\t\tsum1+=e[i];\n\t\t\t}", "{\n\n\t\t\t\te[i] = Double.parseDouble( b[i] );\n\n\t\t\t\tsum1+=e[i];\n\t\t\t}", "e[i] = Double.parseDouble( b[i] )", "e[i]", "e", "i", "Double.parseDouble( b[i] )", "Double.parseDouble", "Double", "b[i]", "b", "i", "sum1+=e[i]", "sum1", "e[i]", "e", "i", "avg=sum1/num", "avg", "sum1/num", "sum1", "num", "for(i=0;i<num;i++){\n\n\t\t\t\tsum2+= (Math.pow((e[i]-avg),2)/num);\n\t\t\t}", "i=0;", "i=0", "i", "0", "i<num", "i", "num", "i++", "i++", "i", "{\n\n\t\t\t\tsum2+= (Math.pow((e[i]-avg),2)/num);\n\t\t\t}", "{\n\n\t\t\t\tsum2+= (Math.pow((e[i]-avg),2)/num);\n\t\t\t}", "sum2+= (Math.pow((e[i]-avg),2)/num)", "sum2", "(Math.pow((e[i]-avg),2)/num)", "Math.pow((e[i]-avg),2)", "Math.pow", "Math", "(e[i]-avg)", "e[i]", "e", "i", "avg", "2", "num", "a=Math.sqrt(sum2)", "a", "Math.sqrt(sum2)", "Math.sqrt", "Math", "sum2", "System.out.printf(a + \"\\n\" )", "System.out.printf", "System.out", "System", "System.out", "a + \"\\n\"", "a", "\"\\n\"", "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\n\t\tint i;\n\t\tString n;\n\t\tdouble avg,a,sum1,sum2;\n\t\t//double[] x = new double[1000 + 1];\n\n\t\twhile(true){\n\t\t\tsum1=0;\n\t\t\tsum2=0;\n\t\t\ta=0;\n\t\t\tn=br.readLine();\n\t\t\tif(n.equals(\"0\"))break;\n\t\t\tint num=Integer.parseInt(n);\n\n\t\t\tString c=br.readLine();\n\t\t\tString b[]=c.split(\" \");\n\t\t\tdouble d=0,sum=0;\n\t\t\tdouble e[]=new double[num];\n\n\t\t\tfor(i=0;i<num;i++){\n\n\t\t\t\te[i] = Double.parseDouble( b[i] );\n\n\t\t\t\tsum1+=e[i];\n\t\t\t}\n\t\t\tavg=sum1/num;\n\t\t\tfor(i=0;i<num;i++){\n\n\t\t\t\tsum2+= (Math.pow((e[i]-avg),2)/num);\n\t\t\t}\n\t\t\ta=Math.sqrt(sum2);\n\t\t\tSystem.out.printf(a + \"\\n\" );\n\t\t}\n\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\n\t\tint i;\n\t\tString n;\n\t\tdouble avg,a,sum1,sum2;\n\t\t//double[] x = new double[1000 + 1];\n\n\t\twhile(true){\n\t\t\tsum1=0;\n\t\t\tsum2=0;\n\t\t\ta=0;\n\t\t\tn=br.readLine();\n\t\t\tif(n.equals(\"0\"))break;\n\t\t\tint num=Integer.parseInt(n);\n\n\t\t\tString c=br.readLine();\n\t\t\tString b[]=c.split(\" \");\n\t\t\tdouble d=0,sum=0;\n\t\t\tdouble e[]=new double[num];\n\n\t\t\tfor(i=0;i<num;i++){\n\n\t\t\t\te[i] = Double.parseDouble( b[i] );\n\n\t\t\t\tsum1+=e[i];\n\t\t\t}\n\t\t\tavg=sum1/num;\n\t\t\tfor(i=0;i<num;i++){\n\n\t\t\t\tsum2+= (Math.pow((e[i]-avg),2)/num);\n\t\t\t}\n\t\t\ta=Math.sqrt(sum2);\n\t\t\tSystem.out.printf(a + \"\\n\" );\n\t\t}\n\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 ) ); int i; String n; double avg,a,sum1,sum2; //double[] x = new double[1000 + 1]; while(true){ sum1=0; sum2=0; a=0; n=br.readLine(); if(n.equals("0"))break; int num=Integer.parseInt(n); String c=br.readLine(); String b[]=c.split(" "); double d=0,sum=0; double e[]=new double[num]; for(i=0;i<num;i++){ e[i] = Double.parseDouble( b[i] ); sum1+=e[i]; } avg=sum1/num; for(i=0;i<num;i++){ sum2+= (Math.pow((e[i]-avg),2)/num); } a=Math.sqrt(sum2); System.out.printf(a + "\n" ); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 4, 18, 13, 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, 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 ], [ 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 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 23, 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, 41 ], [ 41, 42 ], [ 41, 43 ], [ 27, 44 ], [ 44, 45 ], [ 44, 46 ], [ 27, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 48, 56 ], [ 56, 57 ], [ 57, 58 ], [ 48, 59 ], [ 60, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 65, 66 ], [ 66, 67 ], [ 60, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 27, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 27, 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 ], [ 27, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 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\tpublic static void main (String [] args) {\n\t\tScanner scan = new Scanner (System.in);\n\t\tint students;\n\t\tdouble total = 0.0;\n\t\tdouble average = 0.0;\n\t\tdouble var = 0.0;\n\t\t\n\t\tdo {\n\t\t\tstudents = scan.nextInt();\n\t\t\t\n\t\t\tif (students == 0) break;\n\t\t\t\n\t\t\ttotal = 0.0;\n\t\t\tvar = 0.0;\n\t\t\tint point[] = new int[students];\n\t\t\t\n\t\t\tfor (int i = 0; i < students; i++) {\n\t\t\t\tpoint[i] = scan.nextInt();\n\t\t\t\ttotal += (double)point[i];\n\t\t\t}\n\t\t\t\n\t\t\taverage = total / (double)students;\n\t\t\t\n\t\t\tfor (int i = 0; i < students; i++) {\n\t\t\t\tvar += ((point[i] - average) * (point[i] - average));\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(Math.sqrt((var / students)));\n\t\t\t\n\t\t} while (scan.hasNext());\n\t\t\n\t\tscan.close();\n\t}\n}\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 students;\n\t\tdouble total = 0.0;\n\t\tdouble average = 0.0;\n\t\tdouble var = 0.0;\n\t\t\n\t\tdo {\n\t\t\tstudents = scan.nextInt();\n\t\t\t\n\t\t\tif (students == 0) break;\n\t\t\t\n\t\t\ttotal = 0.0;\n\t\t\tvar = 0.0;\n\t\t\tint point[] = new int[students];\n\t\t\t\n\t\t\tfor (int i = 0; i < students; i++) {\n\t\t\t\tpoint[i] = scan.nextInt();\n\t\t\t\ttotal += (double)point[i];\n\t\t\t}\n\t\t\t\n\t\t\taverage = total / (double)students;\n\t\t\t\n\t\t\tfor (int i = 0; i < students; i++) {\n\t\t\t\tvar += ((point[i] - average) * (point[i] - average));\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(Math.sqrt((var / students)));\n\t\t\t\n\t\t} while (scan.hasNext());\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 students;\n\t\tdouble total = 0.0;\n\t\tdouble average = 0.0;\n\t\tdouble var = 0.0;\n\t\t\n\t\tdo {\n\t\t\tstudents = scan.nextInt();\n\t\t\t\n\t\t\tif (students == 0) break;\n\t\t\t\n\t\t\ttotal = 0.0;\n\t\t\tvar = 0.0;\n\t\t\tint point[] = new int[students];\n\t\t\t\n\t\t\tfor (int i = 0; i < students; i++) {\n\t\t\t\tpoint[i] = scan.nextInt();\n\t\t\t\ttotal += (double)point[i];\n\t\t\t}\n\t\t\t\n\t\t\taverage = total / (double)students;\n\t\t\t\n\t\t\tfor (int i = 0; i < students; i++) {\n\t\t\t\tvar += ((point[i] - average) * (point[i] - average));\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(Math.sqrt((var / students)));\n\t\t\t\n\t\t} while (scan.hasNext());\n\t\t\n\t\tscan.close();\n\t}", "main", "{\n\t\tScanner scan = new Scanner (System.in);\n\t\tint students;\n\t\tdouble total = 0.0;\n\t\tdouble average = 0.0;\n\t\tdouble var = 0.0;\n\t\t\n\t\tdo {\n\t\t\tstudents = scan.nextInt();\n\t\t\t\n\t\t\tif (students == 0) break;\n\t\t\t\n\t\t\ttotal = 0.0;\n\t\t\tvar = 0.0;\n\t\t\tint point[] = new int[students];\n\t\t\t\n\t\t\tfor (int i = 0; i < students; i++) {\n\t\t\t\tpoint[i] = scan.nextInt();\n\t\t\t\ttotal += (double)point[i];\n\t\t\t}\n\t\t\t\n\t\t\taverage = total / (double)students;\n\t\t\t\n\t\t\tfor (int i = 0; i < students; i++) {\n\t\t\t\tvar += ((point[i] - average) * (point[i] - average));\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(Math.sqrt((var / students)));\n\t\t\t\n\t\t} while (scan.hasNext());\n\t\t\n\t\tscan.close();\n\t}", "Scanner scan = new Scanner (System.in);", "scan", "new Scanner (System.in)", "int students;", "students", "double total = 0.0;", "total", "0.0", "double average = 0.0;", "average", "0.0", "double var = 0.0;", "var", "0.0", "do {\n\t\t\tstudents = scan.nextInt();\n\t\t\t\n\t\t\tif (students == 0) break;\n\t\t\t\n\t\t\ttotal = 0.0;\n\t\t\tvar = 0.0;\n\t\t\tint point[] = new int[students];\n\t\t\t\n\t\t\tfor (int i = 0; i < students; i++) {\n\t\t\t\tpoint[i] = scan.nextInt();\n\t\t\t\ttotal += (double)point[i];\n\t\t\t}\n\t\t\t\n\t\t\taverage = total / (double)students;\n\t\t\t\n\t\t\tfor (int i = 0; i < students; i++) {\n\t\t\t\tvar += ((point[i] - average) * (point[i] - average));\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(Math.sqrt((var / students)));\n\t\t\t\n\t\t} while (scan.hasNext());", "scan.hasNext()", "scan.hasNext", "scan", "{\n\t\t\tstudents = scan.nextInt();\n\t\t\t\n\t\t\tif (students == 0) break;\n\t\t\t\n\t\t\ttotal = 0.0;\n\t\t\tvar = 0.0;\n\t\t\tint point[] = new int[students];\n\t\t\t\n\t\t\tfor (int i = 0; i < students; i++) {\n\t\t\t\tpoint[i] = scan.nextInt();\n\t\t\t\ttotal += (double)point[i];\n\t\t\t}\n\t\t\t\n\t\t\taverage = total / (double)students;\n\t\t\t\n\t\t\tfor (int i = 0; i < students; i++) {\n\t\t\t\tvar += ((point[i] - average) * (point[i] - average));\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(Math.sqrt((var / students)));\n\t\t\t\n\t\t}", "students = scan.nextInt()", "students", "scan.nextInt()", "scan.nextInt", "scan", "if (students == 0) break;", "students == 0", "students", "0", "break;", "total = 0.0", "total", "0.0", "var = 0.0", "var", "0.0", "int point[] = new int[students];", "point", "new int[students]", "students", "for (int i = 0; i < students; i++) {\n\t\t\t\tpoint[i] = scan.nextInt();\n\t\t\t\ttotal += (double)point[i];\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < students", "i", "students", "i++", "i++", "i", "{\n\t\t\t\tpoint[i] = scan.nextInt();\n\t\t\t\ttotal += (double)point[i];\n\t\t\t}", "{\n\t\t\t\tpoint[i] = scan.nextInt();\n\t\t\t\ttotal += (double)point[i];\n\t\t\t}", "point[i] = scan.nextInt()", "point[i]", "point", "i", "scan.nextInt()", "scan.nextInt", "scan", "total += (double)point[i]", "total", "(double)point[i]", "point", "i", "average = total / (double)students", "average", "total / (double)students", "total", "(double)students", "for (int i = 0; i < students; i++) {\n\t\t\t\tvar += ((point[i] - average) * (point[i] - average));\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < students", "i", "students", "i++", "i++", "i", "{\n\t\t\t\tvar += ((point[i] - average) * (point[i] - average));\n\t\t\t}", "{\n\t\t\t\tvar += ((point[i] - average) * (point[i] - average));\n\t\t\t}", "var += ((point[i] - average) * (point[i] - average))", "var", "((point[i] - average) * (point[i] - average))", "(point[i] - average)", "point[i]", "point", "i", "average", "(point[i] - average)", "point[i]", "point", "i", "average", "System.out.println(Math.sqrt((var / students)))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt((var / students))", "Math.sqrt", "Math", "(var / students)", "var", "students", "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 students;\n\t\tdouble total = 0.0;\n\t\tdouble average = 0.0;\n\t\tdouble var = 0.0;\n\t\t\n\t\tdo {\n\t\t\tstudents = scan.nextInt();\n\t\t\t\n\t\t\tif (students == 0) break;\n\t\t\t\n\t\t\ttotal = 0.0;\n\t\t\tvar = 0.0;\n\t\t\tint point[] = new int[students];\n\t\t\t\n\t\t\tfor (int i = 0; i < students; i++) {\n\t\t\t\tpoint[i] = scan.nextInt();\n\t\t\t\ttotal += (double)point[i];\n\t\t\t}\n\t\t\t\n\t\t\taverage = total / (double)students;\n\t\t\t\n\t\t\tfor (int i = 0; i < students; i++) {\n\t\t\t\tvar += ((point[i] - average) * (point[i] - average));\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(Math.sqrt((var / students)));\n\t\t\t\n\t\t} while (scan.hasNext());\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 students;\n\t\tdouble total = 0.0;\n\t\tdouble average = 0.0;\n\t\tdouble var = 0.0;\n\t\t\n\t\tdo {\n\t\t\tstudents = scan.nextInt();\n\t\t\t\n\t\t\tif (students == 0) break;\n\t\t\t\n\t\t\ttotal = 0.0;\n\t\t\tvar = 0.0;\n\t\t\tint point[] = new int[students];\n\t\t\t\n\t\t\tfor (int i = 0; i < students; i++) {\n\t\t\t\tpoint[i] = scan.nextInt();\n\t\t\t\ttotal += (double)point[i];\n\t\t\t}\n\t\t\t\n\t\t\taverage = total / (double)students;\n\t\t\t\n\t\t\tfor (int i = 0; i < students; i++) {\n\t\t\t\tvar += ((point[i] - average) * (point[i] - average));\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(Math.sqrt((var / students)));\n\t\t\t\n\t\t} while (scan.hasNext());\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 students; double total = 0.0; double average = 0.0; double var = 0.0; do { students = scan.nextInt(); if (students == 0) break; total = 0.0; var = 0.0; int point[] = new int[students]; for (int i = 0; i < students; i++) { point[i] = scan.nextInt(); total += (double)point[i]; } average = total / (double)students; for (int i = 0; i < students; i++) { var += ((point[i] - average) * (point[i] - average)); } System.out.println(Math.sqrt((var / students))); } while (scan.hasNext()); scan.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 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, 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, 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 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 124, 11 ], [ 124, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 26, 27 ], [ 27, 28 ], [ 20, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 33, 34 ], [ 20, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 37, 42 ], [ 20, 43 ], [ 43, 44 ], [ 43, 45 ], [ 20, 47 ], [ 47, 48 ], [ 47, 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 ], [ 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 ], [ 20, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 118, 119 ], [ 118, 120 ], [ 12, 121 ], [ 121, 122 ], [ 0, 123 ], [ 123, 124 ], [ 123, 125 ] ]
[ "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\n\t\twhile (true) {\n\t\t\tint count = Integer.parseInt(br.readLine());\n\n\t\t\tif (count == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tdouble[] nums = new double[count];\n\t\t\tdouble sum = 0;\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tnums[i] = Double.parseDouble(str[i]);\n\t\t\t\tsum += nums[i];\n\t\t\t}\n\t\t\tdouble avg = sum / count;\n\t\t\tdouble s = 0;\n\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\ts += Math.pow((nums[i] - avg),2);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(s / count));\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\n\t\twhile (true) {\n\t\t\tint count = Integer.parseInt(br.readLine());\n\n\t\t\tif (count == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tdouble[] nums = new double[count];\n\t\t\tdouble sum = 0;\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tnums[i] = Double.parseDouble(str[i]);\n\t\t\t\tsum += nums[i];\n\t\t\t}\n\t\t\tdouble avg = sum / count;\n\t\t\tdouble s = 0;\n\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\ts += Math.pow((nums[i] - avg),2);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(s / count));\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\n\t\twhile (true) {\n\t\t\tint count = Integer.parseInt(br.readLine());\n\n\t\t\tif (count == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tdouble[] nums = new double[count];\n\t\t\tdouble sum = 0;\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tnums[i] = Double.parseDouble(str[i]);\n\t\t\t\tsum += nums[i];\n\t\t\t}\n\t\t\tdouble avg = sum / count;\n\t\t\tdouble s = 0;\n\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\ts += Math.pow((nums[i] - avg),2);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(s / count));\n\t\t}\n\t}", "main", "{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile (true) {\n\t\t\tint count = Integer.parseInt(br.readLine());\n\n\t\t\tif (count == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tdouble[] nums = new double[count];\n\t\t\tdouble sum = 0;\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tnums[i] = Double.parseDouble(str[i]);\n\t\t\t\tsum += nums[i];\n\t\t\t}\n\t\t\tdouble avg = sum / count;\n\t\t\tdouble s = 0;\n\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\ts += Math.pow((nums[i] - avg),2);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(s / count));\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while (true) {\n\t\t\tint count = Integer.parseInt(br.readLine());\n\n\t\t\tif (count == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tdouble[] nums = new double[count];\n\t\t\tdouble sum = 0;\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tnums[i] = Double.parseDouble(str[i]);\n\t\t\t\tsum += nums[i];\n\t\t\t}\n\t\t\tdouble avg = sum / count;\n\t\t\tdouble s = 0;\n\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\ts += Math.pow((nums[i] - avg),2);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(s / count));\n\t\t}", "true", "{\n\t\t\tint count = Integer.parseInt(br.readLine());\n\n\t\t\tif (count == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tdouble[] nums = new double[count];\n\t\t\tdouble sum = 0;\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tnums[i] = Double.parseDouble(str[i]);\n\t\t\t\tsum += nums[i];\n\t\t\t}\n\t\t\tdouble avg = sum / count;\n\t\t\tdouble s = 0;\n\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\ts += Math.pow((nums[i] - avg),2);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(s / count));\n\t\t}", "int count = Integer.parseInt(br.readLine());", "count", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "if (count == 0) {\n\t\t\t\tbreak;\n\t\t\t}", "count == 0", "count", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "String[] str = br.readLine().split(\" \");", "str", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "double[] nums = new double[count];", "nums", "new double[count]", "count", "double sum = 0;", "sum", "0", "for (int i = 0; i < count; i++) {\n\t\t\t\tnums[i] = Double.parseDouble(str[i]);\n\t\t\t\tsum += nums[i];\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < count", "i", "count", "i++", "i++", "i", "{\n\t\t\t\tnums[i] = Double.parseDouble(str[i]);\n\t\t\t\tsum += nums[i];\n\t\t\t}", "{\n\t\t\t\tnums[i] = Double.parseDouble(str[i]);\n\t\t\t\tsum += nums[i];\n\t\t\t}", "nums[i] = Double.parseDouble(str[i])", "nums[i]", "nums", "i", "Double.parseDouble(str[i])", "Double.parseDouble", "Double", "str[i]", "str", "i", "sum += nums[i]", "sum", "nums[i]", "nums", "i", "double avg = sum / count;", "avg", "sum / count", "sum", "count", "double s = 0;", "s", "0", "for (int i = 0; i < count; i++) {\n\t\t\t\ts += Math.pow((nums[i] - avg),2);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < count", "i", "count", "i++", "i++", "i", "{\n\t\t\t\ts += Math.pow((nums[i] - avg),2);\n\t\t\t}", "{\n\t\t\t\ts += Math.pow((nums[i] - avg),2);\n\t\t\t}", "s += Math.pow((nums[i] - avg),2)", "s", "Math.pow((nums[i] - avg),2)", "Math.pow", "Math", "(nums[i] - avg)", "nums[i]", "nums", "i", "avg", "2", "System.out.println(Math.sqrt(s / count))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(s / count)", "Math.sqrt", "Math", "s / count", "s", "count", "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\n\t\twhile (true) {\n\t\t\tint count = Integer.parseInt(br.readLine());\n\n\t\t\tif (count == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tdouble[] nums = new double[count];\n\t\t\tdouble sum = 0;\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tnums[i] = Double.parseDouble(str[i]);\n\t\t\t\tsum += nums[i];\n\t\t\t}\n\t\t\tdouble avg = sum / count;\n\t\t\tdouble s = 0;\n\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\ts += Math.pow((nums[i] - avg),2);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(s / count));\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\n\t\twhile (true) {\n\t\t\tint count = Integer.parseInt(br.readLine());\n\n\t\t\tif (count == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tdouble[] nums = new double[count];\n\t\t\tdouble sum = 0;\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tnums[i] = Double.parseDouble(str[i]);\n\t\t\t\tsum += nums[i];\n\t\t\t}\n\t\t\tdouble avg = sum / count;\n\t\t\tdouble s = 0;\n\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\ts += Math.pow((nums[i] - avg),2);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(s / count));\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)); while (true) { int count = Integer.parseInt(br.readLine()); if (count == 0) { break; } String[] str = br.readLine().split(" "); double[] nums = new double[count]; double sum = 0; for (int i = 0; i < count; i++) { nums[i] = Double.parseDouble(str[i]); sum += nums[i]; } double avg = sum / count; double s = 0; for (int i = 0; i < count; i++) { s += Math.pow((nums[i] - avg),2); } System.out.println(Math.sqrt(s / count)); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 14, 2, 13, 17, 30, 3, 41, 13, 0, 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, 2, 13, 18, 13, 13, 0, 13, 2, 13, 2, 18, 13, 13, 18, 13, 13, 41, 13, 17, 0, 13, 2, 13, 13, 41, 13, 17, 0, 13, 2, 2, 13, 13, 2, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 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 ], [ 20, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 14, 32 ], [ 32, 33 ], [ 14, 34 ], [ 34, 35 ], [ 34, 36 ], [ 14, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 45, 47 ], [ 38, 48 ], [ 48, 49 ], [ 49, 50 ], [ 38, 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 ], [ 64, 65 ], [ 64, 66 ], [ 52, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 75, 77 ], [ 14, 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 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 95, 96 ], [ 95, 97 ], [ 14, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 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 while(true){\n int n=sc.nextInt();\n int sum1=0;\n int sum2=0;\n if(n==0){\n break;\n }\n int[] scores;\n scores=new int[n];\n for(int i=0;i<scores.length;i++){\n scores[i]=sc.nextInt();\n sum1=sum1+scores[i];\n sum2=sum2+scores[i]*scores[i];\n }\n double ave=0;\n ave=(double)sum1/n;\n double var=0;\n var=(double)sum2/n-ave*ave;\n System.out.println(Math.sqrt(var));\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 int sum1=0;\n int sum2=0;\n if(n==0){\n break;\n }\n int[] scores;\n scores=new int[n];\n for(int i=0;i<scores.length;i++){\n scores[i]=sc.nextInt();\n sum1=sum1+scores[i];\n sum2=sum2+scores[i]*scores[i];\n }\n double ave=0;\n ave=(double)sum1/n;\n double var=0;\n var=(double)sum2/n-ave*ave;\n System.out.println(Math.sqrt(var));\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 int sum1=0;\n int sum2=0;\n if(n==0){\n break;\n }\n int[] scores;\n scores=new int[n];\n for(int i=0;i<scores.length;i++){\n scores[i]=sc.nextInt();\n sum1=sum1+scores[i];\n sum2=sum2+scores[i]*scores[i];\n }\n double ave=0;\n ave=(double)sum1/n;\n double var=0;\n var=(double)sum2/n-ave*ave;\n System.out.println(Math.sqrt(var));\n }\n }", "main", "{\n Scanner sc=new Scanner(System.in);\n while(true){\n int n=sc.nextInt();\n int sum1=0;\n int sum2=0;\n if(n==0){\n break;\n }\n int[] scores;\n scores=new int[n];\n for(int i=0;i<scores.length;i++){\n scores[i]=sc.nextInt();\n sum1=sum1+scores[i];\n sum2=sum2+scores[i]*scores[i];\n }\n double ave=0;\n ave=(double)sum1/n;\n double var=0;\n var=(double)sum2/n-ave*ave;\n System.out.println(Math.sqrt(var));\n }\n }", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n int n=sc.nextInt();\n int sum1=0;\n int sum2=0;\n if(n==0){\n break;\n }\n int[] scores;\n scores=new int[n];\n for(int i=0;i<scores.length;i++){\n scores[i]=sc.nextInt();\n sum1=sum1+scores[i];\n sum2=sum2+scores[i]*scores[i];\n }\n double ave=0;\n ave=(double)sum1/n;\n double var=0;\n var=(double)sum2/n-ave*ave;\n System.out.println(Math.sqrt(var));\n }", "true", "{\n int n=sc.nextInt();\n int sum1=0;\n int sum2=0;\n if(n==0){\n break;\n }\n int[] scores;\n scores=new int[n];\n for(int i=0;i<scores.length;i++){\n scores[i]=sc.nextInt();\n sum1=sum1+scores[i];\n sum2=sum2+scores[i]*scores[i];\n }\n double ave=0;\n ave=(double)sum1/n;\n double var=0;\n var=(double)sum2/n-ave*ave;\n System.out.println(Math.sqrt(var));\n }", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int sum1=0;", "sum1", "0", "int sum2=0;", "sum2", "0", "if(n==0){\n break;\n }", "n==0", "n", "0", "{\n break;\n }", "break;", "int[] scores;", "scores", "scores=new int[n]", "scores", "new int[n]", "n", "for(int i=0;i<scores.length;i++){\n scores[i]=sc.nextInt();\n sum1=sum1+scores[i];\n sum2=sum2+scores[i]*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 sum1=sum1+scores[i];\n sum2=sum2+scores[i]*scores[i];\n }", "{\n scores[i]=sc.nextInt();\n sum1=sum1+scores[i];\n sum2=sum2+scores[i]*scores[i];\n }", "scores[i]=sc.nextInt()", "scores[i]", "scores", "i", "sc.nextInt()", "sc.nextInt", "sc", "sum1=sum1+scores[i]", "sum1", "sum1+scores[i]", "sum1", "scores[i]", "scores", "i", "sum2=sum2+scores[i]*scores[i]", "sum2", "sum2+scores[i]*scores[i]", "sum2", "scores[i]*scores[i]", "scores[i]", "scores", "i", "scores[i]", "scores", "i", "double ave=0;", "ave", "0", "ave=(double)sum1/n", "ave", "(double)sum1/n", "(double)sum1", "n", "double var=0;", "var", "0", "var=(double)sum2/n-ave*ave", "var", "(double)sum2/n-ave*ave", "(double)sum2/n", "(double)sum2", "n", "ave*ave", "ave", "ave", "System.out.println(Math.sqrt(var))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(var)", "Math.sqrt", "Math", "var", "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 int sum1=0;\n int sum2=0;\n if(n==0){\n break;\n }\n int[] scores;\n scores=new int[n];\n for(int i=0;i<scores.length;i++){\n scores[i]=sc.nextInt();\n sum1=sum1+scores[i];\n sum2=sum2+scores[i]*scores[i];\n }\n double ave=0;\n ave=(double)sum1/n;\n double var=0;\n var=(double)sum2/n-ave*ave;\n System.out.println(Math.sqrt(var));\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 int sum1=0;\n int sum2=0;\n if(n==0){\n break;\n }\n int[] scores;\n scores=new int[n];\n for(int i=0;i<scores.length;i++){\n scores[i]=sc.nextInt();\n sum1=sum1+scores[i];\n sum2=sum2+scores[i]*scores[i];\n }\n double ave=0;\n ave=(double)sum1/n;\n double var=0;\n var=(double)sum2/n-ave*ave;\n System.out.println(Math.sqrt(var));\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(); int sum1=0; int sum2=0; if(n==0){ break; } int[] scores; scores=new int[n]; for(int i=0;i<scores.length;i++){ scores[i]=sc.nextInt(); sum1=sum1+scores[i]; sum2=sum2+scores[i]*scores[i]; } double ave=0; ave=(double)sum1/n; double var=0; var=(double)sum2/n-ave*ave; System.out.println(Math.sqrt(var)); } } }
[ 7, 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, 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, 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 ], [ 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 ], [ 64, 65 ], [ 64, 66 ], [ 16, 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 ], [ 82, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 82, 90 ], [ 16, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 16, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 6, 105 ], [ 105, 106 ], [ 0, 107 ], [ 107, 108 ], [ 107, 109 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n;\n while(true){\n n = sc.nextInt();\n if(n == 0) break;\n int[] s = new int[n];\n int sum = 0;\n double square = 0;\n for(int i=0; i<n; i++){\n s[i]=sc.nextInt();\n sum += s[i];\n }\n double avg = (double)sum / n;\n for(int i=0; i<n; i++){\n square += Math.pow(s[i]-avg, 2);\n }\n double variance = square / n;\n System.out.println(Math.sqrt(variance));\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 while(true){\n n = sc.nextInt();\n if(n == 0) break;\n int[] s = new int[n];\n int sum = 0;\n double square = 0;\n for(int i=0; i<n; i++){\n s[i]=sc.nextInt();\n sum += s[i];\n }\n double avg = (double)sum / n;\n for(int i=0; i<n; i++){\n square += Math.pow(s[i]-avg, 2);\n }\n double variance = square / n;\n System.out.println(Math.sqrt(variance));\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n;\n while(true){\n n = sc.nextInt();\n if(n == 0) break;\n int[] s = new int[n];\n int sum = 0;\n double square = 0;\n for(int i=0; i<n; i++){\n s[i]=sc.nextInt();\n sum += s[i];\n }\n double avg = (double)sum / n;\n for(int i=0; i<n; i++){\n square += Math.pow(s[i]-avg, 2);\n }\n double variance = square / n;\n System.out.println(Math.sqrt(variance));\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n;\n while(true){\n n = sc.nextInt();\n if(n == 0) break;\n int[] s = new int[n];\n int sum = 0;\n double square = 0;\n for(int i=0; i<n; i++){\n s[i]=sc.nextInt();\n sum += s[i];\n }\n double avg = (double)sum / n;\n for(int i=0; i<n; i++){\n square += Math.pow(s[i]-avg, 2);\n }\n double variance = square / n;\n System.out.println(Math.sqrt(variance));\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) break;\n int[] s = new int[n];\n int sum = 0;\n double square = 0;\n for(int i=0; i<n; i++){\n s[i]=sc.nextInt();\n sum += s[i];\n }\n double avg = (double)sum / n;\n for(int i=0; i<n; i++){\n square += Math.pow(s[i]-avg, 2);\n }\n double variance = square / n;\n System.out.println(Math.sqrt(variance));\n }", "true", "{\n n = sc.nextInt();\n if(n == 0) break;\n int[] s = new int[n];\n int sum = 0;\n double square = 0;\n for(int i=0; i<n; i++){\n s[i]=sc.nextInt();\n sum += s[i];\n }\n double avg = (double)sum / n;\n for(int i=0; i<n; i++){\n square += Math.pow(s[i]-avg, 2);\n }\n double variance = square / n;\n System.out.println(Math.sqrt(variance));\n }", "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", "double square = 0;", "square", "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 avg = (double)sum / n;", "avg", "(double)sum / n", "(double)sum", "n", "for(int i=0; i<n; i++){\n square += Math.pow(s[i]-avg, 2);\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n square += Math.pow(s[i]-avg, 2);\n }", "{\n square += Math.pow(s[i]-avg, 2);\n }", "square += Math.pow(s[i]-avg, 2)", "square", "Math.pow(s[i]-avg, 2)", "Math.pow", "Math", "s[i]-avg", "s[i]", "s", "i", "avg", "2", "double variance = square / n;", "variance", "square / n", "square", "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) {\n Scanner sc = new Scanner(System.in);\n int n;\n while(true){\n n = sc.nextInt();\n if(n == 0) break;\n int[] s = new int[n];\n int sum = 0;\n double square = 0;\n for(int i=0; i<n; i++){\n s[i]=sc.nextInt();\n sum += s[i];\n }\n double avg = (double)sum / n;\n for(int i=0; i<n; i++){\n square += Math.pow(s[i]-avg, 2);\n }\n double variance = square / n;\n System.out.println(Math.sqrt(variance));\n }\n }\n}", "public class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n;\n while(true){\n n = sc.nextInt();\n if(n == 0) break;\n int[] s = new int[n];\n int sum = 0;\n double square = 0;\n for(int i=0; i<n; i++){\n s[i]=sc.nextInt();\n sum += s[i];\n }\n double avg = (double)sum / n;\n for(int i=0; i<n; i++){\n square += Math.pow(s[i]-avg, 2);\n }\n double variance = square / n;\n System.out.println(Math.sqrt(variance));\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; while(true){ n = sc.nextInt(); if(n == 0) break; int[] s = new int[n]; int sum = 0; double square = 0; for(int i=0; i<n; i++){ s[i]=sc.nextInt(); sum += s[i]; } double avg = (double)sum / n; for(int i=0; i<n; i++){ square += Math.pow(s[i]-avg, 2); } double variance = square / n; System.out.println(Math.sqrt(variance)); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 17, 13, 3, 41, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 17, 28, 13, 13, 30, 30, 0, 13, 4, 18, 13, 13, 41, 13, 2, 13, 13, 0, 13, 17, 28, 13, 13, 30, 30, 0, 13, 4, 18, 13, 2, 4, 18, 13, 13, 13, 17, 41, 13, 2, 13, 13, 4, 18, 18, 13, 13, 17, 4, 18, 13, 13, 14, 2, 13, 17, 30, 4, 18, 13, 0, 13, 17, 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 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 23, 28 ], [ 17, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 17, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 17, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 17, 46 ], [ 46, 47 ], [ 46, 48 ], [ 17, 49 ], [ 49, 50 ], [ 49, 51 ], [ 49, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 17, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 17, 65 ], [ 65, 66 ], [ 65, 67 ], [ 17, 68 ], [ 68, 69 ], [ 68, 70 ], [ 68, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 78, 83 ], [ 75, 84 ], [ 17, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 17, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 90, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 11, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 104, 108 ], [ 108, 109 ], [ 108, 110 ], [ 9, 111 ], [ 111, 112 ], [ 0, 113 ], [ 113, 114 ], [ 113, 115 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile (true) {\n\t\t\tString line = br.readLine();\n\t\t\tif (\"0\".equals(line))\n\t\t\t\tbreak;\n\t\t\tint n = Integer.parseInt(line);\n\n\t\t\tline = br.readLine();\n\t\t\tString[] scores = line.split(\" \");\n\t\t\tdouble sum = 0;\n\t\t\tfor (String score : scores) {\n\t\t\t\tsum += Integer.parseInt(score);\n\t\t\t}\n\t\t\tdouble avg = sum / n;\n\n\t\t\tsum = 0;\n\t\t\tfor (String score : scores) {\n\t\t\t\tsum += Math.pow(Integer.parseInt(score) - avg, 2);\n\t\t\t}\n\t\t\tdouble a2 = sum / n;\n\n\t\t\tSystem.out.printf(\"%.5f%n\", Math.sqrt(a2));\n\t\t}\n\n\t\tif (br != null) {\n\t\t\tbr.close();\n\t\t\tbr = null;\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) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile (true) {\n\t\t\tString line = br.readLine();\n\t\t\tif (\"0\".equals(line))\n\t\t\t\tbreak;\n\t\t\tint n = Integer.parseInt(line);\n\n\t\t\tline = br.readLine();\n\t\t\tString[] scores = line.split(\" \");\n\t\t\tdouble sum = 0;\n\t\t\tfor (String score : scores) {\n\t\t\t\tsum += Integer.parseInt(score);\n\t\t\t}\n\t\t\tdouble avg = sum / n;\n\n\t\t\tsum = 0;\n\t\t\tfor (String score : scores) {\n\t\t\t\tsum += Math.pow(Integer.parseInt(score) - avg, 2);\n\t\t\t}\n\t\t\tdouble a2 = sum / n;\n\n\t\t\tSystem.out.printf(\"%.5f%n\", Math.sqrt(a2));\n\t\t}\n\n\t\tif (br != null) {\n\t\t\tbr.close();\n\t\t\tbr = null;\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile (true) {\n\t\t\tString line = br.readLine();\n\t\t\tif (\"0\".equals(line))\n\t\t\t\tbreak;\n\t\t\tint n = Integer.parseInt(line);\n\n\t\t\tline = br.readLine();\n\t\t\tString[] scores = line.split(\" \");\n\t\t\tdouble sum = 0;\n\t\t\tfor (String score : scores) {\n\t\t\t\tsum += Integer.parseInt(score);\n\t\t\t}\n\t\t\tdouble avg = sum / n;\n\n\t\t\tsum = 0;\n\t\t\tfor (String score : scores) {\n\t\t\t\tsum += Math.pow(Integer.parseInt(score) - avg, 2);\n\t\t\t}\n\t\t\tdouble a2 = sum / n;\n\n\t\t\tSystem.out.printf(\"%.5f%n\", Math.sqrt(a2));\n\t\t}\n\n\t\tif (br != null) {\n\t\t\tbr.close();\n\t\t\tbr = null;\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile (true) {\n\t\t\tString line = br.readLine();\n\t\t\tif (\"0\".equals(line))\n\t\t\t\tbreak;\n\t\t\tint n = Integer.parseInt(line);\n\n\t\t\tline = br.readLine();\n\t\t\tString[] scores = line.split(\" \");\n\t\t\tdouble sum = 0;\n\t\t\tfor (String score : scores) {\n\t\t\t\tsum += Integer.parseInt(score);\n\t\t\t}\n\t\t\tdouble avg = sum / n;\n\n\t\t\tsum = 0;\n\t\t\tfor (String score : scores) {\n\t\t\t\tsum += Math.pow(Integer.parseInt(score) - avg, 2);\n\t\t\t}\n\t\t\tdouble a2 = sum / n;\n\n\t\t\tSystem.out.printf(\"%.5f%n\", Math.sqrt(a2));\n\t\t}\n\n\t\tif (br != null) {\n\t\t\tbr.close();\n\t\t\tbr = null;\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while (true) {\n\t\t\tString line = br.readLine();\n\t\t\tif (\"0\".equals(line))\n\t\t\t\tbreak;\n\t\t\tint n = Integer.parseInt(line);\n\n\t\t\tline = br.readLine();\n\t\t\tString[] scores = line.split(\" \");\n\t\t\tdouble sum = 0;\n\t\t\tfor (String score : scores) {\n\t\t\t\tsum += Integer.parseInt(score);\n\t\t\t}\n\t\t\tdouble avg = sum / n;\n\n\t\t\tsum = 0;\n\t\t\tfor (String score : scores) {\n\t\t\t\tsum += Math.pow(Integer.parseInt(score) - avg, 2);\n\t\t\t}\n\t\t\tdouble a2 = sum / n;\n\n\t\t\tSystem.out.printf(\"%.5f%n\", Math.sqrt(a2));\n\t\t}", "true", "{\n\t\t\tString line = br.readLine();\n\t\t\tif (\"0\".equals(line))\n\t\t\t\tbreak;\n\t\t\tint n = Integer.parseInt(line);\n\n\t\t\tline = br.readLine();\n\t\t\tString[] scores = line.split(\" \");\n\t\t\tdouble sum = 0;\n\t\t\tfor (String score : scores) {\n\t\t\t\tsum += Integer.parseInt(score);\n\t\t\t}\n\t\t\tdouble avg = sum / n;\n\n\t\t\tsum = 0;\n\t\t\tfor (String score : scores) {\n\t\t\t\tsum += Math.pow(Integer.parseInt(score) - avg, 2);\n\t\t\t}\n\t\t\tdouble a2 = sum / n;\n\n\t\t\tSystem.out.printf(\"%.5f%n\", Math.sqrt(a2));\n\t\t}", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "if (\"0\".equals(line))\n\t\t\t\tbreak;", "\"0\".equals(line)", "\"0\".equals", "\"0\"", "line", "break;", "int n = Integer.parseInt(line);", "n", "Integer.parseInt(line)", "Integer.parseInt", "Integer", "line", "line = br.readLine()", "line", "br.readLine()", "br.readLine", "br", "String[] scores = line.split(\" \");", "scores", "line.split(\" \")", "line.split", "line", "\" \"", "double sum = 0;", "sum", "0", "for (String score : scores) {\n\t\t\t\tsum += Integer.parseInt(score);\n\t\t\t}", "String score", "scores", "{\n\t\t\t\tsum += Integer.parseInt(score);\n\t\t\t}", "{\n\t\t\t\tsum += Integer.parseInt(score);\n\t\t\t}", "sum += Integer.parseInt(score)", "sum", "Integer.parseInt(score)", "Integer.parseInt", "Integer", "score", "double avg = sum / n;", "avg", "sum / n", "sum", "n", "sum = 0", "sum", "0", "for (String score : scores) {\n\t\t\t\tsum += Math.pow(Integer.parseInt(score) - avg, 2);\n\t\t\t}", "String score", "scores", "{\n\t\t\t\tsum += Math.pow(Integer.parseInt(score) - avg, 2);\n\t\t\t}", "{\n\t\t\t\tsum += Math.pow(Integer.parseInt(score) - avg, 2);\n\t\t\t}", "sum += Math.pow(Integer.parseInt(score) - avg, 2)", "sum", "Math.pow(Integer.parseInt(score) - avg, 2)", "Math.pow", "Math", "Integer.parseInt(score) - avg", "Integer.parseInt(score)", "Integer.parseInt", "Integer", "score", "avg", "2", "double a2 = sum / n;", "a2", "sum / n", "sum", "n", "System.out.printf(\"%.5f%n\", Math.sqrt(a2))", "System.out.printf", "System.out", "System", "System.out", "\"%.5f%n\"", "Math.sqrt(a2)", "Math.sqrt", "Math", "a2", "if (br != null) {\n\t\t\tbr.close();\n\t\t\tbr = null;\n\t\t}", "br != null", "br", "null", "{\n\t\t\tbr.close();\n\t\t\tbr = null;\n\t\t}", "br.close()", "br.close", "br", "br = null", "br", "null", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile (true) {\n\t\t\tString line = br.readLine();\n\t\t\tif (\"0\".equals(line))\n\t\t\t\tbreak;\n\t\t\tint n = Integer.parseInt(line);\n\n\t\t\tline = br.readLine();\n\t\t\tString[] scores = line.split(\" \");\n\t\t\tdouble sum = 0;\n\t\t\tfor (String score : scores) {\n\t\t\t\tsum += Integer.parseInt(score);\n\t\t\t}\n\t\t\tdouble avg = sum / n;\n\n\t\t\tsum = 0;\n\t\t\tfor (String score : scores) {\n\t\t\t\tsum += Math.pow(Integer.parseInt(score) - avg, 2);\n\t\t\t}\n\t\t\tdouble a2 = sum / n;\n\n\t\t\tSystem.out.printf(\"%.5f%n\", Math.sqrt(a2));\n\t\t}\n\n\t\tif (br != null) {\n\t\t\tbr.close();\n\t\t\tbr = null;\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile (true) {\n\t\t\tString line = br.readLine();\n\t\t\tif (\"0\".equals(line))\n\t\t\t\tbreak;\n\t\t\tint n = Integer.parseInt(line);\n\n\t\t\tline = br.readLine();\n\t\t\tString[] scores = line.split(\" \");\n\t\t\tdouble sum = 0;\n\t\t\tfor (String score : scores) {\n\t\t\t\tsum += Integer.parseInt(score);\n\t\t\t}\n\t\t\tdouble avg = sum / n;\n\n\t\t\tsum = 0;\n\t\t\tfor (String score : scores) {\n\t\t\t\tsum += Math.pow(Integer.parseInt(score) - avg, 2);\n\t\t\t}\n\t\t\tdouble a2 = sum / n;\n\n\t\t\tSystem.out.printf(\"%.5f%n\", Math.sqrt(a2));\n\t\t}\n\n\t\tif (br != null) {\n\t\t\tbr.close();\n\t\t\tbr = null;\n\t\t}\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)); while (true) { String line = br.readLine(); if ("0".equals(line)) break; int n = Integer.parseInt(line); line = br.readLine(); String[] scores = line.split(" "); double sum = 0; for (String score : scores) { sum += Integer.parseInt(score); } double avg = sum / n; sum = 0; for (String score : scores) { sum += Math.pow(Integer.parseInt(score) - avg, 2); } double a2 = sum / n; System.out.printf("%.5f%n", Math.sqrt(a2)); } if (br != null) { br.close(); br = null; } } }
[ 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, 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, 41, 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, 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 ], [ 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 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 30 ], [ 30, 31 ], [ 30, 32 ], [ 14, 33 ], [ 33, 34 ], [ 33, 35 ], [ 14, 36 ], [ 36, 37 ], [ 36, 38 ], [ 14, 39 ], [ 39, 40 ], [ 39, 41 ], [ 14, 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 ], [ 14, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 14, 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 ], [ 14, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 103, 104 ], [ 103, 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;\n\npublic class Main {\n public static void main(String[] args){\n\n Scanner scan = new Scanner(System.in); \n while(true){\n int n = scan.nextInt();\n if(n==0){ break; }\n double[] s = new double[n];\n int i = 0;\n double sum = 0;\n double sumHensa = 0; \n double ans = 0;\n\n for(i=0;i<n;i++){\n s[i] = scan.nextDouble();\n sum += s[i];\n }\n\n double average = (double) sum / n;\n\n for(i=0;i<n;i++){\n sumHensa += (s[i] - average) * (s[i] - average);\n }\n\n ans = Math.sqrt( (double) sumHensa / n );\n System.out.println(ans);\n }\n \n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args){\n\n Scanner scan = new Scanner(System.in); \n while(true){\n int n = scan.nextInt();\n if(n==0){ break; }\n double[] s = new double[n];\n int i = 0;\n double sum = 0;\n double sumHensa = 0; \n double ans = 0;\n\n for(i=0;i<n;i++){\n s[i] = scan.nextDouble();\n sum += s[i];\n }\n\n double average = (double) sum / n;\n\n for(i=0;i<n;i++){\n sumHensa += (s[i] - average) * (s[i] - average);\n }\n\n ans = Math.sqrt( (double) sumHensa / n );\n System.out.println(ans);\n }\n \n }\n\n}", "Main", "public static void main(String[] args){\n\n Scanner scan = new Scanner(System.in); \n while(true){\n int n = scan.nextInt();\n if(n==0){ break; }\n double[] s = new double[n];\n int i = 0;\n double sum = 0;\n double sumHensa = 0; \n double ans = 0;\n\n for(i=0;i<n;i++){\n s[i] = scan.nextDouble();\n sum += s[i];\n }\n\n double average = (double) sum / n;\n\n for(i=0;i<n;i++){\n sumHensa += (s[i] - average) * (s[i] - average);\n }\n\n ans = Math.sqrt( (double) sumHensa / n );\n System.out.println(ans);\n }\n \n }", "main", "{\n\n Scanner scan = new Scanner(System.in); \n while(true){\n int n = scan.nextInt();\n if(n==0){ break; }\n double[] s = new double[n];\n int i = 0;\n double sum = 0;\n double sumHensa = 0; \n double ans = 0;\n\n for(i=0;i<n;i++){\n s[i] = scan.nextDouble();\n sum += s[i];\n }\n\n double average = (double) sum / n;\n\n for(i=0;i<n;i++){\n sumHensa += (s[i] - average) * (s[i] - average);\n }\n\n ans = Math.sqrt( (double) sumHensa / n );\n System.out.println(ans);\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){ break; }\n double[] s = new double[n];\n int i = 0;\n double sum = 0;\n double sumHensa = 0; \n double ans = 0;\n\n for(i=0;i<n;i++){\n s[i] = scan.nextDouble();\n sum += s[i];\n }\n\n double average = (double) sum / n;\n\n for(i=0;i<n;i++){\n sumHensa += (s[i] - average) * (s[i] - average);\n }\n\n ans = Math.sqrt( (double) sumHensa / n );\n System.out.println(ans);\n }", "true", "{\n int n = scan.nextInt();\n if(n==0){ break; }\n double[] s = new double[n];\n int i = 0;\n double sum = 0;\n double sumHensa = 0; \n double ans = 0;\n\n for(i=0;i<n;i++){\n s[i] = scan.nextDouble();\n sum += s[i];\n }\n\n double average = (double) sum / n;\n\n for(i=0;i<n;i++){\n sumHensa += (s[i] - average) * (s[i] - average);\n }\n\n ans = Math.sqrt( (double) sumHensa / n );\n System.out.println(ans);\n }", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "if(n==0){ break; }", "n==0", "n", "0", "{ break; }", "break;", "double[] s = new double[n];", "s", "new double[n]", "n", "int i = 0;", "i", "0", "double sum = 0;", "sum", "0", "double sumHensa = 0;", "sumHensa", "0", "double ans = 0;", "ans", "0", "for(i=0;i<n;i++){\n s[i] = scan.nextDouble();\n sum += s[i];\n }", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n s[i] = scan.nextDouble();\n sum += s[i];\n }", "{\n s[i] = scan.nextDouble();\n sum += s[i];\n }", "s[i] = scan.nextDouble()", "s[i]", "s", "i", "scan.nextDouble()", "scan.nextDouble", "scan", "sum += s[i]", "sum", "s[i]", "s", "i", "double average = (double) sum / n;", "average", "(double) sum / n", "(double) sum", "n", "for(i=0;i<n;i++){\n sumHensa += (s[i] - average) * (s[i] - average);\n }", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n sumHensa += (s[i] - average) * (s[i] - average);\n }", "{\n sumHensa += (s[i] - average) * (s[i] - average);\n }", "sumHensa += (s[i] - average) * (s[i] - average)", "sumHensa", "(s[i] - average) * (s[i] - average)", "(s[i] - average)", "s[i]", "s", "i", "average", "(s[i] - average)", "s[i]", "s", "i", "average", "ans = Math.sqrt( (double) sumHensa / n )", "ans", "Math.sqrt( (double) sumHensa / n )", "Math.sqrt", "Math", "(double) sumHensa / n", "(double) sumHensa", "n", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n\n Scanner scan = new Scanner(System.in); \n while(true){\n int n = scan.nextInt();\n if(n==0){ break; }\n double[] s = new double[n];\n int i = 0;\n double sum = 0;\n double sumHensa = 0; \n double ans = 0;\n\n for(i=0;i<n;i++){\n s[i] = scan.nextDouble();\n sum += s[i];\n }\n\n double average = (double) sum / n;\n\n for(i=0;i<n;i++){\n sumHensa += (s[i] - average) * (s[i] - average);\n }\n\n ans = Math.sqrt( (double) sumHensa / n );\n System.out.println(ans);\n }\n \n }\n\n}", "public class Main {\n public static void main(String[] args){\n\n Scanner scan = new Scanner(System.in); \n while(true){\n int n = scan.nextInt();\n if(n==0){ break; }\n double[] s = new double[n];\n int i = 0;\n double sum = 0;\n double sumHensa = 0; \n double ans = 0;\n\n for(i=0;i<n;i++){\n s[i] = scan.nextDouble();\n sum += s[i];\n }\n\n double average = (double) sum / n;\n\n for(i=0;i<n;i++){\n sumHensa += (s[i] - average) * (s[i] - average);\n }\n\n ans = Math.sqrt( (double) sumHensa / n );\n System.out.println(ans);\n }\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; } double[] s = new double[n]; int i = 0; double sum = 0; double sumHensa = 0; double ans = 0; for(i=0;i<n;i++){ s[i] = scan.nextDouble(); sum += s[i]; } double average = (double) sum / n; for(i=0;i<n;i++){ sumHensa += (s[i] - average) * (s[i] - average); } ans = Math.sqrt( (double) sumHensa / n ); System.out.println(ans); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 17, 4, 18, 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, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 41, 13, 17, 41, 13, 4, 13, 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, 4, 18, 13, 2, 13, 18, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 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, 13, 23, 13, 12, 13, 30, 29, 2, 4, 13, 13, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 190, 20 ], [ 190, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 23, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 23, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 23, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 48, 49 ], [ 49, 50 ], [ 42, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 42, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 58, 63 ], [ 42, 64 ], [ 64, 65 ], [ 64, 66 ], [ 42, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 73, 74 ], [ 73, 75 ], [ 68, 76 ], [ 76, 77 ], [ 77, 78 ], [ 68, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 87, 88 ], [ 87, 89 ], [ 42, 90 ], [ 90, 91 ], [ 90, 92 ], [ 42, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 42, 98 ], [ 98, 99 ], [ 98, 100 ], [ 42, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 108, 110 ], [ 101, 111 ], [ 111, 112 ], [ 112, 113 ], [ 101, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 118, 119 ], [ 117, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 117, 125 ], [ 42, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 129, 130 ], [ 128, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 133, 135 ], [ 42, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 136, 141 ], [ 141, 142 ], [ 142, 143 ], [ 141, 144 ], [ 21, 145 ], [ 145, 146 ], [ 190, 147 ], [ 147, 148 ], [ 147, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 149, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 153, 158 ], [ 158, 159 ], [ 158, 160 ], [ 160, 161 ], [ 160, 162 ], [ 153, 163 ], [ 163, 164 ], [ 164, 165 ], [ 153, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 169, 170 ], [ 169, 171 ], [ 149, 172 ], [ 172, 173 ], [ 147, 174 ], [ 174, 175 ], [ 190, 176 ], [ 176, 177 ], [ 176, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 180, 184 ], [ 184, 185 ], [ 184, 186 ], [ 176, 187 ], [ 187, 188 ], [ 0, 189 ], [ 189, 190 ], [ 189, 191 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.lang.Math.*;\nimport java.util.*;\nimport java.math.*;\nimport java.text.*;\npublic class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n NumberFormat nf = NumberFormat.getInstance();\n nf.setMaximumFractionDigits(8);\n nf.setGroupingUsed(false);\n while(true) {\n int count = Integer.parseInt(br.readLine());\n if(count == 0)break;\n String[] line = br.readLine().split(\" \");\n double[] points = new double[count];\n //longの配列に格納\n for(int i=0;i<count;i++) points[i] = Double.parseDouble(line[i]);\n //標準偏差計算\n double sample = 0;\n double ave_d = ave(points);\n double ans = 0;\n for(int i=0;i<points.length;i++)\n sample += (Math.pow((points[i] - ave_d),2));\n ans = Math.sqrt(sample / points.length);\n System.out.println(nf.format(ans));\n }\n }\n static double sum(double[] tag) {\n double sum = 0;\n for(int i=0;i<tag.length;i++)\n sum += tag[i];\n return sum;\n }\n static double ave(double[] tag) {\n return sum(tag) / tag.length;\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.lang.Math.*;", "Math.*", "java.lang", "import java.util.*;", "util.*", "java", "import java.math.*;", "math.*", "java", "import java.text.*;", "text.*", "java", "public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n NumberFormat nf = NumberFormat.getInstance();\n nf.setMaximumFractionDigits(8);\n nf.setGroupingUsed(false);\n while(true) {\n int count = Integer.parseInt(br.readLine());\n if(count == 0)break;\n String[] line = br.readLine().split(\" \");\n double[] points = new double[count];\n //longの配列に格納\n for(int i=0;i<count;i++) points[i] = Double.parseDouble(line[i]);\n //標準偏差計算\n double sample = 0;\n double ave_d = ave(points);\n double ans = 0;\n for(int i=0;i<points.length;i++)\n sample += (Math.pow((points[i] - ave_d),2));\n ans = Math.sqrt(sample / points.length);\n System.out.println(nf.format(ans));\n }\n }\n static double sum(double[] tag) {\n double sum = 0;\n for(int i=0;i<tag.length;i++)\n sum += tag[i];\n return sum;\n }\n static double ave(double[] tag) {\n return sum(tag) / tag.length;\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n NumberFormat nf = NumberFormat.getInstance();\n nf.setMaximumFractionDigits(8);\n nf.setGroupingUsed(false);\n while(true) {\n int count = Integer.parseInt(br.readLine());\n if(count == 0)break;\n String[] line = br.readLine().split(\" \");\n double[] points = new double[count];\n //longの配列に格納\n for(int i=0;i<count;i++) points[i] = Double.parseDouble(line[i]);\n //標準偏差計算\n double sample = 0;\n double ave_d = ave(points);\n double ans = 0;\n for(int i=0;i<points.length;i++)\n sample += (Math.pow((points[i] - ave_d),2));\n ans = Math.sqrt(sample / points.length);\n System.out.println(nf.format(ans));\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n NumberFormat nf = NumberFormat.getInstance();\n nf.setMaximumFractionDigits(8);\n nf.setGroupingUsed(false);\n while(true) {\n int count = Integer.parseInt(br.readLine());\n if(count == 0)break;\n String[] line = br.readLine().split(\" \");\n double[] points = new double[count];\n //longの配列に格納\n for(int i=0;i<count;i++) points[i] = Double.parseDouble(line[i]);\n //標準偏差計算\n double sample = 0;\n double ave_d = ave(points);\n double ans = 0;\n for(int i=0;i<points.length;i++)\n sample += (Math.pow((points[i] - ave_d),2));\n ans = Math.sqrt(sample / points.length);\n System.out.println(nf.format(ans));\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "NumberFormat nf = NumberFormat.getInstance();", "nf", "NumberFormat.getInstance()", "NumberFormat.getInstance", "NumberFormat", "nf.setMaximumFractionDigits(8)", "nf.setMaximumFractionDigits", "nf", "8", "nf.setGroupingUsed(false)", "nf.setGroupingUsed", "nf", "false", "while(true) {\n int count = Integer.parseInt(br.readLine());\n if(count == 0)break;\n String[] line = br.readLine().split(\" \");\n double[] points = new double[count];\n //longの配列に格納\n for(int i=0;i<count;i++) points[i] = Double.parseDouble(line[i]);\n //標準偏差計算\n double sample = 0;\n double ave_d = ave(points);\n double ans = 0;\n for(int i=0;i<points.length;i++)\n sample += (Math.pow((points[i] - ave_d),2));\n ans = Math.sqrt(sample / points.length);\n System.out.println(nf.format(ans));\n }", "true", "{\n int count = Integer.parseInt(br.readLine());\n if(count == 0)break;\n String[] line = br.readLine().split(\" \");\n double[] points = new double[count];\n //longの配列に格納\n for(int i=0;i<count;i++) points[i] = Double.parseDouble(line[i]);\n //標準偏差計算\n double sample = 0;\n double ave_d = ave(points);\n double ans = 0;\n for(int i=0;i<points.length;i++)\n sample += (Math.pow((points[i] - ave_d),2));\n ans = Math.sqrt(sample / points.length);\n System.out.println(nf.format(ans));\n }", "int count = Integer.parseInt(br.readLine());", "count", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "if(count == 0)break;", "count == 0", "count", "0", "break;", "String[] line = br.readLine().split(\" \");", "line", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "double[] points = new double[count];", "points", "new double[count]", "count", "for(int i=0;i<count;i++) points[i] = Double.parseDouble(line[i]);", "int i=0;", "int i=0;", "i", "0", "i<count", "i", "count", "i++", "i++", "i", "points[i] = Double.parseDouble(line[i]);", "points[i] = Double.parseDouble(line[i])", "points[i]", "points", "i", "Double.parseDouble(line[i])", "Double.parseDouble", "Double", "line[i]", "line", "i", "double sample = 0;", "sample", "0", "double ave_d = ave(points);", "ave_d", "ave(points)", "ave", "points", "double ans = 0;", "ans", "0", "for(int i=0;i<points.length;i++)\n sample += (Math.pow((points[i] - ave_d),2));", "int i=0;", "int i=0;", "i", "0", "i<points.length", "i", "points.length", "points", "points.length", "i++", "i++", "i", "sample += (Math.pow((points[i] - ave_d),2));", "sample += (Math.pow((points[i] - ave_d),2))", "sample", "(Math.pow((points[i] - ave_d),2))", "Math.pow", "Math", "(points[i] - ave_d)", "points[i]", "points", "i", "ave_d", "2", "ans = Math.sqrt(sample / points.length)", "ans", "Math.sqrt(sample / points.length)", "Math.sqrt", "Math", "sample / points.length", "sample", "points.length", "points", "points.length", "System.out.println(nf.format(ans))", "System.out.println", "System.out", "System", "System.out", "nf.format(ans)", "nf.format", "nf", "ans", "String[] args", "args", "static double sum(double[] tag) {\n double sum = 0;\n for(int i=0;i<tag.length;i++)\n sum += tag[i];\n return sum;\n }", "sum", "{\n double sum = 0;\n for(int i=0;i<tag.length;i++)\n sum += tag[i];\n return sum;\n }", "double sum = 0;", "sum", "0", "for(int i=0;i<tag.length;i++)\n sum += tag[i];", "int i=0;", "int i=0;", "i", "0", "i<tag.length", "i", "tag.length", "tag", "tag.length", "i++", "i++", "i", "sum += tag[i];", "sum += tag[i]", "sum", "tag[i]", "tag", "i", "return sum;", "sum", "double[] tag", "tag", "static double ave(double[] tag) {\n return sum(tag) / tag.length;\n }", "ave", "{\n return sum(tag) / tag.length;\n }", "return sum(tag) / tag.length;", "sum(tag) / tag.length", "sum(tag)", "sum", "tag", "tag.length", "tag", "tag.length", "double[] tag", "tag", "public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n NumberFormat nf = NumberFormat.getInstance();\n nf.setMaximumFractionDigits(8);\n nf.setGroupingUsed(false);\n while(true) {\n int count = Integer.parseInt(br.readLine());\n if(count == 0)break;\n String[] line = br.readLine().split(\" \");\n double[] points = new double[count];\n //longの配列に格納\n for(int i=0;i<count;i++) points[i] = Double.parseDouble(line[i]);\n //標準偏差計算\n double sample = 0;\n double ave_d = ave(points);\n double ans = 0;\n for(int i=0;i<points.length;i++)\n sample += (Math.pow((points[i] - ave_d),2));\n ans = Math.sqrt(sample / points.length);\n System.out.println(nf.format(ans));\n }\n }\n static double sum(double[] tag) {\n double sum = 0;\n for(int i=0;i<tag.length;i++)\n sum += tag[i];\n return sum;\n }\n static double ave(double[] tag) {\n return sum(tag) / tag.length;\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n NumberFormat nf = NumberFormat.getInstance();\n nf.setMaximumFractionDigits(8);\n nf.setGroupingUsed(false);\n while(true) {\n int count = Integer.parseInt(br.readLine());\n if(count == 0)break;\n String[] line = br.readLine().split(\" \");\n double[] points = new double[count];\n //longの配列に格納\n for(int i=0;i<count;i++) points[i] = Double.parseDouble(line[i]);\n //標準偏差計算\n double sample = 0;\n double ave_d = ave(points);\n double ans = 0;\n for(int i=0;i<points.length;i++)\n sample += (Math.pow((points[i] - ave_d),2));\n ans = Math.sqrt(sample / points.length);\n System.out.println(nf.format(ans));\n }\n }\n static double sum(double[] tag) {\n double sum = 0;\n for(int i=0;i<tag.length;i++)\n sum += tag[i];\n return sum;\n }\n static double ave(double[] tag) {\n return sum(tag) / tag.length;\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.lang.Math.*; import java.util.*; import java.math.*; import java.text.*; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); NumberFormat nf = NumberFormat.getInstance(); nf.setMaximumFractionDigits(8); nf.setGroupingUsed(false); while(true) { int count = Integer.parseInt(br.readLine()); if(count == 0)break; String[] line = br.readLine().split(" "); double[] points = new double[count]; //longの配列に格納 for(int i=0;i<count;i++) points[i] = Double.parseDouble(line[i]); //標準偏差計算 double sample = 0; double ave_d = ave(points); double ans = 0; for(int i=0;i<points.length;i++) sample += (Math.pow((points[i] - ave_d),2)); ans = Math.sqrt(sample / points.length); System.out.println(nf.format(ans)); } } static double sum(double[] tag) { double sum = 0; for(int i=0;i<tag.length;i++) sum += tag[i]; return sum; } static double ave(double[] tag) { return sum(tag) / tag.length; } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 11, 1, 30, 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, 13, 41, 13, 4, 18, 13, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 18, 13, 13, 2, 17, 4, 18, 13, 4, 18, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 18, 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 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 48, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 58, 60 ], [ 18, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 18, 66 ], [ 66, 67 ], [ 66, 68 ], [ 18, 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 ], [ 18, 95 ], [ 95, 96 ], [ 95, 97 ], [ 18, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 18, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 18, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 18, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 18, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 123, 124 ], [ 122, 125 ], [ 125, 126 ], [ 126, 127 ], [ 125, 128 ], [ 9, 129 ], [ 129, 130 ] ]
[ "import java.util.*;\nimport java.text.*;\n\nclass Main {\n public static void main(String[]args)throws Exception {\n Scanner sc = new Scanner(System.in);\n for(;;) {\n int n = sc.nextInt();\n if(n == 0) break;\n int [] xs = new int[n];\n long s = 0;\n for(int i = 0; i < n; i++) {\n xs[i] = sc.nextInt();\n s += xs[i];\n }\n double m = s / (double) n;\n double d = 0;\n for(int i = 0; i < n; i++) {\n d += (xs[i] - m) * (xs[i] - m);\n }\n d /= n;\n NumberFormat format = NumberFormat.getInstance();\n format.setMaximumFractionDigits(5);\n format.setMinimumFractionDigits(5);\n format.setGroupingUsed(false);\n System.out.println(\"\" + format.format(Math.sqrt(d)));\n }\n }\n}", "import java.util.*;", "util.*", "java", "import java.text.*;", "text.*", "java", "class Main {\n public static void main(String[]args)throws Exception {\n Scanner sc = new Scanner(System.in);\n for(;;) {\n int n = sc.nextInt();\n if(n == 0) break;\n int [] xs = new int[n];\n long s = 0;\n for(int i = 0; i < n; i++) {\n xs[i] = sc.nextInt();\n s += xs[i];\n }\n double m = s / (double) n;\n double d = 0;\n for(int i = 0; i < n; i++) {\n d += (xs[i] - m) * (xs[i] - m);\n }\n d /= n;\n NumberFormat format = NumberFormat.getInstance();\n format.setMaximumFractionDigits(5);\n format.setMinimumFractionDigits(5);\n format.setGroupingUsed(false);\n System.out.println(\"\" + format.format(Math.sqrt(d)));\n }\n }\n}", "Main", "public static void main(String[]args)throws Exception {\n Scanner sc = new Scanner(System.in);\n for(;;) {\n int n = sc.nextInt();\n if(n == 0) break;\n int [] xs = new int[n];\n long s = 0;\n for(int i = 0; i < n; i++) {\n xs[i] = sc.nextInt();\n s += xs[i];\n }\n double m = s / (double) n;\n double d = 0;\n for(int i = 0; i < n; i++) {\n d += (xs[i] - m) * (xs[i] - m);\n }\n d /= n;\n NumberFormat format = NumberFormat.getInstance();\n format.setMaximumFractionDigits(5);\n format.setMinimumFractionDigits(5);\n format.setGroupingUsed(false);\n System.out.println(\"\" + format.format(Math.sqrt(d)));\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n for(;;) {\n int n = sc.nextInt();\n if(n == 0) break;\n int [] xs = new int[n];\n long s = 0;\n for(int i = 0; i < n; i++) {\n xs[i] = sc.nextInt();\n s += xs[i];\n }\n double m = s / (double) n;\n double d = 0;\n for(int i = 0; i < n; i++) {\n d += (xs[i] - m) * (xs[i] - m);\n }\n d /= n;\n NumberFormat format = NumberFormat.getInstance();\n format.setMaximumFractionDigits(5);\n format.setMinimumFractionDigits(5);\n format.setGroupingUsed(false);\n System.out.println(\"\" + format.format(Math.sqrt(d)));\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "for(;;) {\n int n = sc.nextInt();\n if(n == 0) break;\n int [] xs = new int[n];\n long s = 0;\n for(int i = 0; i < n; i++) {\n xs[i] = sc.nextInt();\n s += xs[i];\n }\n double m = s / (double) n;\n double d = 0;\n for(int i = 0; i < n; i++) {\n d += (xs[i] - m) * (xs[i] - m);\n }\n d /= n;\n NumberFormat format = NumberFormat.getInstance();\n format.setMaximumFractionDigits(5);\n format.setMinimumFractionDigits(5);\n format.setGroupingUsed(false);\n System.out.println(\"\" + format.format(Math.sqrt(d)));\n }", ";", "{\n int n = sc.nextInt();\n if(n == 0) break;\n int [] xs = new int[n];\n long s = 0;\n for(int i = 0; i < n; i++) {\n xs[i] = sc.nextInt();\n s += xs[i];\n }\n double m = s / (double) n;\n double d = 0;\n for(int i = 0; i < n; i++) {\n d += (xs[i] - m) * (xs[i] - m);\n }\n d /= n;\n NumberFormat format = NumberFormat.getInstance();\n format.setMaximumFractionDigits(5);\n format.setMinimumFractionDigits(5);\n format.setGroupingUsed(false);\n System.out.println(\"\" + format.format(Math.sqrt(d)));\n }", "{\n int n = sc.nextInt();\n if(n == 0) break;\n int [] xs = new int[n];\n long s = 0;\n for(int i = 0; i < n; i++) {\n xs[i] = sc.nextInt();\n s += xs[i];\n }\n double m = s / (double) n;\n double d = 0;\n for(int i = 0; i < n; i++) {\n d += (xs[i] - m) * (xs[i] - m);\n }\n d /= n;\n NumberFormat format = NumberFormat.getInstance();\n format.setMaximumFractionDigits(5);\n format.setMinimumFractionDigits(5);\n format.setGroupingUsed(false);\n System.out.println(\"\" + format.format(Math.sqrt(d)));\n }", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n == 0) break;", "n == 0", "n", "0", "break;", "int [] xs = new int[n];", "xs", "new int[n]", "n", "long s = 0;", "s", "0", "for(int i = 0; i < n; i++) {\n xs[i] = sc.nextInt();\n s += xs[i];\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n xs[i] = sc.nextInt();\n s += xs[i];\n }", "{\n xs[i] = sc.nextInt();\n s += xs[i];\n }", "xs[i] = sc.nextInt()", "xs[i]", "xs", "i", "sc.nextInt()", "sc.nextInt", "sc", "s += xs[i]", "s", "xs[i]", "xs", "i", "double m = s / (double) n;", "m", "s / (double) n", "s", "(double) n", "double d = 0;", "d", "0", "for(int i = 0; i < n; i++) {\n d += (xs[i] - m) * (xs[i] - m);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n d += (xs[i] - m) * (xs[i] - m);\n }", "{\n d += (xs[i] - m) * (xs[i] - m);\n }", "d += (xs[i] - m) * (xs[i] - m)", "d", "(xs[i] - m) * (xs[i] - m)", "(xs[i] - m)", "xs[i]", "xs", "i", "m", "(xs[i] - m)", "xs[i]", "xs", "i", "m", "d /= n", "d", "n", "NumberFormat format = NumberFormat.getInstance();", "format", "NumberFormat.getInstance()", "NumberFormat.getInstance", "NumberFormat", "format.setMaximumFractionDigits(5)", "format.setMaximumFractionDigits", "format", "5", "format.setMinimumFractionDigits(5)", "format.setMinimumFractionDigits", "format", "5", "format.setGroupingUsed(false)", "format.setGroupingUsed", "format", "false", "System.out.println(\"\" + format.format(Math.sqrt(d)))", "System.out.println", "System.out", "System", "System.out", "\"\" + format.format(Math.sqrt(d))", "\"\"", "format.format(Math.sqrt(d))", "format.format", "format", "Math.sqrt(d)", "Math.sqrt", "Math", "d", "String[]args", "args" ]
import java.util.*; import java.text.*; class Main { public static void main(String[]args)throws Exception { Scanner sc = new Scanner(System.in); for(;;) { int n = sc.nextInt(); if(n == 0) break; int [] xs = new int[n]; long s = 0; for(int i = 0; i < n; i++) { xs[i] = sc.nextInt(); s += xs[i]; } double m = s / (double) n; double d = 0; for(int i = 0; i < n; i++) { d += (xs[i] - m) * (xs[i] - m); } d /= n; NumberFormat format = NumberFormat.getInstance(); format.setMaximumFractionDigits(5); format.setMinimumFractionDigits(5); format.setGroupingUsed(false); System.out.println("" + format.format(Math.sqrt(d))); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 0, 13, 20, 41, 13, 20, 4, 18, 13, 4, 18, 13, 23, 13, 6, 13, 12, 13, 30, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 17, 41, 13, 41, 13, 17, 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, 13, 0, 13, 4, 18, 13, 13, 4, 18, 13, 17, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 4, 18, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 4, 18, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 4, 18, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 253, 23 ], [ 253, 24 ], [ 24, 25 ], [ 253, 26 ], [ 26, 27 ], [ 253, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 34, 35 ], [ 34, 36 ], [ 30, 37 ], [ 37, 38 ], [ 37, 39 ], [ 30, 40 ], [ 40, 41 ], [ 41, 42 ], [ 30, 43 ], [ 43, 44 ], [ 44, 45 ], [ 28, 46 ], [ 46, 47 ], [ 253, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 55, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 65, 66 ], [ 55, 67 ], [ 67, 68 ], [ 67, 69 ], [ 55, 70 ], [ 70, 71 ], [ 55, 72 ], [ 72, 73 ], [ 72, 74 ], [ 55, 75 ], [ 75, 76 ], [ 55, 77 ], [ 77, 78 ], [ 77, 79 ], [ 55, 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 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 99, 100 ], [ 93, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 103, 105 ], [ 55, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 108, 110 ], [ 55, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 116, 117 ], [ 116, 118 ], [ 111, 119 ], [ 119, 120 ], [ 120, 121 ], [ 111, 122 ], [ 123, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 129, 133 ], [ 126, 134 ], [ 55, 135 ], [ 135, 136 ], [ 135, 137 ], [ 55, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 141, 142 ], [ 140, 143 ], [ 55, 144 ], [ 144, 145 ], [ 145, 146 ], [ 144, 147 ], [ 144, 148 ], [ 253, 149 ], [ 149, 150 ], [ 149, 151 ], [ 151, 152 ], [ 149, 153 ], [ 153, 154 ], [ 149, 155 ], [ 155, 156 ], [ 155, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 155, 161 ], [ 161, 162 ], [ 149, 163 ], [ 163, 164 ], [ 163, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 167, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 166, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 165, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 180, 183 ], [ 183, 184 ], [ 184, 185 ], [ 149, 186 ], [ 186, 187 ], [ 186, 188 ], [ 188, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 191, 193 ], [ 190, 194 ], [ 194, 195 ], [ 195, 196 ], [ 196, 197 ], [ 189, 198 ], [ 198, 199 ], [ 199, 200 ], [ 199, 201 ], [ 188, 202 ], [ 202, 203 ], [ 203, 204 ], [ 204, 205 ], [ 203, 206 ], [ 206, 207 ], [ 207, 208 ], [ 149, 209 ], [ 209, 210 ], [ 209, 211 ], [ 211, 212 ], [ 212, 213 ], [ 213, 214 ], [ 214, 215 ], [ 214, 216 ], [ 213, 217 ], [ 217, 218 ], [ 218, 219 ], [ 219, 220 ], [ 212, 221 ], [ 221, 222 ], [ 222, 223 ], [ 222, 224 ], [ 211, 225 ], [ 225, 226 ], [ 226, 227 ], [ 227, 228 ], [ 149, 229 ], [ 229, 230 ], [ 229, 231 ], [ 231, 232 ], [ 232, 233 ], [ 233, 234 ], [ 234, 235 ], [ 234, 236 ], [ 233, 237 ], [ 237, 238 ], [ 238, 239 ], [ 239, 240 ], [ 232, 241 ], [ 241, 242 ], [ 242, 243 ], [ 242, 244 ], [ 231, 245 ], [ 245, 246 ], [ 246, 247 ], [ 247, 248 ], [ 246, 249 ], [ 249, 250 ], [ 250, 251 ], [ 0, 252 ], [ 252, 253 ], [ 252, 254 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.util.Scanner;\nimport java.util.StringTokenizer;\n\npublic class Main {\n static InputReader in;\n static PrintWriter out;\n \n static class Solution {\n void solve() throws IOException {\n while (true) {\n int n = in.nextInt();\n if (n == 0) {\n break;\n }\n double variance = 0;\n double stddev;\n double sum = 0;\n double avg;\n \n double[] score = new double[n];\n for (int i = 0; i < n; i++) {\n score[i] = in.nextDouble();\n sum += score[i];\n }\n avg = sum / n;\n \n for (int i = 0; i < n; i++) {\n variance += Math.pow(score[i] - avg, 2);\n }\n variance /= n;\n \n stddev = Math.sqrt(variance);\n out.printf(\"%.5f\\n\", stddev);\n }\n \n \n// End solve()\n }\n// End Solution\n}\n\n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n }\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n static InputReader in;\n static PrintWriter out;\n \n static class Solution {\n void solve() throws IOException {\n while (true) {\n int n = in.nextInt();\n if (n == 0) {\n break;\n }\n double variance = 0;\n double stddev;\n double sum = 0;\n double avg;\n \n double[] score = new double[n];\n for (int i = 0; i < n; i++) {\n score[i] = in.nextDouble();\n sum += score[i];\n }\n avg = sum / n;\n \n for (int i = 0; i < n; i++) {\n variance += Math.pow(score[i] - avg, 2);\n }\n variance /= n;\n \n stddev = Math.sqrt(variance);\n out.printf(\"%.5f\\n\", stddev);\n }\n \n \n// End solve()\n }\n// End Solution\n}\n\n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n }\n\n}", "Main", "static InputReader in;", "in", "static PrintWriter out;", "out", "public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}", "main", "{\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}", "in = new InputReader(System.in)", "in", "new InputReader(System.in)", "out = new PrintWriter(System.out)", "out", "new PrintWriter(System.out)", "Solution solver = new Solution();", "solver", "new Solution()", "solver.solve()", "solver.solve", "solver", "out.close()", "out.close", "out", "String[] args", "args", "static class Solution {\n void solve() throws IOException {\n while (true) {\n int n = in.nextInt();\n if (n == 0) {\n break;\n }\n double variance = 0;\n double stddev;\n double sum = 0;\n double avg;\n \n double[] score = new double[n];\n for (int i = 0; i < n; i++) {\n score[i] = in.nextDouble();\n sum += score[i];\n }\n avg = sum / n;\n \n for (int i = 0; i < n; i++) {\n variance += Math.pow(score[i] - avg, 2);\n }\n variance /= n;\n \n stddev = Math.sqrt(variance);\n out.printf(\"%.5f\\n\", stddev);\n }\n \n \n// End solve()\n }\n// End Solution\n}", "Solution", "void solve() throws IOException {\n while (true) {\n int n = in.nextInt();\n if (n == 0) {\n break;\n }\n double variance = 0;\n double stddev;\n double sum = 0;\n double avg;\n \n double[] score = new double[n];\n for (int i = 0; i < n; i++) {\n score[i] = in.nextDouble();\n sum += score[i];\n }\n avg = sum / n;\n \n for (int i = 0; i < n; i++) {\n variance += Math.pow(score[i] - avg, 2);\n }\n variance /= n;\n \n stddev = Math.sqrt(variance);\n out.printf(\"%.5f\\n\", stddev);\n }\n \n \n// End solve()\n }", "solve", "{\n while (true) {\n int n = in.nextInt();\n if (n == 0) {\n break;\n }\n double variance = 0;\n double stddev;\n double sum = 0;\n double avg;\n \n double[] score = new double[n];\n for (int i = 0; i < n; i++) {\n score[i] = in.nextDouble();\n sum += score[i];\n }\n avg = sum / n;\n \n for (int i = 0; i < n; i++) {\n variance += Math.pow(score[i] - avg, 2);\n }\n variance /= n;\n \n stddev = Math.sqrt(variance);\n out.printf(\"%.5f\\n\", stddev);\n }\n \n \n// End solve()\n }", "while (true) {\n int n = in.nextInt();\n if (n == 0) {\n break;\n }\n double variance = 0;\n double stddev;\n double sum = 0;\n double avg;\n \n double[] score = new double[n];\n for (int i = 0; i < n; i++) {\n score[i] = in.nextDouble();\n sum += score[i];\n }\n avg = sum / n;\n \n for (int i = 0; i < n; i++) {\n variance += Math.pow(score[i] - avg, 2);\n }\n variance /= n;\n \n stddev = Math.sqrt(variance);\n out.printf(\"%.5f\\n\", stddev);\n }", "true", "{\n int n = in.nextInt();\n if (n == 0) {\n break;\n }\n double variance = 0;\n double stddev;\n double sum = 0;\n double avg;\n \n double[] score = new double[n];\n for (int i = 0; i < n; i++) {\n score[i] = in.nextDouble();\n sum += score[i];\n }\n avg = sum / n;\n \n for (int i = 0; i < n; i++) {\n variance += Math.pow(score[i] - avg, 2);\n }\n variance /= n;\n \n stddev = Math.sqrt(variance);\n out.printf(\"%.5f\\n\", stddev);\n }", "int n = in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "if (n == 0) {\n break;\n }", "n == 0", "n", "0", "{\n break;\n }", "break;", "double variance = 0;", "variance", "0", "double stddev;", "stddev", "double sum = 0;", "sum", "0", "double avg;", "avg", "double[] score = new double[n];", "score", "new double[n]", "n", "for (int i = 0; i < n; i++) {\n score[i] = in.nextDouble();\n sum += score[i];\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n score[i] = in.nextDouble();\n sum += score[i];\n }", "{\n score[i] = in.nextDouble();\n sum += score[i];\n }", "score[i] = in.nextDouble()", "score[i]", "score", "i", "in.nextDouble()", "in.nextDouble", "in", "sum += score[i]", "sum", "score[i]", "score", "i", "avg = sum / n", "avg", "sum / n", "sum", "n", "for (int i = 0; i < n; i++) {\n variance += Math.pow(score[i] - avg, 2);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n variance += Math.pow(score[i] - avg, 2);\n }", "{\n variance += Math.pow(score[i] - avg, 2);\n }", "variance += Math.pow(score[i] - avg, 2)", "variance", "Math.pow(score[i] - avg, 2)", "Math.pow", "Math", "score[i] - avg", "score[i]", "score", "i", "avg", "2", "variance /= n", "variance", "n", "stddev = Math.sqrt(variance)", "stddev", "Math.sqrt(variance)", "Math.sqrt", "Math", "variance", "out.printf(\"%.5f\\n\", stddev)", "out.printf", "out", "\"%.5f\\n\"", "stddev", "static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n }", "InputReader", "public BufferedReader br;", "br", "public StringTokenizer st;", "st", "public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }", "InputReader", "{\n br = new BufferedReader(new InputStreamReader(stream));\n }", "br = new BufferedReader(new InputStreamReader(stream))", "br", "new BufferedReader(new InputStreamReader(stream))", "InputStream stream", "stream", "public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }", "nextInt", "{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }", "while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return Integer.parseInt(st.nextToken());", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }", "nextLong", "{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }", "while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return Long.parseLong(st.nextToken());", "Long.parseLong(st.nextToken())", "Long.parseLong", "Long", "st.nextToken()", "st.nextToken", "st", "public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }", "while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }", "nextDouble", "{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }", "while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return Double.parseDouble(st.nextToken());", "Double.parseDouble(st.nextToken())", "Double.parseDouble", "Double", "st.nextToken()", "st.nextToken", "st", "public class Main {\n static InputReader in;\n static PrintWriter out;\n \n static class Solution {\n void solve() throws IOException {\n while (true) {\n int n = in.nextInt();\n if (n == 0) {\n break;\n }\n double variance = 0;\n double stddev;\n double sum = 0;\n double avg;\n \n double[] score = new double[n];\n for (int i = 0; i < n; i++) {\n score[i] = in.nextDouble();\n sum += score[i];\n }\n avg = sum / n;\n \n for (int i = 0; i < n; i++) {\n variance += Math.pow(score[i] - avg, 2);\n }\n variance /= n;\n \n stddev = Math.sqrt(variance);\n out.printf(\"%.5f\\n\", stddev);\n }\n \n \n// End solve()\n }\n// End Solution\n}\n\n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n }\n\n}", "public class Main {\n static InputReader in;\n static PrintWriter out;\n \n static class Solution {\n void solve() throws IOException {\n while (true) {\n int n = in.nextInt();\n if (n == 0) {\n break;\n }\n double variance = 0;\n double stddev;\n double sum = 0;\n double avg;\n \n double[] score = new double[n];\n for (int i = 0; i < n; i++) {\n score[i] = in.nextDouble();\n sum += score[i];\n }\n avg = sum / n;\n \n for (int i = 0; i < n; i++) {\n variance += Math.pow(score[i] - avg, 2);\n }\n variance /= n;\n \n stddev = Math.sqrt(variance);\n out.printf(\"%.5f\\n\", stddev);\n }\n \n \n// End solve()\n }\n// End Solution\n}\n\n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n }\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.Scanner; import java.util.StringTokenizer; public class Main { static InputReader in; static PrintWriter out; static class Solution { void solve() throws IOException { while (true) { int n = in.nextInt(); if (n == 0) { break; } double variance = 0; double stddev; double sum = 0; double avg; double[] score = new double[n]; for (int i = 0; i < n; i++) { score[i] = in.nextDouble(); sum += score[i]; } avg = sum / n; for (int i = 0; i < n; i++) { variance += Math.pow(score[i] - avg, 2); } variance /= n; stddev = Math.sqrt(variance); out.printf("%.5f\n", stddev); } // End solve() } // End Solution } public static void main(String[] args) throws IOException { in = new InputReader(System.in); out = new PrintWriter(System.out); Solution solver = new Solution(); solver.solve(); out.close(); } static class InputReader { public BufferedReader br; public StringTokenizer st; public InputReader(InputStream stream) { br = new BufferedReader(new InputStreamReader(stream)); } public int nextInt() throws IOException { while (st == null || !st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return Integer.parseInt(st.nextToken()); } public long nextLong() throws IOException { while (st == null || !st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return Long.parseLong(st.nextToken()); } public String next() throws IOException { while (st == null || !st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return st.nextToken(); } public double nextDouble() throws IOException { while (st == null || !st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return Double.parseDouble(st.nextToken()); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 20, 13, 14, 2, 13, 17, 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, 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, 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 ], [ 110, 5 ], [ 110, 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 ], [ 23, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 17, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 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 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 47, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 47, 58 ], [ 58, 59 ], [ 58, 60 ], [ 17, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 17, 66 ], [ 66, 67 ], [ 66, 68 ], [ 17, 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 ], [ 84, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 84, 92 ], [ 17, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 98, 99 ], [ 98, 100 ], [ 17, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 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 scan = new Scanner(System.in);\n double a = 0.0;\n\n while (true) {\n int n = scan.nextInt();\n int sum = 0;\n int[] students = new int[n];\n if (n == 0) break;\n\n for (int i = 0; i < n; i++) {\n int s = scan.nextInt();\n students[i] = s;\n sum += s;\n }\n double m = (double)sum / n;\n double sum2 = 0.0;\n for (int i = 0; i < n; i++) {\n sum2 += Math.pow(students[i] - m, 2);\n }\n a = Math.sqrt(sum2 / n);\n System.out.println(a);\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 double a = 0.0;\n\n while (true) {\n int n = scan.nextInt();\n int sum = 0;\n int[] students = new int[n];\n if (n == 0) break;\n\n for (int i = 0; i < n; i++) {\n int s = scan.nextInt();\n students[i] = s;\n sum += s;\n }\n double m = (double)sum / n;\n double sum2 = 0.0;\n for (int i = 0; i < n; i++) {\n sum2 += Math.pow(students[i] - m, 2);\n }\n a = Math.sqrt(sum2 / n);\n System.out.println(a);\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n double a = 0.0;\n\n while (true) {\n int n = scan.nextInt();\n int sum = 0;\n int[] students = new int[n];\n if (n == 0) break;\n\n for (int i = 0; i < n; i++) {\n int s = scan.nextInt();\n students[i] = s;\n sum += s;\n }\n double m = (double)sum / n;\n double sum2 = 0.0;\n for (int i = 0; i < n; i++) {\n sum2 += Math.pow(students[i] - m, 2);\n }\n a = Math.sqrt(sum2 / n);\n System.out.println(a);\n }\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n double a = 0.0;\n\n while (true) {\n int n = scan.nextInt();\n int sum = 0;\n int[] students = new int[n];\n if (n == 0) break;\n\n for (int i = 0; i < n; i++) {\n int s = scan.nextInt();\n students[i] = s;\n sum += s;\n }\n double m = (double)sum / n;\n double sum2 = 0.0;\n for (int i = 0; i < n; i++) {\n sum2 += Math.pow(students[i] - m, 2);\n }\n a = Math.sqrt(sum2 / n);\n System.out.println(a);\n }\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "double a = 0.0;", "a", "0.0", "while (true) {\n int n = scan.nextInt();\n int sum = 0;\n int[] students = new int[n];\n if (n == 0) break;\n\n for (int i = 0; i < n; i++) {\n int s = scan.nextInt();\n students[i] = s;\n sum += s;\n }\n double m = (double)sum / n;\n double sum2 = 0.0;\n for (int i = 0; i < n; i++) {\n sum2 += Math.pow(students[i] - m, 2);\n }\n a = Math.sqrt(sum2 / n);\n System.out.println(a);\n }", "true", "{\n int n = scan.nextInt();\n int sum = 0;\n int[] students = new int[n];\n if (n == 0) break;\n\n for (int i = 0; i < n; i++) {\n int s = scan.nextInt();\n students[i] = s;\n sum += s;\n }\n double m = (double)sum / n;\n double sum2 = 0.0;\n for (int i = 0; i < n; i++) {\n sum2 += Math.pow(students[i] - m, 2);\n }\n a = Math.sqrt(sum2 / n);\n System.out.println(a);\n }", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "int sum = 0;", "sum", "0", "int[] students = new int[n];", "students", "new int[n]", "n", "if (n == 0) break;", "n == 0", "n", "0", "break;", "for (int i = 0; i < n; i++) {\n int s = scan.nextInt();\n students[i] = s;\n sum += s;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n int s = scan.nextInt();\n students[i] = s;\n sum += s;\n }", "{\n int s = scan.nextInt();\n students[i] = s;\n sum += s;\n }", "int s = scan.nextInt();", "s", "scan.nextInt()", "scan.nextInt", "scan", "students[i] = s", "students[i]", "students", "i", "s", "sum += s", "sum", "s", "double m = (double)sum / n;", "m", "(double)sum / n", "(double)sum", "n", "double sum2 = 0.0;", "sum2", "0.0", "for (int i = 0; i < n; i++) {\n sum2 += Math.pow(students[i] - m, 2);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n sum2 += Math.pow(students[i] - m, 2);\n }", "{\n sum2 += Math.pow(students[i] - m, 2);\n }", "sum2 += Math.pow(students[i] - m, 2)", "sum2", "Math.pow(students[i] - m, 2)", "Math.pow", "Math", "students[i] - m", "students[i]", "students", "i", "m", "2", "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", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n double a = 0.0;\n\n while (true) {\n int n = scan.nextInt();\n int sum = 0;\n int[] students = new int[n];\n if (n == 0) break;\n\n for (int i = 0; i < n; i++) {\n int s = scan.nextInt();\n students[i] = s;\n sum += s;\n }\n double m = (double)sum / n;\n double sum2 = 0.0;\n for (int i = 0; i < n; i++) {\n sum2 += Math.pow(students[i] - m, 2);\n }\n a = Math.sqrt(sum2 / n);\n System.out.println(a);\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n double a = 0.0;\n\n while (true) {\n int n = scan.nextInt();\n int sum = 0;\n int[] students = new int[n];\n if (n == 0) break;\n\n for (int i = 0; i < n; i++) {\n int s = scan.nextInt();\n students[i] = s;\n sum += s;\n }\n double m = (double)sum / n;\n double sum2 = 0.0;\n for (int i = 0; i < n; i++) {\n sum2 += Math.pow(students[i] - m, 2);\n }\n a = Math.sqrt(sum2 / n);\n System.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); double a = 0.0; while (true) { int n = scan.nextInt(); int sum = 0; int[] students = new int[n]; if (n == 0) break; for (int i = 0; i < n; i++) { int s = scan.nextInt(); students[i] = s; sum += s; } double m = (double)sum / n; double sum2 = 0.0; for (int i = 0; i < n; i++) { sum2 += Math.pow(students[i] - m, 2); } a = Math.sqrt(sum2 / n); System.out.println(a); } } }
[ 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, 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, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 2, 18, 13, 13, 13, 0, 13, 2, 13, 2, 13, 13, 0, 13, 2, 13, 18, 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 ], [ 140, 5 ], [ 140, 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 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 66, 76 ], [ 76, 77 ], [ 77, 78 ], [ 66, 79 ], [ 80, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 16, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 16, 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 ], [ 109, 110 ], [ 109, 111 ], [ 108, 112 ], [ 105, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 117, 119 ], [ 16, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 124, 126 ], [ 16, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 127, 132 ], [ 127, 133 ], [ 133, 134 ], [ 134, 135 ], [ 133, 136 ], [ 6, 137 ], [ 137, 138 ], [ 0, 139 ], [ 139, 140 ], [ 139, 141 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String args[]){\ntry(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\t\tdouble average =0.0, variance =0.00,suum=0.0;\n int sum=0;\n for(int i=0;i<scores.length;i++){\n sum = sum+scores[i];\n }\n average=(double)sum/n;\n for(int i=0;i<n;i++){\n double j = (double)scores[i]-average;\n\t\t\tsuum = suum+j*j;\n }\n variance =(double)suum/scores.length;\n System.out.printf(\"%.8f\\n\",Math.sqrt(variance));\n }\n }\n}\n }\n\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String args[]){\ntry(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\t\tdouble average =0.0, variance =0.00,suum=0.0;\n int sum=0;\n for(int i=0;i<scores.length;i++){\n sum = sum+scores[i];\n }\n average=(double)sum/n;\n for(int i=0;i<n;i++){\n double j = (double)scores[i]-average;\n\t\t\tsuum = suum+j*j;\n }\n variance =(double)suum/scores.length;\n System.out.printf(\"%.8f\\n\",Math.sqrt(variance));\n }\n }\n}\n }", "Main", "public static void main(String args[]){\ntry(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\t\tdouble average =0.0, variance =0.00,suum=0.0;\n int sum=0;\n for(int i=0;i<scores.length;i++){\n sum = sum+scores[i];\n }\n average=(double)sum/n;\n for(int i=0;i<n;i++){\n double j = (double)scores[i]-average;\n\t\t\tsuum = suum+j*j;\n }\n variance =(double)suum/scores.length;\n System.out.printf(\"%.8f\\n\",Math.sqrt(variance));\n }\n }\n}", "main", "{\ntry(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\t\tdouble average =0.0, variance =0.00,suum=0.0;\n int sum=0;\n for(int i=0;i<scores.length;i++){\n sum = sum+scores[i];\n }\n average=(double)sum/n;\n for(int i=0;i<n;i++){\n double j = (double)scores[i]-average;\n\t\t\tsuum = suum+j*j;\n }\n variance =(double)suum/scores.length;\n System.out.printf(\"%.8f\\n\",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){break; }\n int[]scores=new int[n];\n for(int i =0;i<scores.length;i++){\n scores[i]=sc.nextInt();\n }\n\t\tdouble average =0.0, variance =0.00,suum=0.0;\n int sum=0;\n for(int i=0;i<scores.length;i++){\n sum = sum+scores[i];\n }\n average=(double)sum/n;\n for(int i=0;i<n;i++){\n double j = (double)scores[i]-average;\n\t\t\tsuum = suum+j*j;\n }\n variance =(double)suum/scores.length;\n System.out.printf(\"%.8f\\n\",Math.sqrt(variance));\n }\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\t\tdouble average =0.0, variance =0.00,suum=0.0;\n int sum=0;\n for(int i=0;i<scores.length;i++){\n sum = sum+scores[i];\n }\n average=(double)sum/n;\n for(int i=0;i<n;i++){\n double j = (double)scores[i]-average;\n\t\t\tsuum = suum+j*j;\n }\n variance =(double)suum/scores.length;\n System.out.printf(\"%.8f\\n\",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){break; }\n int[]scores=new int[n];\n for(int i =0;i<scores.length;i++){\n scores[i]=sc.nextInt();\n }\n\t\tdouble average =0.0, variance =0.00,suum=0.0;\n int sum=0;\n for(int i=0;i<scores.length;i++){\n sum = sum+scores[i];\n }\n average=(double)sum/n;\n for(int i=0;i<n;i++){\n double j = (double)scores[i]-average;\n\t\t\tsuum = suum+j*j;\n }\n variance =(double)suum/scores.length;\n System.out.printf(\"%.8f\\n\",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\t\tdouble average =0.0, variance =0.00,suum=0.0;\n int sum=0;\n for(int i=0;i<scores.length;i++){\n sum = sum+scores[i];\n }\n average=(double)sum/n;\n for(int i=0;i<n;i++){\n double j = (double)scores[i]-average;\n\t\t\tsuum = suum+j*j;\n }\n variance =(double)suum/scores.length;\n System.out.printf(\"%.8f\\n\",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.0", "average", "0.0", "variance =0.00", "variance", "0.00", "suum=0.0;", "suum", "0.0", "int 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=(double)sum/n", "average", "(double)sum/n", "(double)sum", "n", "for(int i=0;i<n;i++){\n double j = (double)scores[i]-average;\n\t\t\tsuum = suum+j*j;\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n double j = (double)scores[i]-average;\n\t\t\tsuum = suum+j*j;\n }", "{\n double j = (double)scores[i]-average;\n\t\t\tsuum = suum+j*j;\n }", "double j = (double)scores[i]-average;", "j", "(double)scores[i]-average", "(double)scores[i]", "scores", "i", "average", "suum = suum+j*j", "suum", "suum+j*j", "suum", "j*j", "j", "j", "variance =(double)suum/scores.length", "variance", "(double)suum/scores.length", "(double)suum", "scores.length", "scores", "scores.length", "System.out.printf(\"%.8f\\n\",Math.sqrt(variance))", "System.out.printf", "System.out", "System", "System.out", "\"%.8f\\n\"", "Math.sqrt(variance)", "Math.sqrt", "Math", "variance", "String args[]", "args", "public class Main{\n public static void main(String args[]){\ntry(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\t\tdouble average =0.0, variance =0.00,suum=0.0;\n int sum=0;\n for(int i=0;i<scores.length;i++){\n sum = sum+scores[i];\n }\n average=(double)sum/n;\n for(int i=0;i<n;i++){\n double j = (double)scores[i]-average;\n\t\t\tsuum = suum+j*j;\n }\n variance =(double)suum/scores.length;\n System.out.printf(\"%.8f\\n\",Math.sqrt(variance));\n }\n }\n}\n }", "public class Main{\n public static void main(String args[]){\ntry(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\t\tdouble average =0.0, variance =0.00,suum=0.0;\n int sum=0;\n for(int i=0;i<scores.length;i++){\n sum = sum+scores[i];\n }\n average=(double)sum/n;\n for(int i=0;i<n;i++){\n double j = (double)scores[i]-average;\n\t\t\tsuum = suum+j*j;\n }\n variance =(double)suum/scores.length;\n System.out.printf(\"%.8f\\n\",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.0, variance =0.00,suum=0.0; int sum=0; for(int i=0;i<scores.length;i++){ sum = sum+scores[i]; } average=(double)sum/n; for(int i=0;i<n;i++){ double j = (double)scores[i]-average; suum = suum+j*j; } variance =(double)suum/scores.length; System.out.printf("%.8f\n",Math.sqrt(variance)); } } } }
[ 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, 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, 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, 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 ], [ 26, 28 ], [ 14, 30 ], [ 30, 31 ], [ 30, 32 ], [ 14, 33 ], [ 33, 34 ], [ 33, 35 ], [ 14, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 36, 46 ], [ 46, 47 ], [ 47, 48 ], [ 36, 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 ], [ 14, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 66, 76 ], [ 76, 77 ], [ 77, 78 ], [ 66, 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){break;}\n int[] scores=new int[n];\n double average=0, variance=0;\n for(int i=0; i<scores.length; i++){\n scores[i] =sc.nextInt();\n average += scores[i];\n }\n average /= n;\n for(int i=0; i<scores.length;i++){\n variance += (scores[i]-average)*(scores[i]-average);\n }\n variance /= n;\nSystem.out.println(Math.sqrt(variance));\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){break;}\n int[] scores=new int[n];\n double average=0, variance=0;\n for(int i=0; i<scores.length; i++){\n scores[i] =sc.nextInt();\n average += scores[i];\n }\n average /= n;\n for(int i=0; i<scores.length;i++){\n variance += (scores[i]-average)*(scores[i]-average);\n }\n variance /= n;\nSystem.out.println(Math.sqrt(variance));\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){break;}\n int[] scores=new int[n];\n double average=0, variance=0;\n for(int i=0; i<scores.length; i++){\n scores[i] =sc.nextInt();\n average += scores[i];\n }\n average /= n;\n for(int i=0; i<scores.length;i++){\n variance += (scores[i]-average)*(scores[i]-average);\n }\n variance /= n;\nSystem.out.println(Math.sqrt(variance));\n }\n }", "main", "{\n 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 double average=0, variance=0;\n for(int i=0; i<scores.length; i++){\n scores[i] =sc.nextInt();\n average += scores[i];\n }\n average /= n;\n for(int i=0; i<scores.length;i++){\n variance += (scores[i]-average)*(scores[i]-average);\n }\n variance /= n;\nSystem.out.println(Math.sqrt(variance));\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[] scores=new int[n];\n double average=0, variance=0;\n for(int i=0; i<scores.length; i++){\n scores[i] =sc.nextInt();\n average += scores[i];\n }\n average /= n;\n for(int i=0; i<scores.length;i++){\n variance += (scores[i]-average)*(scores[i]-average);\n }\n variance /= n;\nSystem.out.println(Math.sqrt(variance));\n }", "true", "{\n int n= sc.nextInt();\n if(n==0){break;}\n int[] scores=new int[n];\n double average=0, variance=0;\n for(int i=0; i<scores.length; i++){\n scores[i] =sc.nextInt();\n average += scores[i];\n }\n average /= n;\n for(int i=0; i<scores.length;i++){\n variance += (scores[i]-average)*(scores[i]-average);\n }\n variance /= 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", "double average=0", "average", "0", "variance=0;", "variance", "0", "for(int i=0; i<scores.length; i++){\n scores[i] =sc.nextInt();\n average += 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 average += scores[i];\n }", "{\n scores[i] =sc.nextInt();\n average += scores[i];\n }", "scores[i] =sc.nextInt()", "scores[i]", "scores", "i", "sc.nextInt()", "sc.nextInt", "sc", "average += scores[i]", "average", "scores[i]", "scores", "i", "average /= n", "average", "n", "for(int i=0; i<scores.length;i++){\n variance += (scores[i]-average)*(scores[i]-average);\n }", "int i=0;", "int i=0;", "i", "0", "i<scores.length", "i", "scores.length", "scores", "scores.length", "i++", "i++", "i", "{\n variance += (scores[i]-average)*(scores[i]-average);\n }", "{\n variance += (scores[i]-average)*(scores[i]-average);\n }", "variance += (scores[i]-average)*(scores[i]-average)", "variance", "(scores[i]-average)*(scores[i]-average)", "(scores[i]-average)", "scores[i]", "scores", "i", "average", "(scores[i]-average)", "scores[i]", "scores", "i", "average", "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{\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){break;}\n int[] scores=new int[n];\n double average=0, variance=0;\n for(int i=0; i<scores.length; i++){\n scores[i] =sc.nextInt();\n average += scores[i];\n }\n average /= n;\n for(int i=0; i<scores.length;i++){\n variance += (scores[i]-average)*(scores[i]-average);\n }\n variance /= n;\nSystem.out.println(Math.sqrt(variance));\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){break;}\n int[] scores=new int[n];\n double average=0, variance=0;\n for(int i=0; i<scores.length; i++){\n scores[i] =sc.nextInt();\n average += scores[i];\n }\n average /= n;\n for(int i=0; i<scores.length;i++){\n variance += (scores[i]-average)*(scores[i]-average);\n }\n variance /= n;\nSystem.out.println(Math.sqrt(variance));\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[] scores=new int[n]; double average=0, variance=0; for(int i=0; i<scores.length; i++){ scores[i] =sc.nextInt(); average += scores[i]; } average /= n; for(int i=0; i<scores.length;i++){ variance += (scores[i]-average)*(scores[i]-average); } variance /= n; System.out.println(Math.sqrt(variance)); } } }
[ 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, 30, 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, 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, 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 ], [ 112, 8 ], [ 112, 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 ], [ 27, 28 ], [ 17, 29 ], [ 29, 30 ], [ 29, 31 ], [ 17, 33 ], [ 33, 34 ], [ 33, 35 ], [ 17, 36 ], [ 36, 37 ], [ 36, 38 ], [ 17, 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 ], [ 17, 64 ], [ 64, 65 ], [ 64, 66 ], [ 17, 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 ], [ 17, 93 ], [ 93, 94 ], [ 93, 95 ], [ 17, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 96, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 11, 106 ], [ 106, 107 ], [ 107, 108 ], [ 9, 109 ], [ 109, 110 ], [ 0, 111 ], [ 111, 112 ], [ 111, 113 ] ]
[ "import java.util.Scanner;\n\n\nimport java.lang.Math;\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n while(true){\n int n = sc.nextInt();\n if(n==0){\n break;\n }\n double s[] = new double[n];\n double m=0,a=0;\n for(int i=0;i<n;i++){\n s[i] = sc.nextDouble();\n m+=s[i];\n }\n m/=n;\n for(int i=0;i<n;i++){\n a+=(s[i]-m)*(s[i]-m);\n }\n a/=n;\n System.out.printf(\"%.8f%n\",Math.sqrt(a));\n }\n sc.close();\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) throws Exception {\n Scanner sc = new Scanner(System.in);\n while(true){\n int n = sc.nextInt();\n if(n==0){\n break;\n }\n double s[] = new double[n];\n double m=0,a=0;\n for(int i=0;i<n;i++){\n s[i] = sc.nextDouble();\n m+=s[i];\n }\n m/=n;\n for(int i=0;i<n;i++){\n a+=(s[i]-m)*(s[i]-m);\n }\n a/=n;\n System.out.printf(\"%.8f%n\",Math.sqrt(a));\n }\n sc.close();\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n while(true){\n int n = sc.nextInt();\n if(n==0){\n break;\n }\n double s[] = new double[n];\n double m=0,a=0;\n for(int i=0;i<n;i++){\n s[i] = sc.nextDouble();\n m+=s[i];\n }\n m/=n;\n for(int i=0;i<n;i++){\n a+=(s[i]-m)*(s[i]-m);\n }\n a/=n;\n System.out.printf(\"%.8f%n\",Math.sqrt(a));\n }\n sc.close();\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 double s[] = new double[n];\n double m=0,a=0;\n for(int i=0;i<n;i++){\n s[i] = sc.nextDouble();\n m+=s[i];\n }\n m/=n;\n for(int i=0;i<n;i++){\n a+=(s[i]-m)*(s[i]-m);\n }\n a/=n;\n System.out.printf(\"%.8f%n\",Math.sqrt(a));\n }\n sc.close();\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 double s[] = new double[n];\n double m=0,a=0;\n for(int i=0;i<n;i++){\n s[i] = sc.nextDouble();\n m+=s[i];\n }\n m/=n;\n for(int i=0;i<n;i++){\n a+=(s[i]-m)*(s[i]-m);\n }\n a/=n;\n System.out.printf(\"%.8f%n\",Math.sqrt(a));\n }", "true", "{\n int n = sc.nextInt();\n if(n==0){\n break;\n }\n double s[] = new double[n];\n double m=0,a=0;\n for(int i=0;i<n;i++){\n s[i] = sc.nextDouble();\n m+=s[i];\n }\n m/=n;\n for(int i=0;i<n;i++){\n a+=(s[i]-m)*(s[i]-m);\n }\n a/=n;\n System.out.printf(\"%.8f%n\",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;", "double s[] = new double[n];", "s", "new double[n]", "n", "double m=0", "m", "0", "a=0;", "a", "0", "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", "for(int i=0;i<n;i++){\n a+=(s[i]-m)*(s[i]-m);\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n a+=(s[i]-m)*(s[i]-m);\n }", "{\n a+=(s[i]-m)*(s[i]-m);\n }", "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/=n", "a", "n", "System.out.printf(\"%.8f%n\",Math.sqrt(a))", "System.out.printf", "System.out", "System", "System.out", "\"%.8f%n\"", "Math.sqrt(a)", "Math.sqrt", "Math", "a", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n while(true){\n int n = sc.nextInt();\n if(n==0){\n break;\n }\n double s[] = new double[n];\n double m=0,a=0;\n for(int i=0;i<n;i++){\n s[i] = sc.nextDouble();\n m+=s[i];\n }\n m/=n;\n for(int i=0;i<n;i++){\n a+=(s[i]-m)*(s[i]-m);\n }\n a/=n;\n System.out.printf(\"%.8f%n\",Math.sqrt(a));\n }\n sc.close();\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n while(true){\n int n = sc.nextInt();\n if(n==0){\n break;\n }\n double s[] = new double[n];\n double m=0,a=0;\n for(int i=0;i<n;i++){\n s[i] = sc.nextDouble();\n m+=s[i];\n }\n m/=n;\n for(int i=0;i<n;i++){\n a+=(s[i]-m)*(s[i]-m);\n }\n a/=n;\n System.out.printf(\"%.8f%n\",Math.sqrt(a));\n }\n sc.close();\n }\n}", "Main" ]
import java.util.Scanner; import java.lang.Math; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); while(true){ int n = sc.nextInt(); if(n==0){ break; } double s[] = new double[n]; double m=0,a=0; for(int i=0;i<n;i++){ s[i] = sc.nextDouble(); m+=s[i]; } m/=n; for(int i=0;i<n;i++){ a+=(s[i]-m)*(s[i]-m); } a/=n; System.out.printf("%.8f%n",Math.sqrt(a)); } sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 5, 13, 30, 4, 18, 13, 30, 42, 2, 4, 18, 0, 13, 4, 18, 13, 17, 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, 18, 13, 13, 4, 18, 13, 18, 13, 13, 0, 13, 2, 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, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 148, 11 ], [ 148, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 21, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 21, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 37, 44 ], [ 36, 45 ], [ 35, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 46, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 55, 60 ], [ 46, 61 ], [ 61, 62 ], [ 61, 63 ], [ 46, 64 ], [ 64, 65 ], [ 64, 66 ], [ 46, 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 ], [ 85, 88 ], [ 88, 89 ], [ 88, 90 ], [ 80, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 46, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 100, 102 ], [ 46, 103 ], [ 103, 104 ], [ 103, 105 ], [ 46, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 111, 112 ], [ 111, 113 ], [ 106, 114 ], [ 114, 115 ], [ 115, 116 ], [ 106, 117 ], [ 118, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 123, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 129, 133 ], [ 46, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 134, 139 ], [ 139, 140 ], [ 140, 141 ], [ 139, 142 ], [ 142, 143 ], [ 142, 144 ], [ 12, 145 ], [ 145, 146 ], [ 0, 147 ], [ 147, 148 ], [ 147, 149 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t \n\t\tString x = \"\";\n\t\ttry {\n\t\t\twhile ((x = in.readLine()).equals(\"0\") == false) {\n\t\t\t\tint n = Integer.parseInt(x);\n\t\t\t\tString[] data = in.readLine().split(\" \");\n\t\t\t\n\t\t\t\tdouble sum = 0;\n\t\t\t\t\n\t\t\t\tint[] score = new int[n];\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tscore[i] = Integer.parseInt(data[i]);\n\t\t\t\t\tsum = sum + score[i];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdouble m = sum / n;\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tsum = sum + (score[i] - m) * (score[i] - m);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(Math.sqrt(sum / n));\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\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\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t \n\t\tString x = \"\";\n\t\ttry {\n\t\t\twhile ((x = in.readLine()).equals(\"0\") == false) {\n\t\t\t\tint n = Integer.parseInt(x);\n\t\t\t\tString[] data = in.readLine().split(\" \");\n\t\t\t\n\t\t\t\tdouble sum = 0;\n\t\t\t\t\n\t\t\t\tint[] score = new int[n];\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tscore[i] = Integer.parseInt(data[i]);\n\t\t\t\t\tsum = sum + score[i];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdouble m = sum / n;\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tsum = sum + (score[i] - m) * (score[i] - m);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(Math.sqrt(sum / n));\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t \n\t\tString x = \"\";\n\t\ttry {\n\t\t\twhile ((x = in.readLine()).equals(\"0\") == false) {\n\t\t\t\tint n = Integer.parseInt(x);\n\t\t\t\tString[] data = in.readLine().split(\" \");\n\t\t\t\n\t\t\t\tdouble sum = 0;\n\t\t\t\t\n\t\t\t\tint[] score = new int[n];\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tscore[i] = Integer.parseInt(data[i]);\n\t\t\t\t\tsum = sum + score[i];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdouble m = sum / n;\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tsum = sum + (score[i] - m) * (score[i] - m);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(Math.sqrt(sum / n));\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t \n\t\tString x = \"\";\n\t\ttry {\n\t\t\twhile ((x = in.readLine()).equals(\"0\") == false) {\n\t\t\t\tint n = Integer.parseInt(x);\n\t\t\t\tString[] data = in.readLine().split(\" \");\n\t\t\t\n\t\t\t\tdouble sum = 0;\n\t\t\t\t\n\t\t\t\tint[] score = new int[n];\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tscore[i] = Integer.parseInt(data[i]);\n\t\t\t\t\tsum = sum + score[i];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdouble m = sum / n;\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tsum = sum + (score[i] - m) * (score[i] - m);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(Math.sqrt(sum / n));\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "BufferedReader in = new BufferedReader(new InputStreamReader(System.in));", "in", "new BufferedReader(new InputStreamReader(System.in))", "String x = \"\";", "x", "\"\"", "try {\n\t\t\twhile ((x = in.readLine()).equals(\"0\") == false) {\n\t\t\t\tint n = Integer.parseInt(x);\n\t\t\t\tString[] data = in.readLine().split(\" \");\n\t\t\t\n\t\t\t\tdouble sum = 0;\n\t\t\t\t\n\t\t\t\tint[] score = new int[n];\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tscore[i] = Integer.parseInt(data[i]);\n\t\t\t\t\tsum = sum + score[i];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdouble m = sum / n;\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tsum = sum + (score[i] - m) * (score[i] - m);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(Math.sqrt(sum / n));\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "NumberFormatException e", "{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "IOException e", "{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\twhile ((x = in.readLine()).equals(\"0\") == false) {\n\t\t\t\tint n = Integer.parseInt(x);\n\t\t\t\tString[] data = in.readLine().split(\" \");\n\t\t\t\n\t\t\t\tdouble sum = 0;\n\t\t\t\t\n\t\t\t\tint[] score = new int[n];\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tscore[i] = Integer.parseInt(data[i]);\n\t\t\t\t\tsum = sum + score[i];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdouble m = sum / n;\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tsum = sum + (score[i] - m) * (score[i] - m);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(Math.sqrt(sum / n));\n\t\t\t}\n\t\t}", "while ((x = in.readLine()).equals(\"0\") == false) {\n\t\t\t\tint n = Integer.parseInt(x);\n\t\t\t\tString[] data = in.readLine().split(\" \");\n\t\t\t\n\t\t\t\tdouble sum = 0;\n\t\t\t\t\n\t\t\t\tint[] score = new int[n];\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tscore[i] = Integer.parseInt(data[i]);\n\t\t\t\t\tsum = sum + score[i];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdouble m = sum / n;\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tsum = sum + (score[i] - m) * (score[i] - m);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(Math.sqrt(sum / n));\n\t\t\t}", "(x = in.readLine()).equals(\"0\") == false", "(x = in.readLine()).equals(\"0\")", "(x = in.readLine()).equals", "(x = in.readLine())", "x", "in.readLine()", "in.readLine", "in", "\"0\"", "false", "{\n\t\t\t\tint n = Integer.parseInt(x);\n\t\t\t\tString[] data = in.readLine().split(\" \");\n\t\t\t\n\t\t\t\tdouble sum = 0;\n\t\t\t\t\n\t\t\t\tint[] score = new int[n];\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tscore[i] = Integer.parseInt(data[i]);\n\t\t\t\t\tsum = sum + score[i];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdouble m = sum / n;\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tsum = sum + (score[i] - m) * (score[i] - m);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(Math.sqrt(sum / n));\n\t\t\t}", "int n = Integer.parseInt(x);", "n", "Integer.parseInt(x)", "Integer.parseInt", "Integer", "x", "String[] data = in.readLine().split(\" \");", "data", "in.readLine().split(\" \")", "in.readLine().split", "in.readLine()", "in.readLine", "in", "\" \"", "double sum = 0;", "sum", "0", "int[] score = new int[n];", "score", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n\t\t\t\t\tscore[i] = Integer.parseInt(data[i]);\n\t\t\t\t\tsum = sum + score[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\tscore[i] = Integer.parseInt(data[i]);\n\t\t\t\t\tsum = sum + score[i];\n\t\t\t\t}", "{\n\t\t\t\t\tscore[i] = Integer.parseInt(data[i]);\n\t\t\t\t\tsum = sum + score[i];\n\t\t\t\t}", "score[i] = Integer.parseInt(data[i])", "score[i]", "score", "i", "Integer.parseInt(data[i])", "Integer.parseInt", "Integer", "data[i]", "data", "i", "sum = sum + score[i]", "sum", "sum + score[i]", "sum", "score[i]", "score", "i", "double m = sum / n;", "m", "sum / n", "sum", "n", "sum = 0", "sum", "0", "for (int i = 0; i < n; i++) {\n\t\t\t\t\tsum = sum + (score[i] - m) * (score[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\tsum = sum + (score[i] - m) * (score[i] - m);\n\t\t\t\t}", "{\n\t\t\t\t\tsum = sum + (score[i] - m) * (score[i] - m);\n\t\t\t\t}", "sum = sum + (score[i] - m) * (score[i] - m)", "sum", "sum + (score[i] - m) * (score[i] - m)", "sum", "(score[i] - m) * (score[i] - m)", "(score[i] - m)", "score[i]", "score", "i", "m", "(score[i] - m)", "score[i]", "score", "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\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t \n\t\tString x = \"\";\n\t\ttry {\n\t\t\twhile ((x = in.readLine()).equals(\"0\") == false) {\n\t\t\t\tint n = Integer.parseInt(x);\n\t\t\t\tString[] data = in.readLine().split(\" \");\n\t\t\t\n\t\t\t\tdouble sum = 0;\n\t\t\t\t\n\t\t\t\tint[] score = new int[n];\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tscore[i] = Integer.parseInt(data[i]);\n\t\t\t\t\tsum = sum + score[i];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdouble m = sum / n;\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tsum = sum + (score[i] - m) * (score[i] - m);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(Math.sqrt(sum / n));\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t \n\t\tString x = \"\";\n\t\ttry {\n\t\t\twhile ((x = in.readLine()).equals(\"0\") == false) {\n\t\t\t\tint n = Integer.parseInt(x);\n\t\t\t\tString[] data = in.readLine().split(\" \");\n\t\t\t\n\t\t\t\tdouble sum = 0;\n\t\t\t\t\n\t\t\t\tint[] score = new int[n];\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tscore[i] = Integer.parseInt(data[i]);\n\t\t\t\t\tsum = sum + score[i];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdouble m = sum / n;\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tsum = sum + (score[i] - m) * (score[i] - m);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(Math.sqrt(sum / n));\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\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) { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String x = ""; try { while ((x = in.readLine()).equals("0") == false) { int n = Integer.parseInt(x); String[] data = in.readLine().split(" "); double sum = 0; int[] score = new int[n]; for (int i = 0; i < n; i++) { score[i] = Integer.parseInt(data[i]); sum = sum + score[i]; } double m = sum / n; sum = 0; for (int i = 0; i < n; i++) { sum = sum + (score[i] - m) * (score[i] - m); } System.out.println(Math.sqrt(sum / n)); } } catch (NumberFormatException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }
[ 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, 42, 2, 13, 17, 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, 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, 13, 18, 13, 13, 17, 0, 13, 4, 18, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 0, 13, 17, 0, 13, 17, 0, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 117, 8 ], [ 117, 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 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 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 ], [ 30, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 30, 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 ], [ 30, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 94, 95 ], [ 94, 96 ], [ 30, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 30, 103 ], [ 103, 104 ], [ 103, 105 ], [ 30, 106 ], [ 106, 107 ], [ 106, 108 ], [ 30, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 9, 114 ], [ 114, 115 ], [ 0, 116 ], [ 116, 117 ], [ 116, 118 ] ]
[ "import java.io.IOException;\nimport java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint a = sc.nextInt();\n\t\t\tdouble s = 0;\n\t\t\tdouble d = 0;\n\t\t\twhile(a != 0){\n\t\t\t\tint c[] = new int[a];\n\t\t\t\tfor(int b=0;b<a;++b){\n\t\t\t\t\tc[b]=sc.nextInt();\n\t\t\t\t\ts += c[b];\n\t\t\t\t}\n\t\t\t\ts = s/a;\n\t\t\t\tfor(int b=0;b<a;++b){\n\t\t\t\t\td += Math.pow(s-c[b], 2);\n\t\t\t\t}\n\t\t\t\td=Math.sqrt(d/a);\n\t\t\t\tSystem.out.println(d);\n\t\t\t\td=0;\n\t\t\t\ts=0;\n\t\t\t\ta = sc.nextInt();\n\t\t\t}\n\t}\n\n}", "import java.io.IOException;", "IOException", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint a = sc.nextInt();\n\t\t\tdouble s = 0;\n\t\t\tdouble d = 0;\n\t\t\twhile(a != 0){\n\t\t\t\tint c[] = new int[a];\n\t\t\t\tfor(int b=0;b<a;++b){\n\t\t\t\t\tc[b]=sc.nextInt();\n\t\t\t\t\ts += c[b];\n\t\t\t\t}\n\t\t\t\ts = s/a;\n\t\t\t\tfor(int b=0;b<a;++b){\n\t\t\t\t\td += Math.pow(s-c[b], 2);\n\t\t\t\t}\n\t\t\t\td=Math.sqrt(d/a);\n\t\t\t\tSystem.out.println(d);\n\t\t\t\td=0;\n\t\t\t\ts=0;\n\t\t\t\ta = sc.nextInt();\n\t\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint a = sc.nextInt();\n\t\t\tdouble s = 0;\n\t\t\tdouble d = 0;\n\t\t\twhile(a != 0){\n\t\t\t\tint c[] = new int[a];\n\t\t\t\tfor(int b=0;b<a;++b){\n\t\t\t\t\tc[b]=sc.nextInt();\n\t\t\t\t\ts += c[b];\n\t\t\t\t}\n\t\t\t\ts = s/a;\n\t\t\t\tfor(int b=0;b<a;++b){\n\t\t\t\t\td += Math.pow(s-c[b], 2);\n\t\t\t\t}\n\t\t\t\td=Math.sqrt(d/a);\n\t\t\t\tSystem.out.println(d);\n\t\t\t\td=0;\n\t\t\t\ts=0;\n\t\t\t\ta = sc.nextInt();\n\t\t\t}\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint a = sc.nextInt();\n\t\t\tdouble s = 0;\n\t\t\tdouble d = 0;\n\t\t\twhile(a != 0){\n\t\t\t\tint c[] = new int[a];\n\t\t\t\tfor(int b=0;b<a;++b){\n\t\t\t\t\tc[b]=sc.nextInt();\n\t\t\t\t\ts += c[b];\n\t\t\t\t}\n\t\t\t\ts = s/a;\n\t\t\t\tfor(int b=0;b<a;++b){\n\t\t\t\t\td += Math.pow(s-c[b], 2);\n\t\t\t\t}\n\t\t\t\td=Math.sqrt(d/a);\n\t\t\t\tSystem.out.println(d);\n\t\t\t\td=0;\n\t\t\t\ts=0;\n\t\t\t\ta = sc.nextInt();\n\t\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "double s = 0;", "s", "0", "double d = 0;", "d", "0", "while(a != 0){\n\t\t\t\tint c[] = new int[a];\n\t\t\t\tfor(int b=0;b<a;++b){\n\t\t\t\t\tc[b]=sc.nextInt();\n\t\t\t\t\ts += c[b];\n\t\t\t\t}\n\t\t\t\ts = s/a;\n\t\t\t\tfor(int b=0;b<a;++b){\n\t\t\t\t\td += Math.pow(s-c[b], 2);\n\t\t\t\t}\n\t\t\t\td=Math.sqrt(d/a);\n\t\t\t\tSystem.out.println(d);\n\t\t\t\td=0;\n\t\t\t\ts=0;\n\t\t\t\ta = sc.nextInt();\n\t\t\t}", "a != 0", "a", "0", "{\n\t\t\t\tint c[] = new int[a];\n\t\t\t\tfor(int b=0;b<a;++b){\n\t\t\t\t\tc[b]=sc.nextInt();\n\t\t\t\t\ts += c[b];\n\t\t\t\t}\n\t\t\t\ts = s/a;\n\t\t\t\tfor(int b=0;b<a;++b){\n\t\t\t\t\td += Math.pow(s-c[b], 2);\n\t\t\t\t}\n\t\t\t\td=Math.sqrt(d/a);\n\t\t\t\tSystem.out.println(d);\n\t\t\t\td=0;\n\t\t\t\ts=0;\n\t\t\t\ta = sc.nextInt();\n\t\t\t}", "int c[] = new int[a];", "c", "new int[a]", "a", "for(int b=0;b<a;++b){\n\t\t\t\t\tc[b]=sc.nextInt();\n\t\t\t\t\ts += c[b];\n\t\t\t\t}", "int b=0;", "int b=0;", "b", "0", "b<a", "b", "a", "++b", "++b", "b", "{\n\t\t\t\t\tc[b]=sc.nextInt();\n\t\t\t\t\ts += c[b];\n\t\t\t\t}", "{\n\t\t\t\t\tc[b]=sc.nextInt();\n\t\t\t\t\ts += c[b];\n\t\t\t\t}", "c[b]=sc.nextInt()", "c[b]", "c", "b", "sc.nextInt()", "sc.nextInt", "sc", "s += c[b]", "s", "c[b]", "c", "b", "s = s/a", "s", "s/a", "s", "a", "for(int b=0;b<a;++b){\n\t\t\t\t\td += Math.pow(s-c[b], 2);\n\t\t\t\t}", "int b=0;", "int b=0;", "b", "0", "b<a", "b", "a", "++b", "++b", "b", "{\n\t\t\t\t\td += Math.pow(s-c[b], 2);\n\t\t\t\t}", "{\n\t\t\t\t\td += Math.pow(s-c[b], 2);\n\t\t\t\t}", "d += Math.pow(s-c[b], 2)", "d", "Math.pow(s-c[b], 2)", "Math.pow", "Math", "s-c[b]", "s", "c[b]", "c", "b", "2", "d=Math.sqrt(d/a)", "d", "Math.sqrt(d/a)", "Math.sqrt", "Math", "d/a", "d", "a", "System.out.println(d)", "System.out.println", "System.out", "System", "System.out", "d", "d=0", "d", "0", "s=0", "s", "0", "a = sc.nextInt()", "a", "sc.nextInt()", "sc.nextInt", "sc", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint a = sc.nextInt();\n\t\t\tdouble s = 0;\n\t\t\tdouble d = 0;\n\t\t\twhile(a != 0){\n\t\t\t\tint c[] = new int[a];\n\t\t\t\tfor(int b=0;b<a;++b){\n\t\t\t\t\tc[b]=sc.nextInt();\n\t\t\t\t\ts += c[b];\n\t\t\t\t}\n\t\t\t\ts = s/a;\n\t\t\t\tfor(int b=0;b<a;++b){\n\t\t\t\t\td += Math.pow(s-c[b], 2);\n\t\t\t\t}\n\t\t\t\td=Math.sqrt(d/a);\n\t\t\t\tSystem.out.println(d);\n\t\t\t\td=0;\n\t\t\t\ts=0;\n\t\t\t\ta = sc.nextInt();\n\t\t\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint a = sc.nextInt();\n\t\t\tdouble s = 0;\n\t\t\tdouble d = 0;\n\t\t\twhile(a != 0){\n\t\t\t\tint c[] = new int[a];\n\t\t\t\tfor(int b=0;b<a;++b){\n\t\t\t\t\tc[b]=sc.nextInt();\n\t\t\t\t\ts += c[b];\n\t\t\t\t}\n\t\t\t\ts = s/a;\n\t\t\t\tfor(int b=0;b<a;++b){\n\t\t\t\t\td += Math.pow(s-c[b], 2);\n\t\t\t\t}\n\t\t\t\td=Math.sqrt(d/a);\n\t\t\t\tSystem.out.println(d);\n\t\t\t\td=0;\n\t\t\t\ts=0;\n\t\t\t\ta = sc.nextInt();\n\t\t\t}\n\t}\n\n}", "Main" ]
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); int a = sc.nextInt(); double s = 0; double d = 0; while(a != 0){ int c[] = new int[a]; for(int b=0;b<a;++b){ c[b]=sc.nextInt(); s += c[b]; } s = s/a; for(int b=0;b<a;++b){ d += Math.pow(s-c[b], 2); } d=Math.sqrt(d/a); System.out.println(d); d=0; s=0; a = sc.nextInt(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 4, 18, 13, 2, 13, 17, 1, 0, 13, 4, 18, 13, 30, 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, 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, 0, 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 ], [ 116, 5 ], [ 116, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 12, 19 ], [ 19, 20 ], [ 19, 21 ], [ 12, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 12, 28 ], [ 29, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 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 ], [ 29, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 29, 67 ], [ 67, 68 ], [ 67, 69 ], [ 29, 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 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 85, 93 ], [ 29, 94 ], [ 94, 95 ], [ 94, 96 ], [ 29, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 102, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 8, 110 ], [ 110, 111 ], [ 111, 112 ], [ 6, 113 ], [ 113, 114 ], [ 0, 115 ], [ 115, 116 ], [ 115, 117 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\n for (int n = sc.nextInt(); n != 0; n = sc.nextInt()) {\n \tint[] data = new int[n];\n \tint sum = 0;\n \tfor (int i = 0; i < n; i++) {\n \t\tdata[i] = sc.nextInt();\n \t\tsum += data[i];\n \t}\n \tdouble average = (double)sum / n;\n\n \tdouble sd = 0.0;\n \tfor (int i = 0; i < n; i++) {\n \t\tsd += Math.pow(data[i] - average, 2);\n \t}\n \tsd /= n;\n\n \tSystem.out.println(String.format(\"%.4f\", Math.sqrt(sd)));\n }\n \n sc.close();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\n for (int n = sc.nextInt(); n != 0; n = sc.nextInt()) {\n \tint[] data = new int[n];\n \tint sum = 0;\n \tfor (int i = 0; i < n; i++) {\n \t\tdata[i] = sc.nextInt();\n \t\tsum += data[i];\n \t}\n \tdouble average = (double)sum / n;\n\n \tdouble sd = 0.0;\n \tfor (int i = 0; i < n; i++) {\n \t\tsd += Math.pow(data[i] - average, 2);\n \t}\n \tsd /= n;\n\n \tSystem.out.println(String.format(\"%.4f\", Math.sqrt(sd)));\n }\n \n sc.close();\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\n for (int n = sc.nextInt(); n != 0; n = sc.nextInt()) {\n \tint[] data = new int[n];\n \tint sum = 0;\n \tfor (int i = 0; i < n; i++) {\n \t\tdata[i] = sc.nextInt();\n \t\tsum += data[i];\n \t}\n \tdouble average = (double)sum / n;\n\n \tdouble sd = 0.0;\n \tfor (int i = 0; i < n; i++) {\n \t\tsd += Math.pow(data[i] - average, 2);\n \t}\n \tsd /= n;\n\n \tSystem.out.println(String.format(\"%.4f\", Math.sqrt(sd)));\n }\n \n sc.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in); \n\n for (int n = sc.nextInt(); n != 0; n = sc.nextInt()) {\n \tint[] data = new int[n];\n \tint sum = 0;\n \tfor (int i = 0; i < n; i++) {\n \t\tdata[i] = sc.nextInt();\n \t\tsum += data[i];\n \t}\n \tdouble average = (double)sum / n;\n\n \tdouble sd = 0.0;\n \tfor (int i = 0; i < n; i++) {\n \t\tsd += Math.pow(data[i] - average, 2);\n \t}\n \tsd /= n;\n\n \tSystem.out.println(String.format(\"%.4f\", Math.sqrt(sd)));\n }\n \n sc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "for (int n = sc.nextInt(); n != 0; n = sc.nextInt()) {\n \tint[] data = new int[n];\n \tint sum = 0;\n \tfor (int i = 0; i < n; i++) {\n \t\tdata[i] = sc.nextInt();\n \t\tsum += data[i];\n \t}\n \tdouble average = (double)sum / n;\n\n \tdouble sd = 0.0;\n \tfor (int i = 0; i < n; i++) {\n \t\tsd += Math.pow(data[i] - average, 2);\n \t}\n \tsd /= n;\n\n \tSystem.out.println(String.format(\"%.4f\", Math.sqrt(sd)));\n }", "int n = sc.nextInt();", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "n != 0", "n", "0", "n = sc.nextInt()", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "{\n \tint[] data = new int[n];\n \tint sum = 0;\n \tfor (int i = 0; i < n; i++) {\n \t\tdata[i] = sc.nextInt();\n \t\tsum += data[i];\n \t}\n \tdouble average = (double)sum / n;\n\n \tdouble sd = 0.0;\n \tfor (int i = 0; i < n; i++) {\n \t\tsd += Math.pow(data[i] - average, 2);\n \t}\n \tsd /= n;\n\n \tSystem.out.println(String.format(\"%.4f\", Math.sqrt(sd)));\n }", "{\n \tint[] data = new int[n];\n \tint sum = 0;\n \tfor (int i = 0; i < n; i++) {\n \t\tdata[i] = sc.nextInt();\n \t\tsum += data[i];\n \t}\n \tdouble average = (double)sum / n;\n\n \tdouble sd = 0.0;\n \tfor (int i = 0; i < n; i++) {\n \t\tsd += Math.pow(data[i] - average, 2);\n \t}\n \tsd /= n;\n\n \tSystem.out.println(String.format(\"%.4f\", Math.sqrt(sd)));\n }", "int[] data = new int[n];", "data", "new int[n]", "n", "int sum = 0;", "sum", "0", "for (int i = 0; i < n; i++) {\n \t\tdata[i] = sc.nextInt();\n \t\tsum += data[i];\n \t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n \t\tdata[i] = sc.nextInt();\n \t\tsum += data[i];\n \t}", "{\n \t\tdata[i] = sc.nextInt();\n \t\tsum += data[i];\n \t}", "data[i] = sc.nextInt()", "data[i]", "data", "i", "sc.nextInt()", "sc.nextInt", "sc", "sum += data[i]", "sum", "data[i]", "data", "i", "double average = (double)sum / n;", "average", "(double)sum / n", "(double)sum", "n", "double sd = 0.0;", "sd", "0.0", "for (int i = 0; i < n; i++) {\n \t\tsd += Math.pow(data[i] - average, 2);\n \t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n \t\tsd += Math.pow(data[i] - average, 2);\n \t}", "{\n \t\tsd += Math.pow(data[i] - average, 2);\n \t}", "sd += Math.pow(data[i] - average, 2)", "sd", "Math.pow(data[i] - average, 2)", "Math.pow", "Math", "data[i] - average", "data[i]", "data", "i", "average", "2", "sd /= n", "sd", "n", "System.out.println(String.format(\"%.4f\", Math.sqrt(sd)))", "System.out.println", "System.out", "System", "System.out", "String.format(\"%.4f\", Math.sqrt(sd))", "String.format", "String", "\"%.4f\"", "Math.sqrt(sd)", "Math.sqrt", "Math", "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\n for (int n = sc.nextInt(); n != 0; n = sc.nextInt()) {\n \tint[] data = new int[n];\n \tint sum = 0;\n \tfor (int i = 0; i < n; i++) {\n \t\tdata[i] = sc.nextInt();\n \t\tsum += data[i];\n \t}\n \tdouble average = (double)sum / n;\n\n \tdouble sd = 0.0;\n \tfor (int i = 0; i < n; i++) {\n \t\tsd += Math.pow(data[i] - average, 2);\n \t}\n \tsd /= n;\n\n \tSystem.out.println(String.format(\"%.4f\", Math.sqrt(sd)));\n }\n \n sc.close();\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\n for (int n = sc.nextInt(); n != 0; n = sc.nextInt()) {\n \tint[] data = new int[n];\n \tint sum = 0;\n \tfor (int i = 0; i < n; i++) {\n \t\tdata[i] = sc.nextInt();\n \t\tsum += data[i];\n \t}\n \tdouble average = (double)sum / n;\n\n \tdouble sd = 0.0;\n \tfor (int i = 0; i < n; i++) {\n \t\tsd += Math.pow(data[i] - average, 2);\n \t}\n \tsd /= n;\n\n \tSystem.out.println(String.format(\"%.4f\", Math.sqrt(sd)));\n }\n \n sc.close();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int n = sc.nextInt(); n != 0; n = sc.nextInt()) { int[] data = new int[n]; int sum = 0; for (int i = 0; i < n; i++) { data[i] = sc.nextInt(); sum += data[i]; } double average = (double)sum / n; double sd = 0.0; for (int i = 0; i < n; i++) { sd += Math.pow(data[i] - average, 2); } sd /= n; System.out.println(String.format("%.4f", Math.sqrt(sd))); } sc.close(); } }
[ 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, 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, 0, 13, 2, 18, 13, 13, 18, 13, 13, 41, 13, 4, 18, 13, 2, 2, 13, 2, 13, 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 ], [ 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 ], [ 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 ], [ 64, 65 ], [ 64, 66 ], [ 16, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 72, 73 ], [ 72, 74 ], [ 67, 75 ], [ 75, 76 ], [ 76, 77 ], [ 67, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 85, 87 ], [ 16, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 93, 99 ], [ 16, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 100, 106 ], [ 16, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 6, 112 ], [ 112, 113 ] ]
[ "import java.util.Scanner;\n\nclass Main { \n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n \n while (in.hasNext()){\n int n = in.nextInt();\n if (n == 0) break;\n int[] numbers = new int[n];\n long double_sum = 0;\n long sum_double = 0;\n \n for (int i = 0; i < n; i++) {\n numbers[i] = in.nextInt();\n double_sum += numbers[i];\n }\n double_sum = double_sum * double_sum;\n for (int i = 0; i < n; i++) sum_double += (numbers[i] * numbers[i]);\n \n double sd = Math.sqrt((sum_double - double_sum / (double)n) / (double)n);\n \n System.out.printf(\"%5.8f\", sd);\n System.out.println();\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main { \n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n \n while (in.hasNext()){\n int n = in.nextInt();\n if (n == 0) break;\n int[] numbers = new int[n];\n long double_sum = 0;\n long sum_double = 0;\n \n for (int i = 0; i < n; i++) {\n numbers[i] = in.nextInt();\n double_sum += numbers[i];\n }\n double_sum = double_sum * double_sum;\n for (int i = 0; i < n; i++) sum_double += (numbers[i] * numbers[i]);\n \n double sd = Math.sqrt((sum_double - double_sum / (double)n) / (double)n);\n \n System.out.printf(\"%5.8f\", sd);\n System.out.println();\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n \n while (in.hasNext()){\n int n = in.nextInt();\n if (n == 0) break;\n int[] numbers = new int[n];\n long double_sum = 0;\n long sum_double = 0;\n \n for (int i = 0; i < n; i++) {\n numbers[i] = in.nextInt();\n double_sum += numbers[i];\n }\n double_sum = double_sum * double_sum;\n for (int i = 0; i < n; i++) sum_double += (numbers[i] * numbers[i]);\n \n double sd = Math.sqrt((sum_double - double_sum / (double)n) / (double)n);\n \n System.out.printf(\"%5.8f\", sd);\n System.out.println();\n }\n }", "main", "{\n Scanner in = new Scanner(System.in);\n \n while (in.hasNext()){\n int n = in.nextInt();\n if (n == 0) break;\n int[] numbers = new int[n];\n long double_sum = 0;\n long sum_double = 0;\n \n for (int i = 0; i < n; i++) {\n numbers[i] = in.nextInt();\n double_sum += numbers[i];\n }\n double_sum = double_sum * double_sum;\n for (int i = 0; i < n; i++) sum_double += (numbers[i] * numbers[i]);\n \n double sd = Math.sqrt((sum_double - double_sum / (double)n) / (double)n);\n \n System.out.printf(\"%5.8f\", sd);\n System.out.println();\n }\n }", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "while (in.hasNext()){\n int n = in.nextInt();\n if (n == 0) break;\n int[] numbers = new int[n];\n long double_sum = 0;\n long sum_double = 0;\n \n for (int i = 0; i < n; i++) {\n numbers[i] = in.nextInt();\n double_sum += numbers[i];\n }\n double_sum = double_sum * double_sum;\n for (int i = 0; i < n; i++) sum_double += (numbers[i] * numbers[i]);\n \n double sd = Math.sqrt((sum_double - double_sum / (double)n) / (double)n);\n \n System.out.printf(\"%5.8f\", sd);\n System.out.println();\n }", "in.hasNext()", "in.hasNext", "in", "{\n int n = in.nextInt();\n if (n == 0) break;\n int[] numbers = new int[n];\n long double_sum = 0;\n long sum_double = 0;\n \n for (int i = 0; i < n; i++) {\n numbers[i] = in.nextInt();\n double_sum += numbers[i];\n }\n double_sum = double_sum * double_sum;\n for (int i = 0; i < n; i++) sum_double += (numbers[i] * numbers[i]);\n \n double sd = Math.sqrt((sum_double - double_sum / (double)n) / (double)n);\n \n System.out.printf(\"%5.8f\", sd);\n System.out.println();\n }", "int n = in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "if (n == 0) break;", "n == 0", "n", "0", "break;", "int[] numbers = new int[n];", "numbers", "new int[n]", "n", "long double_sum = 0;", "double_sum", "0", "long sum_double = 0;", "sum_double", "0", "for (int i = 0; i < n; i++) {\n numbers[i] = in.nextInt();\n double_sum += numbers[i];\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n numbers[i] = in.nextInt();\n double_sum += numbers[i];\n }", "{\n numbers[i] = in.nextInt();\n double_sum += numbers[i];\n }", "numbers[i] = in.nextInt()", "numbers[i]", "numbers", "i", "in.nextInt()", "in.nextInt", "in", "double_sum += numbers[i]", "double_sum", "numbers[i]", "numbers", "i", "double_sum = double_sum * double_sum", "double_sum", "double_sum * double_sum", "double_sum", "double_sum", "for (int i = 0; i < n; i++) sum_double += (numbers[i] * numbers[i]);", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "sum_double += (numbers[i] * numbers[i]);", "sum_double += (numbers[i] * numbers[i])", "sum_double", "(numbers[i] * numbers[i])", "numbers[i]", "numbers", "i", "numbers[i]", "numbers", "i", "double sd = Math.sqrt((sum_double - double_sum / (double)n) / (double)n);", "sd", "Math.sqrt((sum_double - double_sum / (double)n) / (double)n)", "Math.sqrt", "Math", "(sum_double - double_sum / (double)n) / (double)n", "(sum_double - double_sum / (double)n)", "sum_double", "double_sum / (double)n", "double_sum", "(double)n", "(double)n", "System.out.printf(\"%5.8f\", sd)", "System.out.printf", "System.out", "System", "System.out", "\"%5.8f\"", "sd", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); while (in.hasNext()){ int n = in.nextInt(); if (n == 0) break; int[] numbers = new int[n]; long double_sum = 0; long sum_double = 0; for (int i = 0; i < n; i++) { numbers[i] = in.nextInt(); double_sum += numbers[i]; } double_sum = double_sum * double_sum; for (int i = 0; i < n; i++) sum_double += (numbers[i] * numbers[i]); double sd = Math.sqrt((sum_double - double_sum / (double)n) / (double)n); System.out.printf("%5.8f", sd); System.out.println(); } } }
[ 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, 20, 13, 14, 2, 13, 17, 3, 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, 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 ]
[ [ 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, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 14, 33 ], [ 33, 34 ], [ 33, 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 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 48, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 58, 60 ], [ 14, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 14, 66 ], [ 66, 67 ], [ 66, 68 ], [ 14, 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 ], [ 14, 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 ] ]
[ "import java.util.*;\n\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n while(true){\n int n = sc.nextInt();\n int[] test = new int[n];\n double[] tmp = new double[n];\n\n if(n == 0) break;\n\n double sum = 0;\n for(int i = 0;i < n;i++){\n test[i] = sc.nextInt();\n sum += test[i];\n }\n double avg = (double)sum / n;\n \n sum = 0;\n for(int i = 0;i < n;i++){\n sum += (test[i] - avg) * (test[i] - avg);\n }\n\n System.out.printf(\"%.8f\\n\",Math.sqrt(sum / n));\n }\n }\n}", "import java.util.*;", "util.*", "java", "class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n while(true){\n int n = sc.nextInt();\n int[] test = new int[n];\n double[] tmp = new double[n];\n\n if(n == 0) break;\n\n double sum = 0;\n for(int i = 0;i < n;i++){\n test[i] = sc.nextInt();\n sum += test[i];\n }\n double avg = (double)sum / n;\n \n sum = 0;\n for(int i = 0;i < n;i++){\n sum += (test[i] - avg) * (test[i] - avg);\n }\n\n System.out.printf(\"%.8f\\n\",Math.sqrt(sum / 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 int[] test = new int[n];\n double[] tmp = new double[n];\n\n if(n == 0) break;\n\n double sum = 0;\n for(int i = 0;i < n;i++){\n test[i] = sc.nextInt();\n sum += test[i];\n }\n double avg = (double)sum / n;\n \n sum = 0;\n for(int i = 0;i < n;i++){\n sum += (test[i] - avg) * (test[i] - avg);\n }\n\n System.out.printf(\"%.8f\\n\",Math.sqrt(sum / n));\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n while(true){\n int n = sc.nextInt();\n int[] test = new int[n];\n double[] tmp = new double[n];\n\n if(n == 0) break;\n\n double sum = 0;\n for(int i = 0;i < n;i++){\n test[i] = sc.nextInt();\n sum += test[i];\n }\n double avg = (double)sum / n;\n \n sum = 0;\n for(int i = 0;i < n;i++){\n sum += (test[i] - avg) * (test[i] - avg);\n }\n\n System.out.printf(\"%.8f\\n\",Math.sqrt(sum / n));\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n int n = sc.nextInt();\n int[] test = new int[n];\n double[] tmp = new double[n];\n\n if(n == 0) break;\n\n double sum = 0;\n for(int i = 0;i < n;i++){\n test[i] = sc.nextInt();\n sum += test[i];\n }\n double avg = (double)sum / n;\n \n sum = 0;\n for(int i = 0;i < n;i++){\n sum += (test[i] - avg) * (test[i] - avg);\n }\n\n System.out.printf(\"%.8f\\n\",Math.sqrt(sum / n));\n }", "true", "{\n int n = sc.nextInt();\n int[] test = new int[n];\n double[] tmp = new double[n];\n\n if(n == 0) break;\n\n double sum = 0;\n for(int i = 0;i < n;i++){\n test[i] = sc.nextInt();\n sum += test[i];\n }\n double avg = (double)sum / n;\n \n sum = 0;\n for(int i = 0;i < n;i++){\n sum += (test[i] - avg) * (test[i] - avg);\n }\n\n System.out.printf(\"%.8f\\n\",Math.sqrt(sum / n));\n }", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[] test = new int[n];", "test", "new int[n]", "n", "double[] tmp = new double[n];", "tmp", "new double[n]", "n", "if(n == 0) break;", "n == 0", "n", "0", "break;", "double sum = 0;", "sum", "0", "for(int i = 0;i < n;i++){\n test[i] = sc.nextInt();\n sum += test[i];\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n test[i] = sc.nextInt();\n sum += test[i];\n }", "{\n test[i] = sc.nextInt();\n sum += test[i];\n }", "test[i] = sc.nextInt()", "test[i]", "test", "i", "sc.nextInt()", "sc.nextInt", "sc", "sum += test[i]", "sum", "test[i]", "test", "i", "double avg = (double)sum / n;", "avg", "(double)sum / n", "(double)sum", "n", "sum = 0", "sum", "0", "for(int i = 0;i < n;i++){\n sum += (test[i] - avg) * (test[i] - avg);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n sum += (test[i] - avg) * (test[i] - avg);\n }", "{\n sum += (test[i] - avg) * (test[i] - avg);\n }", "sum += (test[i] - avg) * (test[i] - avg)", "sum", "(test[i] - avg) * (test[i] - avg)", "(test[i] - avg)", "test[i]", "test", "i", "avg", "(test[i] - avg)", "test[i]", "test", "i", "avg", "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" ]
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(true){ int n = sc.nextInt(); int[] test = new int[n]; double[] tmp = new double[n]; if(n == 0) break; double sum = 0; for(int i = 0;i < n;i++){ test[i] = sc.nextInt(); sum += test[i]; } double avg = (double)sum / n; sum = 0; for(int i = 0;i < n;i++){ sum += (test[i] - avg) * (test[i] - avg); } System.out.printf("%.8f\n",Math.sqrt(sum / 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, 17, 41, 13, 17, 41, 13, 4, 18, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 4, 18, 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, 4, 18, 13, 2, 4, 18, 13, 18, 13, 13, 13, 17, 0, 13, 4, 18, 13, 4, 18, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 125, 11 ], [ 125, 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 ], [ 20, 27 ], [ 27, 28 ], [ 27, 29 ], [ 20, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 35, 36 ], [ 36, 37 ], [ 20, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 20, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 46, 51 ], [ 20, 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 ], [ 70, 72 ], [ 20, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 20, 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 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 100, 101 ], [ 100, 102 ], [ 96, 103 ], [ 93, 104 ], [ 20, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 113, 114 ], [ 113, 115 ], [ 20, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 12, 122 ], [ 122, 123 ], [ 0, 124 ], [ 124, 125 ], [ 124, 126 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws NumberFormatException, IOException {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n while(true){\n\n double total = 0;\n double average = 0;\n double a = 0;\n\n int n = Integer.parseInt(br.readLine());\n\n// ???????????¶\n if(n == 0){\n break;\n }\n String[] score = br.readLine().split(\" \");\n\n// ?????????????¨????total?????????\n for(int i = 0; i < n; i++){\n total += Double.parseDouble(score[i]);\n }\n// ??????????????????average?????????\n average = total / n;\n\n// ?¨??????????a?????????\n for(int i = 0; i < n; i++){\n a += Math.pow(Double.parseDouble(score[i]) - average, 2);\n }\n a = Math.sqrt(Math.abs(a / n));\n\n System.out.println(a);\n }\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n public static void main(String[] args) throws NumberFormatException, IOException {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n while(true){\n\n double total = 0;\n double average = 0;\n double a = 0;\n\n int n = Integer.parseInt(br.readLine());\n\n// ???????????¶\n if(n == 0){\n break;\n }\n String[] score = br.readLine().split(\" \");\n\n// ?????????????¨????total?????????\n for(int i = 0; i < n; i++){\n total += Double.parseDouble(score[i]);\n }\n// ??????????????????average?????????\n average = total / n;\n\n// ?¨??????????a?????????\n for(int i = 0; i < n; i++){\n a += Math.pow(Double.parseDouble(score[i]) - average, 2);\n }\n a = Math.sqrt(Math.abs(a / n));\n\n System.out.println(a);\n }\n }\n}", "Main", "public static void main(String[] args) throws NumberFormatException, IOException {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n while(true){\n\n double total = 0;\n double average = 0;\n double a = 0;\n\n int n = Integer.parseInt(br.readLine());\n\n// ???????????¶\n if(n == 0){\n break;\n }\n String[] score = br.readLine().split(\" \");\n\n// ?????????????¨????total?????????\n for(int i = 0; i < n; i++){\n total += Double.parseDouble(score[i]);\n }\n// ??????????????????average?????????\n average = total / n;\n\n// ?¨??????????a?????????\n for(int i = 0; i < n; i++){\n a += Math.pow(Double.parseDouble(score[i]) - average, 2);\n }\n a = Math.sqrt(Math.abs(a / n));\n\n System.out.println(a);\n }\n }", "main", "{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n while(true){\n\n double total = 0;\n double average = 0;\n double a = 0;\n\n int n = Integer.parseInt(br.readLine());\n\n// ???????????¶\n if(n == 0){\n break;\n }\n String[] score = br.readLine().split(\" \");\n\n// ?????????????¨????total?????????\n for(int i = 0; i < n; i++){\n total += Double.parseDouble(score[i]);\n }\n// ??????????????????average?????????\n average = total / n;\n\n// ?¨??????????a?????????\n for(int i = 0; i < n; i++){\n a += Math.pow(Double.parseDouble(score[i]) - average, 2);\n }\n a = Math.sqrt(Math.abs(a / n));\n\n System.out.println(a);\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while(true){\n\n double total = 0;\n double average = 0;\n double a = 0;\n\n int n = Integer.parseInt(br.readLine());\n\n// ???????????¶\n if(n == 0){\n break;\n }\n String[] score = br.readLine().split(\" \");\n\n// ?????????????¨????total?????????\n for(int i = 0; i < n; i++){\n total += Double.parseDouble(score[i]);\n }\n// ??????????????????average?????????\n average = total / n;\n\n// ?¨??????????a?????????\n for(int i = 0; i < n; i++){\n a += Math.pow(Double.parseDouble(score[i]) - average, 2);\n }\n a = Math.sqrt(Math.abs(a / n));\n\n System.out.println(a);\n }", "true", "{\n\n double total = 0;\n double average = 0;\n double a = 0;\n\n int n = Integer.parseInt(br.readLine());\n\n// ???????????¶\n if(n == 0){\n break;\n }\n String[] score = br.readLine().split(\" \");\n\n// ?????????????¨????total?????????\n for(int i = 0; i < n; i++){\n total += Double.parseDouble(score[i]);\n }\n// ??????????????????average?????????\n average = total / n;\n\n// ?¨??????????a?????????\n for(int i = 0; i < n; i++){\n a += Math.pow(Double.parseDouble(score[i]) - average, 2);\n }\n a = Math.sqrt(Math.abs(a / n));\n\n System.out.println(a);\n }", "double total = 0;", "total", "0", "double average = 0;", "average", "0", "double a = 0;", "a", "0", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "if(n == 0){\n break;\n }", "n == 0", "n", "0", "{\n break;\n }", "break;", "String[] score = br.readLine().split(\" \");", "score", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "for(int i = 0; i < n; i++){\n total += Double.parseDouble(score[i]);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n total += Double.parseDouble(score[i]);\n }", "{\n total += Double.parseDouble(score[i]);\n }", "total += Double.parseDouble(score[i])", "total", "Double.parseDouble(score[i])", "Double.parseDouble", "Double", "score[i]", "score", "i", "average = total / n", "average", "total / n", "total", "n", "for(int i = 0; i < n; i++){\n a += Math.pow(Double.parseDouble(score[i]) - average, 2);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n a += Math.pow(Double.parseDouble(score[i]) - average, 2);\n }", "{\n a += Math.pow(Double.parseDouble(score[i]) - average, 2);\n }", "a += Math.pow(Double.parseDouble(score[i]) - average, 2)", "a", "Math.pow(Double.parseDouble(score[i]) - average, 2)", "Math.pow", "Math", "Double.parseDouble(score[i]) - average", "Double.parseDouble(score[i])", "Double.parseDouble", "Double", "score[i]", "score", "i", "average", "2", "a = Math.sqrt(Math.abs(a / n))", "a", "Math.sqrt(Math.abs(a / n))", "Math.sqrt", "Math", "Math.abs(a / n)", "Math.abs", "Math", "a / n", "a", "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) throws NumberFormatException, IOException {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n while(true){\n\n double total = 0;\n double average = 0;\n double a = 0;\n\n int n = Integer.parseInt(br.readLine());\n\n// ???????????¶\n if(n == 0){\n break;\n }\n String[] score = br.readLine().split(\" \");\n\n// ?????????????¨????total?????????\n for(int i = 0; i < n; i++){\n total += Double.parseDouble(score[i]);\n }\n// ??????????????????average?????????\n average = total / n;\n\n// ?¨??????????a?????????\n for(int i = 0; i < n; i++){\n a += Math.pow(Double.parseDouble(score[i]) - average, 2);\n }\n a = Math.sqrt(Math.abs(a / n));\n\n System.out.println(a);\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) throws NumberFormatException, IOException {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n while(true){\n\n double total = 0;\n double average = 0;\n double a = 0;\n\n int n = Integer.parseInt(br.readLine());\n\n// ???????????¶\n if(n == 0){\n break;\n }\n String[] score = br.readLine().split(\" \");\n\n// ?????????????¨????total?????????\n for(int i = 0; i < n; i++){\n total += Double.parseDouble(score[i]);\n }\n// ??????????????????average?????????\n average = total / n;\n\n// ?¨??????????a?????????\n for(int i = 0; i < n; i++){\n a += Math.pow(Double.parseDouble(score[i]) - average, 2);\n }\n a = Math.sqrt(Math.abs(a / n));\n\n System.out.println(a);\n }\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while(true){ double total = 0; double average = 0; double a = 0; int n = Integer.parseInt(br.readLine()); // ???????????¶ if(n == 0){ break; } String[] score = br.readLine().split(" "); // ?????????????¨????total????????? for(int i = 0; i < n; i++){ total += Double.parseDouble(score[i]); } // ??????????????????average????????? average = total / n; // ?¨??????????a????????? for(int i = 0; i < n; i++){ a += Math.pow(Double.parseDouble(score[i]) - average, 2); } a = Math.sqrt(Math.abs(a / 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, 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, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 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, 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 ], [ 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 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 14, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 36, 38 ], [ 29, 39 ], [ 39, 40 ], [ 40, 41 ], [ 29, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 14, 51 ], [ 51, 52 ], [ 51, 53 ], [ 14, 54 ], [ 54, 55 ], [ 54, 56 ], [ 14, 57 ], [ 57, 58 ], [ 57, 59 ], [ 14, 60 ], [ 60, 61 ], [ 60, 62 ], [ 14, 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 ], [ 76, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 14, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 14, 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 ], [ 103, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 105, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 14, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 118, 120 ], [ 14, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 6, 130 ], [ 130, 131 ], [ 0, 132 ], [ 132, 133 ], [ 132, 134 ] ]
[ "import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n 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 sum=0,ave=0,vars=0,var=0;\n for(int i=0;i<n;i++){\n sum = sum+scores[i];\n }\n ave = (double)sum /n;\n for(int i=0;i<n;i++){\n vars = vars+((scores[i]-ave)*(scores[i]-ave));\n }\n var = (double)vars/n;\n System.out.println(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 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 sum=0,ave=0,vars=0,var=0;\n for(int i=0;i<n;i++){\n sum = sum+scores[i];\n }\n ave = (double)sum /n;\n for(int i=0;i<n;i++){\n vars = vars+((scores[i]-ave)*(scores[i]-ave));\n }\n var = (double)vars/n;\n System.out.println(Math.sqrt(var));\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)break;\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,ave=0,vars=0,var=0;\n for(int i=0;i<n;i++){\n sum = sum+scores[i];\n }\n ave = (double)sum /n;\n for(int i=0;i<n;i++){\n vars = vars+((scores[i]-ave)*(scores[i]-ave));\n }\n var = (double)vars/n;\n System.out.println(Math.sqrt(var));\n }\n }", "main", "{\n 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 sum=0,ave=0,vars=0,var=0;\n for(int i=0;i<n;i++){\n sum = sum+scores[i];\n }\n ave = (double)sum /n;\n for(int i=0;i<n;i++){\n vars = vars+((scores[i]-ave)*(scores[i]-ave));\n }\n var = (double)vars/n;\n System.out.println(Math.sqrt(var));\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[] scores = new int[n];\n for(int i=0;i<scores.length;i++){\n scores[i] = sc.nextInt();\n }\n double sum=0,ave=0,vars=0,var=0;\n for(int i=0;i<n;i++){\n sum = sum+scores[i];\n }\n ave = (double)sum /n;\n for(int i=0;i<n;i++){\n vars = vars+((scores[i]-ave)*(scores[i]-ave));\n }\n var = (double)vars/n;\n System.out.println(Math.sqrt(var));\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 sum=0,ave=0,vars=0,var=0;\n for(int i=0;i<n;i++){\n sum = sum+scores[i];\n }\n ave = (double)sum /n;\n for(int i=0;i<n;i++){\n vars = vars+((scores[i]-ave)*(scores[i]-ave));\n }\n var = (double)vars/n;\n System.out.println(Math.sqrt(var));\n }", "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<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", "ave=0", "ave", "0", "vars=0", "vars", "0", "var=0;", "var", "0", "for(int i=0;i<n;i++){\n sum = sum+scores[i];\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "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", "ave = (double)sum /n", "ave", "(double)sum /n", "(double)sum", "n", "for(int i=0;i<n;i++){\n vars = vars+((scores[i]-ave)*(scores[i]-ave));\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n vars = vars+((scores[i]-ave)*(scores[i]-ave));\n }", "{\n vars = vars+((scores[i]-ave)*(scores[i]-ave));\n }", "vars = vars+((scores[i]-ave)*(scores[i]-ave))", "vars", "vars+((scores[i]-ave)*(scores[i]-ave))", "vars", "((scores[i]-ave)*(scores[i]-ave))", "(scores[i]-ave)", "scores[i]", "scores", "i", "ave", "(scores[i]-ave)", "scores[i]", "scores", "i", "ave", "var = (double)vars/n", "var", "(double)vars/n", "(double)vars", "n", "System.out.println(Math.sqrt(var))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(var)", "Math.sqrt", "Math", "var", "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)break;\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,ave=0,vars=0,var=0;\n for(int i=0;i<n;i++){\n sum = sum+scores[i];\n }\n ave = (double)sum /n;\n for(int i=0;i<n;i++){\n vars = vars+((scores[i]-ave)*(scores[i]-ave));\n }\n var = (double)vars/n;\n System.out.println(Math.sqrt(var));\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)break;\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,ave=0,vars=0,var=0;\n for(int i=0;i<n;i++){\n sum = sum+scores[i];\n }\n ave = (double)sum /n;\n for(int i=0;i<n;i++){\n vars = vars+((scores[i]-ave)*(scores[i]-ave));\n }\n var = (double)vars/n;\n System.out.println(Math.sqrt(var));\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[] scores = new int[n]; for(int i=0;i<scores.length;i++){ scores[i] = sc.nextInt(); } double sum=0,ave=0,vars=0,var=0; for(int i=0;i<n;i++){ sum = sum+scores[i]; } ave = (double)sum /n; for(int i=0;i<n;i++){ vars = vars+((scores[i]-ave)*(scores[i]-ave)); } var = (double)vars/n; System.out.println(Math.sqrt(var)); } } }
[ 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, 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, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 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, 18, 13, 13, 17, 41, 13, 2, 13, 13, 41, 13, 2, 13, 4, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 133, 8 ], [ 133, 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 ], [ 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 ], [ 17, 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 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 17, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 17, 79 ], [ 79, 80 ], [ 79, 81 ], [ 17, 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 ], [ 100, 102 ], [ 97, 103 ], [ 17, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 17, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 113, 117 ], [ 17, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 11, 127 ], [ 127, 128 ], [ 128, 129 ], [ 9, 130 ], [ 130, 131 ], [ 0, 132 ], [ 132, 133 ], [ 132, 134 ] ]
[ "\nimport java.util.Random;\nimport java.util.Scanner;\n\npublic class Main{\n public static void main(final String[] args){\n Scanner scanner = new Scanner(System.in);\n while(true){\n int n = scanner.nextInt();\n if(n == 0){\n break;\n }\n int[] s = new int[n] ;\n for (int i = 0; i < n; i++){\n s[i] = scanner.nextInt();\n }\n int sum = 0;\n for(int i = 0; i < n; i++){\n sum += s[i];\n }\n double ave = (double)sum / (double)n;\n double sum2 = 0;\n for(int i = 0; i < n; i++){\n sum2 += Math.pow((double)s[i], 2);\n }\n double ave2 = sum2/(double)n;\n double v = ave2 - Math.pow(ave, 2);\n System.out.println(Math.sqrt(v));\n }\n scanner.close();\n }\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(final String[] args){\n Scanner scanner = new Scanner(System.in);\n while(true){\n int n = scanner.nextInt();\n if(n == 0){\n break;\n }\n int[] s = new int[n] ;\n for (int i = 0; i < n; i++){\n s[i] = scanner.nextInt();\n }\n int sum = 0;\n for(int i = 0; i < n; i++){\n sum += s[i];\n }\n double ave = (double)sum / (double)n;\n double sum2 = 0;\n for(int i = 0; i < n; i++){\n sum2 += Math.pow((double)s[i], 2);\n }\n double ave2 = sum2/(double)n;\n double v = ave2 - Math.pow(ave, 2);\n System.out.println(Math.sqrt(v));\n }\n scanner.close();\n }\n \n \n\n}", "Main", "public static void main(final String[] args){\n Scanner scanner = new Scanner(System.in);\n while(true){\n int n = scanner.nextInt();\n if(n == 0){\n break;\n }\n int[] s = new int[n] ;\n for (int i = 0; i < n; i++){\n s[i] = scanner.nextInt();\n }\n int sum = 0;\n for(int i = 0; i < n; i++){\n sum += s[i];\n }\n double ave = (double)sum / (double)n;\n double sum2 = 0;\n for(int i = 0; i < n; i++){\n sum2 += Math.pow((double)s[i], 2);\n }\n double ave2 = sum2/(double)n;\n double v = ave2 - Math.pow(ave, 2);\n System.out.println(Math.sqrt(v));\n }\n scanner.close();\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n while(true){\n int n = scanner.nextInt();\n if(n == 0){\n break;\n }\n int[] s = new int[n] ;\n for (int i = 0; i < n; i++){\n s[i] = scanner.nextInt();\n }\n int sum = 0;\n for(int i = 0; i < n; i++){\n sum += s[i];\n }\n double ave = (double)sum / (double)n;\n double sum2 = 0;\n for(int i = 0; i < n; i++){\n sum2 += Math.pow((double)s[i], 2);\n }\n double ave2 = sum2/(double)n;\n double v = ave2 - Math.pow(ave, 2);\n System.out.println(Math.sqrt(v));\n }\n scanner.close();\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "while(true){\n int n = scanner.nextInt();\n if(n == 0){\n break;\n }\n int[] s = new int[n] ;\n for (int i = 0; i < n; i++){\n s[i] = scanner.nextInt();\n }\n int sum = 0;\n for(int i = 0; i < n; i++){\n sum += s[i];\n }\n double ave = (double)sum / (double)n;\n double sum2 = 0;\n for(int i = 0; i < n; i++){\n sum2 += Math.pow((double)s[i], 2);\n }\n double ave2 = sum2/(double)n;\n double v = ave2 - Math.pow(ave, 2);\n System.out.println(Math.sqrt(v));\n }", "true", "{\n int n = scanner.nextInt();\n if(n == 0){\n break;\n }\n int[] s = new int[n] ;\n for (int i = 0; i < n; i++){\n s[i] = scanner.nextInt();\n }\n int sum = 0;\n for(int i = 0; i < n; i++){\n sum += s[i];\n }\n double ave = (double)sum / (double)n;\n double sum2 = 0;\n for(int i = 0; i < n; i++){\n sum2 += Math.pow((double)s[i], 2);\n }\n double ave2 = sum2/(double)n;\n double v = ave2 - Math.pow(ave, 2);\n System.out.println(Math.sqrt(v));\n }", "int n = scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "if(n == 0){\n break;\n }", "n == 0", "n", "0", "{\n break;\n }", "break;", "int[] s = new int[n] ;", "s", "new int[n]", "n", "for (int i = 0; i < n; i++){\n s[i] = scanner.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n s[i] = scanner.nextInt();\n }", "{\n s[i] = scanner.nextInt();\n }", "s[i] = scanner.nextInt()", "s[i]", "s", "i", "scanner.nextInt()", "scanner.nextInt", "scanner", "int sum = 0;", "sum", "0", "for(int i = 0; i < n; i++){\n sum += s[i];\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n sum += s[i];\n }", "{\n sum += s[i];\n }", "sum += s[i]", "sum", "s[i]", "s", "i", "double ave = (double)sum / (double)n;", "ave", "(double)sum / (double)n", "(double)sum", "(double)n", "double sum2 = 0;", "sum2", "0", "for(int i = 0; i < n; i++){\n sum2 += Math.pow((double)s[i], 2);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n sum2 += Math.pow((double)s[i], 2);\n }", "{\n sum2 += Math.pow((double)s[i], 2);\n }", "sum2 += Math.pow((double)s[i], 2)", "sum2", "Math.pow((double)s[i], 2)", "Math.pow", "Math", "(double)s[i]", "s", "i", "2", "double ave2 = sum2/(double)n;", "ave2", "sum2/(double)n", "sum2", "(double)n", "double v = ave2 - Math.pow(ave, 2);", "v", "ave2 - Math.pow(ave, 2)", "ave2", "Math.pow(ave, 2)", "Math.pow", "Math", "ave", "2", "System.out.println(Math.sqrt(v))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(v)", "Math.sqrt", "Math", "v", "scanner.close()", "scanner.close", "scanner", "final String[] args", "args", "public class Main{\n public static void main(final String[] args){\n Scanner scanner = new Scanner(System.in);\n while(true){\n int n = scanner.nextInt();\n if(n == 0){\n break;\n }\n int[] s = new int[n] ;\n for (int i = 0; i < n; i++){\n s[i] = scanner.nextInt();\n }\n int sum = 0;\n for(int i = 0; i < n; i++){\n sum += s[i];\n }\n double ave = (double)sum / (double)n;\n double sum2 = 0;\n for(int i = 0; i < n; i++){\n sum2 += Math.pow((double)s[i], 2);\n }\n double ave2 = sum2/(double)n;\n double v = ave2 - Math.pow(ave, 2);\n System.out.println(Math.sqrt(v));\n }\n scanner.close();\n }\n \n \n\n}", "public class Main{\n public static void main(final String[] args){\n Scanner scanner = new Scanner(System.in);\n while(true){\n int n = scanner.nextInt();\n if(n == 0){\n break;\n }\n int[] s = new int[n] ;\n for (int i = 0; i < n; i++){\n s[i] = scanner.nextInt();\n }\n int sum = 0;\n for(int i = 0; i < n; i++){\n sum += s[i];\n }\n double ave = (double)sum / (double)n;\n double sum2 = 0;\n for(int i = 0; i < n; i++){\n sum2 += Math.pow((double)s[i], 2);\n }\n double ave2 = sum2/(double)n;\n double v = ave2 - Math.pow(ave, 2);\n System.out.println(Math.sqrt(v));\n }\n scanner.close();\n }\n \n \n\n}", "Main" ]
import java.util.Random; import java.util.Scanner; public class Main{ public static void main(final String[] args){ Scanner scanner = new Scanner(System.in); while(true){ int n = scanner.nextInt(); if(n == 0){ break; } int[] s = new int[n] ; for (int i = 0; i < n; i++){ s[i] = scanner.nextInt(); } int sum = 0; for(int i = 0; i < n; i++){ sum += s[i]; } double ave = (double)sum / (double)n; double sum2 = 0; for(int i = 0; i < n; i++){ sum2 += Math.pow((double)s[i], 2); } double ave2 = sum2/(double)n; double v = ave2 - Math.pow(ave, 2); System.out.println(Math.sqrt(v)); } scanner.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, 30, 0, 13, 2, 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, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 134, 5 ], [ 134, 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 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 79, 81 ], [ 16, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 16, 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 ], [ 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 ], [ 6, 131 ], [ 131, 132 ], [ 0, 133 ], [ 133, 134 ], [ 133, 135 ] ]
[ "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 for(int i = 0;i < scores.length;i++){\n scores[i]=sc.nextInt();\n }\n double avg = 0, variance = 0;\n for(int j = 0; j < scores.length;j++){\n avg = avg + scores[j];\n }\n avg = (double)avg/scores.length;\n for(int k = 0;k < scores.length;k++){\n variance = variance+Math.pow(scores[k]-avg, 2);\n }\n variance = variance/n;\n System.out.println(Math.sqrt(variance));\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 avg = 0, variance = 0;\n for(int j = 0; j < scores.length;j++){\n avg = avg + scores[j];\n }\n avg = (double)avg/scores.length;\n for(int k = 0;k < scores.length;k++){\n variance = variance+Math.pow(scores[k]-avg, 2);\n }\n variance = variance/n;\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 avg = 0, variance = 0;\n for(int j = 0; j < scores.length;j++){\n avg = avg + scores[j];\n }\n avg = (double)avg/scores.length;\n for(int k = 0;k < scores.length;k++){\n variance = variance+Math.pow(scores[k]-avg, 2);\n }\n variance = variance/n;\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 avg = 0, variance = 0;\n for(int j = 0; j < scores.length;j++){\n avg = avg + scores[j];\n }\n avg = (double)avg/scores.length;\n for(int k = 0;k < scores.length;k++){\n variance = variance+Math.pow(scores[k]-avg, 2);\n }\n variance = variance/n;\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 avg = 0, variance = 0;\n for(int j = 0; j < scores.length;j++){\n avg = avg + scores[j];\n }\n avg = (double)avg/scores.length;\n for(int k = 0;k < scores.length;k++){\n variance = variance+Math.pow(scores[k]-avg, 2);\n }\n variance = variance/n;\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 avg = 0, variance = 0;\n for(int j = 0; j < scores.length;j++){\n avg = avg + scores[j];\n }\n avg = (double)avg/scores.length;\n for(int k = 0;k < scores.length;k++){\n variance = variance+Math.pow(scores[k]-avg, 2);\n }\n variance = variance/n;\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 avg = 0, variance = 0;\n for(int j = 0; j < scores.length;j++){\n avg = avg + scores[j];\n }\n avg = (double)avg/scores.length;\n for(int k = 0;k < scores.length;k++){\n variance = variance+Math.pow(scores[k]-avg, 2);\n }\n variance = variance/n;\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 avg = 0, variance = 0;\n for(int j = 0; j < scores.length;j++){\n avg = avg + scores[j];\n }\n avg = (double)avg/scores.length;\n for(int k = 0;k < scores.length;k++){\n variance = variance+Math.pow(scores[k]-avg, 2);\n }\n variance = variance/n;\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 avg = 0", "avg", "0", "variance = 0;", "variance", "0", "for(int j = 0; j < scores.length;j++){\n avg = avg + scores[j];\n }", "int j = 0;", "int j = 0;", "j", "0", "j < scores.length", "j", "scores.length", "scores", "scores.length", "j++", "j++", "j", "{\n avg = avg + scores[j];\n }", "{\n avg = avg + scores[j];\n }", "avg = avg + scores[j]", "avg", "avg + scores[j]", "avg", "scores[j]", "scores", "j", "avg = (double)avg/scores.length", "avg", "(double)avg/scores.length", "(double)avg", "scores.length", "scores", "scores.length", "for(int k = 0;k < scores.length;k++){\n variance = variance+Math.pow(scores[k]-avg, 2);\n }", "int k = 0;", "int k = 0;", "k", "0", "k < scores.length", "k", "scores.length", "scores", "scores.length", "k++", "k++", "k", "{\n variance = variance+Math.pow(scores[k]-avg, 2);\n }", "{\n variance = variance+Math.pow(scores[k]-avg, 2);\n }", "variance = variance+Math.pow(scores[k]-avg, 2)", "variance", "variance+Math.pow(scores[k]-avg, 2)", "variance", "Math.pow(scores[k]-avg, 2)", "Math.pow", "Math", "scores[k]-avg", "scores[k]", "scores", "k", "avg", "2", "variance = variance/n", "variance", "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 {\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 avg = 0, variance = 0;\n for(int j = 0; j < scores.length;j++){\n avg = avg + scores[j];\n }\n avg = (double)avg/scores.length;\n for(int k = 0;k < scores.length;k++){\n variance = variance+Math.pow(scores[k]-avg, 2);\n }\n variance = variance/n;\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 avg = 0, variance = 0;\n for(int j = 0; j < scores.length;j++){\n avg = avg + scores[j];\n }\n avg = (double)avg/scores.length;\n for(int k = 0;k < scores.length;k++){\n variance = variance+Math.pow(scores[k]-avg, 2);\n }\n variance = variance/n;\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 avg = 0, variance = 0; for(int j = 0; j < scores.length;j++){ avg = avg + scores[j]; } avg = (double)avg/scores.length; for(int k = 0;k < scores.length;k++){ variance = variance+Math.pow(scores[k]-avg, 2); } variance = variance/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, 11, 1, 30, 30, 41, 13, 17, 41, 13, 41, 13, 17, 41, 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, 41, 13, 4, 18, 13, 0, 18, 13, 13, 13, 0, 13, 13, 0, 13, 2, 13, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 13, 18, 13, 13, 2, 13, 18, 13, 13, 41, 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 ], [ 120, 5 ], [ 120, 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 ], [ 18, 20 ], [ 21, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 21, 25 ], [ 25, 26 ], [ 21, 27 ], [ 27, 28 ], [ 27, 29 ], [ 21, 30 ], [ 30, 31 ], [ 30, 32 ], [ 21, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 21, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 21, 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 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 55, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 55, 66 ], [ 66, 67 ], [ 66, 68 ], [ 21, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 21, 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 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 89, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 97, 99 ], [ 21, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 102, 104 ], [ 21, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 21, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 6, 117 ], [ 117, 118 ], [ 0, 119 ], [ 119, 120 ], [ 119, 121 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tdouble[] array = new double[1000];\n\t\tint i;\n\t\tfor(;;){\n\t\t\tdouble sum = 0;\n\t\t\tdouble ave;\n\t\t\tdouble hen = 0;\n\t\t\tdouble hen_sum = 0;\n\t\t\tint n = scan.nextInt();\n\t\t\tif(n == 0)\n\t\t\t\tbreak;\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\tdouble a = scan.nextDouble();\n\t\t\t\tarray[i] = a;\n\t\t\t\tsum += a;\n\t\t\t}\n\t\t\tave = sum / n;\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\then += (ave - array[i]) * (ave - array[i]);\n\t\t\t}\n\t\t\tdouble v = hen / n;\n\t\t\tdouble a = Math.sqrt(v);\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}\n}\n\n\n\n\t\t\n\n\t", "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\tdouble[] array = new double[1000];\n\t\tint i;\n\t\tfor(;;){\n\t\t\tdouble sum = 0;\n\t\t\tdouble ave;\n\t\t\tdouble hen = 0;\n\t\t\tdouble hen_sum = 0;\n\t\t\tint n = scan.nextInt();\n\t\t\tif(n == 0)\n\t\t\t\tbreak;\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\tdouble a = scan.nextDouble();\n\t\t\t\tarray[i] = a;\n\t\t\t\tsum += a;\n\t\t\t}\n\t\t\tave = sum / n;\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\then += (ave - array[i]) * (ave - array[i]);\n\t\t\t}\n\t\t\tdouble v = hen / n;\n\t\t\tdouble a = Math.sqrt(v);\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\tdouble[] array = new double[1000];\n\t\tint i;\n\t\tfor(;;){\n\t\t\tdouble sum = 0;\n\t\t\tdouble ave;\n\t\t\tdouble hen = 0;\n\t\t\tdouble hen_sum = 0;\n\t\t\tint n = scan.nextInt();\n\t\t\tif(n == 0)\n\t\t\t\tbreak;\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\tdouble a = scan.nextDouble();\n\t\t\t\tarray[i] = a;\n\t\t\t\tsum += a;\n\t\t\t}\n\t\t\tave = sum / n;\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\then += (ave - array[i]) * (ave - array[i]);\n\t\t\t}\n\t\t\tdouble v = hen / n;\n\t\t\tdouble a = Math.sqrt(v);\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tdouble[] array = new double[1000];\n\t\tint i;\n\t\tfor(;;){\n\t\t\tdouble sum = 0;\n\t\t\tdouble ave;\n\t\t\tdouble hen = 0;\n\t\t\tdouble hen_sum = 0;\n\t\t\tint n = scan.nextInt();\n\t\t\tif(n == 0)\n\t\t\t\tbreak;\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\tdouble a = scan.nextDouble();\n\t\t\t\tarray[i] = a;\n\t\t\t\tsum += a;\n\t\t\t}\n\t\t\tave = sum / n;\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\then += (ave - array[i]) * (ave - array[i]);\n\t\t\t}\n\t\t\tdouble v = hen / n;\n\t\t\tdouble a = Math.sqrt(v);\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "double[] array = new double[1000];", "array", "new double[1000]", "1000", "int i;", "i", "for(;;){\n\t\t\tdouble sum = 0;\n\t\t\tdouble ave;\n\t\t\tdouble hen = 0;\n\t\t\tdouble hen_sum = 0;\n\t\t\tint n = scan.nextInt();\n\t\t\tif(n == 0)\n\t\t\t\tbreak;\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\tdouble a = scan.nextDouble();\n\t\t\t\tarray[i] = a;\n\t\t\t\tsum += a;\n\t\t\t}\n\t\t\tave = sum / n;\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\then += (ave - array[i]) * (ave - array[i]);\n\t\t\t}\n\t\t\tdouble v = hen / n;\n\t\t\tdouble a = Math.sqrt(v);\n\t\t\tSystem.out.println(a);\n\t\t}", ";", "{\n\t\t\tdouble sum = 0;\n\t\t\tdouble ave;\n\t\t\tdouble hen = 0;\n\t\t\tdouble hen_sum = 0;\n\t\t\tint n = scan.nextInt();\n\t\t\tif(n == 0)\n\t\t\t\tbreak;\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\tdouble a = scan.nextDouble();\n\t\t\t\tarray[i] = a;\n\t\t\t\tsum += a;\n\t\t\t}\n\t\t\tave = sum / n;\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\then += (ave - array[i]) * (ave - array[i]);\n\t\t\t}\n\t\t\tdouble v = hen / n;\n\t\t\tdouble a = Math.sqrt(v);\n\t\t\tSystem.out.println(a);\n\t\t}", "{\n\t\t\tdouble sum = 0;\n\t\t\tdouble ave;\n\t\t\tdouble hen = 0;\n\t\t\tdouble hen_sum = 0;\n\t\t\tint n = scan.nextInt();\n\t\t\tif(n == 0)\n\t\t\t\tbreak;\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\tdouble a = scan.nextDouble();\n\t\t\t\tarray[i] = a;\n\t\t\t\tsum += a;\n\t\t\t}\n\t\t\tave = sum / n;\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\then += (ave - array[i]) * (ave - array[i]);\n\t\t\t}\n\t\t\tdouble v = hen / n;\n\t\t\tdouble a = Math.sqrt(v);\n\t\t\tSystem.out.println(a);\n\t\t}", "double sum = 0;", "sum", "0", "double ave;", "ave", "double hen = 0;", "hen", "0", "double hen_sum = 0;", "hen_sum", "0", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "if(n == 0)\n\t\t\t\tbreak;", "n == 0", "n", "0", "break;", "for(i = 0; i < n; i++){\n\t\t\t\tdouble a = scan.nextDouble();\n\t\t\t\tarray[i] = a;\n\t\t\t\tsum += a;\n\t\t\t}", "i = 0;", "i = 0", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tdouble a = scan.nextDouble();\n\t\t\t\tarray[i] = a;\n\t\t\t\tsum += a;\n\t\t\t}", "{\n\t\t\t\tdouble a = scan.nextDouble();\n\t\t\t\tarray[i] = a;\n\t\t\t\tsum += a;\n\t\t\t}", "double a = scan.nextDouble();", "a", "scan.nextDouble()", "scan.nextDouble", "scan", "array[i] = a", "array[i]", "array", "i", "a", "sum += a", "sum", "a", "ave = sum / n", "ave", "sum / n", "sum", "n", "for(i = 0; i < n; i++){\n\t\t\t\then += (ave - array[i]) * (ave - array[i]);\n\t\t\t}", "i = 0;", "i = 0", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\then += (ave - array[i]) * (ave - array[i]);\n\t\t\t}", "{\n\t\t\t\then += (ave - array[i]) * (ave - array[i]);\n\t\t\t}", "hen += (ave - array[i]) * (ave - array[i])", "hen", "(ave - array[i]) * (ave - array[i])", "(ave - array[i])", "ave", "array[i]", "array", "i", "(ave - array[i])", "ave", "array[i]", "array", "i", "double v = hen / n;", "v", "hen / n", "hen", "n", "double a = Math.sqrt(v);", "a", "Math.sqrt(v)", "Math.sqrt", "Math", "v", "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\tdouble[] array = new double[1000];\n\t\tint i;\n\t\tfor(;;){\n\t\t\tdouble sum = 0;\n\t\t\tdouble ave;\n\t\t\tdouble hen = 0;\n\t\t\tdouble hen_sum = 0;\n\t\t\tint n = scan.nextInt();\n\t\t\tif(n == 0)\n\t\t\t\tbreak;\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\tdouble a = scan.nextDouble();\n\t\t\t\tarray[i] = a;\n\t\t\t\tsum += a;\n\t\t\t}\n\t\t\tave = sum / n;\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\then += (ave - array[i]) * (ave - array[i]);\n\t\t\t}\n\t\t\tdouble v = hen / n;\n\t\t\tdouble a = Math.sqrt(v);\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\tdouble[] array = new double[1000];\n\t\tint i;\n\t\tfor(;;){\n\t\t\tdouble sum = 0;\n\t\t\tdouble ave;\n\t\t\tdouble hen = 0;\n\t\t\tdouble hen_sum = 0;\n\t\t\tint n = scan.nextInt();\n\t\t\tif(n == 0)\n\t\t\t\tbreak;\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\tdouble a = scan.nextDouble();\n\t\t\t\tarray[i] = a;\n\t\t\t\tsum += a;\n\t\t\t}\n\t\t\tave = sum / n;\n\t\t\tfor(i = 0; i < n; i++){\n\t\t\t\then += (ave - array[i]) * (ave - array[i]);\n\t\t\t}\n\t\t\tdouble v = hen / n;\n\t\t\tdouble a = Math.sqrt(v);\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); double[] array = new double[1000]; int i; for(;;){ double sum = 0; double ave; double hen = 0; double hen_sum = 0; int n = scan.nextInt(); if(n == 0) break; for(i = 0; i < n; i++){ double a = scan.nextDouble(); array[i] = a; sum += a; } ave = sum / n; for(i = 0; i < n; i++){ hen += (ave - array[i]) * (ave - array[i]); } double v = hen / n; double a = Math.sqrt(v); 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, 3, 41, 13, 0, 13, 20, 13, 41, 13, 17, 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, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 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 ], [ 14, 25 ], [ 25, 26 ], [ 14, 27 ], [ 27, 28 ], [ 27, 29 ], [ 14, 31 ], [ 31, 32 ], [ 31, 33 ], [ 14, 34 ], [ 34, 35 ], [ 14, 36 ], [ 36, 37 ], [ 36, 38 ], [ 14, 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 ], [ 14, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 14, 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 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 85, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 84, 96 ], [ 14, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 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 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) break;\n int[] s;\n s = new int[n];\n int sum=0;\n double ave, bunsan=0.0;\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n sum+= s[i];\n }\n ave = (double)sum/n;\n for(int j=0;j<n;j++){\n bunsan += (double)(s[j]-ave) * (s[j]-ave) / n;\n }\n System.out.println(Math.sqrt(bunsan));\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 while(true){\n int n = sc.nextInt();\n if(n==0) break;\n int[] s;\n s = new int[n];\n int sum=0;\n double ave, bunsan=0.0;\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n sum+= s[i];\n }\n ave = (double)sum/n;\n for(int j=0;j<n;j++){\n bunsan += (double)(s[j]-ave) * (s[j]-ave) / n;\n }\n System.out.println(Math.sqrt(bunsan));\n }\n sc.close();\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) break;\n int[] s;\n s = new int[n];\n int sum=0;\n double ave, bunsan=0.0;\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n sum+= s[i];\n }\n ave = (double)sum/n;\n for(int j=0;j<n;j++){\n bunsan += (double)(s[j]-ave) * (s[j]-ave) / n;\n }\n System.out.println(Math.sqrt(bunsan));\n }\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n while(true){\n int n = sc.nextInt();\n if(n==0) break;\n int[] s;\n s = new int[n];\n int sum=0;\n double ave, bunsan=0.0;\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n sum+= s[i];\n }\n ave = (double)sum/n;\n for(int j=0;j<n;j++){\n bunsan += (double)(s[j]-ave) * (s[j]-ave) / n;\n }\n System.out.println(Math.sqrt(bunsan));\n }\n sc.close();\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;\n s = new int[n];\n int sum=0;\n double ave, bunsan=0.0;\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n sum+= s[i];\n }\n ave = (double)sum/n;\n for(int j=0;j<n;j++){\n bunsan += (double)(s[j]-ave) * (s[j]-ave) / n;\n }\n System.out.println(Math.sqrt(bunsan));\n }", "true", "{\n int n = sc.nextInt();\n if(n==0) break;\n int[] s;\n s = new int[n];\n int sum=0;\n double ave, bunsan=0.0;\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n sum+= s[i];\n }\n ave = (double)sum/n;\n for(int j=0;j<n;j++){\n bunsan += (double)(s[j]-ave) * (s[j]-ave) / n;\n }\n System.out.println(Math.sqrt(bunsan));\n }", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "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", "double ave", "ave", "bunsan=0.0;", "bunsan", "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", "ave = (double)sum/n", "ave", "(double)sum/n", "(double)sum", "n", "for(int j=0;j<n;j++){\n bunsan += (double)(s[j]-ave) * (s[j]-ave) / n;\n }", "int j=0;", "int j=0;", "j", "0", "j<n", "j", "n", "j++", "j++", "j", "{\n bunsan += (double)(s[j]-ave) * (s[j]-ave) / n;\n }", "{\n bunsan += (double)(s[j]-ave) * (s[j]-ave) / n;\n }", "bunsan += (double)(s[j]-ave) * (s[j]-ave) / n", "bunsan", "(double)(s[j]-ave) * (s[j]-ave) / n", "(double)(s[j]-ave) * (s[j]-ave)", "(double)(s[j]-ave)", "s[j]", "s", "j", "ave", "(s[j]-ave)", "s[j]", "s", "j", "ave", "n", "System.out.println(Math.sqrt(bunsan))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(bunsan)", "Math.sqrt", "Math", "bunsan", "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 while(true){\n int n = sc.nextInt();\n if(n==0) break;\n int[] s;\n s = new int[n];\n int sum=0;\n double ave, bunsan=0.0;\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n sum+= s[i];\n }\n ave = (double)sum/n;\n for(int j=0;j<n;j++){\n bunsan += (double)(s[j]-ave) * (s[j]-ave) / n;\n }\n System.out.println(Math.sqrt(bunsan));\n }\n sc.close();\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) break;\n int[] s;\n s = new int[n];\n int sum=0;\n double ave, bunsan=0.0;\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n sum+= s[i];\n }\n ave = (double)sum/n;\n for(int j=0;j<n;j++){\n bunsan += (double)(s[j]-ave) * (s[j]-ave) / n;\n }\n System.out.println(Math.sqrt(bunsan));\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); while(true){ int n = sc.nextInt(); if(n==0) break; int[] s; s = new int[n]; int sum=0; double ave, bunsan=0.0; for(int i=0;i<n;i++){ s[i] = sc.nextInt(); sum+= s[i]; } ave = (double)sum/n; for(int j=0;j<n;j++){ bunsan += (double)(s[j]-ave) * (s[j]-ave) / n; } System.out.println(Math.sqrt(bunsan)); } 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, 41, 13, 2, 18, 13, 13, 13, 0, 13, 2, 13, 13, 0, 13, 4, 18, 13, 2, 13, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 108, 5 ], [ 108, 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 ], [ 81, 83 ], [ 80, 84 ], [ 77, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 14, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 95, 96 ], [ 95, 97 ], [ 92, 98 ], [ 14, 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;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\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) break;\n\n\t\t\tint[] scores = new int[n];\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 = (double)sum/n;\n\n\t\t\tdouble dev = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdouble tmp = scores[i] - ave;\n\t\t\t\tdev += tmp * tmp;\n\t\t\t}\n\t\t\tdev = Math.pow(dev/n, 0.5);\n\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 void main(String[] args) {\n\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) break;\n\n\t\t\tint[] scores = new int[n];\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 = (double)sum/n;\n\n\t\t\tdouble dev = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdouble tmp = scores[i] - ave;\n\t\t\t\tdev += tmp * tmp;\n\t\t\t}\n\t\t\tdev = Math.pow(dev/n, 0.5);\n\n\t\t\tSystem.out.println(dev);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\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) break;\n\n\t\t\tint[] scores = new int[n];\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 = (double)sum/n;\n\n\t\t\tdouble dev = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdouble tmp = scores[i] - ave;\n\t\t\t\tdev += tmp * tmp;\n\t\t\t}\n\t\t\tdev = Math.pow(dev/n, 0.5);\n\n\t\t\tSystem.out.println(dev);\n\t\t}\n\t}", "main", "{\n\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) break;\n\n\t\t\tint[] scores = new int[n];\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 = (double)sum/n;\n\n\t\t\tdouble dev = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdouble tmp = scores[i] - ave;\n\t\t\t\tdev += tmp * tmp;\n\t\t\t}\n\t\t\tdev = Math.pow(dev/n, 0.5);\n\n\t\t\tSystem.out.println(dev);\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\n\t\t\tif(n == 0) break;\n\n\t\t\tint[] scores = new int[n];\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 = (double)sum/n;\n\n\t\t\tdouble dev = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdouble tmp = scores[i] - ave;\n\t\t\t\tdev += tmp * tmp;\n\t\t\t}\n\t\t\tdev = Math.pow(dev/n, 0.5);\n\n\t\t\tSystem.out.println(dev);\n\t\t}", "true", "{\n\t\t\tint n = sc.nextInt();\n\n\t\t\tif(n == 0) break;\n\n\t\t\tint[] scores = new int[n];\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 = (double)sum/n;\n\n\t\t\tdouble dev = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdouble tmp = scores[i] - ave;\n\t\t\t\tdev += tmp * tmp;\n\t\t\t}\n\t\t\tdev = Math.pow(dev/n, 0.5);\n\n\t\t\tSystem.out.println(dev);\n\t\t}", "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", "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 = (double)sum/n;", "ave", "(double)sum/n", "(double)sum", "n", "double dev = 0;", "dev", "0", "for (int i = 0; i < n; i++) {\n\t\t\t\tdouble tmp = scores[i] - ave;\n\t\t\t\tdev += tmp * tmp;\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tdouble tmp = scores[i] - ave;\n\t\t\t\tdev += tmp * tmp;\n\t\t\t}", "{\n\t\t\t\tdouble tmp = scores[i] - ave;\n\t\t\t\tdev += tmp * tmp;\n\t\t\t}", "double tmp = scores[i] - ave;", "tmp", "scores[i] - ave", "scores[i]", "scores", "i", "ave", "dev += tmp * tmp", "dev", "tmp * tmp", "tmp", "tmp", "dev = Math.pow(dev/n, 0.5)", "dev", "Math.pow(dev/n, 0.5)", "Math.pow", "Math", "dev/n", "dev", "n", "0.5", "System.out.println(dev)", "System.out.println", "System.out", "System", "System.out", "dev", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tint n = sc.nextInt();\n\n\t\t\tif(n == 0) break;\n\n\t\t\tint[] scores = new int[n];\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 = (double)sum/n;\n\n\t\t\tdouble dev = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdouble tmp = scores[i] - ave;\n\t\t\t\tdev += tmp * tmp;\n\t\t\t}\n\t\t\tdev = Math.pow(dev/n, 0.5);\n\n\t\t\tSystem.out.println(dev);\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\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) break;\n\n\t\t\tint[] scores = new int[n];\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 = (double)sum/n;\n\n\t\t\tdouble dev = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdouble tmp = scores[i] - ave;\n\t\t\t\tdev += tmp * tmp;\n\t\t\t}\n\t\t\tdev = Math.pow(dev/n, 0.5);\n\n\t\t\tSystem.out.println(dev);\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 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 = (double)sum/n; double dev = 0; for (int i = 0; i < n; i++) { double tmp = scores[i] - ave; dev += tmp * tmp; } dev = Math.pow(dev/n, 0.5); 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, 30, 3, 0, 13, 20, 13, 0, 13, 17, 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, 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, 17, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 120, 5 ], [ 120, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 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 ], [ 34, 35 ], [ 24, 36 ], [ 36, 37 ], [ 36, 38 ], [ 24, 40 ], [ 40, 41 ], [ 40, 42 ], [ 24, 43 ], [ 43, 44 ], [ 43, 45 ], [ 24, 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 ], [ 24, 71 ], [ 71, 72 ], [ 71, 73 ], [ 24, 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 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 89, 97 ], [ 24, 98 ], [ 98, 99 ], [ 98, 100 ], [ 24, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 24, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 107, 113 ], [ 8, 114 ], [ 114, 115 ], [ 115, 116 ], [ 6, 117 ], [ 117, 118 ], [ 0, 119 ], [ 119, 120 ], [ 119, 121 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint i,n;\n\t\tdouble sum;\n\t\tdouble rec[];\n\t\tdouble a;\n\n\t\twhile(true){\n\t\t\tn = sc.nextInt();\n\t\t\tif(n==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\trec = new double[n];\n\t\t\tsum = 0.0;\n\t\t\ta = 0.0;\n\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\trec[i] = sc.nextDouble();\n\t\t\t\tsum += rec[i];\n\t\t\t}\n\t\t\tsum /= n;\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\ta += Math.pow((rec[i]-sum), 2.0);\n\t\t\t}\n\t\t\ta /= n;\n\t\t\ta = Math.sqrt(a);\n\n\t\t\tSystem.out.printf(\"%.8f\\n\",a);\n\t\t}\n\n\t\tsc.close();\n\n\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\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint i,n;\n\t\tdouble sum;\n\t\tdouble rec[];\n\t\tdouble a;\n\n\t\twhile(true){\n\t\t\tn = sc.nextInt();\n\t\t\tif(n==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\trec = new double[n];\n\t\t\tsum = 0.0;\n\t\t\ta = 0.0;\n\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\trec[i] = sc.nextDouble();\n\t\t\t\tsum += rec[i];\n\t\t\t}\n\t\t\tsum /= n;\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\ta += Math.pow((rec[i]-sum), 2.0);\n\t\t\t}\n\t\t\ta /= n;\n\t\t\ta = Math.sqrt(a);\n\n\t\t\tSystem.out.printf(\"%.8f\\n\",a);\n\t\t}\n\n\t\tsc.close();\n\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\t\tint i,n;\n\t\tdouble sum;\n\t\tdouble rec[];\n\t\tdouble a;\n\n\t\twhile(true){\n\t\t\tn = sc.nextInt();\n\t\t\tif(n==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\trec = new double[n];\n\t\t\tsum = 0.0;\n\t\t\ta = 0.0;\n\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\trec[i] = sc.nextDouble();\n\t\t\t\tsum += rec[i];\n\t\t\t}\n\t\t\tsum /= n;\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\ta += Math.pow((rec[i]-sum), 2.0);\n\t\t\t}\n\t\t\ta /= n;\n\t\t\ta = Math.sqrt(a);\n\n\t\t\tSystem.out.printf(\"%.8f\\n\",a);\n\t\t}\n\n\t\tsc.close();\n\n\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint i,n;\n\t\tdouble sum;\n\t\tdouble rec[];\n\t\tdouble a;\n\n\t\twhile(true){\n\t\t\tn = sc.nextInt();\n\t\t\tif(n==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\trec = new double[n];\n\t\t\tsum = 0.0;\n\t\t\ta = 0.0;\n\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\trec[i] = sc.nextDouble();\n\t\t\t\tsum += rec[i];\n\t\t\t}\n\t\t\tsum /= n;\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\ta += Math.pow((rec[i]-sum), 2.0);\n\t\t\t}\n\t\t\ta /= n;\n\t\t\ta = Math.sqrt(a);\n\n\t\t\tSystem.out.printf(\"%.8f\\n\",a);\n\t\t}\n\n\t\tsc.close();\n\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int i", "i", "n;", "n", "double sum;", "sum", "double rec[];", "rec", "double a;", "a", "while(true){\n\t\t\tn = sc.nextInt();\n\t\t\tif(n==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\trec = new double[n];\n\t\t\tsum = 0.0;\n\t\t\ta = 0.0;\n\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\trec[i] = sc.nextDouble();\n\t\t\t\tsum += rec[i];\n\t\t\t}\n\t\t\tsum /= n;\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\ta += Math.pow((rec[i]-sum), 2.0);\n\t\t\t}\n\t\t\ta /= n;\n\t\t\ta = Math.sqrt(a);\n\n\t\t\tSystem.out.printf(\"%.8f\\n\",a);\n\t\t}", "true", "{\n\t\t\tn = sc.nextInt();\n\t\t\tif(n==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\trec = new double[n];\n\t\t\tsum = 0.0;\n\t\t\ta = 0.0;\n\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\trec[i] = sc.nextDouble();\n\t\t\t\tsum += rec[i];\n\t\t\t}\n\t\t\tsum /= n;\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\ta += Math.pow((rec[i]-sum), 2.0);\n\t\t\t}\n\t\t\ta /= n;\n\t\t\ta = Math.sqrt(a);\n\n\t\t\tSystem.out.printf(\"%.8f\\n\",a);\n\t\t}", "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;", "rec = new double[n]", "rec", "new double[n]", "n", "sum = 0.0", "sum", "0.0", "a = 0.0", "a", "0.0", "for(i=0;i<n;i++){\n\t\t\t\trec[i] = sc.nextDouble();\n\t\t\t\tsum += rec[i];\n\t\t\t}", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\trec[i] = sc.nextDouble();\n\t\t\t\tsum += rec[i];\n\t\t\t}", "{\n\t\t\t\trec[i] = sc.nextDouble();\n\t\t\t\tsum += rec[i];\n\t\t\t}", "rec[i] = sc.nextDouble()", "rec[i]", "rec", "i", "sc.nextDouble()", "sc.nextDouble", "sc", "sum += rec[i]", "sum", "rec[i]", "rec", "i", "sum /= n", "sum", "n", "for(i=0;i<n;i++){\n\t\t\t\ta += Math.pow((rec[i]-sum), 2.0);\n\t\t\t}", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\ta += Math.pow((rec[i]-sum), 2.0);\n\t\t\t}", "{\n\t\t\t\ta += Math.pow((rec[i]-sum), 2.0);\n\t\t\t}", "a += Math.pow((rec[i]-sum), 2.0)", "a", "Math.pow((rec[i]-sum), 2.0)", "Math.pow", "Math", "(rec[i]-sum)", "rec[i]", "rec", "i", "sum", "2.0", "a /= n", "a", "n", "a = Math.sqrt(a)", "a", "Math.sqrt(a)", "Math.sqrt", "Math", "a", "System.out.printf(\"%.8f\\n\",a)", "System.out.printf", "System.out", "System", "System.out", "\"%.8f\\n\"", "a", "sc.close()", "sc.close", "sc", "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 i,n;\n\t\tdouble sum;\n\t\tdouble rec[];\n\t\tdouble a;\n\n\t\twhile(true){\n\t\t\tn = sc.nextInt();\n\t\t\tif(n==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\trec = new double[n];\n\t\t\tsum = 0.0;\n\t\t\ta = 0.0;\n\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\trec[i] = sc.nextDouble();\n\t\t\t\tsum += rec[i];\n\t\t\t}\n\t\t\tsum /= n;\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\ta += Math.pow((rec[i]-sum), 2.0);\n\t\t\t}\n\t\t\ta /= n;\n\t\t\ta = Math.sqrt(a);\n\n\t\t\tSystem.out.printf(\"%.8f\\n\",a);\n\t\t}\n\n\t\tsc.close();\n\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\t\tint i,n;\n\t\tdouble sum;\n\t\tdouble rec[];\n\t\tdouble a;\n\n\t\twhile(true){\n\t\t\tn = sc.nextInt();\n\t\t\tif(n==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\trec = new double[n];\n\t\t\tsum = 0.0;\n\t\t\ta = 0.0;\n\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\trec[i] = sc.nextDouble();\n\t\t\t\tsum += rec[i];\n\t\t\t}\n\t\t\tsum /= n;\n\t\t\tfor(i=0;i<n;i++){\n\t\t\t\ta += Math.pow((rec[i]-sum), 2.0);\n\t\t\t}\n\t\t\ta /= n;\n\t\t\ta = Math.sqrt(a);\n\n\t\t\tSystem.out.printf(\"%.8f\\n\",a);\n\t\t}\n\n\t\tsc.close();\n\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); int i,n; double sum; double rec[]; double a; while(true){ n = sc.nextInt(); if(n==0){ break; } rec = new double[n]; sum = 0.0; a = 0.0; for(i=0;i<n;i++){ rec[i] = sc.nextDouble(); sum += rec[i]; } sum /= n; for(i=0;i<n;i++){ a += Math.pow((rec[i]-sum), 2.0); } a /= n; a = Math.sqrt(a); System.out.printf("%.8f\n",a); } 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, 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, 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, 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 ], [ 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 ], [ 23, 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 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 90, 92 ], [ 85, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 97, 99 ], [ 23, 100 ], [ 100, 101 ], [ 100, 102 ], [ 23, 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.util.Arrays;\nimport java.util.HashMap;\nimport java.util.Map;\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\twhile (true) {\n\t\t\tfinal int n = sc.nextInt();\n\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint[] arr = new int[n];\n\t\t\tlong sum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tarr[i] = sc.nextInt();\n\t\t\t\tsum += arr[i];\n\t\t\t}\n\n\t\t\tdouble sigma = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsigma += (arr[i] - (sum / (double) (n))) * ((arr[i] - (sum / (double) (n))));\n\t\t\t}\n\t\t\tsigma /= (double) (n);\n\n\t\t\tSystem.out.printf(\"%.7f\\n\", Math.sqrt(sigma));\n\t\t}\n\n\t}\n}", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.HashMap;", "HashMap", "java.util", "import java.util.Map;", "Map", "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\twhile (true) {\n\t\t\tfinal int n = sc.nextInt();\n\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint[] arr = new int[n];\n\t\t\tlong sum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tarr[i] = sc.nextInt();\n\t\t\t\tsum += arr[i];\n\t\t\t}\n\n\t\t\tdouble sigma = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsigma += (arr[i] - (sum / (double) (n))) * ((arr[i] - (sum / (double) (n))));\n\t\t\t}\n\t\t\tsigma /= (double) (n);\n\n\t\t\tSystem.out.printf(\"%.7f\\n\", Math.sqrt(sigma));\n\t\t}\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\tfinal int n = sc.nextInt();\n\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint[] arr = new int[n];\n\t\t\tlong sum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tarr[i] = sc.nextInt();\n\t\t\t\tsum += arr[i];\n\t\t\t}\n\n\t\t\tdouble sigma = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsigma += (arr[i] - (sum / (double) (n))) * ((arr[i] - (sum / (double) (n))));\n\t\t\t}\n\t\t\tsigma /= (double) (n);\n\n\t\t\tSystem.out.printf(\"%.7f\\n\", Math.sqrt(sigma));\n\t\t}\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tfinal int n = sc.nextInt();\n\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint[] arr = new int[n];\n\t\t\tlong sum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tarr[i] = sc.nextInt();\n\t\t\t\tsum += arr[i];\n\t\t\t}\n\n\t\t\tdouble sigma = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsigma += (arr[i] - (sum / (double) (n))) * ((arr[i] - (sum / (double) (n))));\n\t\t\t}\n\t\t\tsigma /= (double) (n);\n\n\t\t\tSystem.out.printf(\"%.7f\\n\", Math.sqrt(sigma));\n\t\t}\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (true) {\n\t\t\tfinal int n = sc.nextInt();\n\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint[] arr = new int[n];\n\t\t\tlong sum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tarr[i] = sc.nextInt();\n\t\t\t\tsum += arr[i];\n\t\t\t}\n\n\t\t\tdouble sigma = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsigma += (arr[i] - (sum / (double) (n))) * ((arr[i] - (sum / (double) (n))));\n\t\t\t}\n\t\t\tsigma /= (double) (n);\n\n\t\t\tSystem.out.printf(\"%.7f\\n\", Math.sqrt(sigma));\n\t\t}", "true", "{\n\t\t\tfinal int n = sc.nextInt();\n\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint[] arr = new int[n];\n\t\t\tlong sum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tarr[i] = sc.nextInt();\n\t\t\t\tsum += arr[i];\n\t\t\t}\n\n\t\t\tdouble sigma = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsigma += (arr[i] - (sum / (double) (n))) * ((arr[i] - (sum / (double) (n))));\n\t\t\t}\n\t\t\tsigma /= (double) (n);\n\n\t\t\tSystem.out.printf(\"%.7f\\n\", Math.sqrt(sigma));\n\t\t}", "final 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[] arr = new int[n];", "arr", "new int[n]", "n", "long sum = 0;", "sum", "0", "for (int i = 0; i < n; i++) {\n\t\t\t\tarr[i] = sc.nextInt();\n\t\t\t\tsum += arr[i];\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tarr[i] = sc.nextInt();\n\t\t\t\tsum += arr[i];\n\t\t\t}", "{\n\t\t\t\tarr[i] = sc.nextInt();\n\t\t\t\tsum += arr[i];\n\t\t\t}", "arr[i] = sc.nextInt()", "arr[i]", "arr", "i", "sc.nextInt()", "sc.nextInt", "sc", "sum += arr[i]", "sum", "arr[i]", "arr", "i", "double sigma = 0;", "sigma", "0", "for (int i = 0; i < n; i++) {\n\t\t\t\tsigma += (arr[i] - (sum / (double) (n))) * ((arr[i] - (sum / (double) (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 += (arr[i] - (sum / (double) (n))) * ((arr[i] - (sum / (double) (n))));\n\t\t\t}", "{\n\t\t\t\tsigma += (arr[i] - (sum / (double) (n))) * ((arr[i] - (sum / (double) (n))));\n\t\t\t}", "sigma += (arr[i] - (sum / (double) (n))) * ((arr[i] - (sum / (double) (n))))", "sigma", "(arr[i] - (sum / (double) (n))) * ((arr[i] - (sum / (double) (n))))", "(arr[i] - (sum / (double) (n)))", "arr[i]", "arr", "i", "(sum / (double) (n))", "sum", "(double) (n)", "((arr[i] - (sum / (double) (n))))", "arr[i]", "arr", "i", "(sum / (double) (n))", "sum", "(double) (n)", "sigma /= (double) (n)", "sigma", "(double) (n)", "System.out.printf(\"%.7f\\n\", Math.sqrt(sigma))", "System.out.printf", "System.out", "System", "System.out", "\"%.7f\\n\"", "Math.sqrt(sigma)", "Math.sqrt", "Math", "sigma", "String args[]", "args", "public class Main {\n\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tfinal int n = sc.nextInt();\n\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint[] arr = new int[n];\n\t\t\tlong sum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tarr[i] = sc.nextInt();\n\t\t\t\tsum += arr[i];\n\t\t\t}\n\n\t\t\tdouble sigma = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsigma += (arr[i] - (sum / (double) (n))) * ((arr[i] - (sum / (double) (n))));\n\t\t\t}\n\t\t\tsigma /= (double) (n);\n\n\t\t\tSystem.out.printf(\"%.7f\\n\", Math.sqrt(sigma));\n\t\t}\n\n\t}\n}", "public class Main {\n\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tfinal int n = sc.nextInt();\n\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint[] arr = new int[n];\n\t\t\tlong sum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tarr[i] = sc.nextInt();\n\t\t\t\tsum += arr[i];\n\t\t\t}\n\n\t\t\tdouble sigma = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsigma += (arr[i] - (sum / (double) (n))) * ((arr[i] - (sum / (double) (n))));\n\t\t\t}\n\t\t\tsigma /= (double) (n);\n\n\t\t\tSystem.out.printf(\"%.7f\\n\", Math.sqrt(sigma));\n\t\t}\n\n\t}\n}", "Main" ]
import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); while (true) { final int n = sc.nextInt(); if(n == 0){ break; } int[] arr = new int[n]; long sum = 0; for (int i = 0; i < n; i++) { arr[i] = sc.nextInt(); sum += arr[i]; } double sigma = 0; for (int i = 0; i < n; i++) { sigma += (arr[i] - (sum / (double) (n))) * ((arr[i] - (sum / (double) (n)))); } sigma /= (double) (n); System.out.printf("%.7f\n", Math.sqrt(sigma)); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 0, 13, 17, 0, 13, 17, 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, 4, 18, 18, 13, 13, 17, 4, 18, 13, 2, 13, 13, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 11, 19 ], [ 19, 20 ], [ 11, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 25, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 31, 35 ], [ 35, 36 ], [ 25, 37 ], [ 37, 38 ], [ 37, 39 ], [ 25, 40 ], [ 40, 41 ], [ 40, 42 ], [ 25, 43 ], [ 43, 44 ], [ 43, 45 ], [ 25, 46 ], [ 46, 47 ], [ 46, 48 ], [ 25, 49 ], [ 49, 50 ], [ 49, 51 ], [ 25, 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 ], [ 25, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 25, 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 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 98, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 104, 108 ], [ 25, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 109, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 118, 119 ], [ 118, 120 ], [ 25, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 9, 127 ], [ 127, 128 ] ]
[ "import java.util.Scanner;\nimport java.util.Arrays;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tdouble sum;\n\t\tdouble average;\n\t\tdouble b;\n\t\tdouble answer;\n\n\t\twhile(true){\n\t\t\tint n = scanner.nextInt();\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tsum = 0;\n\t\t\taverage = 0;\n\t\t\tb = 0; \n\t\t\tanswer = 0;\n\t\t\tint[] numbers = new int[n];\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tnumbers[i] = scanner.nextInt();\n\t\t\t\tsum += numbers[i];\n\t\t\t}\n\n\t\t\taverage = sum / n;\n\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tb += (numbers[i] - average) * (numbers[i] - average);\n\t\t\t}\n\n\t\t\tSystem.out.printf(\"%.5f\", Math.sqrt(b / n));\n\t\t\tSystem.out.print(\"\\n\");\n\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.Arrays;", "Arrays", "java.util", "class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tdouble sum;\n\t\tdouble average;\n\t\tdouble b;\n\t\tdouble answer;\n\n\t\twhile(true){\n\t\t\tint n = scanner.nextInt();\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tsum = 0;\n\t\t\taverage = 0;\n\t\t\tb = 0; \n\t\t\tanswer = 0;\n\t\t\tint[] numbers = new int[n];\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tnumbers[i] = scanner.nextInt();\n\t\t\t\tsum += numbers[i];\n\t\t\t}\n\n\t\t\taverage = sum / n;\n\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tb += (numbers[i] - average) * (numbers[i] - average);\n\t\t\t}\n\n\t\t\tSystem.out.printf(\"%.5f\", Math.sqrt(b / n));\n\t\t\tSystem.out.print(\"\\n\");\n\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tdouble sum;\n\t\tdouble average;\n\t\tdouble b;\n\t\tdouble answer;\n\n\t\twhile(true){\n\t\t\tint n = scanner.nextInt();\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tsum = 0;\n\t\t\taverage = 0;\n\t\t\tb = 0; \n\t\t\tanswer = 0;\n\t\t\tint[] numbers = new int[n];\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tnumbers[i] = scanner.nextInt();\n\t\t\t\tsum += numbers[i];\n\t\t\t}\n\n\t\t\taverage = sum / n;\n\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tb += (numbers[i] - average) * (numbers[i] - average);\n\t\t\t}\n\n\t\t\tSystem.out.printf(\"%.5f\", Math.sqrt(b / n));\n\t\t\tSystem.out.print(\"\\n\");\n\n\t\t}\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tdouble sum;\n\t\tdouble average;\n\t\tdouble b;\n\t\tdouble answer;\n\n\t\twhile(true){\n\t\t\tint n = scanner.nextInt();\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tsum = 0;\n\t\t\taverage = 0;\n\t\t\tb = 0; \n\t\t\tanswer = 0;\n\t\t\tint[] numbers = new int[n];\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tnumbers[i] = scanner.nextInt();\n\t\t\t\tsum += numbers[i];\n\t\t\t}\n\n\t\t\taverage = sum / n;\n\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tb += (numbers[i] - average) * (numbers[i] - average);\n\t\t\t}\n\n\t\t\tSystem.out.printf(\"%.5f\", Math.sqrt(b / n));\n\t\t\tSystem.out.print(\"\\n\");\n\n\t\t}\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "double sum;", "sum", "double average;", "average", "double b;", "b", "double answer;", "answer", "while(true){\n\t\t\tint n = scanner.nextInt();\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tsum = 0;\n\t\t\taverage = 0;\n\t\t\tb = 0; \n\t\t\tanswer = 0;\n\t\t\tint[] numbers = new int[n];\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tnumbers[i] = scanner.nextInt();\n\t\t\t\tsum += numbers[i];\n\t\t\t}\n\n\t\t\taverage = sum / n;\n\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tb += (numbers[i] - average) * (numbers[i] - average);\n\t\t\t}\n\n\t\t\tSystem.out.printf(\"%.5f\", Math.sqrt(b / n));\n\t\t\tSystem.out.print(\"\\n\");\n\n\t\t}", "true", "{\n\t\t\tint n = scanner.nextInt();\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tsum = 0;\n\t\t\taverage = 0;\n\t\t\tb = 0; \n\t\t\tanswer = 0;\n\t\t\tint[] numbers = new int[n];\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tnumbers[i] = scanner.nextInt();\n\t\t\t\tsum += numbers[i];\n\t\t\t}\n\n\t\t\taverage = sum / n;\n\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tb += (numbers[i] - average) * (numbers[i] - average);\n\t\t\t}\n\n\t\t\tSystem.out.printf(\"%.5f\", Math.sqrt(b / n));\n\t\t\tSystem.out.print(\"\\n\");\n\n\t\t}", "int n = scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "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;", "sum = 0", "sum", "0", "average = 0", "average", "0", "b = 0", "b", "0", "answer = 0", "answer", "0", "int[] numbers = new int[n];", "numbers", "new int[n]", "n", "for(int i = 0; i < n; i++){\n\t\t\t\tnumbers[i] = scanner.nextInt();\n\t\t\t\tsum += numbers[i];\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tnumbers[i] = scanner.nextInt();\n\t\t\t\tsum += numbers[i];\n\t\t\t}", "{\n\t\t\t\tnumbers[i] = scanner.nextInt();\n\t\t\t\tsum += numbers[i];\n\t\t\t}", "numbers[i] = scanner.nextInt()", "numbers[i]", "numbers", "i", "scanner.nextInt()", "scanner.nextInt", "scanner", "sum += numbers[i]", "sum", "numbers[i]", "numbers", "i", "average = sum / n", "average", "sum / n", "sum", "n", "for(int i = 0; i < n; i++){\n\t\t\t\tb += (numbers[i] - average) * (numbers[i] - average);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tb += (numbers[i] - average) * (numbers[i] - average);\n\t\t\t}", "{\n\t\t\t\tb += (numbers[i] - average) * (numbers[i] - average);\n\t\t\t}", "b += (numbers[i] - average) * (numbers[i] - average)", "b", "(numbers[i] - average) * (numbers[i] - average)", "(numbers[i] - average)", "numbers[i]", "numbers", "i", "average", "(numbers[i] - average)", "numbers[i]", "numbers", "i", "average", "System.out.printf(\"%.5f\", Math.sqrt(b / n))", "System.out.printf", "System.out", "System", "System.out", "\"%.5f\"", "Math.sqrt(b / n)", "Math.sqrt", "Math", "b / n", "b", "n", "System.out.print(\"\\n\")", "System.out.print", "System.out", "System", "System.out", "\"\\n\"", "String[] args", "args" ]
import java.util.Scanner; import java.util.Arrays; class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); double sum; double average; double b; double answer; while(true){ int n = scanner.nextInt(); if(n == 0){ break; } sum = 0; average = 0; b = 0; answer = 0; int[] numbers = new int[n]; for(int i = 0; i < n; i++){ numbers[i] = scanner.nextInt(); sum += numbers[i]; } average = sum / n; for(int i = 0; i < n; i++){ b += (numbers[i] - average) * (numbers[i] - average); } System.out.printf("%.5f", Math.sqrt(b / n)); System.out.print("\n"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 17, 41, 13, 20, 17, 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, 14, 2, 13, 17, 0, 13, 13, 0, 13, 17, 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, 0, 18, 13, 40, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 4, 18, 18, 13, 13, 17, 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 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 11, 21 ], [ 21, 22 ], [ 21, 23 ], [ 11, 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 ], [ 42, 44 ], [ 27, 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 ], [ 27, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 74, 76 ], [ 70, 77 ], [ 77, 78 ], [ 77, 79 ], [ 27, 80 ], [ 80, 81 ], [ 80, 82 ], [ 27, 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 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 98, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 104, 108 ], [ 27, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 114, 115 ], [ 114, 116 ], [ 27, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 117, 122 ], [ 11, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 123, 128 ], [ 128, 129 ], [ 128, 130 ], [ 123, 131 ], [ 131, 132 ], [ 132, 133 ], [ 123, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 135, 140 ], [ 135, 141 ], [ 141, 142 ], [ 141, 143 ], [ 9, 144 ], [ 144, 145 ] ]
[ "import java.util.Random;\nimport java.util.Scanner;\nclass Main {\n public static void main(String[] args) {\n Random rand = new Random();\n Scanner stdIn = new Scanner(System.in); int j = 0;\n\n double[] ans = new double[1000];\n while (true) {\n int n = stdIn.nextInt();\n if (n == 0) break;\n int[] s = new int[n];\n double m=0;\n for (int i = 0; i < n; i++) {\n s[i] = stdIn.nextInt();\n m += s[i];\n }\n if (m != 0)\n m /= n;\n else \n m = 0;\n double sd=0;\n for (int i = 0; i < n; i++) {\n sd += (s[i] - m) * (s[i] - m);\n } sd = Math.sqrt(sd/n);\n ans[j++] = sd;\n }\n\n for(int i = 0; i < j; i++)\n System.out.printf(\"%.8f\\n\", ans[i]);\n \n }\n}", "import java.util.Random;", "Random", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String[] args) {\n Random rand = new Random();\n Scanner stdIn = new Scanner(System.in); int j = 0;\n\n double[] ans = new double[1000];\n while (true) {\n int n = stdIn.nextInt();\n if (n == 0) break;\n int[] s = new int[n];\n double m=0;\n for (int i = 0; i < n; i++) {\n s[i] = stdIn.nextInt();\n m += s[i];\n }\n if (m != 0)\n m /= n;\n else \n m = 0;\n double sd=0;\n for (int i = 0; i < n; i++) {\n sd += (s[i] - m) * (s[i] - m);\n } sd = Math.sqrt(sd/n);\n ans[j++] = sd;\n }\n\n for(int i = 0; i < j; i++)\n System.out.printf(\"%.8f\\n\", ans[i]);\n \n }\n}", "Main", "public static void main(String[] args) {\n Random rand = new Random();\n Scanner stdIn = new Scanner(System.in); int j = 0;\n\n double[] ans = new double[1000];\n while (true) {\n int n = stdIn.nextInt();\n if (n == 0) break;\n int[] s = new int[n];\n double m=0;\n for (int i = 0; i < n; i++) {\n s[i] = stdIn.nextInt();\n m += s[i];\n }\n if (m != 0)\n m /= n;\n else \n m = 0;\n double sd=0;\n for (int i = 0; i < n; i++) {\n sd += (s[i] - m) * (s[i] - m);\n } sd = Math.sqrt(sd/n);\n ans[j++] = sd;\n }\n\n for(int i = 0; i < j; i++)\n System.out.printf(\"%.8f\\n\", ans[i]);\n \n }", "main", "{\n Random rand = new Random();\n Scanner stdIn = new Scanner(System.in); int j = 0;\n\n double[] ans = new double[1000];\n while (true) {\n int n = stdIn.nextInt();\n if (n == 0) break;\n int[] s = new int[n];\n double m=0;\n for (int i = 0; i < n; i++) {\n s[i] = stdIn.nextInt();\n m += s[i];\n }\n if (m != 0)\n m /= n;\n else \n m = 0;\n double sd=0;\n for (int i = 0; i < n; i++) {\n sd += (s[i] - m) * (s[i] - m);\n } sd = Math.sqrt(sd/n);\n ans[j++] = sd;\n }\n\n for(int i = 0; i < j; i++)\n System.out.printf(\"%.8f\\n\", ans[i]);\n \n }", "Random rand = new Random();", "rand", "new Random()", "Scanner stdIn = new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "int j = 0;", "j", "0", "double[] ans = new double[1000];", "ans", "new double[1000]", "1000", "while (true) {\n int n = stdIn.nextInt();\n if (n == 0) break;\n int[] s = new int[n];\n double m=0;\n for (int i = 0; i < n; i++) {\n s[i] = stdIn.nextInt();\n m += s[i];\n }\n if (m != 0)\n m /= n;\n else \n m = 0;\n double sd=0;\n for (int i = 0; i < n; i++) {\n sd += (s[i] - m) * (s[i] - m);\n } sd = Math.sqrt(sd/n);\n ans[j++] = sd;\n }", "true", "{\n int n = stdIn.nextInt();\n if (n == 0) break;\n int[] s = new int[n];\n double m=0;\n for (int i = 0; i < n; i++) {\n s[i] = stdIn.nextInt();\n m += s[i];\n }\n if (m != 0)\n m /= n;\n else \n m = 0;\n double sd=0;\n for (int i = 0; i < n; i++) {\n sd += (s[i] - m) * (s[i] - m);\n } sd = Math.sqrt(sd/n);\n ans[j++] = sd;\n }", "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", "double m=0;", "m", "0", "for (int i = 0; i < n; i++) {\n s[i] = stdIn.nextInt();\n m += s[i];\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n s[i] = stdIn.nextInt();\n m += s[i];\n }", "{\n s[i] = stdIn.nextInt();\n m += s[i];\n }", "s[i] = stdIn.nextInt()", "s[i]", "s", "i", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "m += s[i]", "m", "s[i]", "s", "i", "if (m != 0)\n m /= n;\n else \n m = 0;", "m != 0", "m", "0", "m /= n", "m", "n", "m = 0", "m", "0", "double sd=0;", "sd", "0", "for (int i = 0; i < n; i++) {\n sd += (s[i] - m) * (s[i] - m);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n sd += (s[i] - m) * (s[i] - m);\n }", "{\n sd += (s[i] - m) * (s[i] - m);\n }", "sd += (s[i] - m) * (s[i] - m)", "sd", "(s[i] - m) * (s[i] - m)", "(s[i] - m)", "s[i]", "s", "i", "m", "(s[i] - m)", "s[i]", "s", "i", "m", "sd = Math.sqrt(sd/n)", "sd", "Math.sqrt(sd/n)", "Math.sqrt", "Math", "sd/n", "sd", "n", "ans[j++] = sd", "ans[j++]", "ans", "j++", "j", "sd", "for(int i = 0; i < j; i++)\n System.out.printf(\"%.8f\\n\", ans[i]);", "int i = 0;", "int i = 0;", "i", "0", "i < j", "i", "j", "i++", "i++", "i", "System.out.printf(\"%.8f\\n\", ans[i]);", "System.out.printf(\"%.8f\\n\", ans[i])", "System.out.printf", "System.out", "System", "System.out", "\"%.8f\\n\"", "ans[i]", "ans", "i", "String[] args", "args" ]
import java.util.Random; import java.util.Scanner; class Main { public static void main(String[] args) { Random rand = new Random(); Scanner stdIn = new Scanner(System.in); int j = 0; double[] ans = new double[1000]; while (true) { int n = stdIn.nextInt(); if (n == 0) break; int[] s = new int[n]; double m=0; for (int i = 0; i < n; i++) { s[i] = stdIn.nextInt(); m += s[i]; } if (m != 0) m /= n; else m = 0; double sd=0; for (int i = 0; i < n; i++) { sd += (s[i] - m) * (s[i] - m); } sd = Math.sqrt(sd/n); ans[j++] = sd; } for(int i = 0; i < j; i++) System.out.printf("%.8f\n", ans[i]); } }
[ 7, 15, 13, 17, 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, 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, 18, 13, 13, 4, 18, 13, 2, 18, 13, 13, 13, 17, 0, 13, 18, 13, 13, 0, 13, 13, 41, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 118, 8 ], [ 118, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 13, 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, 34 ], [ 34, 35 ], [ 34, 36 ], [ 19, 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 ], [ 19, 62 ], [ 62, 63 ], [ 62, 64 ], [ 19, 65 ], [ 65, 66 ], [ 65, 67 ], [ 19, 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 ], [ 85, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 85, 93 ], [ 80, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 19, 99 ], [ 99, 100 ], [ 99, 101 ], [ 19, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 104, 108 ], [ 19, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 9, 115 ], [ 115, 116 ], [ 0, 117 ], [ 117, 118 ], [ 117, 119 ] ]
[ "import java.lang.Math;\nimport 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) break;\n double s[] = new double[n];\n double m = 0;\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextDouble();\n m += s[i];\n }\n m /= n;\n double v = 0;\n for (int i = 0; i < n; i++) {\n s[i] = Math.pow(s[i]-m, 2);\n v += s[i];\n }\n v /= n;\n double d = Math.pow(v, 0.5);\n System.out.println(d);\n }\n }\n }\n}", "import java.lang.Math;", "Math", "java.lang", "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) break;\n double s[] = new double[n];\n double m = 0;\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextDouble();\n m += s[i];\n }\n m /= n;\n double v = 0;\n for (int i = 0; i < n; i++) {\n s[i] = Math.pow(s[i]-m, 2);\n v += s[i];\n }\n v /= n;\n double d = Math.pow(v, 0.5);\n System.out.println(d);\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) break;\n double s[] = new double[n];\n double m = 0;\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextDouble();\n m += s[i];\n }\n m /= n;\n double v = 0;\n for (int i = 0; i < n; i++) {\n s[i] = Math.pow(s[i]-m, 2);\n v += s[i];\n }\n v /= n;\n double d = Math.pow(v, 0.5);\n System.out.println(d);\n }\n }\n }", "main", "{\n try (Scanner sc = new Scanner(System.in)) {\n while (true) {\n int n = sc.nextInt();\n if (n == 0) break;\n double s[] = new double[n];\n double m = 0;\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextDouble();\n m += s[i];\n }\n m /= n;\n double v = 0;\n for (int i = 0; i < n; i++) {\n s[i] = Math.pow(s[i]-m, 2);\n v += s[i];\n }\n v /= n;\n double d = Math.pow(v, 0.5);\n System.out.println(d);\n }\n }\n }", "try (Scanner sc = new Scanner(System.in)) {\n while (true) {\n int n = sc.nextInt();\n if (n == 0) break;\n double s[] = new double[n];\n double m = 0;\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextDouble();\n m += s[i];\n }\n m /= n;\n double v = 0;\n for (int i = 0; i < n; i++) {\n s[i] = Math.pow(s[i]-m, 2);\n v += s[i];\n }\n v /= n;\n double d = Math.pow(v, 0.5);\n System.out.println(d);\n }\n }", "{\n while (true) {\n int n = sc.nextInt();\n if (n == 0) break;\n double s[] = new double[n];\n double m = 0;\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextDouble();\n m += s[i];\n }\n m /= n;\n double v = 0;\n for (int i = 0; i < n; i++) {\n s[i] = Math.pow(s[i]-m, 2);\n v += s[i];\n }\n v /= n;\n double d = Math.pow(v, 0.5);\n System.out.println(d);\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) break;\n double s[] = new double[n];\n double m = 0;\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextDouble();\n m += s[i];\n }\n m /= n;\n double v = 0;\n for (int i = 0; i < n; i++) {\n s[i] = Math.pow(s[i]-m, 2);\n v += s[i];\n }\n v /= n;\n double d = Math.pow(v, 0.5);\n System.out.println(d);\n }", "true", "{\n int n = sc.nextInt();\n if (n == 0) break;\n double s[] = new double[n];\n double m = 0;\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextDouble();\n m += s[i];\n }\n m /= n;\n double v = 0;\n for (int i = 0; i < n; i++) {\n s[i] = Math.pow(s[i]-m, 2);\n v += s[i];\n }\n v /= n;\n double d = Math.pow(v, 0.5);\n System.out.println(d);\n }", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if (n == 0) break;", "n == 0", "n", "0", "break;", "double s[] = new double[n];", "s", "new double[n]", "n", "double m = 0;", "m", "0", "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", "double v = 0;", "v", "0", "for (int i = 0; i < n; i++) {\n s[i] = Math.pow(s[i]-m, 2);\n v += s[i];\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n s[i] = Math.pow(s[i]-m, 2);\n v += s[i];\n }", "{\n s[i] = Math.pow(s[i]-m, 2);\n v += s[i];\n }", "s[i] = Math.pow(s[i]-m, 2)", "s[i]", "s", "i", "Math.pow(s[i]-m, 2)", "Math.pow", "Math", "s[i]-m", "s[i]", "s", "i", "m", "2", "v += s[i]", "v", "s[i]", "s", "i", "v /= n", "v", "n", "double d = Math.pow(v, 0.5);", "d", "Math.pow(v, 0.5)", "Math.pow", "Math", "v", "0.5", "System.out.println(d)", "System.out.println", "System.out", "System", "System.out", "d", "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) break;\n double s[] = new double[n];\n double m = 0;\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextDouble();\n m += s[i];\n }\n m /= n;\n double v = 0;\n for (int i = 0; i < n; i++) {\n s[i] = Math.pow(s[i]-m, 2);\n v += s[i];\n }\n v /= n;\n double d = Math.pow(v, 0.5);\n System.out.println(d);\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) break;\n double s[] = new double[n];\n double m = 0;\n for (int i = 0; i < n; i++) {\n s[i] = sc.nextDouble();\n m += s[i];\n }\n m /= n;\n double v = 0;\n for (int i = 0; i < n; i++) {\n s[i] = Math.pow(s[i]-m, 2);\n v += s[i];\n }\n v /= n;\n double d = Math.pow(v, 0.5);\n System.out.println(d);\n }\n }\n }\n}", "Main" ]
import java.lang.Math; 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; double s[] = new double[n]; double m = 0; for (int i = 0; i < n; i++) { s[i] = sc.nextDouble(); m += s[i]; } m /= n; double v = 0; for (int i = 0; i < n; i++) { s[i] = Math.pow(s[i]-m, 2); v += s[i]; } v /= n; double d = Math.pow(v, 0.5); System.out.println(d); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 17, 41, 13, 41, 13, 17, 41, 13, 41, 13, 17, 41, 13, 41, 13, 17, 42, 2, 13, 17, 30, 0, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 17, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 4, 18, 13, 13, 13, 0, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 13, 4, 18, 13, 2, 4, 18, 13, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 4, 18, 13, 13, 4, 18, 13, 13, 13, 0, 13, 2, 13, 13, 0, 13, 4, 18, 13, 13, 4, 18, 13, 13, 40, 13, 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, 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 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 29 ], [ 29, 30 ], [ 8, 31 ], [ 31, 32 ], [ 31, 33 ], [ 8, 34 ], [ 34, 35 ], [ 8, 36 ], [ 36, 37 ], [ 36, 38 ], [ 8, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 43, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 49, 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 ], [ 69, 72 ], [ 68, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 55, 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 ], [ 89, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 95, 99 ], [ 55, 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 ], [ 116, 119 ], [ 115, 120 ], [ 55, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 123, 125 ], [ 55, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 131, 132 ], [ 131, 133 ], [ 126, 134 ], [ 134, 135 ], [ 135, 136 ], [ 126, 137 ], [ 138, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 139, 142 ], [ 139, 143 ], [ 143, 144 ], [ 144, 145 ], [ 143, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 147, 150 ], [ 146, 151 ], [ 55, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 152, 157 ], [ 157, 158 ], [ 157, 159 ], [ 152, 160 ], [ 160, 161 ], [ 161, 162 ], [ 152, 163 ], [ 164, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 169, 172 ], [ 168, 173 ], [ 173, 174 ], [ 174, 175 ], [ 173, 176 ], [ 167, 177 ], [ 55, 178 ], [ 178, 179 ], [ 178, 180 ], [ 180, 181 ], [ 180, 182 ], [ 55, 183 ], [ 183, 184 ], [ 183, 185 ], [ 185, 186 ], [ 186, 187 ], [ 185, 188 ], [ 55, 189 ], [ 189, 190 ], [ 190, 191 ], [ 189, 192 ], [ 55, 193 ], [ 193, 194 ], [ 43, 195 ], [ 195, 196 ], [ 195, 197 ], [ 43, 198 ], [ 198, 199 ], [ 198, 200 ], [ 43, 201 ], [ 201, 202 ], [ 201, 203 ], [ 43, 204 ], [ 204, 205 ], [ 204, 206 ], [ 8, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 209, 211 ], [ 207, 212 ], [ 212, 213 ], [ 212, 214 ], [ 207, 215 ], [ 215, 216 ], [ 216, 217 ], [ 207, 218 ], [ 219, 219 ], [ 219, 220 ], [ 220, 221 ], [ 221, 222 ], [ 222, 223 ], [ 222, 224 ], [ 220, 225 ], [ 225, 226 ], [ 226, 227 ], [ 225, 228 ], [ 6, 229 ], [ 229, 230 ] ]
[ "import java.util.*;\n \nclass Main {\n public static void main(String[] args) {\n \t\n \tScanner sc = new Scanner(System.in);\n \tArrayList<Double> sList = new ArrayList<>();\n \tArrayList<Double> devList = new ArrayList<>();\n \tArrayList<Double> sigmaList = new ArrayList<>();\n \t\n \tint n = 999;\n \tdouble s;\n \tdouble sum = 0;;\n \tdouble avg;\n \tdouble disp = 0;\n \tdouble sigma;\n \tint cnt = 0;\n \twhile(n != 0) {\n \t\tn = sc.nextInt();\n \t\tif(n == 0) {\n \t\t\tbreak;\n \t\t} else {\n \t\t\t//ArrayList?????????\n \t\t\tfor(int i = 0; i < n; i++) {\n \t \t\tsList.add(0.0);\n \t \t\tdevList.add(0.0);\n \t \t}\n \t\t\t//???????????\\???\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\ts = sc.nextDouble();\n \t \t\tsList.set(i, s);\n \t \t}\n \t \t//????¨?\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\tsum = sList.get(i) + sum;\n \t \t}\n \t \t//??????\n \t \tavg = sum / n;\n \t \t//??????\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\tdevList.set(i, Math.abs(sList.get(i) - avg));\n \t \t}\n \t \t//?????£\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\tdisp = devList.get(i) * devList.get(i) + disp;\n \t \t}\n \t \tdisp = disp / n;\n \t \t//?¨??????????\n \t \tsigma = Math.sqrt(disp);\n \t \tsigmaList.add(sigma);\n \t \tcnt++;\n \t\t}\n \t\tsum = 0;\n \t\tavg = 0;\n \t\tdisp = 0;\n \t\tsigma = 0;\n \t}\n \tfor(int i = 0; i < cnt; i++) {\n \t\tSystem.out.println(sigmaList.get(i));\n \t}\n }\n}", "import java.util.*;", "util.*", "java", "class Main {\n public static void main(String[] args) {\n \t\n \tScanner sc = new Scanner(System.in);\n \tArrayList<Double> sList = new ArrayList<>();\n \tArrayList<Double> devList = new ArrayList<>();\n \tArrayList<Double> sigmaList = new ArrayList<>();\n \t\n \tint n = 999;\n \tdouble s;\n \tdouble sum = 0;;\n \tdouble avg;\n \tdouble disp = 0;\n \tdouble sigma;\n \tint cnt = 0;\n \twhile(n != 0) {\n \t\tn = sc.nextInt();\n \t\tif(n == 0) {\n \t\t\tbreak;\n \t\t} else {\n \t\t\t//ArrayList?????????\n \t\t\tfor(int i = 0; i < n; i++) {\n \t \t\tsList.add(0.0);\n \t \t\tdevList.add(0.0);\n \t \t}\n \t\t\t//???????????\\???\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\ts = sc.nextDouble();\n \t \t\tsList.set(i, s);\n \t \t}\n \t \t//????¨?\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\tsum = sList.get(i) + sum;\n \t \t}\n \t \t//??????\n \t \tavg = sum / n;\n \t \t//??????\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\tdevList.set(i, Math.abs(sList.get(i) - avg));\n \t \t}\n \t \t//?????£\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\tdisp = devList.get(i) * devList.get(i) + disp;\n \t \t}\n \t \tdisp = disp / n;\n \t \t//?¨??????????\n \t \tsigma = Math.sqrt(disp);\n \t \tsigmaList.add(sigma);\n \t \tcnt++;\n \t\t}\n \t\tsum = 0;\n \t\tavg = 0;\n \t\tdisp = 0;\n \t\tsigma = 0;\n \t}\n \tfor(int i = 0; i < cnt; i++) {\n \t\tSystem.out.println(sigmaList.get(i));\n \t}\n }\n}", "Main", "public static void main(String[] args) {\n \t\n \tScanner sc = new Scanner(System.in);\n \tArrayList<Double> sList = new ArrayList<>();\n \tArrayList<Double> devList = new ArrayList<>();\n \tArrayList<Double> sigmaList = new ArrayList<>();\n \t\n \tint n = 999;\n \tdouble s;\n \tdouble sum = 0;;\n \tdouble avg;\n \tdouble disp = 0;\n \tdouble sigma;\n \tint cnt = 0;\n \twhile(n != 0) {\n \t\tn = sc.nextInt();\n \t\tif(n == 0) {\n \t\t\tbreak;\n \t\t} else {\n \t\t\t//ArrayList?????????\n \t\t\tfor(int i = 0; i < n; i++) {\n \t \t\tsList.add(0.0);\n \t \t\tdevList.add(0.0);\n \t \t}\n \t\t\t//???????????\\???\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\ts = sc.nextDouble();\n \t \t\tsList.set(i, s);\n \t \t}\n \t \t//????¨?\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\tsum = sList.get(i) + sum;\n \t \t}\n \t \t//??????\n \t \tavg = sum / n;\n \t \t//??????\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\tdevList.set(i, Math.abs(sList.get(i) - avg));\n \t \t}\n \t \t//?????£\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\tdisp = devList.get(i) * devList.get(i) + disp;\n \t \t}\n \t \tdisp = disp / n;\n \t \t//?¨??????????\n \t \tsigma = Math.sqrt(disp);\n \t \tsigmaList.add(sigma);\n \t \tcnt++;\n \t\t}\n \t\tsum = 0;\n \t\tavg = 0;\n \t\tdisp = 0;\n \t\tsigma = 0;\n \t}\n \tfor(int i = 0; i < cnt; i++) {\n \t\tSystem.out.println(sigmaList.get(i));\n \t}\n }", "main", "{\n \t\n \tScanner sc = new Scanner(System.in);\n \tArrayList<Double> sList = new ArrayList<>();\n \tArrayList<Double> devList = new ArrayList<>();\n \tArrayList<Double> sigmaList = new ArrayList<>();\n \t\n \tint n = 999;\n \tdouble s;\n \tdouble sum = 0;;\n \tdouble avg;\n \tdouble disp = 0;\n \tdouble sigma;\n \tint cnt = 0;\n \twhile(n != 0) {\n \t\tn = sc.nextInt();\n \t\tif(n == 0) {\n \t\t\tbreak;\n \t\t} else {\n \t\t\t//ArrayList?????????\n \t\t\tfor(int i = 0; i < n; i++) {\n \t \t\tsList.add(0.0);\n \t \t\tdevList.add(0.0);\n \t \t}\n \t\t\t//???????????\\???\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\ts = sc.nextDouble();\n \t \t\tsList.set(i, s);\n \t \t}\n \t \t//????¨?\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\tsum = sList.get(i) + sum;\n \t \t}\n \t \t//??????\n \t \tavg = sum / n;\n \t \t//??????\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\tdevList.set(i, Math.abs(sList.get(i) - avg));\n \t \t}\n \t \t//?????£\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\tdisp = devList.get(i) * devList.get(i) + disp;\n \t \t}\n \t \tdisp = disp / n;\n \t \t//?¨??????????\n \t \tsigma = Math.sqrt(disp);\n \t \tsigmaList.add(sigma);\n \t \tcnt++;\n \t\t}\n \t\tsum = 0;\n \t\tavg = 0;\n \t\tdisp = 0;\n \t\tsigma = 0;\n \t}\n \tfor(int i = 0; i < cnt; i++) {\n \t\tSystem.out.println(sigmaList.get(i));\n \t}\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "ArrayList<Double> sList = new ArrayList<>();", "sList", "new ArrayList<>()", "ArrayList<Double> devList = new ArrayList<>();", "devList", "new ArrayList<>()", "ArrayList<Double> sigmaList = new ArrayList<>();", "sigmaList", "new ArrayList<>()", "int n = 999;", "n", "999", "double s;", "s", "double sum = 0;", "sum", "0", "double avg;", "avg", "double disp = 0;", "disp", "0", "double sigma;", "sigma", "int cnt = 0;", "cnt", "0", "while(n != 0) {\n \t\tn = sc.nextInt();\n \t\tif(n == 0) {\n \t\t\tbreak;\n \t\t} else {\n \t\t\t//ArrayList?????????\n \t\t\tfor(int i = 0; i < n; i++) {\n \t \t\tsList.add(0.0);\n \t \t\tdevList.add(0.0);\n \t \t}\n \t\t\t//???????????\\???\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\ts = sc.nextDouble();\n \t \t\tsList.set(i, s);\n \t \t}\n \t \t//????¨?\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\tsum = sList.get(i) + sum;\n \t \t}\n \t \t//??????\n \t \tavg = sum / n;\n \t \t//??????\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\tdevList.set(i, Math.abs(sList.get(i) - avg));\n \t \t}\n \t \t//?????£\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\tdisp = devList.get(i) * devList.get(i) + disp;\n \t \t}\n \t \tdisp = disp / n;\n \t \t//?¨??????????\n \t \tsigma = Math.sqrt(disp);\n \t \tsigmaList.add(sigma);\n \t \tcnt++;\n \t\t}\n \t\tsum = 0;\n \t\tavg = 0;\n \t\tdisp = 0;\n \t\tsigma = 0;\n \t}", "n != 0", "n", "0", "{\n \t\tn = sc.nextInt();\n \t\tif(n == 0) {\n \t\t\tbreak;\n \t\t} else {\n \t\t\t//ArrayList?????????\n \t\t\tfor(int i = 0; i < n; i++) {\n \t \t\tsList.add(0.0);\n \t \t\tdevList.add(0.0);\n \t \t}\n \t\t\t//???????????\\???\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\ts = sc.nextDouble();\n \t \t\tsList.set(i, s);\n \t \t}\n \t \t//????¨?\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\tsum = sList.get(i) + sum;\n \t \t}\n \t \t//??????\n \t \tavg = sum / n;\n \t \t//??????\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\tdevList.set(i, Math.abs(sList.get(i) - avg));\n \t \t}\n \t \t//?????£\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\tdisp = devList.get(i) * devList.get(i) + disp;\n \t \t}\n \t \tdisp = disp / n;\n \t \t//?¨??????????\n \t \tsigma = Math.sqrt(disp);\n \t \tsigmaList.add(sigma);\n \t \tcnt++;\n \t\t}\n \t\tsum = 0;\n \t\tavg = 0;\n \t\tdisp = 0;\n \t\tsigma = 0;\n \t}", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n == 0) {\n \t\t\tbreak;\n \t\t} else {\n \t\t\t//ArrayList?????????\n \t\t\tfor(int i = 0; i < n; i++) {\n \t \t\tsList.add(0.0);\n \t \t\tdevList.add(0.0);\n \t \t}\n \t\t\t//???????????\\???\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\ts = sc.nextDouble();\n \t \t\tsList.set(i, s);\n \t \t}\n \t \t//????¨?\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\tsum = sList.get(i) + sum;\n \t \t}\n \t \t//??????\n \t \tavg = sum / n;\n \t \t//??????\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\tdevList.set(i, Math.abs(sList.get(i) - avg));\n \t \t}\n \t \t//?????£\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\tdisp = devList.get(i) * devList.get(i) + disp;\n \t \t}\n \t \tdisp = disp / n;\n \t \t//?¨??????????\n \t \tsigma = Math.sqrt(disp);\n \t \tsigmaList.add(sigma);\n \t \tcnt++;\n \t\t}", "n == 0", "n", "0", "{\n \t\t\tbreak;\n \t\t}", "break;", "{\n \t\t\t//ArrayList?????????\n \t\t\tfor(int i = 0; i < n; i++) {\n \t \t\tsList.add(0.0);\n \t \t\tdevList.add(0.0);\n \t \t}\n \t\t\t//???????????\\???\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\ts = sc.nextDouble();\n \t \t\tsList.set(i, s);\n \t \t}\n \t \t//????¨?\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\tsum = sList.get(i) + sum;\n \t \t}\n \t \t//??????\n \t \tavg = sum / n;\n \t \t//??????\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\tdevList.set(i, Math.abs(sList.get(i) - avg));\n \t \t}\n \t \t//?????£\n \t \tfor(int i = 0; i < n; i++) {\n \t \t\tdisp = devList.get(i) * devList.get(i) + disp;\n \t \t}\n \t \tdisp = disp / n;\n \t \t//?¨??????????\n \t \tsigma = Math.sqrt(disp);\n \t \tsigmaList.add(sigma);\n \t \tcnt++;\n \t\t}", "for(int i = 0; i < n; i++) {\n \t \t\tsList.add(0.0);\n \t \t\tdevList.add(0.0);\n \t \t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n \t \t\tsList.add(0.0);\n \t \t\tdevList.add(0.0);\n \t \t}", "{\n \t \t\tsList.add(0.0);\n \t \t\tdevList.add(0.0);\n \t \t}", "sList.add(0.0)", "sList.add", "sList", "0.0", "devList.add(0.0)", "devList.add", "devList", "0.0", "for(int i = 0; i < n; i++) {\n \t \t\ts = sc.nextDouble();\n \t \t\tsList.set(i, s);\n \t \t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n \t \t\ts = sc.nextDouble();\n \t \t\tsList.set(i, s);\n \t \t}", "{\n \t \t\ts = sc.nextDouble();\n \t \t\tsList.set(i, s);\n \t \t}", "s = sc.nextDouble()", "s", "sc.nextDouble()", "sc.nextDouble", "sc", "sList.set(i, s)", "sList.set", "sList", "i", "s", "for(int i = 0; i < n; i++) {\n \t \t\tsum = sList.get(i) + sum;\n \t \t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n \t \t\tsum = sList.get(i) + sum;\n \t \t}", "{\n \t \t\tsum = sList.get(i) + sum;\n \t \t}", "sum = sList.get(i) + sum", "sum", "sList.get(i) + sum", "sList.get(i)", "sList.get", "sList", "i", "sum", "avg = sum / n", "avg", "sum / n", "sum", "n", "for(int i = 0; i < n; i++) {\n \t \t\tdevList.set(i, Math.abs(sList.get(i) - avg));\n \t \t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n \t \t\tdevList.set(i, Math.abs(sList.get(i) - avg));\n \t \t}", "{\n \t \t\tdevList.set(i, Math.abs(sList.get(i) - avg));\n \t \t}", "devList.set(i, Math.abs(sList.get(i) - avg))", "devList.set", "devList", "i", "Math.abs(sList.get(i) - avg)", "Math.abs", "Math", "sList.get(i) - avg", "sList.get(i)", "sList.get", "sList", "i", "avg", "for(int i = 0; i < n; i++) {\n \t \t\tdisp = devList.get(i) * devList.get(i) + disp;\n \t \t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n \t \t\tdisp = devList.get(i) * devList.get(i) + disp;\n \t \t}", "{\n \t \t\tdisp = devList.get(i) * devList.get(i) + disp;\n \t \t}", "disp = devList.get(i) * devList.get(i) + disp", "disp", "devList.get(i) * devList.get(i) + disp", "devList.get(i) * devList.get(i)", "devList.get(i)", "devList.get", "devList", "i", "devList.get(i)", "devList.get", "devList", "i", "disp", "disp = disp / n", "disp", "disp / n", "disp", "n", "sigma = Math.sqrt(disp)", "sigma", "Math.sqrt(disp)", "Math.sqrt", "Math", "disp", "sigmaList.add(sigma)", "sigmaList.add", "sigmaList", "sigma", "cnt++", "cnt", "sum = 0", "sum", "0", "avg = 0", "avg", "0", "disp = 0", "disp", "0", "sigma = 0", "sigma", "0", "for(int i = 0; i < cnt; i++) {\n \t\tSystem.out.println(sigmaList.get(i));\n \t}", "int i = 0;", "int i = 0;", "i", "0", "i < cnt", "i", "cnt", "i++", "i++", "i", "{\n \t\tSystem.out.println(sigmaList.get(i));\n \t}", "{\n \t\tSystem.out.println(sigmaList.get(i));\n \t}", "System.out.println(sigmaList.get(i))", "System.out.println", "System.out", "System", "System.out", "sigmaList.get(i)", "sigmaList.get", "sigmaList", "i", "String[] args", "args" ]
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); ArrayList<Double> sList = new ArrayList<>(); ArrayList<Double> devList = new ArrayList<>(); ArrayList<Double> sigmaList = new ArrayList<>(); int n = 999; double s; double sum = 0;; double avg; double disp = 0; double sigma; int cnt = 0; while(n != 0) { n = sc.nextInt(); if(n == 0) { break; } else { //ArrayList????????? for(int i = 0; i < n; i++) { sList.add(0.0); devList.add(0.0); } //???????????\??? for(int i = 0; i < n; i++) { s = sc.nextDouble(); sList.set(i, s); } //????¨? for(int i = 0; i < n; i++) { sum = sList.get(i) + sum; } //?????? avg = sum / n; //?????? for(int i = 0; i < n; i++) { devList.set(i, Math.abs(sList.get(i) - avg)); } //?????£ for(int i = 0; i < n; i++) { disp = devList.get(i) * devList.get(i) + disp; } disp = disp / n; //?¨?????????? sigma = Math.sqrt(disp); sigmaList.add(sigma); cnt++; } sum = 0; avg = 0; disp = 0; sigma = 0; } for(int i = 0; i < cnt; i++) { System.out.println(sigmaList.get(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, 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, 4, 18, 13, 2, 18, 13, 13, 13, 17, 13, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 104, 5 ], [ 104, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 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 ], [ 83, 84 ], [ 82, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 82, 90 ], [ 81, 91 ], [ 14, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 6, 101 ], [ 101, 102 ], [ 0, 103 ], [ 103, 104 ], [ 103, 105 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (true) {\n int count = sc.nextInt();\n if (count == 0) {\n break;\n }\n double[] s = new double[count];\n double sum = 0;\n for (int i = 0; i < count; i++) {\n s[i] = sc.nextDouble();\n sum += s[i];\n }\n double average = sum / count;\n double res = 0;\n for (int i = 0; i < count; i++) {\n res += Math.pow(s[i] - average, 2) / count;\n }\n System.out.println(Math.sqrt(res));\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (true) {\n int count = sc.nextInt();\n if (count == 0) {\n break;\n }\n double[] s = new double[count];\n double sum = 0;\n for (int i = 0; i < count; i++) {\n s[i] = sc.nextDouble();\n sum += s[i];\n }\n double average = sum / count;\n double res = 0;\n for (int i = 0; i < count; i++) {\n res += Math.pow(s[i] - average, 2) / count;\n }\n System.out.println(Math.sqrt(res));\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (true) {\n int count = sc.nextInt();\n if (count == 0) {\n break;\n }\n double[] s = new double[count];\n double sum = 0;\n for (int i = 0; i < count; i++) {\n s[i] = sc.nextDouble();\n sum += s[i];\n }\n double average = sum / count;\n double res = 0;\n for (int i = 0; i < count; i++) {\n res += Math.pow(s[i] - average, 2) / count;\n }\n System.out.println(Math.sqrt(res));\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n while (true) {\n int count = sc.nextInt();\n if (count == 0) {\n break;\n }\n double[] s = new double[count];\n double sum = 0;\n for (int i = 0; i < count; i++) {\n s[i] = sc.nextDouble();\n sum += s[i];\n }\n double average = sum / count;\n double res = 0;\n for (int i = 0; i < count; i++) {\n res += Math.pow(s[i] - average, 2) / count;\n }\n System.out.println(Math.sqrt(res));\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (true) {\n int count = sc.nextInt();\n if (count == 0) {\n break;\n }\n double[] s = new double[count];\n double sum = 0;\n for (int i = 0; i < count; i++) {\n s[i] = sc.nextDouble();\n sum += s[i];\n }\n double average = sum / count;\n double res = 0;\n for (int i = 0; i < count; i++) {\n res += Math.pow(s[i] - average, 2) / count;\n }\n System.out.println(Math.sqrt(res));\n }", "true", "{\n int count = sc.nextInt();\n if (count == 0) {\n break;\n }\n double[] s = new double[count];\n double sum = 0;\n for (int i = 0; i < count; i++) {\n s[i] = sc.nextDouble();\n sum += s[i];\n }\n double average = sum / count;\n double res = 0;\n for (int i = 0; i < count; i++) {\n res += Math.pow(s[i] - average, 2) / count;\n }\n System.out.println(Math.sqrt(res));\n }", "int count = sc.nextInt();", "count", "sc.nextInt()", "sc.nextInt", "sc", "if (count == 0) {\n break;\n }", "count == 0", "count", "0", "{\n break;\n }", "break;", "double[] s = new double[count];", "s", "new double[count]", "count", "double sum = 0;", "sum", "0", "for (int i = 0; i < count; i++) {\n s[i] = sc.nextDouble();\n sum += s[i];\n }", "int i = 0;", "int i = 0;", "i", "0", "i < count", "i", "count", "i++", "i++", "i", "{\n s[i] = sc.nextDouble();\n sum += s[i];\n }", "{\n s[i] = sc.nextDouble();\n sum += s[i];\n }", "s[i] = sc.nextDouble()", "s[i]", "s", "i", "sc.nextDouble()", "sc.nextDouble", "sc", "sum += s[i]", "sum", "s[i]", "s", "i", "double average = sum / count;", "average", "sum / count", "sum", "count", "double res = 0;", "res", "0", "for (int i = 0; i < count; i++) {\n res += Math.pow(s[i] - average, 2) / count;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < count", "i", "count", "i++", "i++", "i", "{\n res += Math.pow(s[i] - average, 2) / count;\n }", "{\n res += Math.pow(s[i] - average, 2) / count;\n }", "res += Math.pow(s[i] - average, 2) / count", "res", "Math.pow(s[i] - average, 2) / count", "Math.pow(s[i] - average, 2)", "Math.pow", "Math", "s[i] - average", "s[i]", "s", "i", "average", "2", "count", "System.out.println(Math.sqrt(res))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(res)", "Math.sqrt", "Math", "res", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (true) {\n int count = sc.nextInt();\n if (count == 0) {\n break;\n }\n double[] s = new double[count];\n double sum = 0;\n for (int i = 0; i < count; i++) {\n s[i] = sc.nextDouble();\n sum += s[i];\n }\n double average = sum / count;\n double res = 0;\n for (int i = 0; i < count; i++) {\n res += Math.pow(s[i] - average, 2) / count;\n }\n System.out.println(Math.sqrt(res));\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (true) {\n int count = sc.nextInt();\n if (count == 0) {\n break;\n }\n double[] s = new double[count];\n double sum = 0;\n for (int i = 0; i < count; i++) {\n s[i] = sc.nextDouble();\n sum += s[i];\n }\n double average = sum / count;\n double res = 0;\n for (int i = 0; i < count; i++) {\n res += Math.pow(s[i] - average, 2) / count;\n }\n System.out.println(Math.sqrt(res));\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 count = sc.nextInt(); if (count == 0) { break; } double[] s = new double[count]; double sum = 0; for (int i = 0; i < count; i++) { s[i] = sc.nextDouble(); sum += s[i]; } double average = sum / count; double res = 0; for (int i = 0; i < count; i++) { res += Math.pow(s[i] - average, 2) / count; } System.out.println(Math.sqrt(res)); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 42, 2, 13, 17, 30, 0, 13, 17, 0, 13, 17, 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, 2, 18, 13, 13, 18, 13, 13, 0, 13, 2, 2, 13, 13, 2, 13, 13, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 17, 13, 0, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 126, 5 ], [ 126, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 8, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 37, 38 ], [ 37, 39 ], [ 33, 40 ], [ 40, 41 ], [ 40, 42 ], [ 33, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 44, 55 ], [ 56, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 62, 63 ], [ 56, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 33, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 33, 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 ], [ 90, 92 ], [ 89, 93 ], [ 93, 94 ], [ 93, 95 ], [ 33, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 102, 104 ], [ 33, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 33, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 111, 117 ], [ 33, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 6, 123 ], [ 123, 124 ], [ 0, 125 ], [ 125, 126 ], [ 125, 127 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int sum1, sum2;\n double m, v, s;\n int[] score;\n while(n != 0) {\n sum1 = 0;\n sum2 = 0;\n score = new int[n];\n for (int j = 0; j < n; j++) {\n score[j] = sc.nextInt();\n sum1 += score[j];\n }\n m = (double) sum1 / n;\n for (int j = 0; j < n; j++) {\n sum2 += score[j] * score[j];\n }\n v = (double) sum2 / n - m * m;\n s = Math.sqrt(v);\n System.out.printf(\"%f\\n\", s);\n n = sc.nextInt();\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 = sc.nextInt();\n int sum1, sum2;\n double m, v, s;\n int[] score;\n while(n != 0) {\n sum1 = 0;\n sum2 = 0;\n score = new int[n];\n for (int j = 0; j < n; j++) {\n score[j] = sc.nextInt();\n sum1 += score[j];\n }\n m = (double) sum1 / n;\n for (int j = 0; j < n; j++) {\n sum2 += score[j] * score[j];\n }\n v = (double) sum2 / n - m * m;\n s = Math.sqrt(v);\n System.out.printf(\"%f\\n\", s);\n n = sc.nextInt();\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int sum1, sum2;\n double m, v, s;\n int[] score;\n while(n != 0) {\n sum1 = 0;\n sum2 = 0;\n score = new int[n];\n for (int j = 0; j < n; j++) {\n score[j] = sc.nextInt();\n sum1 += score[j];\n }\n m = (double) sum1 / n;\n for (int j = 0; j < n; j++) {\n sum2 += score[j] * score[j];\n }\n v = (double) sum2 / n - m * m;\n s = Math.sqrt(v);\n System.out.printf(\"%f\\n\", s);\n n = sc.nextInt();\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int sum1, sum2;\n double m, v, s;\n int[] score;\n while(n != 0) {\n sum1 = 0;\n sum2 = 0;\n score = new int[n];\n for (int j = 0; j < n; j++) {\n score[j] = sc.nextInt();\n sum1 += score[j];\n }\n m = (double) sum1 / n;\n for (int j = 0; j < n; j++) {\n sum2 += score[j] * score[j];\n }\n v = (double) sum2 / n - m * m;\n s = Math.sqrt(v);\n System.out.printf(\"%f\\n\", s);\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 sum1", "sum1", "sum2;", "sum2", "double m", "m", "v", "v", "s;", "s", "int[] score;", "score", "while(n != 0) {\n sum1 = 0;\n sum2 = 0;\n score = new int[n];\n for (int j = 0; j < n; j++) {\n score[j] = sc.nextInt();\n sum1 += score[j];\n }\n m = (double) sum1 / n;\n for (int j = 0; j < n; j++) {\n sum2 += score[j] * score[j];\n }\n v = (double) sum2 / n - m * m;\n s = Math.sqrt(v);\n System.out.printf(\"%f\\n\", s);\n n = sc.nextInt();\n }", "n != 0", "n", "0", "{\n sum1 = 0;\n sum2 = 0;\n score = new int[n];\n for (int j = 0; j < n; j++) {\n score[j] = sc.nextInt();\n sum1 += score[j];\n }\n m = (double) sum1 / n;\n for (int j = 0; j < n; j++) {\n sum2 += score[j] * score[j];\n }\n v = (double) sum2 / n - m * m;\n s = Math.sqrt(v);\n System.out.printf(\"%f\\n\", s);\n n = sc.nextInt();\n }", "sum1 = 0", "sum1", "0", "sum2 = 0", "sum2", "0", "score = new int[n]", "score", "new int[n]", "n", "for (int j = 0; j < n; j++) {\n score[j] = sc.nextInt();\n sum1 += score[j];\n }", "int j = 0;", "int j = 0;", "j", "0", "j < n", "j", "n", "j++", "j++", "j", "{\n score[j] = sc.nextInt();\n sum1 += score[j];\n }", "{\n score[j] = sc.nextInt();\n sum1 += score[j];\n }", "score[j] = sc.nextInt()", "score[j]", "score", "j", "sc.nextInt()", "sc.nextInt", "sc", "sum1 += score[j]", "sum1", "score[j]", "score", "j", "m = (double) sum1 / n", "m", "(double) sum1 / n", "(double) sum1", "n", "for (int j = 0; j < n; j++) {\n sum2 += score[j] * score[j];\n }", "int j = 0;", "int j = 0;", "j", "0", "j < n", "j", "n", "j++", "j++", "j", "{\n sum2 += score[j] * score[j];\n }", "{\n sum2 += score[j] * score[j];\n }", "sum2 += score[j] * score[j]", "sum2", "score[j] * score[j]", "score[j]", "score", "j", "score[j]", "score", "j", "v = (double) sum2 / n - m * m", "v", "(double) sum2 / n - m * m", "(double) sum2 / n", "(double) sum2", "n", "m * m", "m", "m", "s = Math.sqrt(v)", "s", "Math.sqrt(v)", "Math.sqrt", "Math", "v", "System.out.printf(\"%f\\n\", s)", "System.out.printf", "System.out", "System", "System.out", "\"%f\\n\"", "s", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int sum1, sum2;\n double m, v, s;\n int[] score;\n while(n != 0) {\n sum1 = 0;\n sum2 = 0;\n score = new int[n];\n for (int j = 0; j < n; j++) {\n score[j] = sc.nextInt();\n sum1 += score[j];\n }\n m = (double) sum1 / n;\n for (int j = 0; j < n; j++) {\n sum2 += score[j] * score[j];\n }\n v = (double) sum2 / n - m * m;\n s = Math.sqrt(v);\n System.out.printf(\"%f\\n\", s);\n n = sc.nextInt();\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int sum1, sum2;\n double m, v, s;\n int[] score;\n while(n != 0) {\n sum1 = 0;\n sum2 = 0;\n score = new int[n];\n for (int j = 0; j < n; j++) {\n score[j] = sc.nextInt();\n sum1 += score[j];\n }\n m = (double) sum1 / n;\n for (int j = 0; j < n; j++) {\n sum2 += score[j] * score[j];\n }\n v = (double) sum2 / n - m * m;\n s = Math.sqrt(v);\n System.out.printf(\"%f\\n\", s);\n n = sc.nextInt();\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 = sc.nextInt(); int sum1, sum2; double m, v, s; int[] score; while(n != 0) { sum1 = 0; sum2 = 0; score = new int[n]; for (int j = 0; j < n; j++) { score[j] = sc.nextInt(); sum1 += score[j]; } m = (double) sum1 / n; for (int j = 0; j < n; j++) { sum2 += score[j] * score[j]; } v = (double) sum2 / n - m * m; s = Math.sqrt(v); System.out.printf("%f\n", s); n = sc.nextInt(); } } }
[ 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, 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, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 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, 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 ], [ 144, 5 ], [ 144, 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 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 66, 76 ], [ 76, 77 ], [ 77, 78 ], [ 66, 79 ], [ 80, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 16, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 16, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 102, 104 ], [ 95, 105 ], [ 105, 106 ], [ 106, 107 ], [ 95, 108 ], [ 109, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 114, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 16, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 129, 131 ], [ 16, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 137, 138 ], [ 138, 139 ], [ 137, 140 ], [ 6, 141 ], [ 141, 142 ], [ 0, 143 ], [ 143, 144 ], [ 143, 145 ] ]
[ "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){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,deviation = 0,variance = 0;\n int sum = 0;\n for(int i = 0;i < scores.length;i++){\n sum = sum + scores[i];\n }\n average = (double)sum / scores.length;\n for(int i = 0;i < scores.length;i++){\n deviation = deviation + (scores[i] - average)*(scores[i] - average);\n }\n variance = deviation / scores.length;\n System.out.println(Math.sqrt(variance));\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){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,deviation = 0,variance = 0;\n int sum = 0;\n for(int i = 0;i < scores.length;i++){\n sum = sum + scores[i];\n }\n average = (double)sum / scores.length;\n for(int i = 0;i < scores.length;i++){\n deviation = deviation + (scores[i] - average)*(scores[i] - average);\n }\n variance = deviation / 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){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,deviation = 0,variance = 0;\n int sum = 0;\n for(int i = 0;i < scores.length;i++){\n sum = sum + scores[i];\n }\n average = (double)sum / scores.length;\n for(int i = 0;i < scores.length;i++){\n deviation = deviation + (scores[i] - average)*(scores[i] - average);\n }\n variance = deviation / 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){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,deviation = 0,variance = 0;\n int sum = 0;\n for(int i = 0;i < scores.length;i++){\n sum = sum + scores[i];\n }\n average = (double)sum / scores.length;\n for(int i = 0;i < scores.length;i++){\n deviation = deviation + (scores[i] - average)*(scores[i] - average);\n }\n variance = deviation / 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){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,deviation = 0,variance = 0;\n int sum = 0;\n for(int i = 0;i < scores.length;i++){\n sum = sum + scores[i];\n }\n average = (double)sum / scores.length;\n for(int i = 0;i < scores.length;i++){\n deviation = deviation + (scores[i] - average)*(scores[i] - average);\n }\n variance = deviation / scores.length;\n System.out.println(Math.sqrt(variance));\n }\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,deviation = 0,variance = 0;\n int sum = 0;\n for(int i = 0;i < scores.length;i++){\n sum = sum + scores[i];\n }\n average = (double)sum / scores.length;\n for(int i = 0;i < scores.length;i++){\n deviation = deviation + (scores[i] - average)*(scores[i] - average);\n }\n variance = deviation / 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){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,deviation = 0,variance = 0;\n int sum = 0;\n for(int i = 0;i < scores.length;i++){\n sum = sum + scores[i];\n }\n average = (double)sum / scores.length;\n for(int i = 0;i < scores.length;i++){\n deviation = deviation + (scores[i] - average)*(scores[i] - average);\n }\n variance = deviation / scores.length;\n System.out.println(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,deviation = 0,variance = 0;\n int sum = 0;\n for(int i = 0;i < scores.length;i++){\n sum = sum + scores[i];\n }\n average = (double)sum / scores.length;\n for(int i = 0;i < scores.length;i++){\n deviation = deviation + (scores[i] - average)*(scores[i] - average);\n }\n variance = deviation / scores.length;\n System.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++){\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", "deviation = 0", "deviation", "0", "variance = 0;", "variance", "0", "int 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 = (double)sum / scores.length", "average", "(double)sum / scores.length", "(double)sum", "scores.length", "scores", "scores.length", "for(int i = 0;i < scores.length;i++){\n deviation = deviation + (scores[i] - average)*(scores[i] - average);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < scores.length", "i", "scores.length", "scores", "scores.length", "i++", "i++", "i", "{\n deviation = deviation + (scores[i] - average)*(scores[i] - average);\n }", "{\n deviation = deviation + (scores[i] - average)*(scores[i] - average);\n }", "deviation = deviation + (scores[i] - average)*(scores[i] - average)", "deviation", "deviation + (scores[i] - average)*(scores[i] - average)", "deviation", "(scores[i] - average)*(scores[i] - average)", "(scores[i] - average)", "scores[i]", "scores", "i", "average", "(scores[i] - average)", "scores[i]", "scores", "i", "average", "variance = deviation / scores.length", "variance", "deviation / scores.length", "deviation", "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){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,deviation = 0,variance = 0;\n int sum = 0;\n for(int i = 0;i < scores.length;i++){\n sum = sum + scores[i];\n }\n average = (double)sum / scores.length;\n for(int i = 0;i < scores.length;i++){\n deviation = deviation + (scores[i] - average)*(scores[i] - average);\n }\n variance = deviation / 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){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,deviation = 0,variance = 0;\n int sum = 0;\n for(int i = 0;i < scores.length;i++){\n sum = sum + scores[i];\n }\n average = (double)sum / scores.length;\n for(int i = 0;i < scores.length;i++){\n deviation = deviation + (scores[i] - average)*(scores[i] - average);\n }\n variance = deviation / 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 average = 0,deviation = 0,variance = 0; int sum = 0; for(int i = 0;i < scores.length;i++){ sum = sum + scores[i]; } average = (double)sum / scores.length; for(int i = 0;i < scores.length;i++){ deviation = deviation + (scores[i] - average)*(scores[i] - average); } variance = deviation / scores.length; System.out.println(Math.sqrt(variance)); } } } }
[ 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, 13, 41, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 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 ], [ 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 ], [ 14, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 14, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 100, 106 ], [ 6, 107 ], [ 107, 108 ], [ 0, 109 ], [ 109, 110 ], [ 109, 111 ] ]
[ "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\t\t\tif(n == 0) break;\n\t\t\tint[] scores = new int[n];\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\t//System.out.print(i + \" : \");\n\t\t\t\t//System.out.println(scores[i]);\n\t\t\t\tsum += scores[i];\n\t\t\t}\n\n\t\t\tdouble ave = (double) sum / n;\n\t\t\t//System.out.println(\"ave : \" + ave);\n\n\t\t\tdouble a2 = 0;\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\ta2 += (scores[i] - ave) * (scores[i] - ave);\n\t\t\t}\n\t\t\ta2 /= n;\n\t\t\tdouble a = Math.sqrt(a2);\n\n\t\t\tSystem.out.printf(\"%.8f\\n\", a);\n\t\t}\n\t\t//System.out.println();\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\t\t\tif(n == 0) break;\n\t\t\tint[] scores = new int[n];\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\t//System.out.print(i + \" : \");\n\t\t\t\t//System.out.println(scores[i]);\n\t\t\t\tsum += scores[i];\n\t\t\t}\n\n\t\t\tdouble ave = (double) sum / n;\n\t\t\t//System.out.println(\"ave : \" + ave);\n\n\t\t\tdouble a2 = 0;\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\ta2 += (scores[i] - ave) * (scores[i] - ave);\n\t\t\t}\n\t\t\ta2 /= n;\n\t\t\tdouble a = Math.sqrt(a2);\n\n\t\t\tSystem.out.printf(\"%.8f\\n\", a);\n\t\t}\n\t\t//System.out.println();\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\t\t\tif(n == 0) break;\n\t\t\tint[] scores = new int[n];\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\t//System.out.print(i + \" : \");\n\t\t\t\t//System.out.println(scores[i]);\n\t\t\t\tsum += scores[i];\n\t\t\t}\n\n\t\t\tdouble ave = (double) sum / n;\n\t\t\t//System.out.println(\"ave : \" + ave);\n\n\t\t\tdouble a2 = 0;\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\ta2 += (scores[i] - ave) * (scores[i] - ave);\n\t\t\t}\n\t\t\ta2 /= n;\n\t\t\tdouble a = Math.sqrt(a2);\n\n\t\t\tSystem.out.printf(\"%.8f\\n\", a);\n\t\t}\n\t\t//System.out.println();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n == 0) break;\n\t\t\tint[] scores = new int[n];\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\t//System.out.print(i + \" : \");\n\t\t\t\t//System.out.println(scores[i]);\n\t\t\t\tsum += scores[i];\n\t\t\t}\n\n\t\t\tdouble ave = (double) sum / n;\n\t\t\t//System.out.println(\"ave : \" + ave);\n\n\t\t\tdouble a2 = 0;\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\ta2 += (scores[i] - ave) * (scores[i] - ave);\n\t\t\t}\n\t\t\ta2 /= n;\n\t\t\tdouble a = Math.sqrt(a2);\n\n\t\t\tSystem.out.printf(\"%.8f\\n\", a);\n\t\t}\n\t\t//System.out.println();\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\tint[] scores = new int[n];\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\t//System.out.print(i + \" : \");\n\t\t\t\t//System.out.println(scores[i]);\n\t\t\t\tsum += scores[i];\n\t\t\t}\n\n\t\t\tdouble ave = (double) sum / n;\n\t\t\t//System.out.println(\"ave : \" + ave);\n\n\t\t\tdouble a2 = 0;\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\ta2 += (scores[i] - ave) * (scores[i] - ave);\n\t\t\t}\n\t\t\ta2 /= n;\n\t\t\tdouble a = Math.sqrt(a2);\n\n\t\t\tSystem.out.printf(\"%.8f\\n\", a);\n\t\t}", "true", "{\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n == 0) break;\n\t\t\tint[] scores = new int[n];\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\t//System.out.print(i + \" : \");\n\t\t\t\t//System.out.println(scores[i]);\n\t\t\t\tsum += scores[i];\n\t\t\t}\n\n\t\t\tdouble ave = (double) sum / n;\n\t\t\t//System.out.println(\"ave : \" + ave);\n\n\t\t\tdouble a2 = 0;\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\ta2 += (scores[i] - ave) * (scores[i] - ave);\n\t\t\t}\n\t\t\ta2 /= n;\n\t\t\tdouble a = Math.sqrt(a2);\n\n\t\t\tSystem.out.printf(\"%.8f\\n\", a);\n\t\t}", "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", "int sum = 0;", "sum", "0", "for(int i = 0;i < n;i++){\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t\t//System.out.print(i + \" : \");\n\t\t\t\t//System.out.println(scores[i]);\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\t//System.out.print(i + \" : \");\n\t\t\t\t//System.out.println(scores[i]);\n\t\t\t\tsum += scores[i];\n\t\t\t}", "{\n\t\t\t\tscores[i] = sc.nextInt();\n\t\t\t\t//System.out.print(i + \" : \");\n\t\t\t\t//System.out.println(scores[i]);\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 = (double) sum / n;", "ave", "(double) sum / n", "(double) sum", "n", "double a2 = 0;", "a2", "0", "for(int i = 0;i < n;i++){\n\t\t\t\ta2 += (scores[i] - ave) * (scores[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\ta2 += (scores[i] - ave) * (scores[i] - ave);\n\t\t\t}", "{\n\t\t\t\ta2 += (scores[i] - ave) * (scores[i] - ave);\n\t\t\t}", "a2 += (scores[i] - ave) * (scores[i] - ave)", "a2", "(scores[i] - ave) * (scores[i] - ave)", "(scores[i] - ave)", "scores[i]", "scores", "i", "ave", "(scores[i] - ave)", "scores[i]", "scores", "i", "ave", "a2 /= n", "a2", "n", "double 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", "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\t\t\tif(n == 0) break;\n\t\t\tint[] scores = new int[n];\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\t//System.out.print(i + \" : \");\n\t\t\t\t//System.out.println(scores[i]);\n\t\t\t\tsum += scores[i];\n\t\t\t}\n\n\t\t\tdouble ave = (double) sum / n;\n\t\t\t//System.out.println(\"ave : \" + ave);\n\n\t\t\tdouble a2 = 0;\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\ta2 += (scores[i] - ave) * (scores[i] - ave);\n\t\t\t}\n\t\t\ta2 /= n;\n\t\t\tdouble a = Math.sqrt(a2);\n\n\t\t\tSystem.out.printf(\"%.8f\\n\", a);\n\t\t}\n\t\t//System.out.println();\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\t\t\tif(n == 0) break;\n\t\t\tint[] scores = new int[n];\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\t//System.out.print(i + \" : \");\n\t\t\t\t//System.out.println(scores[i]);\n\t\t\t\tsum += scores[i];\n\t\t\t}\n\n\t\t\tdouble ave = (double) sum / n;\n\t\t\t//System.out.println(\"ave : \" + ave);\n\n\t\t\tdouble a2 = 0;\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\ta2 += (scores[i] - ave) * (scores[i] - ave);\n\t\t\t}\n\t\t\ta2 /= n;\n\t\t\tdouble a = Math.sqrt(a2);\n\n\t\t\tSystem.out.printf(\"%.8f\\n\", a);\n\t\t}\n\t\t//System.out.println();\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(); //System.out.print(i + " : "); //System.out.println(scores[i]); sum += scores[i]; } double ave = (double) sum / n; //System.out.println("ave : " + ave); double a2 = 0; for(int i = 0;i < n;i++){ a2 += (scores[i] - ave) * (scores[i] - ave); } a2 /= n; double a = Math.sqrt(a2); System.out.printf("%.8f\n", a); } //System.out.println(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 17, 41, 13, 41, 13, 17, 41, 13, 11, 1, 0, 13, 17, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 41, 13, 20, 13, 14, 2, 13, 17, 30, 3, 30, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 2, 13, 17, 4, 18, 13, 0, 13, 18, 13, 2, 13, 17, 0, 13, 2, 13, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 13, 18, 13, 2, 13, 17, 2, 13, 18, 13, 2, 13, 17, 0, 13, 4, 18, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 0, 13, 17, 0, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 141, 5 ], [ 141, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 8, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 33, 34 ], [ 34, 35 ], [ 28, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 37, 43 ], [ 43, 44 ], [ 43, 45 ], [ 37, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 47, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 54, 62 ], [ 62, 63 ], [ 63, 64 ], [ 54, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 67, 73 ], [ 73, 74 ], [ 74, 75 ], [ 66, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 53, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 53, 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 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 108, 110 ], [ 103, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 115, 117 ], [ 53, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 123, 124 ], [ 123, 125 ], [ 53, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 37, 132 ], [ 132, 133 ], [ 132, 134 ], [ 37, 135 ], [ 135, 136 ], [ 135, 137 ], [ 6, 138 ], [ 138, 139 ], [ 0, 140 ], [ 140, 141 ], [ 140, 142 ] ]
[ "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,j,S=0;\n double avr,O=0,s;\n for(i=0; ;i++){\n n=sc.nextInt();\n int array[]=new int[n];\n if(n==0){\n break;\n }else{\n for(j=1;j<=n;j++){\n array[j-1]=sc.nextInt();\n S+=array[j-1];\n }\n avr=S/(double)n;\n for(j=1;j<=n;j++){\n O+=(avr-array[j-1])*(avr-array[j-1]); \n }\n s=Math.sqrt(O/n);\n System.out.println(s);\n }\n S=0;\n O=0;\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,j,S=0;\n double avr,O=0,s;\n for(i=0; ;i++){\n n=sc.nextInt();\n int array[]=new int[n];\n if(n==0){\n break;\n }else{\n for(j=1;j<=n;j++){\n array[j-1]=sc.nextInt();\n S+=array[j-1];\n }\n avr=S/(double)n;\n for(j=1;j<=n;j++){\n O+=(avr-array[j-1])*(avr-array[j-1]); \n }\n s=Math.sqrt(O/n);\n System.out.println(s);\n }\n S=0;\n O=0;\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int i,n,j,S=0;\n double avr,O=0,s;\n for(i=0; ;i++){\n n=sc.nextInt();\n int array[]=new int[n];\n if(n==0){\n break;\n }else{\n for(j=1;j<=n;j++){\n array[j-1]=sc.nextInt();\n S+=array[j-1];\n }\n avr=S/(double)n;\n for(j=1;j<=n;j++){\n O+=(avr-array[j-1])*(avr-array[j-1]); \n }\n s=Math.sqrt(O/n);\n System.out.println(s);\n }\n S=0;\n O=0;\n }\n }", "main", "{\n Scanner sc=new Scanner(System.in);\n int i,n,j,S=0;\n double avr,O=0,s;\n for(i=0; ;i++){\n n=sc.nextInt();\n int array[]=new int[n];\n if(n==0){\n break;\n }else{\n for(j=1;j<=n;j++){\n array[j-1]=sc.nextInt();\n S+=array[j-1];\n }\n avr=S/(double)n;\n for(j=1;j<=n;j++){\n O+=(avr-array[j-1])*(avr-array[j-1]); \n }\n s=Math.sqrt(O/n);\n System.out.println(s);\n }\n S=0;\n O=0;\n }\n }", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "int i", "i", "n", "n", "j", "j", "S=0;", "S", "0", "double avr", "avr", "O=0", "O", "0", "s;", "s", "for(i=0; ;i++){\n n=sc.nextInt();\n int array[]=new int[n];\n if(n==0){\n break;\n }else{\n for(j=1;j<=n;j++){\n array[j-1]=sc.nextInt();\n S+=array[j-1];\n }\n avr=S/(double)n;\n for(j=1;j<=n;j++){\n O+=(avr-array[j-1])*(avr-array[j-1]); \n }\n s=Math.sqrt(O/n);\n System.out.println(s);\n }\n S=0;\n O=0;\n }", "i=0;", "i=0", "i", "0", "i++", "i++", "i", "{\n n=sc.nextInt();\n int array[]=new int[n];\n if(n==0){\n break;\n }else{\n for(j=1;j<=n;j++){\n array[j-1]=sc.nextInt();\n S+=array[j-1];\n }\n avr=S/(double)n;\n for(j=1;j<=n;j++){\n O+=(avr-array[j-1])*(avr-array[j-1]); \n }\n s=Math.sqrt(O/n);\n System.out.println(s);\n }\n S=0;\n O=0;\n }", "{\n n=sc.nextInt();\n int array[]=new int[n];\n if(n==0){\n break;\n }else{\n for(j=1;j<=n;j++){\n array[j-1]=sc.nextInt();\n S+=array[j-1];\n }\n avr=S/(double)n;\n for(j=1;j<=n;j++){\n O+=(avr-array[j-1])*(avr-array[j-1]); \n }\n s=Math.sqrt(O/n);\n System.out.println(s);\n }\n S=0;\n O=0;\n }", "n=sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "int array[]=new int[n];", "array", "new int[n]", "n", "if(n==0){\n break;\n }else{\n for(j=1;j<=n;j++){\n array[j-1]=sc.nextInt();\n S+=array[j-1];\n }\n avr=S/(double)n;\n for(j=1;j<=n;j++){\n O+=(avr-array[j-1])*(avr-array[j-1]); \n }\n s=Math.sqrt(O/n);\n System.out.println(s);\n }", "n==0", "n", "0", "{\n break;\n }", "break;", "{\n for(j=1;j<=n;j++){\n array[j-1]=sc.nextInt();\n S+=array[j-1];\n }\n avr=S/(double)n;\n for(j=1;j<=n;j++){\n O+=(avr-array[j-1])*(avr-array[j-1]); \n }\n s=Math.sqrt(O/n);\n System.out.println(s);\n }", "for(j=1;j<=n;j++){\n array[j-1]=sc.nextInt();\n S+=array[j-1];\n }", "j=1;", "j=1", "j", "1", "j<=n", "j", "n", "j++", "j++", "j", "{\n array[j-1]=sc.nextInt();\n S+=array[j-1];\n }", "{\n array[j-1]=sc.nextInt();\n S+=array[j-1];\n }", "array[j-1]=sc.nextInt()", "array[j-1]", "array", "j-1", "j", "1", "sc.nextInt()", "sc.nextInt", "sc", "S+=array[j-1]", "S", "array[j-1]", "array", "j-1", "j", "1", "avr=S/(double)n", "avr", "S/(double)n", "S", "(double)n", "for(j=1;j<=n;j++){\n O+=(avr-array[j-1])*(avr-array[j-1]); \n }", "j=1;", "j=1", "j", "1", "j<=n", "j", "n", "j++", "j++", "j", "{\n O+=(avr-array[j-1])*(avr-array[j-1]); \n }", "{\n O+=(avr-array[j-1])*(avr-array[j-1]); \n }", "O+=(avr-array[j-1])*(avr-array[j-1])", "O", "(avr-array[j-1])*(avr-array[j-1])", "(avr-array[j-1])", "avr", "array[j-1]", "array", "j-1", "j", "1", "(avr-array[j-1])", "avr", "array[j-1]", "array", "j-1", "j", "1", "s=Math.sqrt(O/n)", "s", "Math.sqrt(O/n)", "Math.sqrt", "Math", "O/n", "O", "n", "System.out.println(s)", "System.out.println", "System.out", "System", "System.out", "s", "S=0", "S", "0", "O=0", "O", "0", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int i,n,j,S=0;\n double avr,O=0,s;\n for(i=0; ;i++){\n n=sc.nextInt();\n int array[]=new int[n];\n if(n==0){\n break;\n }else{\n for(j=1;j<=n;j++){\n array[j-1]=sc.nextInt();\n S+=array[j-1];\n }\n avr=S/(double)n;\n for(j=1;j<=n;j++){\n O+=(avr-array[j-1])*(avr-array[j-1]); \n }\n s=Math.sqrt(O/n);\n System.out.println(s);\n }\n S=0;\n O=0;\n }\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int i,n,j,S=0;\n double avr,O=0,s;\n for(i=0; ;i++){\n n=sc.nextInt();\n int array[]=new int[n];\n if(n==0){\n break;\n }else{\n for(j=1;j<=n;j++){\n array[j-1]=sc.nextInt();\n S+=array[j-1];\n }\n avr=S/(double)n;\n for(j=1;j<=n;j++){\n O+=(avr-array[j-1])*(avr-array[j-1]); \n }\n s=Math.sqrt(O/n);\n System.out.println(s);\n }\n S=0;\n O=0;\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,n,j,S=0; double avr,O=0,s; for(i=0; ;i++){ n=sc.nextInt(); int array[]=new int[n]; if(n==0){ break; }else{ for(j=1;j<=n;j++){ array[j-1]=sc.nextInt(); S+=array[j-1]; } avr=S/(double)n; for(j=1;j<=n;j++){ O+=(avr-array[j-1])*(avr-array[j-1]); } s=Math.sqrt(O/n); System.out.println(s); } S=0; O=0; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 17, 41, 13, 41, 13, 17, 41, 13, 20, 17, 42, 2, 0, 13, 4, 18, 13, 17, 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, 18, 13, 13, 17, 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, 4, 18, 18, 13, 13, 17, 4, 18, 13, 2, 13, 13, 0, 13, 17, 0, 13, 17, 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 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 8, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 29, 35 ], [ 28, 36 ], [ 36, 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 ], [ 36, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 36, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 36, 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 ], [ 87, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 87, 95 ], [ 36, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 96, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 105, 106 ], [ 105, 107 ], [ 36, 108 ], [ 108, 109 ], [ 108, 110 ], [ 36, 111 ], [ 111, 112 ], [ 111, 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) {\n Scanner scan = new Scanner(System.in);\n\n int n, i, sum = 0;\n double average, a = 0;\n int data[] = new int[1001];\n\n while((n = scan.nextInt()) != 0) {\n for(i = 0; i < n; i++) {\n data[i] = scan.nextInt();\n sum += data[i];\n }\n data[n] = '\\0';\n average = (double)sum / n;\n for(i = 0; i < n; i++) {\n a += Math.pow(data[i] - average, 2);\n }\n System.out.printf(\"%.8f\\n\", Math.sqrt(a / n));\n sum = 0;\n a = 0;\n }\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int n, i, sum = 0;\n double average, a = 0;\n int data[] = new int[1001];\n\n while((n = scan.nextInt()) != 0) {\n for(i = 0; i < n; i++) {\n data[i] = scan.nextInt();\n sum += data[i];\n }\n data[n] = '\\0';\n average = (double)sum / n;\n for(i = 0; i < n; i++) {\n a += Math.pow(data[i] - average, 2);\n }\n System.out.printf(\"%.8f\\n\", Math.sqrt(a / n));\n sum = 0;\n a = 0;\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int n, i, sum = 0;\n double average, a = 0;\n int data[] = new int[1001];\n\n while((n = scan.nextInt()) != 0) {\n for(i = 0; i < n; i++) {\n data[i] = scan.nextInt();\n sum += data[i];\n }\n data[n] = '\\0';\n average = (double)sum / n;\n for(i = 0; i < n; i++) {\n a += Math.pow(data[i] - average, 2);\n }\n System.out.printf(\"%.8f\\n\", Math.sqrt(a / n));\n sum = 0;\n a = 0;\n }\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n\n int n, i, sum = 0;\n double average, a = 0;\n int data[] = new int[1001];\n\n while((n = scan.nextInt()) != 0) {\n for(i = 0; i < n; i++) {\n data[i] = scan.nextInt();\n sum += data[i];\n }\n data[n] = '\\0';\n average = (double)sum / n;\n for(i = 0; i < n; i++) {\n a += Math.pow(data[i] - average, 2);\n }\n System.out.printf(\"%.8f\\n\", Math.sqrt(a / n));\n sum = 0;\n a = 0;\n }\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n", "n", "i", "i", "sum = 0;", "sum", "0", "double average", "average", "a = 0;", "a", "0", "int data[] = new int[1001];", "data", "new int[1001]", "1001", "while((n = scan.nextInt()) != 0) {\n for(i = 0; i < n; i++) {\n data[i] = scan.nextInt();\n sum += data[i];\n }\n data[n] = '\\0';\n average = (double)sum / n;\n for(i = 0; i < n; i++) {\n a += Math.pow(data[i] - average, 2);\n }\n System.out.printf(\"%.8f\\n\", Math.sqrt(a / n));\n sum = 0;\n a = 0;\n }", "(n = scan.nextInt()) != 0", "(n = scan.nextInt())", "n", "scan.nextInt()", "scan.nextInt", "scan", "0", "{\n for(i = 0; i < n; i++) {\n data[i] = scan.nextInt();\n sum += data[i];\n }\n data[n] = '\\0';\n average = (double)sum / n;\n for(i = 0; i < n; i++) {\n a += Math.pow(data[i] - average, 2);\n }\n System.out.printf(\"%.8f\\n\", Math.sqrt(a / n));\n sum = 0;\n a = 0;\n }", "for(i = 0; i < n; i++) {\n data[i] = scan.nextInt();\n sum += data[i];\n }", "i = 0;", "i = 0", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n data[i] = scan.nextInt();\n sum += data[i];\n }", "{\n data[i] = scan.nextInt();\n sum += data[i];\n }", "data[i] = scan.nextInt()", "data[i]", "data", "i", "scan.nextInt()", "scan.nextInt", "scan", "sum += data[i]", "sum", "data[i]", "data", "i", "data[n] = '\\0'", "data[n]", "data", "n", "'\\0'", "average = (double)sum / n", "average", "(double)sum / n", "(double)sum", "n", "for(i = 0; i < n; i++) {\n a += Math.pow(data[i] - average, 2);\n }", "i = 0;", "i = 0", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n a += Math.pow(data[i] - average, 2);\n }", "{\n a += Math.pow(data[i] - average, 2);\n }", "a += Math.pow(data[i] - average, 2)", "a", "Math.pow(data[i] - average, 2)", "Math.pow", "Math", "data[i] - average", "data[i]", "data", "i", "average", "2", "System.out.printf(\"%.8f\\n\", Math.sqrt(a / n))", "System.out.printf", "System.out", "System", "System.out", "\"%.8f\\n\"", "Math.sqrt(a / n)", "Math.sqrt", "Math", "a / n", "a", "n", "sum = 0", "sum", "0", "a = 0", "a", "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, sum = 0;\n double average, a = 0;\n int data[] = new int[1001];\n\n while((n = scan.nextInt()) != 0) {\n for(i = 0; i < n; i++) {\n data[i] = scan.nextInt();\n sum += data[i];\n }\n data[n] = '\\0';\n average = (double)sum / n;\n for(i = 0; i < n; i++) {\n a += Math.pow(data[i] - average, 2);\n }\n System.out.printf(\"%.8f\\n\", Math.sqrt(a / n));\n sum = 0;\n a = 0;\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, sum = 0;\n double average, a = 0;\n int data[] = new int[1001];\n\n while((n = scan.nextInt()) != 0) {\n for(i = 0; i < n; i++) {\n data[i] = scan.nextInt();\n sum += data[i];\n }\n data[n] = '\\0';\n average = (double)sum / n;\n for(i = 0; i < n; i++) {\n a += Math.pow(data[i] - average, 2);\n }\n System.out.printf(\"%.8f\\n\", Math.sqrt(a / n));\n sum = 0;\n a = 0;\n }\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n, i, sum = 0; double average, a = 0; int data[] = new int[1001]; while((n = scan.nextInt()) != 0) { for(i = 0; i < n; i++) { data[i] = scan.nextInt(); sum += data[i]; } data[n] = '\0'; average = (double)sum / n; for(i = 0; i < n; i++) { a += Math.pow(data[i] - average, 2); } System.out.printf("%.8f\n", Math.sqrt(a / n)); sum = 0; a = 0; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 17, 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, 18, 13, 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, 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 ], [ 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 ], [ 24, 25 ], [ 23, 26 ], [ 22, 27 ], [ 16, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 16, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 16, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 16, 45 ], [ 45, 46 ], [ 45, 47 ], [ 16, 48 ], [ 48, 49 ], [ 48, 50 ], [ 16, 51 ], [ 51, 52 ], [ 51, 53 ], [ 16, 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 ], [ 16, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 16, 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 ], [ 105, 106 ], [ 104, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 104, 112 ], [ 103, 113 ], [ 16, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 119, 120 ], [ 120, 121 ], [ 119, 122 ], [ 6, 123 ], [ 123, 124 ] ]
[ "import java.io.*;\nclass Main\n{\n public static void main(String args[])throws IOException\n {\n\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\t\n\tString a;\n\twhile(true)\n\t {\n\t\ta=input.readLine();\n\t\tif(a.equals(\"0\"))break;\t\t\t\n\t\tint n=Integer.parseInt(a);\n\t\tString c=input.readLine();\n\t\tString b[]=c.split(\" \");\n\t\tdouble d=0,sum=0;\n\t\tdouble e[]=new double[n];\n\t\tfor(int j=0;j<n;j++)\n\t\t {\t\t\t\n\t\t\te[j]=Double.parseDouble(b[j]);\n\t\t\tsum+=e[j];\n\t\t }\n\t\t\n\t\t\tdouble m=sum/n;\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++)\n\t\t\t {\n\t\t\t\td+=(Math.pow((e[i]-m),2)/n);\n\t\t\t } \n\t\t\t\n\t\tSystem.out.println(Math.sqrt(d));\n\t }\n }\n}\n\n\n\t\t\t ", "import java.io.*;", "io.*", "java", "class Main\n{\n public static void main(String args[])throws IOException\n {\n\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\t\n\tString a;\n\twhile(true)\n\t {\n\t\ta=input.readLine();\n\t\tif(a.equals(\"0\"))break;\t\t\t\n\t\tint n=Integer.parseInt(a);\n\t\tString c=input.readLine();\n\t\tString b[]=c.split(\" \");\n\t\tdouble d=0,sum=0;\n\t\tdouble e[]=new double[n];\n\t\tfor(int j=0;j<n;j++)\n\t\t {\t\t\t\n\t\t\te[j]=Double.parseDouble(b[j]);\n\t\t\tsum+=e[j];\n\t\t }\n\t\t\n\t\t\tdouble m=sum/n;\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++)\n\t\t\t {\n\t\t\t\td+=(Math.pow((e[i]-m),2)/n);\n\t\t\t } \n\t\t\t\n\t\tSystem.out.println(Math.sqrt(d));\n\t }\n }\n}", "Main", "public static void main(String args[])throws IOException\n {\n\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\t\n\tString a;\n\twhile(true)\n\t {\n\t\ta=input.readLine();\n\t\tif(a.equals(\"0\"))break;\t\t\t\n\t\tint n=Integer.parseInt(a);\n\t\tString c=input.readLine();\n\t\tString b[]=c.split(\" \");\n\t\tdouble d=0,sum=0;\n\t\tdouble e[]=new double[n];\n\t\tfor(int j=0;j<n;j++)\n\t\t {\t\t\t\n\t\t\te[j]=Double.parseDouble(b[j]);\n\t\t\tsum+=e[j];\n\t\t }\n\t\t\n\t\t\tdouble m=sum/n;\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++)\n\t\t\t {\n\t\t\t\td+=(Math.pow((e[i]-m),2)/n);\n\t\t\t } \n\t\t\t\n\t\tSystem.out.println(Math.sqrt(d));\n\t }\n }", "main", "{\n\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\t\n\tString a;\n\twhile(true)\n\t {\n\t\ta=input.readLine();\n\t\tif(a.equals(\"0\"))break;\t\t\t\n\t\tint n=Integer.parseInt(a);\n\t\tString c=input.readLine();\n\t\tString b[]=c.split(\" \");\n\t\tdouble d=0,sum=0;\n\t\tdouble e[]=new double[n];\n\t\tfor(int j=0;j<n;j++)\n\t\t {\t\t\t\n\t\t\te[j]=Double.parseDouble(b[j]);\n\t\t\tsum+=e[j];\n\t\t }\n\t\t\n\t\t\tdouble m=sum/n;\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++)\n\t\t\t {\n\t\t\t\td+=(Math.pow((e[i]-m),2)/n);\n\t\t\t } \n\t\t\t\n\t\tSystem.out.println(Math.sqrt(d));\n\t }\n }", "BufferedReader input=new BufferedReader(new InputStreamReader(System.in));", "input", "new BufferedReader(new InputStreamReader(System.in))", "String a;", "a", "while(true)\n\t {\n\t\ta=input.readLine();\n\t\tif(a.equals(\"0\"))break;\t\t\t\n\t\tint n=Integer.parseInt(a);\n\t\tString c=input.readLine();\n\t\tString b[]=c.split(\" \");\n\t\tdouble d=0,sum=0;\n\t\tdouble e[]=new double[n];\n\t\tfor(int j=0;j<n;j++)\n\t\t {\t\t\t\n\t\t\te[j]=Double.parseDouble(b[j]);\n\t\t\tsum+=e[j];\n\t\t }\n\t\t\n\t\t\tdouble m=sum/n;\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++)\n\t\t\t {\n\t\t\t\td+=(Math.pow((e[i]-m),2)/n);\n\t\t\t } \n\t\t\t\n\t\tSystem.out.println(Math.sqrt(d));\n\t }", "true", "{\n\t\ta=input.readLine();\n\t\tif(a.equals(\"0\"))break;\t\t\t\n\t\tint n=Integer.parseInt(a);\n\t\tString c=input.readLine();\n\t\tString b[]=c.split(\" \");\n\t\tdouble d=0,sum=0;\n\t\tdouble e[]=new double[n];\n\t\tfor(int j=0;j<n;j++)\n\t\t {\t\t\t\n\t\t\te[j]=Double.parseDouble(b[j]);\n\t\t\tsum+=e[j];\n\t\t }\n\t\t\n\t\t\tdouble m=sum/n;\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++)\n\t\t\t {\n\t\t\t\td+=(Math.pow((e[i]-m),2)/n);\n\t\t\t } \n\t\t\t\n\t\tSystem.out.println(Math.sqrt(d));\n\t }", "a=input.readLine()", "a", "input.readLine()", "input.readLine", "input", "if(a.equals(\"0\"))break;", "a.equals(\"0\")", "a.equals", "a", "\"0\"", "break;", "int n=Integer.parseInt(a);", "n", "Integer.parseInt(a)", "Integer.parseInt", "Integer", "a", "String c=input.readLine();", "c", "input.readLine()", "input.readLine", "input", "String b[]=c.split(\" \");", "b", "c.split(\" \")", "c.split", "c", "\" \"", "double d=0", "d", "0", "sum=0;", "sum", "0", "double e[]=new double[n];", "e", "new double[n]", "n", "for(int j=0;j<n;j++)\n\t\t {\t\t\t\n\t\t\te[j]=Double.parseDouble(b[j]);\n\t\t\tsum+=e[j];\n\t\t }", "int j=0;", "int j=0;", "j", "0", "j<n", "j", "n", "j++", "j++", "j", "{\t\t\t\n\t\t\te[j]=Double.parseDouble(b[j]);\n\t\t\tsum+=e[j];\n\t\t }", "{\t\t\t\n\t\t\te[j]=Double.parseDouble(b[j]);\n\t\t\tsum+=e[j];\n\t\t }", "e[j]=Double.parseDouble(b[j])", "e[j]", "e", "j", "Double.parseDouble(b[j])", "Double.parseDouble", "Double", "b[j]", "b", "j", "sum+=e[j]", "sum", "e[j]", "e", "j", "double m=sum/n;", "m", "sum/n", "sum", "n", "for(int i=0;i<n;i++)\n\t\t\t {\n\t\t\t\td+=(Math.pow((e[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\td+=(Math.pow((e[i]-m),2)/n);\n\t\t\t }", "{\n\t\t\t\td+=(Math.pow((e[i]-m),2)/n);\n\t\t\t }", "d+=(Math.pow((e[i]-m),2)/n)", "d", "(Math.pow((e[i]-m),2)/n)", "Math.pow((e[i]-m),2)", "Math.pow", "Math", "(e[i]-m)", "e[i]", "e", "i", "m", "2", "n", "System.out.println(Math.sqrt(d))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(d)", "Math.sqrt", "Math", "d", "String args[]", "args" ]
import java.io.*; class Main { public static void main(String args[])throws IOException { BufferedReader input=new BufferedReader(new InputStreamReader(System.in)); String a; while(true) { a=input.readLine(); if(a.equals("0"))break; int n=Integer.parseInt(a); String c=input.readLine(); String b[]=c.split(" "); double d=0,sum=0; double e[]=new double[n]; for(int j=0;j<n;j++) { e[j]=Double.parseDouble(b[j]); sum+=e[j]; } double m=sum/n; for(int i=0;i<n;i++) { d+=(Math.pow((e[i]-m),2)/n); } System.out.println(Math.sqrt(d)); } } }
[ 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, 20, 13, 41, 13, 20, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 20, 0, 18, 13, 13, 13, 0, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 20, 17, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 4, 18, 18, 13, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 4, 18, 4, 18, 13, 20, 17, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 123, 8 ], [ 123, 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, 32 ], [ 32, 33 ], [ 32, 34 ], [ 17, 35 ], [ 35, 36 ], [ 35, 37 ], [ 17, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 38, 46 ], [ 46, 47 ], [ 47, 48 ], [ 38, 49 ], [ 50, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 50, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 17, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 67, 71 ], [ 67, 72 ], [ 72, 73 ], [ 72, 74 ], [ 17, 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 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 93, 101 ], [ 17, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 112, 115 ], [ 112, 116 ], [ 112, 117 ], [ 117, 118 ], [ 117, 119 ], [ 9, 120 ], [ 120, 121 ], [ 0, 122 ], [ 122, 123 ], [ 122, 124 ] ]
[ "import java.math.BigDecimal;\nimport java.util.Scanner;\n\n//Solution:\n\npublic class Main { \n public static void main(String[] args) {\n Scanner f = new Scanner(System.in);\n // fill in the dictionary with the initial value\n while(true) {\n int num = f.nextInt();\n if(num == 0) break;\n BigDecimal[] entries = new BigDecimal[num];\n BigDecimal sum = new BigDecimal(0);\n BigDecimal std = new BigDecimal(0);\n for (int i = 0; i < num; i++) {\n BigDecimal temp = new BigDecimal(f.nextInt());\n entries[i] = temp;\n sum = sum.add(temp);\n }\n BigDecimal average = sum.divide(new BigDecimal(num),6, BigDecimal.ROUND_HALF_UP);\n for (int i = 0; i < num; i++) {\n std = std.add(entries[i].subtract(average).pow(2));\n }\n System.out.println(Math.sqrt(std.divide(new BigDecimal(num),6, BigDecimal.ROUND_HALF_UP).doubleValue()));\n }\n }\n}", "import java.math.BigDecimal;", "BigDecimal", "java.math", "import java.util.Scanner;", "Scanner", "java.util", "public class Main { \n public static void main(String[] args) {\n Scanner f = new Scanner(System.in);\n // fill in the dictionary with the initial value\n while(true) {\n int num = f.nextInt();\n if(num == 0) break;\n BigDecimal[] entries = new BigDecimal[num];\n BigDecimal sum = new BigDecimal(0);\n BigDecimal std = new BigDecimal(0);\n for (int i = 0; i < num; i++) {\n BigDecimal temp = new BigDecimal(f.nextInt());\n entries[i] = temp;\n sum = sum.add(temp);\n }\n BigDecimal average = sum.divide(new BigDecimal(num),6, BigDecimal.ROUND_HALF_UP);\n for (int i = 0; i < num; i++) {\n std = std.add(entries[i].subtract(average).pow(2));\n }\n System.out.println(Math.sqrt(std.divide(new BigDecimal(num),6, BigDecimal.ROUND_HALF_UP).doubleValue()));\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner f = new Scanner(System.in);\n // fill in the dictionary with the initial value\n while(true) {\n int num = f.nextInt();\n if(num == 0) break;\n BigDecimal[] entries = new BigDecimal[num];\n BigDecimal sum = new BigDecimal(0);\n BigDecimal std = new BigDecimal(0);\n for (int i = 0; i < num; i++) {\n BigDecimal temp = new BigDecimal(f.nextInt());\n entries[i] = temp;\n sum = sum.add(temp);\n }\n BigDecimal average = sum.divide(new BigDecimal(num),6, BigDecimal.ROUND_HALF_UP);\n for (int i = 0; i < num; i++) {\n std = std.add(entries[i].subtract(average).pow(2));\n }\n System.out.println(Math.sqrt(std.divide(new BigDecimal(num),6, BigDecimal.ROUND_HALF_UP).doubleValue()));\n }\n }", "main", "{\n Scanner f = new Scanner(System.in);\n // fill in the dictionary with the initial value\n while(true) {\n int num = f.nextInt();\n if(num == 0) break;\n BigDecimal[] entries = new BigDecimal[num];\n BigDecimal sum = new BigDecimal(0);\n BigDecimal std = new BigDecimal(0);\n for (int i = 0; i < num; i++) {\n BigDecimal temp = new BigDecimal(f.nextInt());\n entries[i] = temp;\n sum = sum.add(temp);\n }\n BigDecimal average = sum.divide(new BigDecimal(num),6, BigDecimal.ROUND_HALF_UP);\n for (int i = 0; i < num; i++) {\n std = std.add(entries[i].subtract(average).pow(2));\n }\n System.out.println(Math.sqrt(std.divide(new BigDecimal(num),6, BigDecimal.ROUND_HALF_UP).doubleValue()));\n }\n }", "Scanner f = new Scanner(System.in);", "f", "new Scanner(System.in)", "while(true) {\n int num = f.nextInt();\n if(num == 0) break;\n BigDecimal[] entries = new BigDecimal[num];\n BigDecimal sum = new BigDecimal(0);\n BigDecimal std = new BigDecimal(0);\n for (int i = 0; i < num; i++) {\n BigDecimal temp = new BigDecimal(f.nextInt());\n entries[i] = temp;\n sum = sum.add(temp);\n }\n BigDecimal average = sum.divide(new BigDecimal(num),6, BigDecimal.ROUND_HALF_UP);\n for (int i = 0; i < num; i++) {\n std = std.add(entries[i].subtract(average).pow(2));\n }\n System.out.println(Math.sqrt(std.divide(new BigDecimal(num),6, BigDecimal.ROUND_HALF_UP).doubleValue()));\n }", "true", "{\n int num = f.nextInt();\n if(num == 0) break;\n BigDecimal[] entries = new BigDecimal[num];\n BigDecimal sum = new BigDecimal(0);\n BigDecimal std = new BigDecimal(0);\n for (int i = 0; i < num; i++) {\n BigDecimal temp = new BigDecimal(f.nextInt());\n entries[i] = temp;\n sum = sum.add(temp);\n }\n BigDecimal average = sum.divide(new BigDecimal(num),6, BigDecimal.ROUND_HALF_UP);\n for (int i = 0; i < num; i++) {\n std = std.add(entries[i].subtract(average).pow(2));\n }\n System.out.println(Math.sqrt(std.divide(new BigDecimal(num),6, BigDecimal.ROUND_HALF_UP).doubleValue()));\n }", "int num = f.nextInt();", "num", "f.nextInt()", "f.nextInt", "f", "if(num == 0) break;", "num == 0", "num", "0", "break;", "BigDecimal[] entries = new BigDecimal[num];", "entries", "new BigDecimal[num]", "num", "BigDecimal sum = new BigDecimal(0);", "sum", "new BigDecimal(0)", "BigDecimal std = new BigDecimal(0);", "std", "new BigDecimal(0)", "for (int i = 0; i < num; i++) {\n BigDecimal temp = new BigDecimal(f.nextInt());\n entries[i] = temp;\n sum = sum.add(temp);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < num", "i", "num", "i++", "i++", "i", "{\n BigDecimal temp = new BigDecimal(f.nextInt());\n entries[i] = temp;\n sum = sum.add(temp);\n }", "{\n BigDecimal temp = new BigDecimal(f.nextInt());\n entries[i] = temp;\n sum = sum.add(temp);\n }", "BigDecimal temp = new BigDecimal(f.nextInt());", "temp", "new BigDecimal(f.nextInt())", "entries[i] = temp", "entries[i]", "entries", "i", "temp", "sum = sum.add(temp)", "sum", "sum.add(temp)", "sum.add", "sum", "temp", "BigDecimal average = sum.divide(new BigDecimal(num),6, BigDecimal.ROUND_HALF_UP);", "average", "sum.divide(new BigDecimal(num),6, BigDecimal.ROUND_HALF_UP)", "sum.divide", "sum", "new BigDecimal(num)", "6", "BigDecimal.ROUND_HALF_UP", "BigDecimal", "BigDecimal.ROUND_HALF_UP", "for (int i = 0; i < num; i++) {\n std = std.add(entries[i].subtract(average).pow(2));\n }", "int i = 0;", "int i = 0;", "i", "0", "i < num", "i", "num", "i++", "i++", "i", "{\n std = std.add(entries[i].subtract(average).pow(2));\n }", "{\n std = std.add(entries[i].subtract(average).pow(2));\n }", "std = std.add(entries[i].subtract(average).pow(2))", "std", "std.add(entries[i].subtract(average).pow(2))", "std.add", "std", "entries[i].subtract(average).pow(2)", "entries[i].subtract(average).pow", "entries[i].subtract(average)", "entries[i].subtract", "entries[i]", "entries", "i", "average", "2", "System.out.println(Math.sqrt(std.divide(new BigDecimal(num),6, BigDecimal.ROUND_HALF_UP).doubleValue()))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(std.divide(new BigDecimal(num),6, BigDecimal.ROUND_HALF_UP).doubleValue())", "Math.sqrt", "Math", "std.divide(new BigDecimal(num),6, BigDecimal.ROUND_HALF_UP).doubleValue()", "std.divide(new BigDecimal(num),6, BigDecimal.ROUND_HALF_UP).doubleValue", "std.divide(new BigDecimal(num),6, BigDecimal.ROUND_HALF_UP)", "std.divide", "std", "new BigDecimal(num)", "6", "BigDecimal.ROUND_HALF_UP", "BigDecimal", "BigDecimal.ROUND_HALF_UP", "String[] args", "args", "public class Main { \n public static void main(String[] args) {\n Scanner f = new Scanner(System.in);\n // fill in the dictionary with the initial value\n while(true) {\n int num = f.nextInt();\n if(num == 0) break;\n BigDecimal[] entries = new BigDecimal[num];\n BigDecimal sum = new BigDecimal(0);\n BigDecimal std = new BigDecimal(0);\n for (int i = 0; i < num; i++) {\n BigDecimal temp = new BigDecimal(f.nextInt());\n entries[i] = temp;\n sum = sum.add(temp);\n }\n BigDecimal average = sum.divide(new BigDecimal(num),6, BigDecimal.ROUND_HALF_UP);\n for (int i = 0; i < num; i++) {\n std = std.add(entries[i].subtract(average).pow(2));\n }\n System.out.println(Math.sqrt(std.divide(new BigDecimal(num),6, BigDecimal.ROUND_HALF_UP).doubleValue()));\n }\n }\n}", "public class Main { \n public static void main(String[] args) {\n Scanner f = new Scanner(System.in);\n // fill in the dictionary with the initial value\n while(true) {\n int num = f.nextInt();\n if(num == 0) break;\n BigDecimal[] entries = new BigDecimal[num];\n BigDecimal sum = new BigDecimal(0);\n BigDecimal std = new BigDecimal(0);\n for (int i = 0; i < num; i++) {\n BigDecimal temp = new BigDecimal(f.nextInt());\n entries[i] = temp;\n sum = sum.add(temp);\n }\n BigDecimal average = sum.divide(new BigDecimal(num),6, BigDecimal.ROUND_HALF_UP);\n for (int i = 0; i < num; i++) {\n std = std.add(entries[i].subtract(average).pow(2));\n }\n System.out.println(Math.sqrt(std.divide(new BigDecimal(num),6, BigDecimal.ROUND_HALF_UP).doubleValue()));\n }\n }\n}", "Main" ]
import java.math.BigDecimal; import java.util.Scanner; //Solution: public class Main { public static void main(String[] args) { Scanner f = new Scanner(System.in); // fill in the dictionary with the initial value while(true) { int num = f.nextInt(); if(num == 0) break; BigDecimal[] entries = new BigDecimal[num]; BigDecimal sum = new BigDecimal(0); BigDecimal std = new BigDecimal(0); for (int i = 0; i < num; i++) { BigDecimal temp = new BigDecimal(f.nextInt()); entries[i] = temp; sum = sum.add(temp); } BigDecimal average = sum.divide(new BigDecimal(num),6, BigDecimal.ROUND_HALF_UP); for (int i = 0; i < num; i++) { std = std.add(entries[i].subtract(average).pow(2)); } System.out.println(Math.sqrt(std.divide(new BigDecimal(num),6, BigDecimal.ROUND_HALF_UP).doubleValue())); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 41, 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, 41, 13, 4, 18, 13, 0, 18, 13, 13, 13, 0, 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, 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 ], [ 122, 5 ], [ 122, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 16, 20 ], [ 20, 21 ], [ 20, 22 ], [ 16, 23 ], [ 23, 24 ], [ 23, 25 ], [ 16, 26 ], [ 26, 27 ], [ 26, 28 ], [ 16, 29 ], [ 29, 30 ], [ 29, 31 ], [ 16, 32 ], [ 32, 33 ], [ 16, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 16, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 16, 44 ], [ 44, 45 ], [ 44, 46 ], [ 16, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 48, 56 ], [ 56, 57 ], [ 57, 58 ], [ 48, 59 ], [ 60, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 60, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 60, 71 ], [ 71, 72 ], [ 71, 73 ], [ 16, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 16, 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 ], [ 96, 98 ], [ 95, 99 ], [ 94, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 16, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 110, 111 ], [ 110, 112 ], [ 16, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 6, 119 ], [ 119, 120 ], [ 0, 121 ], [ 121, 122 ], [ 121, 123 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while (sc.hasNext()) {\n int i = 0;\n double m = 0, sum = 0, a = 0, b = 0;\n double[] rem;\n\n int n = sc.nextInt();\n if(n==0)\n break;\n\n rem = new double[n];\n \n for (i = 0; i < n; i++) {\n int num = sc.nextInt();\n rem[i] = num;\n sum += num;\n }\n\n m = sum / n;\n\n for (i = 0; i < n; i++) {\n b += (rem[i] - m) * (rem[i] - m);\n }\n a = Math.sqrt(b / n);\n\n System.out.println(a);\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\n while (sc.hasNext()) {\n int i = 0;\n double m = 0, sum = 0, a = 0, b = 0;\n double[] rem;\n\n int n = sc.nextInt();\n if(n==0)\n break;\n\n rem = new double[n];\n \n for (i = 0; i < n; i++) {\n int num = sc.nextInt();\n rem[i] = num;\n sum += num;\n }\n\n m = sum / n;\n\n for (i = 0; i < n; i++) {\n b += (rem[i] - m) * (rem[i] - m);\n }\n a = Math.sqrt(b / n);\n\n System.out.println(a);\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while (sc.hasNext()) {\n int i = 0;\n double m = 0, sum = 0, a = 0, b = 0;\n double[] rem;\n\n int n = sc.nextInt();\n if(n==0)\n break;\n\n rem = new double[n];\n \n for (i = 0; i < n; i++) {\n int num = sc.nextInt();\n rem[i] = num;\n sum += num;\n }\n\n m = sum / n;\n\n for (i = 0; i < n; i++) {\n b += (rem[i] - m) * (rem[i] - m);\n }\n a = Math.sqrt(b / n);\n\n System.out.println(a);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n while (sc.hasNext()) {\n int i = 0;\n double m = 0, sum = 0, a = 0, b = 0;\n double[] rem;\n\n int n = sc.nextInt();\n if(n==0)\n break;\n\n rem = new double[n];\n \n for (i = 0; i < n; i++) {\n int num = sc.nextInt();\n rem[i] = num;\n sum += num;\n }\n\n m = sum / n;\n\n for (i = 0; i < n; i++) {\n b += (rem[i] - m) * (rem[i] - m);\n }\n a = Math.sqrt(b / n);\n\n System.out.println(a);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (sc.hasNext()) {\n int i = 0;\n double m = 0, sum = 0, a = 0, b = 0;\n double[] rem;\n\n int n = sc.nextInt();\n if(n==0)\n break;\n\n rem = new double[n];\n \n for (i = 0; i < n; i++) {\n int num = sc.nextInt();\n rem[i] = num;\n sum += num;\n }\n\n m = sum / n;\n\n for (i = 0; i < n; i++) {\n b += (rem[i] - m) * (rem[i] - m);\n }\n a = Math.sqrt(b / n);\n\n System.out.println(a);\n }", "sc.hasNext()", "sc.hasNext", "sc", "{\n int i = 0;\n double m = 0, sum = 0, a = 0, b = 0;\n double[] rem;\n\n int n = sc.nextInt();\n if(n==0)\n break;\n\n rem = new double[n];\n \n for (i = 0; i < n; i++) {\n int num = sc.nextInt();\n rem[i] = num;\n sum += num;\n }\n\n m = sum / n;\n\n for (i = 0; i < n; i++) {\n b += (rem[i] - m) * (rem[i] - m);\n }\n a = Math.sqrt(b / n);\n\n System.out.println(a);\n }", "int i = 0;", "i", "0", "double m = 0", "m", "0", "sum = 0", "sum", "0", "a = 0", "a", "0", "b = 0;", "b", "0", "double[] rem;", "rem", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n==0)\n break;", "n==0", "n", "0", "break;", "rem = new double[n]", "rem", "new double[n]", "n", "for (i = 0; i < n; i++) {\n int num = sc.nextInt();\n rem[i] = num;\n sum += num;\n }", "i = 0;", "i = 0", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n int num = sc.nextInt();\n rem[i] = num;\n sum += num;\n }", "{\n int num = sc.nextInt();\n rem[i] = num;\n sum += num;\n }", "int num = sc.nextInt();", "num", "sc.nextInt()", "sc.nextInt", "sc", "rem[i] = num", "rem[i]", "rem", "i", "num", "sum += num", "sum", "num", "m = sum / n", "m", "sum / n", "sum", "n", "for (i = 0; i < n; i++) {\n b += (rem[i] - m) * (rem[i] - m);\n }", "i = 0;", "i = 0", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n b += (rem[i] - m) * (rem[i] - m);\n }", "{\n b += (rem[i] - m) * (rem[i] - m);\n }", "b += (rem[i] - m) * (rem[i] - m)", "b", "(rem[i] - m) * (rem[i] - m)", "(rem[i] - m)", "rem[i]", "rem", "i", "m", "(rem[i] - m)", "rem[i]", "rem", "i", "m", "a = Math.sqrt(b / n)", "a", "Math.sqrt(b / n)", "Math.sqrt", "Math", "b / n", "b", "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 sc = new Scanner(System.in);\n\n while (sc.hasNext()) {\n int i = 0;\n double m = 0, sum = 0, a = 0, b = 0;\n double[] rem;\n\n int n = sc.nextInt();\n if(n==0)\n break;\n\n rem = new double[n];\n \n for (i = 0; i < n; i++) {\n int num = sc.nextInt();\n rem[i] = num;\n sum += num;\n }\n\n m = sum / n;\n\n for (i = 0; i < n; i++) {\n b += (rem[i] - m) * (rem[i] - m);\n }\n a = Math.sqrt(b / n);\n\n System.out.println(a);\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while (sc.hasNext()) {\n int i = 0;\n double m = 0, sum = 0, a = 0, b = 0;\n double[] rem;\n\n int n = sc.nextInt();\n if(n==0)\n break;\n\n rem = new double[n];\n \n for (i = 0; i < n; i++) {\n int num = sc.nextInt();\n rem[i] = num;\n sum += num;\n }\n\n m = sum / n;\n\n for (i = 0; i < n; i++) {\n b += (rem[i] - m) * (rem[i] - m);\n }\n a = Math.sqrt(b / n);\n\n System.out.println(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 (sc.hasNext()) { int i = 0; double m = 0, sum = 0, a = 0, b = 0; double[] rem; int n = sc.nextInt(); if(n==0) break; rem = new double[n]; for (i = 0; i < n; i++) { int num = sc.nextInt(); rem[i] = num; sum += num; } m = sum / n; for (i = 0; i < n; i++) { b += (rem[i] - m) * (rem[i] - m); } a = Math.sqrt(b / n); System.out.println(a); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 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, 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, 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, 13, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 123, 5 ], [ 123, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ], [ 8, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 30, 32 ], [ 26, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 26, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 26, 44 ], [ 44, 45 ], [ 44, 46 ], [ 26, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 48, 56 ], [ 56, 57 ], [ 57, 58 ], [ 48, 59 ], [ 60, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 65, 66 ], [ 66, 67 ], [ 60, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 26, 73 ], [ 73, 74 ], [ 73, 75 ], [ 26, 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 ], [ 26, 102 ], [ 102, 103 ], [ 102, 104 ], [ 26, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 26, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 8, 117 ], [ 117, 118 ], [ 118, 119 ], [ 6, 120 ], [ 120, 121 ], [ 0, 122 ], [ 122, 123 ], [ 122, 124 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String args[]) {\n\t\tint n, s[], i;\n\t\tdouble ave, a, ans;\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tave = 0.0;\n\t\t\ta = 0.0;\n\t\t\tn = sc.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ts = new int[n];\n\t\t\tfor (i = 0; i < n; ++i) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tave += s[i];\n\t\t\t}\n\t\t\tave /= (double) n;\n\t\t\tfor (i = 0; i < n; ++i) {\n\t\t\t\ta += (s[i] - ave) * (s[i] - ave);\n\t\t\t}\n\t\t\ta /= (double) n;\n\t\t\tans = Math.sqrt(a);\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t\tsc.close();\n\t}\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String args[]) {\n\t\tint n, s[], i;\n\t\tdouble ave, a, ans;\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tave = 0.0;\n\t\t\ta = 0.0;\n\t\t\tn = sc.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ts = new int[n];\n\t\t\tfor (i = 0; i < n; ++i) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tave += s[i];\n\t\t\t}\n\t\t\tave /= (double) n;\n\t\t\tfor (i = 0; i < n; ++i) {\n\t\t\t\ta += (s[i] - ave) * (s[i] - ave);\n\t\t\t}\n\t\t\ta /= (double) n;\n\t\t\tans = Math.sqrt(a);\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t\tsc.close();\n\t}\n}", "Main", "public static void main(String args[]) {\n\t\tint n, s[], i;\n\t\tdouble ave, a, ans;\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tave = 0.0;\n\t\t\ta = 0.0;\n\t\t\tn = sc.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ts = new int[n];\n\t\t\tfor (i = 0; i < n; ++i) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tave += s[i];\n\t\t\t}\n\t\t\tave /= (double) n;\n\t\t\tfor (i = 0; i < n; ++i) {\n\t\t\t\ta += (s[i] - ave) * (s[i] - ave);\n\t\t\t}\n\t\t\ta /= (double) n;\n\t\t\tans = Math.sqrt(a);\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t\tsc.close();\n\t}", "main", "{\n\t\tint n, s[], i;\n\t\tdouble ave, a, ans;\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tave = 0.0;\n\t\t\ta = 0.0;\n\t\t\tn = sc.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ts = new int[n];\n\t\t\tfor (i = 0; i < n; ++i) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tave += s[i];\n\t\t\t}\n\t\t\tave /= (double) n;\n\t\t\tfor (i = 0; i < n; ++i) {\n\t\t\t\ta += (s[i] - ave) * (s[i] - ave);\n\t\t\t}\n\t\t\ta /= (double) n;\n\t\t\tans = Math.sqrt(a);\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t\tsc.close();\n\t}", "int n", "n", "s[]", "s", "i;", "i", "double ave", "ave", "a", "a", "ans;", "ans", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (true) {\n\t\t\tave = 0.0;\n\t\t\ta = 0.0;\n\t\t\tn = sc.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ts = new int[n];\n\t\t\tfor (i = 0; i < n; ++i) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tave += s[i];\n\t\t\t}\n\t\t\tave /= (double) n;\n\t\t\tfor (i = 0; i < n; ++i) {\n\t\t\t\ta += (s[i] - ave) * (s[i] - ave);\n\t\t\t}\n\t\t\ta /= (double) n;\n\t\t\tans = Math.sqrt(a);\n\t\t\tSystem.out.println(ans);\n\t\t}", "true", "{\n\t\t\tave = 0.0;\n\t\t\ta = 0.0;\n\t\t\tn = sc.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ts = new int[n];\n\t\t\tfor (i = 0; i < n; ++i) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tave += s[i];\n\t\t\t}\n\t\t\tave /= (double) n;\n\t\t\tfor (i = 0; i < n; ++i) {\n\t\t\t\ta += (s[i] - ave) * (s[i] - ave);\n\t\t\t}\n\t\t\ta /= (double) n;\n\t\t\tans = Math.sqrt(a);\n\t\t\tSystem.out.println(ans);\n\t\t}", "ave = 0.0", "ave", "0.0", "a = 0.0", "a", "0.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;", "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\tave += 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\tave += s[i];\n\t\t\t}", "{\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tave += s[i];\n\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 /= (double) n", "ave", "(double) n", "for (i = 0; i < n; ++i) {\n\t\t\t\ta += (s[i] - ave) * (s[i] - ave);\n\t\t\t}", "i = 0;", "i = 0", "i", "0", "i < n", "i", "n", "++i", "++i", "i", "{\n\t\t\t\ta += (s[i] - ave) * (s[i] - ave);\n\t\t\t}", "{\n\t\t\t\ta += (s[i] - ave) * (s[i] - ave);\n\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 /= (double) n", "a", "(double) n", "ans = Math.sqrt(a)", "ans", "Math.sqrt(a)", "Math.sqrt", "Math", "a", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "sc.close()", "sc.close", "sc", "String args[]", "args", "public class Main {\n\tpublic static void main(String args[]) {\n\t\tint n, s[], i;\n\t\tdouble ave, a, ans;\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tave = 0.0;\n\t\t\ta = 0.0;\n\t\t\tn = sc.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ts = new int[n];\n\t\t\tfor (i = 0; i < n; ++i) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tave += s[i];\n\t\t\t}\n\t\t\tave /= (double) n;\n\t\t\tfor (i = 0; i < n; ++i) {\n\t\t\t\ta += (s[i] - ave) * (s[i] - ave);\n\t\t\t}\n\t\t\ta /= (double) n;\n\t\t\tans = Math.sqrt(a);\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t\tsc.close();\n\t}\n}", "public class Main {\n\tpublic static void main(String args[]) {\n\t\tint n, s[], i;\n\t\tdouble ave, a, ans;\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tave = 0.0;\n\t\t\ta = 0.0;\n\t\t\tn = sc.nextInt();\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ts = new int[n];\n\t\t\tfor (i = 0; i < n; ++i) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\tave += s[i];\n\t\t\t}\n\t\t\tave /= (double) n;\n\t\t\tfor (i = 0; i < n; ++i) {\n\t\t\t\ta += (s[i] - ave) * (s[i] - ave);\n\t\t\t}\n\t\t\ta /= (double) n;\n\t\t\tans = Math.sqrt(a);\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t\tsc.close();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String args[]) { int n, s[], i; double ave, a, ans; Scanner sc = new Scanner(System.in); while (true) { ave = 0.0; a = 0.0; n = sc.nextInt(); if (n == 0) { break; } s = new int[n]; for (i = 0; i < n; ++i) { s[i] = sc.nextInt(); ave += s[i]; } ave /= (double) n; for (i = 0; i < n; ++i) { a += (s[i] - ave) * (s[i] - ave); } a /= (double) n; ans = Math.sqrt(a); System.out.println(ans); } sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 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, 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 ], [ 115, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 26, 34 ], [ 34, 35 ], [ 26, 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 ], [ 26, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 26, 66 ], [ 66, 67 ], [ 66, 68 ], [ 26, 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 ], [ 26, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 97, 99 ], [ 26, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 26, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 9, 112 ], [ 112, 113 ], [ 0, 114 ], [ 114, 115 ], [ 114, 116 ] ]
[ "import java.util.*;\npublic class Main{\n static Scanner kbd = new Scanner(System.in);\n public static void main(String[] args){\n \n while(kbd.hasNext()){\n int n = kbd.nextInt();\n if(n!=0){\n int[] s = new int[n];\n double ave = 0;\n int i;\n \n for(i=0; i<n; i++){\n s[i] = kbd.nextInt();\n ave += s[i];\n }\n ave = ave/n;\n \n double a=0;\n for(i=0; i<n; i++){\n a += (s[i]-ave)*(s[i]-ave);\n }\n a = a/n;\n a = Math.sqrt(a);\n \n System.out.println(a);\n }\n }\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n static Scanner kbd = new Scanner(System.in);\n public static void main(String[] args){\n \n while(kbd.hasNext()){\n int n = kbd.nextInt();\n if(n!=0){\n int[] s = new int[n];\n double ave = 0;\n int i;\n \n for(i=0; i<n; i++){\n s[i] = kbd.nextInt();\n ave += s[i];\n }\n ave = ave/n;\n \n double a=0;\n for(i=0; i<n; i++){\n a += (s[i]-ave)*(s[i]-ave);\n }\n a = a/n;\n a = Math.sqrt(a);\n \n System.out.println(a);\n }\n }\n }\n}", "Main", "static Scanner kbd = new Scanner(System.in);", "kbd", "new Scanner(System.in)", "public static void main(String[] args){\n \n while(kbd.hasNext()){\n int n = kbd.nextInt();\n if(n!=0){\n int[] s = new int[n];\n double ave = 0;\n int i;\n \n for(i=0; i<n; i++){\n s[i] = kbd.nextInt();\n ave += s[i];\n }\n ave = ave/n;\n \n double a=0;\n for(i=0; i<n; i++){\n a += (s[i]-ave)*(s[i]-ave);\n }\n a = a/n;\n a = Math.sqrt(a);\n \n System.out.println(a);\n }\n }\n }", "main", "{\n \n while(kbd.hasNext()){\n int n = kbd.nextInt();\n if(n!=0){\n int[] s = new int[n];\n double ave = 0;\n int i;\n \n for(i=0; i<n; i++){\n s[i] = kbd.nextInt();\n ave += s[i];\n }\n ave = ave/n;\n \n double a=0;\n for(i=0; i<n; i++){\n a += (s[i]-ave)*(s[i]-ave);\n }\n a = a/n;\n a = Math.sqrt(a);\n \n System.out.println(a);\n }\n }\n }", "while(kbd.hasNext()){\n int n = kbd.nextInt();\n if(n!=0){\n int[] s = new int[n];\n double ave = 0;\n int i;\n \n for(i=0; i<n; i++){\n s[i] = kbd.nextInt();\n ave += s[i];\n }\n ave = ave/n;\n \n double a=0;\n for(i=0; i<n; i++){\n a += (s[i]-ave)*(s[i]-ave);\n }\n a = a/n;\n a = Math.sqrt(a);\n \n System.out.println(a);\n }\n }", "kbd.hasNext()", "kbd.hasNext", "kbd", "{\n int n = kbd.nextInt();\n if(n!=0){\n int[] s = new int[n];\n double ave = 0;\n int i;\n \n for(i=0; i<n; i++){\n s[i] = kbd.nextInt();\n ave += s[i];\n }\n ave = ave/n;\n \n double a=0;\n for(i=0; i<n; i++){\n a += (s[i]-ave)*(s[i]-ave);\n }\n a = a/n;\n a = Math.sqrt(a);\n \n System.out.println(a);\n }\n }", "int n = kbd.nextInt();", "n", "kbd.nextInt()", "kbd.nextInt", "kbd", "if(n!=0){\n int[] s = new int[n];\n double ave = 0;\n int i;\n \n for(i=0; i<n; i++){\n s[i] = kbd.nextInt();\n ave += s[i];\n }\n ave = ave/n;\n \n double a=0;\n for(i=0; i<n; i++){\n a += (s[i]-ave)*(s[i]-ave);\n }\n a = a/n;\n a = Math.sqrt(a);\n \n System.out.println(a);\n }", "n!=0", "n", "0", "{\n int[] s = new int[n];\n double ave = 0;\n int i;\n \n for(i=0; i<n; i++){\n s[i] = kbd.nextInt();\n ave += s[i];\n }\n ave = ave/n;\n \n double a=0;\n for(i=0; i<n; i++){\n a += (s[i]-ave)*(s[i]-ave);\n }\n a = a/n;\n a = Math.sqrt(a);\n \n System.out.println(a);\n }", "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 s[i] = kbd.nextInt();\n ave += s[i];\n }", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n s[i] = kbd.nextInt();\n ave += s[i];\n }", "{\n s[i] = kbd.nextInt();\n ave += s[i];\n }", "s[i] = kbd.nextInt()", "s[i]", "s", "i", "kbd.nextInt()", "kbd.nextInt", "kbd", "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 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 = a/n", "a", "a/n", "a", "n", "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", "String[] args", "args", "public class Main{\n static Scanner kbd = new Scanner(System.in);\n public static void main(String[] args){\n \n while(kbd.hasNext()){\n int n = kbd.nextInt();\n if(n!=0){\n int[] s = new int[n];\n double ave = 0;\n int i;\n \n for(i=0; i<n; i++){\n s[i] = kbd.nextInt();\n ave += s[i];\n }\n ave = ave/n;\n \n double a=0;\n for(i=0; i<n; i++){\n a += (s[i]-ave)*(s[i]-ave);\n }\n a = a/n;\n a = Math.sqrt(a);\n \n System.out.println(a);\n }\n }\n }\n}", "public class Main{\n static Scanner kbd = new Scanner(System.in);\n public static void main(String[] args){\n \n while(kbd.hasNext()){\n int n = kbd.nextInt();\n if(n!=0){\n int[] s = new int[n];\n double ave = 0;\n int i;\n \n for(i=0; i<n; i++){\n s[i] = kbd.nextInt();\n ave += s[i];\n }\n ave = ave/n;\n \n double a=0;\n for(i=0; i<n; i++){\n a += (s[i]-ave)*(s[i]-ave);\n }\n a = a/n;\n a = Math.sqrt(a);\n \n System.out.println(a);\n }\n }\n }\n}", "Main" ]
import java.util.*; public class Main{ static Scanner kbd = new Scanner(System.in); public static void main(String[] args){ while(kbd.hasNext()){ int n = kbd.nextInt(); if(n!=0){ int[] s = new int[n]; double ave = 0; int i; for(i=0; i<n; i++){ s[i] = kbd.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); System.out.println(a); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 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, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 141, 11 ], [ 141, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 26, 27 ], [ 27, 28 ], [ 20, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 33, 34 ], [ 20, 35 ], [ 35, 36 ], [ 35, 37 ], [ 20, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 41, 46 ], [ 20, 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 ], [ 66, 69 ], [ 69, 70 ], [ 69, 71 ], [ 20, 72 ], [ 72, 73 ], [ 72, 74 ], [ 20, 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 ], [ 92, 94 ], [ 20, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 97, 99 ], [ 20, 100 ], [ 100, 101 ], [ 100, 102 ], [ 20, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 108, 109 ], [ 108, 110 ], [ 103, 111 ], [ 111, 112 ], [ 112, 113 ], [ 103, 114 ], [ 115, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 119, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 119, 127 ], [ 118, 128 ], [ 20, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 129, 134 ], [ 134, 135 ], [ 135, 136 ], [ 134, 137 ], [ 12, 138 ], [ 138, 139 ], [ 0, 140 ], [ 140, 141 ], [ 140, 142 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tint num = Integer.parseInt(br.readLine());\n\t\t\tif(num == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] su = new int[num];\n\t\t\tString[] str = br.readLine().split(\" \");\n\n\t\t\tfor(int i = 0; i < str.length; i++){\n\t\t\t\tsu[i] = Integer.parseInt(str[i]);\n\t\t\t}\n\n\t\t\tdouble sum = 0;\n\n\t\t\tfor(int i = 0; i < su.length; i++){\n\t\t\t\tsum += su[i];\n\t\t\t}\n\n\t\t\tdouble avg = sum / num;\n\t\t\tdouble result = 0;\n\n\t\t\tfor(int i = 0; i < num; i++){\n\t\t\t\tresult += (Math.pow((su[i] - avg), 2)/num);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(result));\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 br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tint num = Integer.parseInt(br.readLine());\n\t\t\tif(num == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] su = new int[num];\n\t\t\tString[] str = br.readLine().split(\" \");\n\n\t\t\tfor(int i = 0; i < str.length; i++){\n\t\t\t\tsu[i] = Integer.parseInt(str[i]);\n\t\t\t}\n\n\t\t\tdouble sum = 0;\n\n\t\t\tfor(int i = 0; i < su.length; i++){\n\t\t\t\tsum += su[i];\n\t\t\t}\n\n\t\t\tdouble avg = sum / num;\n\t\t\tdouble result = 0;\n\n\t\t\tfor(int i = 0; i < num; i++){\n\t\t\t\tresult += (Math.pow((su[i] - avg), 2)/num);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(result));\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\twhile(true){\n\t\t\tint num = Integer.parseInt(br.readLine());\n\t\t\tif(num == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] su = new int[num];\n\t\t\tString[] str = br.readLine().split(\" \");\n\n\t\t\tfor(int i = 0; i < str.length; i++){\n\t\t\t\tsu[i] = Integer.parseInt(str[i]);\n\t\t\t}\n\n\t\t\tdouble sum = 0;\n\n\t\t\tfor(int i = 0; i < su.length; i++){\n\t\t\t\tsum += su[i];\n\t\t\t}\n\n\t\t\tdouble avg = sum / num;\n\t\t\tdouble result = 0;\n\n\t\t\tfor(int i = 0; i < num; i++){\n\t\t\t\tresult += (Math.pow((su[i] - avg), 2)/num);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(result));\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tint num = Integer.parseInt(br.readLine());\n\t\t\tif(num == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] su = new int[num];\n\t\t\tString[] str = br.readLine().split(\" \");\n\n\t\t\tfor(int i = 0; i < str.length; i++){\n\t\t\t\tsu[i] = Integer.parseInt(str[i]);\n\t\t\t}\n\n\t\t\tdouble sum = 0;\n\n\t\t\tfor(int i = 0; i < su.length; i++){\n\t\t\t\tsum += su[i];\n\t\t\t}\n\n\t\t\tdouble avg = sum / num;\n\t\t\tdouble result = 0;\n\n\t\t\tfor(int i = 0; i < num; i++){\n\t\t\t\tresult += (Math.pow((su[i] - avg), 2)/num);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(result));\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while(true){\n\t\t\tint num = Integer.parseInt(br.readLine());\n\t\t\tif(num == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] su = new int[num];\n\t\t\tString[] str = br.readLine().split(\" \");\n\n\t\t\tfor(int i = 0; i < str.length; i++){\n\t\t\t\tsu[i] = Integer.parseInt(str[i]);\n\t\t\t}\n\n\t\t\tdouble sum = 0;\n\n\t\t\tfor(int i = 0; i < su.length; i++){\n\t\t\t\tsum += su[i];\n\t\t\t}\n\n\t\t\tdouble avg = sum / num;\n\t\t\tdouble result = 0;\n\n\t\t\tfor(int i = 0; i < num; i++){\n\t\t\t\tresult += (Math.pow((su[i] - avg), 2)/num);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(result));\n\t\t}", "true", "{\n\t\t\tint num = Integer.parseInt(br.readLine());\n\t\t\tif(num == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] su = new int[num];\n\t\t\tString[] str = br.readLine().split(\" \");\n\n\t\t\tfor(int i = 0; i < str.length; i++){\n\t\t\t\tsu[i] = Integer.parseInt(str[i]);\n\t\t\t}\n\n\t\t\tdouble sum = 0;\n\n\t\t\tfor(int i = 0; i < su.length; i++){\n\t\t\t\tsum += su[i];\n\t\t\t}\n\n\t\t\tdouble avg = sum / num;\n\t\t\tdouble result = 0;\n\n\t\t\tfor(int i = 0; i < num; i++){\n\t\t\t\tresult += (Math.pow((su[i] - avg), 2)/num);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(result));\n\t\t}", "int num = Integer.parseInt(br.readLine());", "num", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "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;", "int[] su = new int[num];", "su", "new int[num]", "num", "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\t\t\tsu[i] = Integer.parseInt(str[i]);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < str.length", "i", "str.length", "str", "str.length", "i++", "i++", "i", "{\n\t\t\t\tsu[i] = Integer.parseInt(str[i]);\n\t\t\t}", "{\n\t\t\t\tsu[i] = Integer.parseInt(str[i]);\n\t\t\t}", "su[i] = Integer.parseInt(str[i])", "su[i]", "su", "i", "Integer.parseInt(str[i])", "Integer.parseInt", "Integer", "str[i]", "str", "i", "double sum = 0;", "sum", "0", "for(int i = 0; i < su.length; i++){\n\t\t\t\tsum += su[i];\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < su.length", "i", "su.length", "su", "su.length", "i++", "i++", "i", "{\n\t\t\t\tsum += su[i];\n\t\t\t}", "{\n\t\t\t\tsum += su[i];\n\t\t\t}", "sum += su[i]", "sum", "su[i]", "su", "i", "double avg = sum / num;", "avg", "sum / num", "sum", "num", "double result = 0;", "result", "0", "for(int i = 0; i < num; i++){\n\t\t\t\tresult += (Math.pow((su[i] - avg), 2)/num);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < num", "i", "num", "i++", "i++", "i", "{\n\t\t\t\tresult += (Math.pow((su[i] - avg), 2)/num);\n\t\t\t}", "{\n\t\t\t\tresult += (Math.pow((su[i] - avg), 2)/num);\n\t\t\t}", "result += (Math.pow((su[i] - avg), 2)/num)", "result", "(Math.pow((su[i] - avg), 2)/num)", "Math.pow((su[i] - avg), 2)", "Math.pow", "Math", "(su[i] - avg)", "su[i]", "su", "i", "avg", "2", "num", "System.out.println(Math.sqrt(result))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(result)", "Math.sqrt", "Math", "result", "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\twhile(true){\n\t\t\tint num = Integer.parseInt(br.readLine());\n\t\t\tif(num == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] su = new int[num];\n\t\t\tString[] str = br.readLine().split(\" \");\n\n\t\t\tfor(int i = 0; i < str.length; i++){\n\t\t\t\tsu[i] = Integer.parseInt(str[i]);\n\t\t\t}\n\n\t\t\tdouble sum = 0;\n\n\t\t\tfor(int i = 0; i < su.length; i++){\n\t\t\t\tsum += su[i];\n\t\t\t}\n\n\t\t\tdouble avg = sum / num;\n\t\t\tdouble result = 0;\n\n\t\t\tfor(int i = 0; i < num; i++){\n\t\t\t\tresult += (Math.pow((su[i] - avg), 2)/num);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(result));\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\twhile(true){\n\t\t\tint num = Integer.parseInt(br.readLine());\n\t\t\tif(num == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] su = new int[num];\n\t\t\tString[] str = br.readLine().split(\" \");\n\n\t\t\tfor(int i = 0; i < str.length; i++){\n\t\t\t\tsu[i] = Integer.parseInt(str[i]);\n\t\t\t}\n\n\t\t\tdouble sum = 0;\n\n\t\t\tfor(int i = 0; i < su.length; i++){\n\t\t\t\tsum += su[i];\n\t\t\t}\n\n\t\t\tdouble avg = sum / num;\n\t\t\tdouble result = 0;\n\n\t\t\tfor(int i = 0; i < num; i++){\n\t\t\t\tresult += (Math.pow((su[i] - avg), 2)/num);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(result));\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)); while(true){ int num = Integer.parseInt(br.readLine()); if(num == 0){ break; } int[] su = new int[num]; String[] str = br.readLine().split(" "); for(int i = 0; i < str.length; i++){ su[i] = Integer.parseInt(str[i]); } double sum = 0; for(int i = 0; i < su.length; i++){ sum += su[i]; } double avg = sum / num; double result = 0; for(int i = 0; i < num; i++){ result += (Math.pow((su[i] - avg), 2)/num); } System.out.println(Math.sqrt(result)); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 17, 30, 4, 18, 13, 4, 18, 13, 13, 14, 4, 18, 13, 17, 30, 3, 30, 4, 18, 13, 13, 40, 13, 41, 13, 17, 28, 13, 13, 30, 30, 14, 2, 13, 17, 30, 3, 41, 13, 20, 13, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 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, 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, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 13, 0, 18, 13, 13, 4, 18, 13, 18, 13, 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, 41, 13, 20, 4, 18, 13, 17, 18, 13, 13, 4, 18, 18, 13, 13, 13, 40, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 224, 14 ], [ 224, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 17, 24 ], [ 24, 25 ], [ 24, 26 ], [ 17, 27 ], [ 27, 28 ], [ 27, 29 ], [ 17, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 32, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 38, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 52, 57 ], [ 57, 58 ], [ 38, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 32, 64 ], [ 64, 65 ], [ 17, 66 ], [ 66, 67 ], [ 66, 68 ], [ 17, 69 ], [ 69, 70 ], [ 69, 71 ], [ 69, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 73, 80 ], [ 80, 81 ], [ 80, 82 ], [ 73, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 73, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 73, 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 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 118, 119 ], [ 118, 120 ], [ 73, 121 ], [ 121, 122 ], [ 121, 123 ], [ 73, 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 ], [ 73, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 146, 148 ], [ 73, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 149, 154 ], [ 154, 155 ], [ 154, 156 ], [ 156, 157 ], [ 156, 158 ], [ 149, 159 ], [ 159, 160 ], [ 160, 161 ], [ 149, 162 ], [ 163, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 164, 168 ], [ 163, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 169, 173 ], [ 173, 174 ], [ 174, 175 ], [ 173, 176 ], [ 176, 177 ], [ 176, 178 ], [ 173, 179 ], [ 73, 180 ], [ 180, 181 ], [ 180, 182 ], [ 73, 183 ], [ 183, 184 ], [ 184, 185 ], [ 185, 186 ], [ 185, 187 ], [ 183, 188 ], [ 188, 189 ], [ 188, 190 ], [ 190, 191 ], [ 190, 192 ], [ 183, 193 ], [ 193, 194 ], [ 194, 195 ], [ 183, 196 ], [ 197, 197 ], [ 197, 198 ], [ 198, 199 ], [ 198, 200 ], [ 200, 201 ], [ 200, 202 ], [ 73, 203 ], [ 203, 204 ], [ 203, 205 ], [ 73, 206 ], [ 206, 207 ], [ 207, 208 ], [ 206, 209 ], [ 206, 210 ], [ 210, 211 ], [ 210, 212 ], [ 73, 213 ], [ 213, 214 ], [ 214, 215 ], [ 215, 216 ], [ 215, 217 ], [ 213, 218 ], [ 73, 219 ], [ 219, 220 ], [ 15, 221 ], [ 221, 222 ], [ 0, 223 ], [ 223, 224 ], [ 223, 225 ] ]
[ "import java.math.BigDecimal;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<Integer> klist = new ArrayList<Integer>();\n\t\tList<String> vlist = new ArrayList<String>();\n\t\tint count = 1;\n\t\twhile (true) {\n\t\t\t\n\t\t\tString line = sc.nextLine();\n\n\t\t\tif (count % 2 != 0) {\n\t\t\t\tklist.add(Integer.parseInt(line));\n\t\t\t\tif (line.equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tvlist.add(line);\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\t\tint i = 0;\n\t\tfor (Integer in : klist) {\n\t\t\tif (in == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tDouble[] on = new Double[in];\n\t\t\tString vlistst = vlist.get(i);\n\t\t\tString[] hu = vlistst.split(\" \");\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\ton[j] = Double.parseDouble(hu[j]);\n\t\t\t}\n\t\t\tDouble ave = 0.0;\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\tave += on[j];\n\t\t\t}\n\t\t\tave = ave / in;\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\ton[j] -= ave;\n\t\t\t\ton[j] = Math.pow(on[j], 2);\n\t\t\t}\n\t\t\tDouble sum = 0.0;\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\tsum += on[j];\n\t\t\t}\n\t\t\tBigDecimal big = new BigDecimal(Math.sqrt(sum / in));\n\t\t\tbig.setScale(6, BigDecimal.ROUND_DOWN);\n\t\t\tSystem.out.println(big);\n\t\t\ti++;\n\t\t}\n\n\t}\n}", "import java.math.BigDecimal;", "BigDecimal", "java.math", "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\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<Integer> klist = new ArrayList<Integer>();\n\t\tList<String> vlist = new ArrayList<String>();\n\t\tint count = 1;\n\t\twhile (true) {\n\t\t\t\n\t\t\tString line = sc.nextLine();\n\n\t\t\tif (count % 2 != 0) {\n\t\t\t\tklist.add(Integer.parseInt(line));\n\t\t\t\tif (line.equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tvlist.add(line);\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\t\tint i = 0;\n\t\tfor (Integer in : klist) {\n\t\t\tif (in == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tDouble[] on = new Double[in];\n\t\t\tString vlistst = vlist.get(i);\n\t\t\tString[] hu = vlistst.split(\" \");\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\ton[j] = Double.parseDouble(hu[j]);\n\t\t\t}\n\t\t\tDouble ave = 0.0;\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\tave += on[j];\n\t\t\t}\n\t\t\tave = ave / in;\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\ton[j] -= ave;\n\t\t\t\ton[j] = Math.pow(on[j], 2);\n\t\t\t}\n\t\t\tDouble sum = 0.0;\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\tsum += on[j];\n\t\t\t}\n\t\t\tBigDecimal big = new BigDecimal(Math.sqrt(sum / in));\n\t\t\tbig.setScale(6, BigDecimal.ROUND_DOWN);\n\t\t\tSystem.out.println(big);\n\t\t\ti++;\n\t\t}\n\n\t}\n}", "Main", "public static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<Integer> klist = new ArrayList<Integer>();\n\t\tList<String> vlist = new ArrayList<String>();\n\t\tint count = 1;\n\t\twhile (true) {\n\t\t\t\n\t\t\tString line = sc.nextLine();\n\n\t\t\tif (count % 2 != 0) {\n\t\t\t\tklist.add(Integer.parseInt(line));\n\t\t\t\tif (line.equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tvlist.add(line);\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\t\tint i = 0;\n\t\tfor (Integer in : klist) {\n\t\t\tif (in == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tDouble[] on = new Double[in];\n\t\t\tString vlistst = vlist.get(i);\n\t\t\tString[] hu = vlistst.split(\" \");\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\ton[j] = Double.parseDouble(hu[j]);\n\t\t\t}\n\t\t\tDouble ave = 0.0;\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\tave += on[j];\n\t\t\t}\n\t\t\tave = ave / in;\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\ton[j] -= ave;\n\t\t\t\ton[j] = Math.pow(on[j], 2);\n\t\t\t}\n\t\t\tDouble sum = 0.0;\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\tsum += on[j];\n\t\t\t}\n\t\t\tBigDecimal big = new BigDecimal(Math.sqrt(sum / in));\n\t\t\tbig.setScale(6, BigDecimal.ROUND_DOWN);\n\t\t\tSystem.out.println(big);\n\t\t\ti++;\n\t\t}\n\n\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<Integer> klist = new ArrayList<Integer>();\n\t\tList<String> vlist = new ArrayList<String>();\n\t\tint count = 1;\n\t\twhile (true) {\n\t\t\t\n\t\t\tString line = sc.nextLine();\n\n\t\t\tif (count % 2 != 0) {\n\t\t\t\tklist.add(Integer.parseInt(line));\n\t\t\t\tif (line.equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tvlist.add(line);\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\t\tint i = 0;\n\t\tfor (Integer in : klist) {\n\t\t\tif (in == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tDouble[] on = new Double[in];\n\t\t\tString vlistst = vlist.get(i);\n\t\t\tString[] hu = vlistst.split(\" \");\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\ton[j] = Double.parseDouble(hu[j]);\n\t\t\t}\n\t\t\tDouble ave = 0.0;\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\tave += on[j];\n\t\t\t}\n\t\t\tave = ave / in;\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\ton[j] -= ave;\n\t\t\t\ton[j] = Math.pow(on[j], 2);\n\t\t\t}\n\t\t\tDouble sum = 0.0;\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\tsum += on[j];\n\t\t\t}\n\t\t\tBigDecimal big = new BigDecimal(Math.sqrt(sum / in));\n\t\t\tbig.setScale(6, BigDecimal.ROUND_DOWN);\n\t\t\tSystem.out.println(big);\n\t\t\ti++;\n\t\t}\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "List<Integer> klist = new ArrayList<Integer>();", "klist", "new ArrayList<Integer>()", "List<String> vlist = new ArrayList<String>();", "vlist", "new ArrayList<String>()", "int count = 1;", "count", "1", "while (true) {\n\t\t\t\n\t\t\tString line = sc.nextLine();\n\n\t\t\tif (count % 2 != 0) {\n\t\t\t\tklist.add(Integer.parseInt(line));\n\t\t\t\tif (line.equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tvlist.add(line);\n\t\t\t}\n\t\t\tcount++;\n\t\t}", "true", "{\n\t\t\t\n\t\t\tString line = sc.nextLine();\n\n\t\t\tif (count % 2 != 0) {\n\t\t\t\tklist.add(Integer.parseInt(line));\n\t\t\t\tif (line.equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tvlist.add(line);\n\t\t\t}\n\t\t\tcount++;\n\t\t}", "String line = sc.nextLine();", "line", "sc.nextLine()", "sc.nextLine", "sc", "if (count % 2 != 0) {\n\t\t\t\tklist.add(Integer.parseInt(line));\n\t\t\t\tif (line.equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tvlist.add(line);\n\t\t\t}", "count % 2 != 0", "count % 2", "count", "2", "0", "{\n\t\t\t\tklist.add(Integer.parseInt(line));\n\t\t\t\tif (line.equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "klist.add(Integer.parseInt(line))", "klist.add", "klist", "Integer.parseInt(line)", "Integer.parseInt", "Integer", "line", "if (line.equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}", "line.equals(\"0\")", "line.equals", "line", "\"0\"", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "{\n\t\t\t\tvlist.add(line);\n\t\t\t}", "vlist.add(line)", "vlist.add", "vlist", "line", "count++", "count", "int i = 0;", "i", "0", "for (Integer in : klist) {\n\t\t\tif (in == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tDouble[] on = new Double[in];\n\t\t\tString vlistst = vlist.get(i);\n\t\t\tString[] hu = vlistst.split(\" \");\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\ton[j] = Double.parseDouble(hu[j]);\n\t\t\t}\n\t\t\tDouble ave = 0.0;\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\tave += on[j];\n\t\t\t}\n\t\t\tave = ave / in;\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\ton[j] -= ave;\n\t\t\t\ton[j] = Math.pow(on[j], 2);\n\t\t\t}\n\t\t\tDouble sum = 0.0;\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\tsum += on[j];\n\t\t\t}\n\t\t\tBigDecimal big = new BigDecimal(Math.sqrt(sum / in));\n\t\t\tbig.setScale(6, BigDecimal.ROUND_DOWN);\n\t\t\tSystem.out.println(big);\n\t\t\ti++;\n\t\t}", "Integer in", "klist", "{\n\t\t\tif (in == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tDouble[] on = new Double[in];\n\t\t\tString vlistst = vlist.get(i);\n\t\t\tString[] hu = vlistst.split(\" \");\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\ton[j] = Double.parseDouble(hu[j]);\n\t\t\t}\n\t\t\tDouble ave = 0.0;\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\tave += on[j];\n\t\t\t}\n\t\t\tave = ave / in;\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\ton[j] -= ave;\n\t\t\t\ton[j] = Math.pow(on[j], 2);\n\t\t\t}\n\t\t\tDouble sum = 0.0;\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\tsum += on[j];\n\t\t\t}\n\t\t\tBigDecimal big = new BigDecimal(Math.sqrt(sum / in));\n\t\t\tbig.setScale(6, BigDecimal.ROUND_DOWN);\n\t\t\tSystem.out.println(big);\n\t\t\ti++;\n\t\t}", "{\n\t\t\tif (in == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tDouble[] on = new Double[in];\n\t\t\tString vlistst = vlist.get(i);\n\t\t\tString[] hu = vlistst.split(\" \");\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\ton[j] = Double.parseDouble(hu[j]);\n\t\t\t}\n\t\t\tDouble ave = 0.0;\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\tave += on[j];\n\t\t\t}\n\t\t\tave = ave / in;\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\ton[j] -= ave;\n\t\t\t\ton[j] = Math.pow(on[j], 2);\n\t\t\t}\n\t\t\tDouble sum = 0.0;\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\tsum += on[j];\n\t\t\t}\n\t\t\tBigDecimal big = new BigDecimal(Math.sqrt(sum / in));\n\t\t\tbig.setScale(6, BigDecimal.ROUND_DOWN);\n\t\t\tSystem.out.println(big);\n\t\t\ti++;\n\t\t}", "if (in == 0) {\n\t\t\t\tbreak;\n\t\t\t}", "in == 0", "in", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "Double[] on = new Double[in];", "on", "new Double[in]", "in", "String vlistst = vlist.get(i);", "vlistst", "vlist.get(i)", "vlist.get", "vlist", "i", "String[] hu = vlistst.split(\" \");", "hu", "vlistst.split(\" \")", "vlistst.split", "vlistst", "\" \"", "for (int j = 0; j < on.length; j++) {\n\t\t\t\ton[j] = Double.parseDouble(hu[j]);\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < on.length", "j", "on.length", "on", "on.length", "j++", "j++", "j", "{\n\t\t\t\ton[j] = Double.parseDouble(hu[j]);\n\t\t\t}", "{\n\t\t\t\ton[j] = Double.parseDouble(hu[j]);\n\t\t\t}", "on[j] = Double.parseDouble(hu[j])", "on[j]", "on", "j", "Double.parseDouble(hu[j])", "Double.parseDouble", "Double", "hu[j]", "hu", "j", "Double ave = 0.0;", "ave", "0.0", "for (int j = 0; j < on.length; j++) {\n\t\t\t\tave += on[j];\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < on.length", "j", "on.length", "on", "on.length", "j++", "j++", "j", "{\n\t\t\t\tave += on[j];\n\t\t\t}", "{\n\t\t\t\tave += on[j];\n\t\t\t}", "ave += on[j]", "ave", "on[j]", "on", "j", "ave = ave / in", "ave", "ave / in", "ave", "in", "for (int j = 0; j < on.length; j++) {\n\t\t\t\ton[j] -= ave;\n\t\t\t\ton[j] = Math.pow(on[j], 2);\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < on.length", "j", "on.length", "on", "on.length", "j++", "j++", "j", "{\n\t\t\t\ton[j] -= ave;\n\t\t\t\ton[j] = Math.pow(on[j], 2);\n\t\t\t}", "{\n\t\t\t\ton[j] -= ave;\n\t\t\t\ton[j] = Math.pow(on[j], 2);\n\t\t\t}", "on[j] -= ave", "on[j]", "on", "j", "ave", "on[j] = Math.pow(on[j], 2)", "on[j]", "on", "j", "Math.pow(on[j], 2)", "Math.pow", "Math", "on[j]", "on", "j", "2", "Double sum = 0.0;", "sum", "0.0", "for (int j = 0; j < on.length; j++) {\n\t\t\t\tsum += on[j];\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < on.length", "j", "on.length", "on", "on.length", "j++", "j++", "j", "{\n\t\t\t\tsum += on[j];\n\t\t\t}", "{\n\t\t\t\tsum += on[j];\n\t\t\t}", "sum += on[j]", "sum", "on[j]", "on", "j", "BigDecimal big = new BigDecimal(Math.sqrt(sum / in));", "big", "new BigDecimal(Math.sqrt(sum / in))", "big.setScale(6, BigDecimal.ROUND_DOWN)", "big.setScale", "big", "6", "BigDecimal.ROUND_DOWN", "BigDecimal", "BigDecimal.ROUND_DOWN", "System.out.println(big)", "System.out.println", "System.out", "System", "System.out", "big", "i++", "i", "String[] arges", "arges", "public class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<Integer> klist = new ArrayList<Integer>();\n\t\tList<String> vlist = new ArrayList<String>();\n\t\tint count = 1;\n\t\twhile (true) {\n\t\t\t\n\t\t\tString line = sc.nextLine();\n\n\t\t\tif (count % 2 != 0) {\n\t\t\t\tklist.add(Integer.parseInt(line));\n\t\t\t\tif (line.equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tvlist.add(line);\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\t\tint i = 0;\n\t\tfor (Integer in : klist) {\n\t\t\tif (in == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tDouble[] on = new Double[in];\n\t\t\tString vlistst = vlist.get(i);\n\t\t\tString[] hu = vlistst.split(\" \");\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\ton[j] = Double.parseDouble(hu[j]);\n\t\t\t}\n\t\t\tDouble ave = 0.0;\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\tave += on[j];\n\t\t\t}\n\t\t\tave = ave / in;\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\ton[j] -= ave;\n\t\t\t\ton[j] = Math.pow(on[j], 2);\n\t\t\t}\n\t\t\tDouble sum = 0.0;\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\tsum += on[j];\n\t\t\t}\n\t\t\tBigDecimal big = new BigDecimal(Math.sqrt(sum / in));\n\t\t\tbig.setScale(6, BigDecimal.ROUND_DOWN);\n\t\t\tSystem.out.println(big);\n\t\t\ti++;\n\t\t}\n\n\t}\n}", "public class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<Integer> klist = new ArrayList<Integer>();\n\t\tList<String> vlist = new ArrayList<String>();\n\t\tint count = 1;\n\t\twhile (true) {\n\t\t\t\n\t\t\tString line = sc.nextLine();\n\n\t\t\tif (count % 2 != 0) {\n\t\t\t\tklist.add(Integer.parseInt(line));\n\t\t\t\tif (line.equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tvlist.add(line);\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\t\tint i = 0;\n\t\tfor (Integer in : klist) {\n\t\t\tif (in == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tDouble[] on = new Double[in];\n\t\t\tString vlistst = vlist.get(i);\n\t\t\tString[] hu = vlistst.split(\" \");\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\ton[j] = Double.parseDouble(hu[j]);\n\t\t\t}\n\t\t\tDouble ave = 0.0;\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\tave += on[j];\n\t\t\t}\n\t\t\tave = ave / in;\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\ton[j] -= ave;\n\t\t\t\ton[j] = Math.pow(on[j], 2);\n\t\t\t}\n\t\t\tDouble sum = 0.0;\n\t\t\tfor (int j = 0; j < on.length; j++) {\n\t\t\t\tsum += on[j];\n\t\t\t}\n\t\t\tBigDecimal big = new BigDecimal(Math.sqrt(sum / in));\n\t\t\tbig.setScale(6, BigDecimal.ROUND_DOWN);\n\t\t\tSystem.out.println(big);\n\t\t\ti++;\n\t\t}\n\n\t}\n}", "Main" ]
import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] arges) { Scanner sc = new Scanner(System.in); List<Integer> klist = new ArrayList<Integer>(); List<String> vlist = new ArrayList<String>(); int count = 1; while (true) { String line = sc.nextLine(); if (count % 2 != 0) { klist.add(Integer.parseInt(line)); if (line.equals("0")) { break; } } else { vlist.add(line); } count++; } int i = 0; for (Integer in : klist) { if (in == 0) { break; } Double[] on = new Double[in]; String vlistst = vlist.get(i); String[] hu = vlistst.split(" "); for (int j = 0; j < on.length; j++) { on[j] = Double.parseDouble(hu[j]); } Double ave = 0.0; for (int j = 0; j < on.length; j++) { ave += on[j]; } ave = ave / in; for (int j = 0; j < on.length; j++) { on[j] -= ave; on[j] = Math.pow(on[j], 2); } Double sum = 0.0; for (int j = 0; j < on.length; j++) { sum += on[j]; } BigDecimal big = new BigDecimal(Math.sqrt(sum / in)); big.setScale(6, BigDecimal.ROUND_DOWN); System.out.println(big); 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, 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, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 107, 5 ], [ 107, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 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 ], [ 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 ], [ 14, 61 ], [ 61, 62 ], [ 61, 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 ], [ 92, 94 ], [ 14, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 6, 104 ], [ 104, 105 ], [ 0, 106 ], [ 106, 107 ], [ 106, 108 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\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){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] s = new int[n];\n\t\t\tdouble a = 0;\n\t\t\tdouble ans = 0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\ts[i] = stdIn.nextInt();\n\t\t\t\ta += s[i];\n\t\t\t}\n\t\t\ta = a / n;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tans += Math.pow(s[i]-a,2);\n\t\t\t}\n\t\t\n\t\tans = ans/(double)n;\n\t\tSystem.out.println(Math.sqrt(ans));\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint n = stdIn.nextInt();\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\tdouble a = 0;\n\t\t\tdouble ans = 0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\ts[i] = stdIn.nextInt();\n\t\t\t\ta += s[i];\n\t\t\t}\n\t\t\ta = a / n;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tans += Math.pow(s[i]-a,2);\n\t\t\t}\n\t\t\n\t\tans = ans/(double)n;\n\t\tSystem.out.println(Math.sqrt(ans));\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){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] s = new int[n];\n\t\t\tdouble a = 0;\n\t\t\tdouble ans = 0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\ts[i] = stdIn.nextInt();\n\t\t\t\ta += s[i];\n\t\t\t}\n\t\t\ta = a / n;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tans += Math.pow(s[i]-a,2);\n\t\t\t}\n\t\t\n\t\tans = ans/(double)n;\n\t\tSystem.out.println(Math.sqrt(ans));\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){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] s = new int[n];\n\t\t\tdouble a = 0;\n\t\t\tdouble ans = 0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\ts[i] = stdIn.nextInt();\n\t\t\t\ta += s[i];\n\t\t\t}\n\t\t\ta = a / n;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tans += Math.pow(s[i]-a,2);\n\t\t\t}\n\t\t\n\t\tans = ans/(double)n;\n\t\tSystem.out.println(Math.sqrt(ans));\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\t\t\t}\n\t\t\tint[] s = new int[n];\n\t\t\tdouble a = 0;\n\t\t\tdouble ans = 0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\ts[i] = stdIn.nextInt();\n\t\t\t\ta += s[i];\n\t\t\t}\n\t\t\ta = a / n;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tans += Math.pow(s[i]-a,2);\n\t\t\t}\n\t\t\n\t\tans = ans/(double)n;\n\t\tSystem.out.println(Math.sqrt(ans));\n\t\t}", "true", "{\n\t\t\tint n = stdIn.nextInt();\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\tdouble a = 0;\n\t\t\tdouble ans = 0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\ts[i] = stdIn.nextInt();\n\t\t\t\ta += s[i];\n\t\t\t}\n\t\t\ta = a / n;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tans += Math.pow(s[i]-a,2);\n\t\t\t}\n\t\t\n\t\tans = ans/(double)n;\n\t\tSystem.out.println(Math.sqrt(ans));\n\t\t}", "int n = stdIn.nextInt();", "n", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "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", "double a = 0;", "a", "0", "double ans = 0;", "ans", "0", "for(int i=0;i<n;i++){\n\t\t\t\ts[i] = stdIn.nextInt();\n\t\t\t\ta += 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\ta += s[i];\n\t\t\t}", "{\n\t\t\t\ts[i] = stdIn.nextInt();\n\t\t\t\ta += s[i];\n\t\t\t}", "s[i] = stdIn.nextInt()", "s[i]", "s", "i", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "a += s[i]", "a", "s[i]", "s", "i", "a = a / n", "a", "a / n", "a", "n", "for(int i=0;i<n;i++){\n\t\t\t\tans += Math.pow(s[i]-a,2);\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tans += Math.pow(s[i]-a,2);\n\t\t\t}", "{\n\t\t\t\tans += Math.pow(s[i]-a,2);\n\t\t\t}", "ans += Math.pow(s[i]-a,2)", "ans", "Math.pow(s[i]-a,2)", "Math.pow", "Math", "s[i]-a", "s[i]", "s", "i", "a", "2", "ans = ans/(double)n", "ans", "ans/(double)n", "ans", "(double)n", "System.out.println(Math.sqrt(ans))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(ans)", "Math.sqrt", "Math", "ans", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint n = stdIn.nextInt();\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\tdouble a = 0;\n\t\t\tdouble ans = 0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\ts[i] = stdIn.nextInt();\n\t\t\t\ta += s[i];\n\t\t\t}\n\t\t\ta = a / n;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tans += Math.pow(s[i]-a,2);\n\t\t\t}\n\t\t\n\t\tans = ans/(double)n;\n\t\tSystem.out.println(Math.sqrt(ans));\n\t\t}\n\t}\n}", "public class Main {\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){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] s = new int[n];\n\t\t\tdouble a = 0;\n\t\t\tdouble ans = 0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\ts[i] = stdIn.nextInt();\n\t\t\t\ta += s[i];\n\t\t\t}\n\t\t\ta = a / n;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tans += Math.pow(s[i]-a,2);\n\t\t\t}\n\t\t\n\t\tans = ans/(double)n;\n\t\tSystem.out.println(Math.sqrt(ans));\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); while(true){ int n = stdIn.nextInt(); if(n==0){ break; } int[] s = new int[n]; double a = 0; double ans = 0; for(int i=0;i<n;i++){ s[i] = stdIn.nextInt(); a += s[i]; } a = a / n; for(int i=0;i<n;i++){ ans += Math.pow(s[i]-a,2); } ans = ans/(double)n; System.out.println(Math.sqrt(ans)); } } }
[ 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, 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, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 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 ], [ 120, 5 ], [ 120, 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 ], [ 14, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 14, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 14, 40 ], [ 40, 41 ], [ 40, 42 ], [ 14, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 44, 55 ], [ 56, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 62, 63 ], [ 56, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 14, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 14, 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 ], [ 14, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 102, 104 ], [ 14, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 14, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 6, 117 ], [ 117, 118 ], [ 0, 119 ], [ 119, 120 ], [ 119, 121 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n double sum1=0, sum2=0, ave=0, bun=0, hen=0;\n int n = sc.nextInt();\n if(n==0) break;\n int[] data = new int[n];\n for(int i=0;i<n;i++){\n data[i] = sc.nextInt();\n sum1 += (double)data[i];\n }\n ave = sum1/n;\n for(int i=0;i<n;i++){\n sum2 += (data[i]-ave)*(data[i]-ave);\n }\n bun = sum2/n;\n hen = Math.sqrt(bun);\n System.out.println(hen);\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 double sum1=0, sum2=0, ave=0, bun=0, hen=0;\n int n = sc.nextInt();\n if(n==0) break;\n int[] data = new int[n];\n for(int i=0;i<n;i++){\n data[i] = sc.nextInt();\n sum1 += (double)data[i];\n }\n ave = sum1/n;\n for(int i=0;i<n;i++){\n sum2 += (data[i]-ave)*(data[i]-ave);\n }\n bun = sum2/n;\n hen = Math.sqrt(bun);\n System.out.println(hen);\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n double sum1=0, sum2=0, ave=0, bun=0, hen=0;\n int n = sc.nextInt();\n if(n==0) break;\n int[] data = new int[n];\n for(int i=0;i<n;i++){\n data[i] = sc.nextInt();\n sum1 += (double)data[i];\n }\n ave = sum1/n;\n for(int i=0;i<n;i++){\n sum2 += (data[i]-ave)*(data[i]-ave);\n }\n bun = sum2/n;\n hen = Math.sqrt(bun);\n System.out.println(hen);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n while(true){\n double sum1=0, sum2=0, ave=0, bun=0, hen=0;\n int n = sc.nextInt();\n if(n==0) break;\n int[] data = new int[n];\n for(int i=0;i<n;i++){\n data[i] = sc.nextInt();\n sum1 += (double)data[i];\n }\n ave = sum1/n;\n for(int i=0;i<n;i++){\n sum2 += (data[i]-ave)*(data[i]-ave);\n }\n bun = sum2/n;\n hen = Math.sqrt(bun);\n System.out.println(hen);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n double sum1=0, sum2=0, ave=0, bun=0, hen=0;\n int n = sc.nextInt();\n if(n==0) break;\n int[] data = new int[n];\n for(int i=0;i<n;i++){\n data[i] = sc.nextInt();\n sum1 += (double)data[i];\n }\n ave = sum1/n;\n for(int i=0;i<n;i++){\n sum2 += (data[i]-ave)*(data[i]-ave);\n }\n bun = sum2/n;\n hen = Math.sqrt(bun);\n System.out.println(hen);\n }", "true", "{\n double sum1=0, sum2=0, ave=0, bun=0, hen=0;\n int n = sc.nextInt();\n if(n==0) break;\n int[] data = new int[n];\n for(int i=0;i<n;i++){\n data[i] = sc.nextInt();\n sum1 += (double)data[i];\n }\n ave = sum1/n;\n for(int i=0;i<n;i++){\n sum2 += (data[i]-ave)*(data[i]-ave);\n }\n bun = sum2/n;\n hen = Math.sqrt(bun);\n System.out.println(hen);\n }", "double sum1=0", "sum1", "0", "sum2=0", "sum2", "0", "ave=0", "ave", "0", "bun=0", "bun", "0", "hen=0;", "hen", "0", "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", "for(int i=0;i<n;i++){\n data[i] = sc.nextInt();\n sum1 += (double)data[i];\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n data[i] = sc.nextInt();\n sum1 += (double)data[i];\n }", "{\n data[i] = sc.nextInt();\n sum1 += (double)data[i];\n }", "data[i] = sc.nextInt()", "data[i]", "data", "i", "sc.nextInt()", "sc.nextInt", "sc", "sum1 += (double)data[i]", "sum1", "(double)data[i]", "data", "i", "ave = sum1/n", "ave", "sum1/n", "sum1", "n", "for(int i=0;i<n;i++){\n sum2 += (data[i]-ave)*(data[i]-ave);\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n sum2 += (data[i]-ave)*(data[i]-ave);\n }", "{\n sum2 += (data[i]-ave)*(data[i]-ave);\n }", "sum2 += (data[i]-ave)*(data[i]-ave)", "sum2", "(data[i]-ave)*(data[i]-ave)", "(data[i]-ave)", "data[i]", "data", "i", "ave", "(data[i]-ave)", "data[i]", "data", "i", "ave", "bun = sum2/n", "bun", "sum2/n", "sum2", "n", "hen = Math.sqrt(bun)", "hen", "Math.sqrt(bun)", "Math.sqrt", "Math", "bun", "System.out.println(hen)", "System.out.println", "System.out", "System", "System.out", "hen", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n double sum1=0, sum2=0, ave=0, bun=0, hen=0;\n int n = sc.nextInt();\n if(n==0) break;\n int[] data = new int[n];\n for(int i=0;i<n;i++){\n data[i] = sc.nextInt();\n sum1 += (double)data[i];\n }\n ave = sum1/n;\n for(int i=0;i<n;i++){\n sum2 += (data[i]-ave)*(data[i]-ave);\n }\n bun = sum2/n;\n hen = Math.sqrt(bun);\n System.out.println(hen);\n }\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n double sum1=0, sum2=0, ave=0, bun=0, hen=0;\n int n = sc.nextInt();\n if(n==0) break;\n int[] data = new int[n];\n for(int i=0;i<n;i++){\n data[i] = sc.nextInt();\n sum1 += (double)data[i];\n }\n ave = sum1/n;\n for(int i=0;i<n;i++){\n sum2 += (data[i]-ave)*(data[i]-ave);\n }\n bun = sum2/n;\n hen = Math.sqrt(bun);\n System.out.println(hen);\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){ double sum1=0, sum2=0, ave=0, bun=0, hen=0; int n = sc.nextInt(); if(n==0) break; int[] data = new int[n]; for(int i=0;i<n;i++){ data[i] = sc.nextInt(); sum1 += (double)data[i]; } ave = sum1/n; for(int i=0;i<n;i++){ sum2 += (data[i]-ave)*(data[i]-ave); } bun = sum2/n; hen = Math.sqrt(bun); System.out.println(hen); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 20, 17, 41, 13, 41, 13, 41, 13, 17, 42, 17, 30, 0, 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, 18, 13, 13, 0, 13, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 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, 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 ], [ 116, 8 ], [ 116, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 11, 22 ], [ 22, 23 ], [ 11, 24 ], [ 24, 25 ], [ 11, 26 ], [ 26, 27 ], [ 26, 28 ], [ 11, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 31, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 31, 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 ], [ 31, 67 ], [ 67, 68 ], [ 67, 69 ], [ 31, 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 ], [ 31, 95 ], [ 95, 96 ], [ 95, 97 ], [ 31, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 31, 107 ], [ 107, 108 ], [ 107, 109 ], [ 31, 110 ], [ 110, 111 ], [ 110, 112 ], [ 9, 113 ], [ 113, 114 ], [ 0, 115 ], [ 115, 116 ], [ 115, 117 ] ]
[ "import java.lang.Math;\nimport java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner s = new Scanner(System.in);\n double m=0;\n double[] si = new double[1001];\n int i,n;\n double z=0;\n while(true){\n n = s.nextInt();\n if(n==0)break;\n for(i=0;i<n;i++){\n si[i]=s.nextInt();\n m+=si[i];\n }\n m/=(double)n;\n for(i=0;i<n;i++)z+=(si[i]-m)*(si[i]-m);\n z/=(double)n;\n System.out.println(Math.sqrt(z));\n m=0;\n z=0;\n\n }\n \n }\n}", "import java.lang.Math;", "Math", "java.lang", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner s = new Scanner(System.in);\n double m=0;\n double[] si = new double[1001];\n int i,n;\n double z=0;\n while(true){\n n = s.nextInt();\n if(n==0)break;\n for(i=0;i<n;i++){\n si[i]=s.nextInt();\n m+=si[i];\n }\n m/=(double)n;\n for(i=0;i<n;i++)z+=(si[i]-m)*(si[i]-m);\n z/=(double)n;\n System.out.println(Math.sqrt(z));\n m=0;\n z=0;\n\n }\n \n }\n}", "Main", "public static void main(String[] args){\n Scanner s = new Scanner(System.in);\n double m=0;\n double[] si = new double[1001];\n int i,n;\n double z=0;\n while(true){\n n = s.nextInt();\n if(n==0)break;\n for(i=0;i<n;i++){\n si[i]=s.nextInt();\n m+=si[i];\n }\n m/=(double)n;\n for(i=0;i<n;i++)z+=(si[i]-m)*(si[i]-m);\n z/=(double)n;\n System.out.println(Math.sqrt(z));\n m=0;\n z=0;\n\n }\n \n }", "main", "{\n Scanner s = new Scanner(System.in);\n double m=0;\n double[] si = new double[1001];\n int i,n;\n double z=0;\n while(true){\n n = s.nextInt();\n if(n==0)break;\n for(i=0;i<n;i++){\n si[i]=s.nextInt();\n m+=si[i];\n }\n m/=(double)n;\n for(i=0;i<n;i++)z+=(si[i]-m)*(si[i]-m);\n z/=(double)n;\n System.out.println(Math.sqrt(z));\n m=0;\n z=0;\n\n }\n \n }", "Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "double m=0;", "m", "0", "double[] si = new double[1001];", "si", "new double[1001]", "1001", "int i", "i", "n;", "n", "double z=0;", "z", "0", "while(true){\n n = s.nextInt();\n if(n==0)break;\n for(i=0;i<n;i++){\n si[i]=s.nextInt();\n m+=si[i];\n }\n m/=(double)n;\n for(i=0;i<n;i++)z+=(si[i]-m)*(si[i]-m);\n z/=(double)n;\n System.out.println(Math.sqrt(z));\n m=0;\n z=0;\n\n }", "true", "{\n n = s.nextInt();\n if(n==0)break;\n for(i=0;i<n;i++){\n si[i]=s.nextInt();\n m+=si[i];\n }\n m/=(double)n;\n for(i=0;i<n;i++)z+=(si[i]-m)*(si[i]-m);\n z/=(double)n;\n System.out.println(Math.sqrt(z));\n m=0;\n z=0;\n\n }", "n = s.nextInt()", "n", "s.nextInt()", "s.nextInt", "s", "if(n==0)break;", "n==0", "n", "0", "break;", "for(i=0;i<n;i++){\n si[i]=s.nextInt();\n m+=si[i];\n }", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n si[i]=s.nextInt();\n m+=si[i];\n }", "{\n si[i]=s.nextInt();\n m+=si[i];\n }", "si[i]=s.nextInt()", "si[i]", "si", "i", "s.nextInt()", "s.nextInt", "s", "m+=si[i]", "m", "si[i]", "si", "i", "m/=(double)n", "m", "(double)n", "for(i=0;i<n;i++)z+=(si[i]-m)*(si[i]-m);", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "z+=(si[i]-m)*(si[i]-m);", "z+=(si[i]-m)*(si[i]-m)", "z", "(si[i]-m)*(si[i]-m)", "(si[i]-m)", "si[i]", "si", "i", "m", "(si[i]-m)", "si[i]", "si", "i", "m", "z/=(double)n", "z", "(double)n", "System.out.println(Math.sqrt(z))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(z)", "Math.sqrt", "Math", "z", "m=0", "m", "0", "z=0", "z", "0", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner s = new Scanner(System.in);\n double m=0;\n double[] si = new double[1001];\n int i,n;\n double z=0;\n while(true){\n n = s.nextInt();\n if(n==0)break;\n for(i=0;i<n;i++){\n si[i]=s.nextInt();\n m+=si[i];\n }\n m/=(double)n;\n for(i=0;i<n;i++)z+=(si[i]-m)*(si[i]-m);\n z/=(double)n;\n System.out.println(Math.sqrt(z));\n m=0;\n z=0;\n\n }\n \n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner s = new Scanner(System.in);\n double m=0;\n double[] si = new double[1001];\n int i,n;\n double z=0;\n while(true){\n n = s.nextInt();\n if(n==0)break;\n for(i=0;i<n;i++){\n si[i]=s.nextInt();\n m+=si[i];\n }\n m/=(double)n;\n for(i=0;i<n;i++)z+=(si[i]-m)*(si[i]-m);\n z/=(double)n;\n System.out.println(Math.sqrt(z));\n m=0;\n z=0;\n\n }\n \n }\n}", "Main" ]
import java.lang.Math; import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner s = new Scanner(System.in); double m=0; double[] si = new double[1001]; int i,n; double z=0; while(true){ n = s.nextInt(); if(n==0)break; for(i=0;i<n;i++){ si[i]=s.nextInt(); m+=si[i]; } m/=(double)n; for(i=0;i<n;i++)z+=(si[i]-m)*(si[i]-m); z/=(double)n; System.out.println(Math.sqrt(z)); m=0; z=0; } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 17, 42, 2, 0, 13, 4, 18, 13, 17, 30, 4, 18, 13, 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, 0, 13, 2, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 2, 4, 13, 18, 13, 13, 13, 0, 13, 2, 13, 13, 0, 13, 2, 13, 13, 41, 13, 4, 18, 13, 13, 4, 18, 13, 2, 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 ], [ 126, 8 ], [ 126, 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 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 29, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 35, 40 ], [ 29, 41 ], [ 41, 42 ], [ 41, 43 ], [ 29, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 44, 55 ], [ 56, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 62, 64 ], [ 29, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 29, 70 ], [ 70, 71 ], [ 70, 72 ], [ 29, 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 ], [ 89, 91 ], [ 91, 92 ], [ 91, 93 ], [ 88, 94 ], [ 85, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 97, 99 ], [ 29, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 102, 104 ], [ 29, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 29, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 114, 115 ], [ 114, 116 ], [ 11, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 9, 123 ], [ 123, 124 ], [ 0, 125 ], [ 125, 126 ], [ 125, 127 ] ]
[ "import static java.lang.Double.*;\n\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\t\tStringBuilder sb = new StringBuilder();\n\n\t\tint n = 0;\n\t\twhile ( ( n = sc.nextInt() ) != 0 ) {\n\t\t\tsc.nextLine();\n\n\t\t\tString[] data = sc.nextLine().split(\" \");\n\n\t\t\tdouble m = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tm += Double.parseDouble(data[i]);\n\t\t\t}\n\t\t\tm = m / n;\n\n\t\t\tdouble aa = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdouble sm = parseDouble(data[i]) - m;\n\t\t\t\taa += sm*sm;\n\t\t\t}\n\t\t\taa = aa / n;\n\n\t\t\tdouble a = Math.sqrt(aa);\n\n\t\t\tsb.append(a + \"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n\n}", "import static java.lang.Double.*;", "import static java.lang.Double.*;", "import static java.lang.Double.*;", "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\tStringBuilder sb = new StringBuilder();\n\n\t\tint n = 0;\n\t\twhile ( ( n = sc.nextInt() ) != 0 ) {\n\t\t\tsc.nextLine();\n\n\t\t\tString[] data = sc.nextLine().split(\" \");\n\n\t\t\tdouble m = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tm += Double.parseDouble(data[i]);\n\t\t\t}\n\t\t\tm = m / n;\n\n\t\t\tdouble aa = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdouble sm = parseDouble(data[i]) - m;\n\t\t\t\taa += sm*sm;\n\t\t\t}\n\t\t\taa = aa / n;\n\n\t\t\tdouble a = Math.sqrt(aa);\n\n\t\t\tsb.append(a + \"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tint n = 0;\n\t\twhile ( ( n = sc.nextInt() ) != 0 ) {\n\t\t\tsc.nextLine();\n\n\t\t\tString[] data = sc.nextLine().split(\" \");\n\n\t\t\tdouble m = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tm += Double.parseDouble(data[i]);\n\t\t\t}\n\t\t\tm = m / n;\n\n\t\t\tdouble aa = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdouble sm = parseDouble(data[i]) - m;\n\t\t\t\taa += sm*sm;\n\t\t\t}\n\t\t\taa = aa / n;\n\n\t\t\tdouble a = Math.sqrt(aa);\n\n\t\t\tsb.append(a + \"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tint n = 0;\n\t\twhile ( ( n = sc.nextInt() ) != 0 ) {\n\t\t\tsc.nextLine();\n\n\t\t\tString[] data = sc.nextLine().split(\" \");\n\n\t\t\tdouble m = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tm += Double.parseDouble(data[i]);\n\t\t\t}\n\t\t\tm = m / n;\n\n\t\t\tdouble aa = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdouble sm = parseDouble(data[i]) - m;\n\t\t\t\taa += sm*sm;\n\t\t\t}\n\t\t\taa = aa / n;\n\n\t\t\tdouble a = Math.sqrt(aa);\n\n\t\t\tsb.append(a + \"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "int n = 0;", "n", "0", "while ( ( n = sc.nextInt() ) != 0 ) {\n\t\t\tsc.nextLine();\n\n\t\t\tString[] data = sc.nextLine().split(\" \");\n\n\t\t\tdouble m = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tm += Double.parseDouble(data[i]);\n\t\t\t}\n\t\t\tm = m / n;\n\n\t\t\tdouble aa = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdouble sm = parseDouble(data[i]) - m;\n\t\t\t\taa += sm*sm;\n\t\t\t}\n\t\t\taa = aa / n;\n\n\t\t\tdouble a = Math.sqrt(aa);\n\n\t\t\tsb.append(a + \"\\n\");\n\t\t}", "( n = sc.nextInt() ) != 0", "( n = sc.nextInt() )", "n", "sc.nextInt()", "sc.nextInt", "sc", "0", "{\n\t\t\tsc.nextLine();\n\n\t\t\tString[] data = sc.nextLine().split(\" \");\n\n\t\t\tdouble m = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tm += Double.parseDouble(data[i]);\n\t\t\t}\n\t\t\tm = m / n;\n\n\t\t\tdouble aa = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdouble sm = parseDouble(data[i]) - m;\n\t\t\t\taa += sm*sm;\n\t\t\t}\n\t\t\taa = aa / n;\n\n\t\t\tdouble a = Math.sqrt(aa);\n\n\t\t\tsb.append(a + \"\\n\");\n\t\t}", "sc.nextLine()", "sc.nextLine", "sc", "String[] data = sc.nextLine().split(\" \");", "data", "sc.nextLine().split(\" \")", "sc.nextLine().split", "sc.nextLine()", "sc.nextLine", "sc", "\" \"", "double m = 0;", "m", "0", "for (int i = 0; i < n; i++) {\n\t\t\t\tm += Double.parseDouble(data[i]);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tm += Double.parseDouble(data[i]);\n\t\t\t}", "{\n\t\t\t\tm += Double.parseDouble(data[i]);\n\t\t\t}", "m += Double.parseDouble(data[i])", "m", "Double.parseDouble(data[i])", "Double.parseDouble", "Double", "data[i]", "data", "i", "m = m / n", "m", "m / n", "m", "n", "double aa = 0;", "aa", "0", "for (int i = 0; i < n; i++) {\n\t\t\t\tdouble sm = parseDouble(data[i]) - m;\n\t\t\t\taa += sm*sm;\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tdouble sm = parseDouble(data[i]) - m;\n\t\t\t\taa += sm*sm;\n\t\t\t}", "{\n\t\t\t\tdouble sm = parseDouble(data[i]) - m;\n\t\t\t\taa += sm*sm;\n\t\t\t}", "double sm = parseDouble(data[i]) - m;", "sm", "parseDouble(data[i]) - m", "parseDouble(data[i])", "parseDouble", "data[i]", "data", "i", "m", "aa += sm*sm", "aa", "sm*sm", "sm", "sm", "aa = aa / n", "aa", "aa / n", "aa", "n", "double a = Math.sqrt(aa);", "a", "Math.sqrt(aa)", "Math.sqrt", "Math", "aa", "sb.append(a + \"\\n\")", "sb.append", "sb", "a + \"\\n\"", "a", "\"\\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) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tint n = 0;\n\t\twhile ( ( n = sc.nextInt() ) != 0 ) {\n\t\t\tsc.nextLine();\n\n\t\t\tString[] data = sc.nextLine().split(\" \");\n\n\t\t\tdouble m = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tm += Double.parseDouble(data[i]);\n\t\t\t}\n\t\t\tm = m / n;\n\n\t\t\tdouble aa = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdouble sm = parseDouble(data[i]) - m;\n\t\t\t\taa += sm*sm;\n\t\t\t}\n\t\t\taa = aa / n;\n\n\t\t\tdouble a = Math.sqrt(aa);\n\n\t\t\tsb.append(a + \"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tint n = 0;\n\t\twhile ( ( n = sc.nextInt() ) != 0 ) {\n\t\t\tsc.nextLine();\n\n\t\t\tString[] data = sc.nextLine().split(\" \");\n\n\t\t\tdouble m = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tm += Double.parseDouble(data[i]);\n\t\t\t}\n\t\t\tm = m / n;\n\n\t\t\tdouble aa = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdouble sm = parseDouble(data[i]) - m;\n\t\t\t\taa += sm*sm;\n\t\t\t}\n\t\t\taa = aa / n;\n\n\t\t\tdouble a = Math.sqrt(aa);\n\n\t\t\tsb.append(a + \"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n\n}", "Main" ]
import static java.lang.Double.*; import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); StringBuilder sb = new StringBuilder(); int n = 0; while ( ( n = sc.nextInt() ) != 0 ) { sc.nextLine(); String[] data = sc.nextLine().split(" "); double m = 0; for (int i = 0; i < n; i++) { m += Double.parseDouble(data[i]); } m = m / n; double aa = 0; for (int i = 0; i < n; i++) { double sm = parseDouble(data[i]) - m; aa += sm*sm; } aa = aa / n; double a = Math.sqrt(aa); sb.append(a + "\n"); } System.out.print(sb); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 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, 41, 13, 2, 4, 18, 13, 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, 17, 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 ], [ 127, 11 ], [ 127, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 26, 27 ], [ 27, 28 ], [ 20, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 33, 34 ], [ 20, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 37, 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 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 64, 66 ], [ 20, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 20, 72 ], [ 72, 73 ], [ 72, 74 ], [ 20, 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 ], [ 91, 94 ], [ 94, 95 ], [ 94, 96 ], [ 90, 97 ], [ 87, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 100, 102 ], [ 20, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 20, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 20, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 114, 120 ], [ 14, 121 ], [ 121, 122 ], [ 122, 123 ], [ 12, 124 ], [ 124, 125 ], [ 0, 126 ], [ 126, 127 ], [ 126, 128 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile(true){\n\n\t\t\tint studentNum = Integer.parseInt(br.readLine());\n\t\t\tif(studentNum == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] score = br.readLine().split(\" \");\n\n\t\t\tdouble scoreSum = 0;\n\n\t\t\tfor(int i = 0; i < studentNum;i++){\n\n\t\t\t\tscoreSum += Double.parseDouble(score[i]);\n\t\t\t}\n\n\t\t\tdouble scoreAverage = scoreSum / studentNum;\n\n\t\t\tdouble sigmaSum = 0;\n\n\t\t\tfor (int i = 0;i < studentNum;i++){\n\t\t\t\tdouble num = Double.parseDouble(score[i]) - scoreAverage;\n\t\t\t\tsigmaSum += num * num;\n\t\t\t}\n\n\t\t\tdouble sigmaResult = sigmaSum / studentNum;\n\n\t\t\tdouble alpha = Math.sqrt(sigmaResult);\n\n\t\t\tSystem.out.printf(\"%.8f\\n\", alpha);\n\t\t}\n\t\tbr.close();\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\n\t\twhile(true){\n\n\t\t\tint studentNum = Integer.parseInt(br.readLine());\n\t\t\tif(studentNum == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] score = br.readLine().split(\" \");\n\n\t\t\tdouble scoreSum = 0;\n\n\t\t\tfor(int i = 0; i < studentNum;i++){\n\n\t\t\t\tscoreSum += Double.parseDouble(score[i]);\n\t\t\t}\n\n\t\t\tdouble scoreAverage = scoreSum / studentNum;\n\n\t\t\tdouble sigmaSum = 0;\n\n\t\t\tfor (int i = 0;i < studentNum;i++){\n\t\t\t\tdouble num = Double.parseDouble(score[i]) - scoreAverage;\n\t\t\t\tsigmaSum += num * num;\n\t\t\t}\n\n\t\t\tdouble sigmaResult = sigmaSum / studentNum;\n\n\t\t\tdouble alpha = Math.sqrt(sigmaResult);\n\n\t\t\tSystem.out.printf(\"%.8f\\n\", alpha);\n\t\t}\n\t\tbr.close();\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile(true){\n\n\t\t\tint studentNum = Integer.parseInt(br.readLine());\n\t\t\tif(studentNum == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] score = br.readLine().split(\" \");\n\n\t\t\tdouble scoreSum = 0;\n\n\t\t\tfor(int i = 0; i < studentNum;i++){\n\n\t\t\t\tscoreSum += Double.parseDouble(score[i]);\n\t\t\t}\n\n\t\t\tdouble scoreAverage = scoreSum / studentNum;\n\n\t\t\tdouble sigmaSum = 0;\n\n\t\t\tfor (int i = 0;i < studentNum;i++){\n\t\t\t\tdouble num = Double.parseDouble(score[i]) - scoreAverage;\n\t\t\t\tsigmaSum += num * num;\n\t\t\t}\n\n\t\t\tdouble sigmaResult = sigmaSum / studentNum;\n\n\t\t\tdouble alpha = Math.sqrt(sigmaResult);\n\n\t\t\tSystem.out.printf(\"%.8f\\n\", alpha);\n\t\t}\n\t\tbr.close();\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile(true){\n\n\t\t\tint studentNum = Integer.parseInt(br.readLine());\n\t\t\tif(studentNum == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] score = br.readLine().split(\" \");\n\n\t\t\tdouble scoreSum = 0;\n\n\t\t\tfor(int i = 0; i < studentNum;i++){\n\n\t\t\t\tscoreSum += Double.parseDouble(score[i]);\n\t\t\t}\n\n\t\t\tdouble scoreAverage = scoreSum / studentNum;\n\n\t\t\tdouble sigmaSum = 0;\n\n\t\t\tfor (int i = 0;i < studentNum;i++){\n\t\t\t\tdouble num = Double.parseDouble(score[i]) - scoreAverage;\n\t\t\t\tsigmaSum += num * num;\n\t\t\t}\n\n\t\t\tdouble sigmaResult = sigmaSum / studentNum;\n\n\t\t\tdouble alpha = Math.sqrt(sigmaResult);\n\n\t\t\tSystem.out.printf(\"%.8f\\n\", alpha);\n\t\t}\n\t\tbr.close();\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while(true){\n\n\t\t\tint studentNum = Integer.parseInt(br.readLine());\n\t\t\tif(studentNum == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] score = br.readLine().split(\" \");\n\n\t\t\tdouble scoreSum = 0;\n\n\t\t\tfor(int i = 0; i < studentNum;i++){\n\n\t\t\t\tscoreSum += Double.parseDouble(score[i]);\n\t\t\t}\n\n\t\t\tdouble scoreAverage = scoreSum / studentNum;\n\n\t\t\tdouble sigmaSum = 0;\n\n\t\t\tfor (int i = 0;i < studentNum;i++){\n\t\t\t\tdouble num = Double.parseDouble(score[i]) - scoreAverage;\n\t\t\t\tsigmaSum += num * num;\n\t\t\t}\n\n\t\t\tdouble sigmaResult = sigmaSum / studentNum;\n\n\t\t\tdouble alpha = Math.sqrt(sigmaResult);\n\n\t\t\tSystem.out.printf(\"%.8f\\n\", alpha);\n\t\t}", "true", "{\n\n\t\t\tint studentNum = Integer.parseInt(br.readLine());\n\t\t\tif(studentNum == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] score = br.readLine().split(\" \");\n\n\t\t\tdouble scoreSum = 0;\n\n\t\t\tfor(int i = 0; i < studentNum;i++){\n\n\t\t\t\tscoreSum += Double.parseDouble(score[i]);\n\t\t\t}\n\n\t\t\tdouble scoreAverage = scoreSum / studentNum;\n\n\t\t\tdouble sigmaSum = 0;\n\n\t\t\tfor (int i = 0;i < studentNum;i++){\n\t\t\t\tdouble num = Double.parseDouble(score[i]) - scoreAverage;\n\t\t\t\tsigmaSum += num * num;\n\t\t\t}\n\n\t\t\tdouble sigmaResult = sigmaSum / studentNum;\n\n\t\t\tdouble alpha = Math.sqrt(sigmaResult);\n\n\t\t\tSystem.out.printf(\"%.8f\\n\", alpha);\n\t\t}", "int studentNum = Integer.parseInt(br.readLine());", "studentNum", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "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;", "String[] score = br.readLine().split(\" \");", "score", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "double scoreSum = 0;", "scoreSum", "0", "for(int i = 0; i < studentNum;i++){\n\n\t\t\t\tscoreSum += Double.parseDouble(score[i]);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < studentNum", "i", "studentNum", "i++", "i++", "i", "{\n\n\t\t\t\tscoreSum += Double.parseDouble(score[i]);\n\t\t\t}", "{\n\n\t\t\t\tscoreSum += Double.parseDouble(score[i]);\n\t\t\t}", "scoreSum += Double.parseDouble(score[i])", "scoreSum", "Double.parseDouble(score[i])", "Double.parseDouble", "Double", "score[i]", "score", "i", "double scoreAverage = scoreSum / studentNum;", "scoreAverage", "scoreSum / studentNum", "scoreSum", "studentNum", "double sigmaSum = 0;", "sigmaSum", "0", "for (int i = 0;i < studentNum;i++){\n\t\t\t\tdouble num = Double.parseDouble(score[i]) - scoreAverage;\n\t\t\t\tsigmaSum += num * num;\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < studentNum", "i", "studentNum", "i++", "i++", "i", "{\n\t\t\t\tdouble num = Double.parseDouble(score[i]) - scoreAverage;\n\t\t\t\tsigmaSum += num * num;\n\t\t\t}", "{\n\t\t\t\tdouble num = Double.parseDouble(score[i]) - scoreAverage;\n\t\t\t\tsigmaSum += num * num;\n\t\t\t}", "double num = Double.parseDouble(score[i]) - scoreAverage;", "num", "Double.parseDouble(score[i]) - scoreAverage", "Double.parseDouble(score[i])", "Double.parseDouble", "Double", "score[i]", "score", "i", "scoreAverage", "sigmaSum += num * num", "sigmaSum", "num * num", "num", "num", "double sigmaResult = sigmaSum / studentNum;", "sigmaResult", "sigmaSum / studentNum", "sigmaSum", "studentNum", "double alpha = Math.sqrt(sigmaResult);", "alpha", "Math.sqrt(sigmaResult)", "Math.sqrt", "Math", "sigmaResult", "System.out.printf(\"%.8f\\n\", alpha)", "System.out.printf", "System.out", "System", "System.out", "\"%.8f\\n\"", "alpha", "br.close()", "br.close", "br", "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\n\t\twhile(true){\n\n\t\t\tint studentNum = Integer.parseInt(br.readLine());\n\t\t\tif(studentNum == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] score = br.readLine().split(\" \");\n\n\t\t\tdouble scoreSum = 0;\n\n\t\t\tfor(int i = 0; i < studentNum;i++){\n\n\t\t\t\tscoreSum += Double.parseDouble(score[i]);\n\t\t\t}\n\n\t\t\tdouble scoreAverage = scoreSum / studentNum;\n\n\t\t\tdouble sigmaSum = 0;\n\n\t\t\tfor (int i = 0;i < studentNum;i++){\n\t\t\t\tdouble num = Double.parseDouble(score[i]) - scoreAverage;\n\t\t\t\tsigmaSum += num * num;\n\t\t\t}\n\n\t\t\tdouble sigmaResult = sigmaSum / studentNum;\n\n\t\t\tdouble alpha = Math.sqrt(sigmaResult);\n\n\t\t\tSystem.out.printf(\"%.8f\\n\", alpha);\n\t\t}\n\t\tbr.close();\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\n\t\twhile(true){\n\n\t\t\tint studentNum = Integer.parseInt(br.readLine());\n\t\t\tif(studentNum == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] score = br.readLine().split(\" \");\n\n\t\t\tdouble scoreSum = 0;\n\n\t\t\tfor(int i = 0; i < studentNum;i++){\n\n\t\t\t\tscoreSum += Double.parseDouble(score[i]);\n\t\t\t}\n\n\t\t\tdouble scoreAverage = scoreSum / studentNum;\n\n\t\t\tdouble sigmaSum = 0;\n\n\t\t\tfor (int i = 0;i < studentNum;i++){\n\t\t\t\tdouble num = Double.parseDouble(score[i]) - scoreAverage;\n\t\t\t\tsigmaSum += num * num;\n\t\t\t}\n\n\t\t\tdouble sigmaResult = sigmaSum / studentNum;\n\n\t\t\tdouble alpha = Math.sqrt(sigmaResult);\n\n\t\t\tSystem.out.printf(\"%.8f\\n\", alpha);\n\t\t}\n\t\tbr.close();\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)); while(true){ int studentNum = Integer.parseInt(br.readLine()); if(studentNum == 0){ break; } String[] score = br.readLine().split(" "); double scoreSum = 0; for(int i = 0; i < studentNum;i++){ scoreSum += Double.parseDouble(score[i]); } double scoreAverage = scoreSum / studentNum; double sigmaSum = 0; for (int i = 0;i < studentNum;i++){ double num = Double.parseDouble(score[i]) - scoreAverage; sigmaSum += num * num; } double sigmaResult = sigmaSum / studentNum; double alpha = Math.sqrt(sigmaResult); System.out.printf("%.8f\n", alpha); } br.close(); } }
[ 7, 15, 13, 17, 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, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 4, 18, 13, 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, 18, 4, 18, 13, 17, 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, 13, 18, 13, 13, 2, 13, 18, 13, 13, 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 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 135, 17 ], [ 135, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 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 ], [ 39, 40 ], [ 26, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 26, 46 ], [ 46, 47 ], [ 46, 48 ], [ 26, 49 ], [ 49, 50 ], [ 49, 51 ], [ 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 ], [ 70, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 73, 78 ], [ 65, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 26, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 26, 89 ], [ 89, 90 ], [ 89, 91 ], [ 26, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 97, 98 ], [ 97, 99 ], [ 92, 100 ], [ 100, 101 ], [ 101, 102 ], [ 92, 103 ], [ 104, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 110, 112 ], [ 107, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 115, 117 ], [ 26, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 123, 124 ], [ 123, 125 ], [ 26, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 18, 132 ], [ 132, 133 ], [ 0, 134 ], [ 134, 135 ], [ 134, 136 ] ]
[ "import java.util.ArrayList;\nimport java.util.List;\nimport java.io.*;\nimport java.util.Scanner;\nimport java.math.*;\n\npublic 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 = Integer.parseInt(scan.nextLine());\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString sTmp = scan.nextLine();\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] = Integer.parseInt(sTmp.split(\" \")[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble ave = (double)sum / (double)n;\n\t\t\tdouble dv = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdv += (ave - (double)s[i]) * (ave - (double)s[i]);\n\t\t\t}\n\t\t\tdouble res = Math.sqrt(dv / n);\n\t\t\tSystem.out.println(res);\n\t\t}\n\t}\n\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "import java.io.*;", "io.*", "java", "import java.util.Scanner;", "Scanner", "java.util", "import java.math.*;", "math.*", "java", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = Integer.parseInt(scan.nextLine());\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString sTmp = scan.nextLine();\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] = Integer.parseInt(sTmp.split(\" \")[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble ave = (double)sum / (double)n;\n\t\t\tdouble dv = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdv += (ave - (double)s[i]) * (ave - (double)s[i]);\n\t\t\t}\n\t\t\tdouble res = Math.sqrt(dv / n);\n\t\t\tSystem.out.println(res);\n\t\t}\n\t}\n\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 = Integer.parseInt(scan.nextLine());\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString sTmp = scan.nextLine();\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] = Integer.parseInt(sTmp.split(\" \")[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble ave = (double)sum / (double)n;\n\t\t\tdouble dv = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdv += (ave - (double)s[i]) * (ave - (double)s[i]);\n\t\t\t}\n\t\t\tdouble res = Math.sqrt(dv / n);\n\t\t\tSystem.out.println(res);\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = Integer.parseInt(scan.nextLine());\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString sTmp = scan.nextLine();\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] = Integer.parseInt(sTmp.split(\" \")[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble ave = (double)sum / (double)n;\n\t\t\tdouble dv = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdv += (ave - (double)s[i]) * (ave - (double)s[i]);\n\t\t\t}\n\t\t\tdouble res = Math.sqrt(dv / n);\n\t\t\tSystem.out.println(res);\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while (true) {\n\t\t\tint n = Integer.parseInt(scan.nextLine());\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString sTmp = scan.nextLine();\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] = Integer.parseInt(sTmp.split(\" \")[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble ave = (double)sum / (double)n;\n\t\t\tdouble dv = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdv += (ave - (double)s[i]) * (ave - (double)s[i]);\n\t\t\t}\n\t\t\tdouble res = Math.sqrt(dv / n);\n\t\t\tSystem.out.println(res);\n\t\t}", "true", "{\n\t\t\tint n = Integer.parseInt(scan.nextLine());\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString sTmp = scan.nextLine();\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] = Integer.parseInt(sTmp.split(\" \")[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble ave = (double)sum / (double)n;\n\t\t\tdouble dv = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdv += (ave - (double)s[i]) * (ave - (double)s[i]);\n\t\t\t}\n\t\t\tdouble res = Math.sqrt(dv / n);\n\t\t\tSystem.out.println(res);\n\t\t}", "int n = Integer.parseInt(scan.nextLine());", "n", "Integer.parseInt(scan.nextLine())", "Integer.parseInt", "Integer", "scan.nextLine()", "scan.nextLine", "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;", "String sTmp = scan.nextLine();", "sTmp", "scan.nextLine()", "scan.nextLine", "scan", "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] = Integer.parseInt(sTmp.split(\" \")[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(sTmp.split(\" \")[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}", "{\n\t\t\t\ts[i] = Integer.parseInt(sTmp.split(\" \")[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}", "s[i] = Integer.parseInt(sTmp.split(\" \")[i])", "s[i]", "s", "i", "Integer.parseInt(sTmp.split(\" \")[i])", "Integer.parseInt", "Integer", "sTmp.split(\" \")[i]", "sTmp.split(\" \")", "sTmp.split", "sTmp", "\" \"", "i", "sum += s[i]", "sum", "s[i]", "s", "i", "double ave = (double)sum / (double)n;", "ave", "(double)sum / (double)n", "(double)sum", "(double)n", "double dv = 0;", "dv", "0", "for (int i = 0; i < n; i++) {\n\t\t\t\tdv += (ave - (double)s[i]) * (ave - (double)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\tdv += (ave - (double)s[i]) * (ave - (double)s[i]);\n\t\t\t}", "{\n\t\t\t\tdv += (ave - (double)s[i]) * (ave - (double)s[i]);\n\t\t\t}", "dv += (ave - (double)s[i]) * (ave - (double)s[i])", "dv", "(ave - (double)s[i]) * (ave - (double)s[i])", "(ave - (double)s[i])", "ave", "(double)s[i]", "s", "i", "(ave - (double)s[i])", "ave", "(double)s[i]", "s", "i", "double res = Math.sqrt(dv / n);", "res", "Math.sqrt(dv / n)", "Math.sqrt", "Math", "dv / n", "dv", "n", "System.out.println(res)", "System.out.println", "System.out", "System", "System.out", "res", "String[] args", "args", "public 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 = Integer.parseInt(scan.nextLine());\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString sTmp = scan.nextLine();\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] = Integer.parseInt(sTmp.split(\" \")[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble ave = (double)sum / (double)n;\n\t\t\tdouble dv = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdv += (ave - (double)s[i]) * (ave - (double)s[i]);\n\t\t\t}\n\t\t\tdouble res = Math.sqrt(dv / n);\n\t\t\tSystem.out.println(res);\n\t\t}\n\t}\n\n}", "public 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 = Integer.parseInt(scan.nextLine());\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString sTmp = scan.nextLine();\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] = Integer.parseInt(sTmp.split(\" \")[i]);\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble ave = (double)sum / (double)n;\n\t\t\tdouble dv = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdv += (ave - (double)s[i]) * (ave - (double)s[i]);\n\t\t\t}\n\t\t\tdouble res = Math.sqrt(dv / n);\n\t\t\tSystem.out.println(res);\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.ArrayList; import java.util.List; import java.io.*; import java.util.Scanner; import java.math.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); while (true) { int n = Integer.parseInt(scan.nextLine()); if (n == 0) { break; } String sTmp = scan.nextLine(); int sum = 0; int[] s = new int[n]; for (int i = 0; i < n; i++) { s[i] = Integer.parseInt(sTmp.split(" ")[i]); sum += s[i]; } double ave = (double)sum / (double)n; double dv = 0; for (int i = 0; i < n; i++) { dv += (ave - (double)s[i]) * (ave - (double)s[i]); } double res = Math.sqrt(dv / n); System.out.println(res); } } }
[ 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, 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, 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, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 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, 18, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 145, 5 ], [ 145, 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 ], [ 37, 38 ], [ 37, 39 ], [ 30, 40 ], [ 40, 41 ], [ 41, 42 ], [ 30, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 14, 52 ], [ 52, 53 ], [ 52, 54 ], [ 14, 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 ], [ 71, 72 ], [ 71, 73 ], [ 64, 74 ], [ 74, 75 ], [ 75, 76 ], [ 64, 77 ], [ 78, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 14, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 14, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 100, 102 ], [ 93, 103 ], [ 103, 104 ], [ 104, 105 ], [ 93, 106 ], [ 107, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 112, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 118, 122 ], [ 14, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 127, 129 ], [ 14, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 130, 135 ], [ 135, 136 ], [ 136, 137 ], [ 135, 138 ], [ 8, 139 ], [ 139, 140 ], [ 140, 141 ], [ 6, 142 ], [ 142, 143 ], [ 0, 144 ], [ 144, 145 ], [ 144, 146 ] ]
[ "import java.util.Scanner;\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n int a = sc.nextInt();\n if(a==0) {break;}\n int []scores=new int[a];\n for(int i=0;i<scores.length;i++){\n scores[i] = sc.nextInt();\n } \n double average=0,variance=0,deviation=0;\n int sum=0;\n for(int j=0;j<scores.length;j++){\n sum=scores[j]+sum;\n }\n average=(double)sum/scores.length;\n\n for(int k=0;k<scores.length;k++){\n deviation=deviation+(scores[k]-average)*(scores[k]-average);\n } \n variance=deviation/scores.length;\n \n System.out.println(Math.sqrt(variance));\n\n }\nsc.close();\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 a = sc.nextInt();\n if(a==0) {break;}\n int []scores=new int[a];\n for(int i=0;i<scores.length;i++){\n scores[i] = sc.nextInt();\n } \n double average=0,variance=0,deviation=0;\n int sum=0;\n for(int j=0;j<scores.length;j++){\n sum=scores[j]+sum;\n }\n average=(double)sum/scores.length;\n\n for(int k=0;k<scores.length;k++){\n deviation=deviation+(scores[k]-average)*(scores[k]-average);\n } \n variance=deviation/scores.length;\n \n System.out.println(Math.sqrt(variance));\n\n }\nsc.close();\n }\n \n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n int a = sc.nextInt();\n if(a==0) {break;}\n int []scores=new int[a];\n for(int i=0;i<scores.length;i++){\n scores[i] = sc.nextInt();\n } \n double average=0,variance=0,deviation=0;\n int sum=0;\n for(int j=0;j<scores.length;j++){\n sum=scores[j]+sum;\n }\n average=(double)sum/scores.length;\n\n for(int k=0;k<scores.length;k++){\n deviation=deviation+(scores[k]-average)*(scores[k]-average);\n } \n variance=deviation/scores.length;\n \n System.out.println(Math.sqrt(variance));\n\n }\nsc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n while(true){\n int a = sc.nextInt();\n if(a==0) {break;}\n int []scores=new int[a];\n for(int i=0;i<scores.length;i++){\n scores[i] = sc.nextInt();\n } \n double average=0,variance=0,deviation=0;\n int sum=0;\n for(int j=0;j<scores.length;j++){\n sum=scores[j]+sum;\n }\n average=(double)sum/scores.length;\n\n for(int k=0;k<scores.length;k++){\n deviation=deviation+(scores[k]-average)*(scores[k]-average);\n } \n variance=deviation/scores.length;\n \n System.out.println(Math.sqrt(variance));\n\n }\nsc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n int a = sc.nextInt();\n if(a==0) {break;}\n int []scores=new int[a];\n for(int i=0;i<scores.length;i++){\n scores[i] = sc.nextInt();\n } \n double average=0,variance=0,deviation=0;\n int sum=0;\n for(int j=0;j<scores.length;j++){\n sum=scores[j]+sum;\n }\n average=(double)sum/scores.length;\n\n for(int k=0;k<scores.length;k++){\n deviation=deviation+(scores[k]-average)*(scores[k]-average);\n } \n variance=deviation/scores.length;\n \n System.out.println(Math.sqrt(variance));\n\n }", "true", "{\n int a = sc.nextInt();\n if(a==0) {break;}\n int []scores=new int[a];\n for(int i=0;i<scores.length;i++){\n scores[i] = sc.nextInt();\n } \n double average=0,variance=0,deviation=0;\n int sum=0;\n for(int j=0;j<scores.length;j++){\n sum=scores[j]+sum;\n }\n average=(double)sum/scores.length;\n\n for(int k=0;k<scores.length;k++){\n deviation=deviation+(scores[k]-average)*(scores[k]-average);\n } \n variance=deviation/scores.length;\n \n System.out.println(Math.sqrt(variance));\n\n }", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "if(a==0) {break;}", "a==0", "a", "0", "{break;}", "break;", "int []scores=new int[a];", "scores", "new int[a]", "a", "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", "deviation=0;", "deviation", "0", "int sum=0;", "sum", "0", "for(int j=0;j<scores.length;j++){\n sum=scores[j]+sum;\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]+sum;\n }", "{\n sum=scores[j]+sum;\n }", "sum=scores[j]+sum", "sum", "scores[j]+sum", "scores[j]", "scores", "j", "sum", "average=(double)sum/scores.length", "average", "(double)sum/scores.length", "(double)sum", "scores.length", "scores", "scores.length", "for(int k=0;k<scores.length;k++){\n deviation=deviation+(scores[k]-average)*(scores[k]-average);\n }", "int k=0;", "int k=0;", "k", "0", "k<scores.length", "k", "scores.length", "scores", "scores.length", "k++", "k++", "k", "{\n deviation=deviation+(scores[k]-average)*(scores[k]-average);\n }", "{\n deviation=deviation+(scores[k]-average)*(scores[k]-average);\n }", "deviation=deviation+(scores[k]-average)*(scores[k]-average)", "deviation", "deviation+(scores[k]-average)*(scores[k]-average)", "deviation", "(scores[k]-average)*(scores[k]-average)", "(scores[k]-average)", "scores[k]", "scores", "k", "average", "(scores[k]-average)", "scores[k]", "scores", "k", "average", "variance=deviation/scores.length", "variance", "deviation/scores.length", "deviation", "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", "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 while(true){\n int a = sc.nextInt();\n if(a==0) {break;}\n int []scores=new int[a];\n for(int i=0;i<scores.length;i++){\n scores[i] = sc.nextInt();\n } \n double average=0,variance=0,deviation=0;\n int sum=0;\n for(int j=0;j<scores.length;j++){\n sum=scores[j]+sum;\n }\n average=(double)sum/scores.length;\n\n for(int k=0;k<scores.length;k++){\n deviation=deviation+(scores[k]-average)*(scores[k]-average);\n } \n variance=deviation/scores.length;\n \n System.out.println(Math.sqrt(variance));\n\n }\nsc.close();\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 a = sc.nextInt();\n if(a==0) {break;}\n int []scores=new int[a];\n for(int i=0;i<scores.length;i++){\n scores[i] = sc.nextInt();\n } \n double average=0,variance=0,deviation=0;\n int sum=0;\n for(int j=0;j<scores.length;j++){\n sum=scores[j]+sum;\n }\n average=(double)sum/scores.length;\n\n for(int k=0;k<scores.length;k++){\n deviation=deviation+(scores[k]-average)*(scores[k]-average);\n } \n variance=deviation/scores.length;\n \n System.out.println(Math.sqrt(variance));\n\n }\nsc.close();\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 a = sc.nextInt(); if(a==0) {break;} int []scores=new int[a]; for(int i=0;i<scores.length;i++){ scores[i] = sc.nextInt(); } double average=0,variance=0,deviation=0; int sum=0; for(int j=0;j<scores.length;j++){ sum=scores[j]+sum; } average=(double)sum/scores.length; for(int k=0;k<scores.length;k++){ deviation=deviation+(scores[k]-average)*(scores[k]-average); } variance=deviation/scores.length; System.out.println(Math.sqrt(variance)); } sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 42, 17, 30, 41, 13, 17, 41, 13, 17, 0, 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, 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, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ], [ 8, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 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 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 88, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 22, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 104, 105 ], [ 104, 106 ], [ 22, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 107, 113 ], [ 8, 114 ], [ 114, 115 ], [ 115, 116 ], [ 6, 117 ], [ 117, 118 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n \n\tpublic static void main(String[] args) {\n\n\t\tint n,i;\n\t\tdouble ave,std;\n\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\twhile(true)\n\t\t{\n\t\t\tint sum=0;\n\t\t\tdouble var=0;\n\t\t\t\n\t\t\tn = scan.nextInt();\n\t\t\t\n\t\t\tif(n==0) break;\n\t\t\t\n\t\t\tint a[] = new int[n];\n\t\t\t\n\t\t\tfor(i=0; i<n; i++)\n\t\t\t{\n\t\t\t\ta[i] = scan.nextInt();\n\t\t\t\tsum += a[i];\n\t\t\t}\n\t\t\t\n\t\t\tave = (double)sum/n;\n\t\t\t\n\t\t\tfor(i=0; i<n; i++)\n\t\t\t{\n\t\t\t\tvar += ( (a[i] - ave)*(a[i] - ave) );\n\t\t\t}\n\t\t\t\n\t\t\tstd = Math.sqrt(var/n);\n\t\t\t\n\t\t\tSystem.out.printf(\"%.5f\\n\",std);\n\t\t}\n\t\t\n\t\tscan.close();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n \n\tpublic static void main(String[] args) {\n\n\t\tint n,i;\n\t\tdouble ave,std;\n\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\twhile(true)\n\t\t{\n\t\t\tint sum=0;\n\t\t\tdouble var=0;\n\t\t\t\n\t\t\tn = scan.nextInt();\n\t\t\t\n\t\t\tif(n==0) break;\n\t\t\t\n\t\t\tint a[] = new int[n];\n\t\t\t\n\t\t\tfor(i=0; i<n; i++)\n\t\t\t{\n\t\t\t\ta[i] = scan.nextInt();\n\t\t\t\tsum += a[i];\n\t\t\t}\n\t\t\t\n\t\t\tave = (double)sum/n;\n\t\t\t\n\t\t\tfor(i=0; i<n; i++)\n\t\t\t{\n\t\t\t\tvar += ( (a[i] - ave)*(a[i] - ave) );\n\t\t\t}\n\t\t\t\n\t\t\tstd = Math.sqrt(var/n);\n\t\t\t\n\t\t\tSystem.out.printf(\"%.5f\\n\",std);\n\t\t}\n\t\t\n\t\tscan.close();\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\tint n,i;\n\t\tdouble ave,std;\n\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\twhile(true)\n\t\t{\n\t\t\tint sum=0;\n\t\t\tdouble var=0;\n\t\t\t\n\t\t\tn = scan.nextInt();\n\t\t\t\n\t\t\tif(n==0) break;\n\t\t\t\n\t\t\tint a[] = new int[n];\n\t\t\t\n\t\t\tfor(i=0; i<n; i++)\n\t\t\t{\n\t\t\t\ta[i] = scan.nextInt();\n\t\t\t\tsum += a[i];\n\t\t\t}\n\t\t\t\n\t\t\tave = (double)sum/n;\n\t\t\t\n\t\t\tfor(i=0; i<n; i++)\n\t\t\t{\n\t\t\t\tvar += ( (a[i] - ave)*(a[i] - ave) );\n\t\t\t}\n\t\t\t\n\t\t\tstd = Math.sqrt(var/n);\n\t\t\t\n\t\t\tSystem.out.printf(\"%.5f\\n\",std);\n\t\t}\n\t\t\n\t\tscan.close();\n\t}", "main", "{\n\n\t\tint n,i;\n\t\tdouble ave,std;\n\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\twhile(true)\n\t\t{\n\t\t\tint sum=0;\n\t\t\tdouble var=0;\n\t\t\t\n\t\t\tn = scan.nextInt();\n\t\t\t\n\t\t\tif(n==0) break;\n\t\t\t\n\t\t\tint a[] = new int[n];\n\t\t\t\n\t\t\tfor(i=0; i<n; i++)\n\t\t\t{\n\t\t\t\ta[i] = scan.nextInt();\n\t\t\t\tsum += a[i];\n\t\t\t}\n\t\t\t\n\t\t\tave = (double)sum/n;\n\t\t\t\n\t\t\tfor(i=0; i<n; i++)\n\t\t\t{\n\t\t\t\tvar += ( (a[i] - ave)*(a[i] - ave) );\n\t\t\t}\n\t\t\t\n\t\t\tstd = Math.sqrt(var/n);\n\t\t\t\n\t\t\tSystem.out.printf(\"%.5f\\n\",std);\n\t\t}\n\t\t\n\t\tscan.close();\n\t}", "int n", "n", "i;", "i", "double ave", "ave", "std;", "std", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(true)\n\t\t{\n\t\t\tint sum=0;\n\t\t\tdouble var=0;\n\t\t\t\n\t\t\tn = scan.nextInt();\n\t\t\t\n\t\t\tif(n==0) break;\n\t\t\t\n\t\t\tint a[] = new int[n];\n\t\t\t\n\t\t\tfor(i=0; i<n; i++)\n\t\t\t{\n\t\t\t\ta[i] = scan.nextInt();\n\t\t\t\tsum += a[i];\n\t\t\t}\n\t\t\t\n\t\t\tave = (double)sum/n;\n\t\t\t\n\t\t\tfor(i=0; i<n; i++)\n\t\t\t{\n\t\t\t\tvar += ( (a[i] - ave)*(a[i] - ave) );\n\t\t\t}\n\t\t\t\n\t\t\tstd = Math.sqrt(var/n);\n\t\t\t\n\t\t\tSystem.out.printf(\"%.5f\\n\",std);\n\t\t}", "true", "{\n\t\t\tint sum=0;\n\t\t\tdouble var=0;\n\t\t\t\n\t\t\tn = scan.nextInt();\n\t\t\t\n\t\t\tif(n==0) break;\n\t\t\t\n\t\t\tint a[] = new int[n];\n\t\t\t\n\t\t\tfor(i=0; i<n; i++)\n\t\t\t{\n\t\t\t\ta[i] = scan.nextInt();\n\t\t\t\tsum += a[i];\n\t\t\t}\n\t\t\t\n\t\t\tave = (double)sum/n;\n\t\t\t\n\t\t\tfor(i=0; i<n; i++)\n\t\t\t{\n\t\t\t\tvar += ( (a[i] - ave)*(a[i] - ave) );\n\t\t\t}\n\t\t\t\n\t\t\tstd = Math.sqrt(var/n);\n\t\t\t\n\t\t\tSystem.out.printf(\"%.5f\\n\",std);\n\t\t}", "int sum=0;", "sum", "0", "double var=0;", "var", "0", "n = scan.nextInt()", "n", "scan.nextInt()", "scan.nextInt", "scan", "if(n==0) break;", "n==0", "n", "0", "break;", "int a[] = new int[n];", "a", "new int[n]", "n", "for(i=0; i<n; i++)\n\t\t\t{\n\t\t\t\ta[i] = scan.nextInt();\n\t\t\t\tsum += a[i];\n\t\t\t}", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\ta[i] = scan.nextInt();\n\t\t\t\tsum += a[i];\n\t\t\t}", "{\n\t\t\t\ta[i] = scan.nextInt();\n\t\t\t\tsum += a[i];\n\t\t\t}", "a[i] = scan.nextInt()", "a[i]", "a", "i", "scan.nextInt()", "scan.nextInt", "scan", "sum += a[i]", "sum", "a[i]", "a", "i", "ave = (double)sum/n", "ave", "(double)sum/n", "(double)sum", "n", "for(i=0; i<n; i++)\n\t\t\t{\n\t\t\t\tvar += ( (a[i] - ave)*(a[i] - ave) );\n\t\t\t}", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tvar += ( (a[i] - ave)*(a[i] - ave) );\n\t\t\t}", "{\n\t\t\t\tvar += ( (a[i] - ave)*(a[i] - ave) );\n\t\t\t}", "var += ( (a[i] - ave)*(a[i] - ave) )", "var", "( (a[i] - ave)*(a[i] - ave) )", "(a[i] - ave)", "a[i]", "a", "i", "ave", "(a[i] - ave)", "a[i]", "a", "i", "ave", "std = Math.sqrt(var/n)", "std", "Math.sqrt(var/n)", "Math.sqrt", "Math", "var/n", "var", "n", "System.out.printf(\"%.5f\\n\",std)", "System.out.printf", "System.out", "System", "System.out", "\"%.5f\\n\"", "std", "scan.close()", "scan.close", "scan", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args) { int n,i; double ave,std; Scanner scan = new Scanner(System.in); while(true) { int sum=0; double var=0; n = scan.nextInt(); if(n==0) break; int a[] = new int[n]; for(i=0; i<n; i++) { a[i] = scan.nextInt(); sum += a[i]; } ave = (double)sum/n; for(i=0; i<n; i++) { var += ( (a[i] - ave)*(a[i] - ave) ); } std = Math.sqrt(var/n); System.out.printf("%.5f\n",std); } scan.close(); } }
[ 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, 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, 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, 41, 13, 2, 13, 13, 41, 13, 4, 18, 13, 13, 4, 18, 13, 4, 18, 13, 17, 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 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 29, 30 ], [ 30, 31 ], [ 23, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 23, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 40, 45 ], [ 23, 46 ], [ 46, 47 ], [ 46, 48 ], [ 23, 50 ], [ 50, 51 ], [ 50, 52 ], [ 23, 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 ], [ 23, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 23, 86 ], [ 86, 87 ], [ 86, 88 ], [ 23, 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 ], [ 104, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 104, 112 ], [ 23, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 115, 117 ], [ 23, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 23, 124 ], [ 124, 125 ], [ 125, 126 ], [ 124, 127 ], [ 127, 128 ], [ 128, 129 ], [ 127, 130 ], [ 127, 131 ], [ 14, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 12, 138 ], [ 138, 139 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\n\nclass Main{\n\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile(true){\n\n\t\t\tint num = Integer.parseInt(br.readLine());\n\n\t\t\tif(num == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] token = br.readLine().split(\" \");\n\t\t\tint[] point = new int[num];\n\t\t\tdouble sum = 0;\n\n\t\t\tfor(int i = 0; i < num; i++){\n\t\t\t\tpoint[i] = Integer.parseInt(token[i]);\n\t\t\t\tsum += point[i];\n\t\t\t}\n\n\t\t\tdouble average = sum / num;\n\t\t\tsum = 0;\n\n\t\t\tfor(int i = 0; i < num; i++){\n\t\t\t\tsum += Math.pow(point[i] - average, 2);\n\t\t\t}\n\n\t\t\tdouble dispersion = sum / num;\n\t\t\tdouble deviation = Math.sqrt(dispersion);\n\n\t\t\tsb.append(String.format(\"%.8f\\n\", deviation));\n\n\t\t}\n\n\t\tSystem.out.print(sb);\n\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "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\tStringBuilder sb = new StringBuilder();\n\n\t\twhile(true){\n\n\t\t\tint num = Integer.parseInt(br.readLine());\n\n\t\t\tif(num == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] token = br.readLine().split(\" \");\n\t\t\tint[] point = new int[num];\n\t\t\tdouble sum = 0;\n\n\t\t\tfor(int i = 0; i < num; i++){\n\t\t\t\tpoint[i] = Integer.parseInt(token[i]);\n\t\t\t\tsum += point[i];\n\t\t\t}\n\n\t\t\tdouble average = sum / num;\n\t\t\tsum = 0;\n\n\t\t\tfor(int i = 0; i < num; i++){\n\t\t\t\tsum += Math.pow(point[i] - average, 2);\n\t\t\t}\n\n\t\t\tdouble dispersion = sum / num;\n\t\t\tdouble deviation = Math.sqrt(dispersion);\n\n\t\t\tsb.append(String.format(\"%.8f\\n\", deviation));\n\n\t\t}\n\n\t\tSystem.out.print(sb);\n\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\tStringBuilder sb = new StringBuilder();\n\n\t\twhile(true){\n\n\t\t\tint num = Integer.parseInt(br.readLine());\n\n\t\t\tif(num == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] token = br.readLine().split(\" \");\n\t\t\tint[] point = new int[num];\n\t\t\tdouble sum = 0;\n\n\t\t\tfor(int i = 0; i < num; i++){\n\t\t\t\tpoint[i] = Integer.parseInt(token[i]);\n\t\t\t\tsum += point[i];\n\t\t\t}\n\n\t\t\tdouble average = sum / num;\n\t\t\tsum = 0;\n\n\t\t\tfor(int i = 0; i < num; i++){\n\t\t\t\tsum += Math.pow(point[i] - average, 2);\n\t\t\t}\n\n\t\t\tdouble dispersion = sum / num;\n\t\t\tdouble deviation = Math.sqrt(dispersion);\n\n\t\t\tsb.append(String.format(\"%.8f\\n\", deviation));\n\n\t\t}\n\n\t\tSystem.out.print(sb);\n\n\t}", "main", "{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile(true){\n\n\t\t\tint num = Integer.parseInt(br.readLine());\n\n\t\t\tif(num == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] token = br.readLine().split(\" \");\n\t\t\tint[] point = new int[num];\n\t\t\tdouble sum = 0;\n\n\t\t\tfor(int i = 0; i < num; i++){\n\t\t\t\tpoint[i] = Integer.parseInt(token[i]);\n\t\t\t\tsum += point[i];\n\t\t\t}\n\n\t\t\tdouble average = sum / num;\n\t\t\tsum = 0;\n\n\t\t\tfor(int i = 0; i < num; i++){\n\t\t\t\tsum += Math.pow(point[i] - average, 2);\n\t\t\t}\n\n\t\t\tdouble dispersion = sum / num;\n\t\t\tdouble deviation = Math.sqrt(dispersion);\n\n\t\t\tsb.append(String.format(\"%.8f\\n\", deviation));\n\n\t\t}\n\n\t\tSystem.out.print(sb);\n\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "while(true){\n\n\t\t\tint num = Integer.parseInt(br.readLine());\n\n\t\t\tif(num == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] token = br.readLine().split(\" \");\n\t\t\tint[] point = new int[num];\n\t\t\tdouble sum = 0;\n\n\t\t\tfor(int i = 0; i < num; i++){\n\t\t\t\tpoint[i] = Integer.parseInt(token[i]);\n\t\t\t\tsum += point[i];\n\t\t\t}\n\n\t\t\tdouble average = sum / num;\n\t\t\tsum = 0;\n\n\t\t\tfor(int i = 0; i < num; i++){\n\t\t\t\tsum += Math.pow(point[i] - average, 2);\n\t\t\t}\n\n\t\t\tdouble dispersion = sum / num;\n\t\t\tdouble deviation = Math.sqrt(dispersion);\n\n\t\t\tsb.append(String.format(\"%.8f\\n\", deviation));\n\n\t\t}", "true", "{\n\n\t\t\tint num = Integer.parseInt(br.readLine());\n\n\t\t\tif(num == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] token = br.readLine().split(\" \");\n\t\t\tint[] point = new int[num];\n\t\t\tdouble sum = 0;\n\n\t\t\tfor(int i = 0; i < num; i++){\n\t\t\t\tpoint[i] = Integer.parseInt(token[i]);\n\t\t\t\tsum += point[i];\n\t\t\t}\n\n\t\t\tdouble average = sum / num;\n\t\t\tsum = 0;\n\n\t\t\tfor(int i = 0; i < num; i++){\n\t\t\t\tsum += Math.pow(point[i] - average, 2);\n\t\t\t}\n\n\t\t\tdouble dispersion = sum / num;\n\t\t\tdouble deviation = Math.sqrt(dispersion);\n\n\t\t\tsb.append(String.format(\"%.8f\\n\", deviation));\n\n\t\t}", "int num = Integer.parseInt(br.readLine());", "num", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "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;", "String[] token = br.readLine().split(\" \");", "token", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int[] point = new int[num];", "point", "new int[num]", "num", "double sum = 0;", "sum", "0", "for(int i = 0; i < num; i++){\n\t\t\t\tpoint[i] = Integer.parseInt(token[i]);\n\t\t\t\tsum += point[i];\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < num", "i", "num", "i++", "i++", "i", "{\n\t\t\t\tpoint[i] = Integer.parseInt(token[i]);\n\t\t\t\tsum += point[i];\n\t\t\t}", "{\n\t\t\t\tpoint[i] = Integer.parseInt(token[i]);\n\t\t\t\tsum += point[i];\n\t\t\t}", "point[i] = Integer.parseInt(token[i])", "point[i]", "point", "i", "Integer.parseInt(token[i])", "Integer.parseInt", "Integer", "token[i]", "token", "i", "sum += point[i]", "sum", "point[i]", "point", "i", "double average = sum / num;", "average", "sum / num", "sum", "num", "sum = 0", "sum", "0", "for(int i = 0; i < num; i++){\n\t\t\t\tsum += Math.pow(point[i] - average, 2);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < num", "i", "num", "i++", "i++", "i", "{\n\t\t\t\tsum += Math.pow(point[i] - average, 2);\n\t\t\t}", "{\n\t\t\t\tsum += Math.pow(point[i] - average, 2);\n\t\t\t}", "sum += Math.pow(point[i] - average, 2)", "sum", "Math.pow(point[i] - average, 2)", "Math.pow", "Math", "point[i] - average", "point[i]", "point", "i", "average", "2", "double dispersion = sum / num;", "dispersion", "sum / num", "sum", "num", "double deviation = Math.sqrt(dispersion);", "deviation", "Math.sqrt(dispersion)", "Math.sqrt", "Math", "dispersion", "sb.append(String.format(\"%.8f\\n\", deviation))", "sb.append", "sb", "String.format(\"%.8f\\n\", deviation)", "String.format", "String", "\"%.8f\\n\"", "deviation", "System.out.print(sb)", "System.out.print", "System.out", "System", "System.out", "sb", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); while(true){ int num = Integer.parseInt(br.readLine()); if(num == 0){ break; } String[] token = br.readLine().split(" "); int[] point = new int[num]; double sum = 0; for(int i = 0; i < num; i++){ point[i] = Integer.parseInt(token[i]); sum += point[i]; } double average = sum / num; sum = 0; for(int i = 0; i < num; i++){ sum += Math.pow(point[i] - average, 2); } double dispersion = sum / num; double deviation = Math.sqrt(dispersion); sb.append(String.format("%.8f\n", deviation)); } 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, 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, 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 ], [ 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 ], [ 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 ], [ 83, 84 ], [ 82, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 82, 90 ], [ 81, 91 ], [ 14, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 6, 101 ], [ 101, 102 ] ]
[ "import java.util.Scanner;\n \nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (true) {\n int x = sc.nextInt();\n if (x == 0){\n break;\n }\n double sum = 0;\n int[] y = new int[x];\n for (int i = 0; i < x; i++) {\n y[i] = sc.nextInt();\n sum += y[i];\n }\n double c = sum / x;\n double d = 0;\n for (int i = 0; i < x; i++) {\n d += Math.pow(y[i] - c, 2) / x;\n }\n System.out.println(Math.sqrt(d));\n }\n \n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (true) {\n int x = sc.nextInt();\n if (x == 0){\n break;\n }\n double sum = 0;\n int[] y = new int[x];\n for (int i = 0; i < x; i++) {\n y[i] = sc.nextInt();\n sum += y[i];\n }\n double c = sum / x;\n double d = 0;\n for (int i = 0; i < x; i++) {\n d += Math.pow(y[i] - c, 2) / x;\n }\n System.out.println(Math.sqrt(d));\n }\n \n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (true) {\n int x = sc.nextInt();\n if (x == 0){\n break;\n }\n double sum = 0;\n int[] y = new int[x];\n for (int i = 0; i < x; i++) {\n y[i] = sc.nextInt();\n sum += y[i];\n }\n double c = sum / x;\n double d = 0;\n for (int i = 0; i < x; i++) {\n d += Math.pow(y[i] - c, 2) / x;\n }\n System.out.println(Math.sqrt(d));\n }\n \n }", "main", "{\n Scanner sc = new Scanner(System.in);\n while (true) {\n int x = sc.nextInt();\n if (x == 0){\n break;\n }\n double sum = 0;\n int[] y = new int[x];\n for (int i = 0; i < x; i++) {\n y[i] = sc.nextInt();\n sum += y[i];\n }\n double c = sum / x;\n double d = 0;\n for (int i = 0; i < x; i++) {\n d += Math.pow(y[i] - c, 2) / x;\n }\n System.out.println(Math.sqrt(d));\n }\n \n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (true) {\n int x = sc.nextInt();\n if (x == 0){\n break;\n }\n double sum = 0;\n int[] y = new int[x];\n for (int i = 0; i < x; i++) {\n y[i] = sc.nextInt();\n sum += y[i];\n }\n double c = sum / x;\n double d = 0;\n for (int i = 0; i < x; i++) {\n d += Math.pow(y[i] - c, 2) / x;\n }\n System.out.println(Math.sqrt(d));\n }", "true", "{\n int x = sc.nextInt();\n if (x == 0){\n break;\n }\n double sum = 0;\n int[] y = new int[x];\n for (int i = 0; i < x; i++) {\n y[i] = sc.nextInt();\n sum += y[i];\n }\n double c = sum / x;\n double d = 0;\n for (int i = 0; i < x; i++) {\n d += Math.pow(y[i] - c, 2) / x;\n }\n System.out.println(Math.sqrt(d));\n }", "int x = sc.nextInt();", "x", "sc.nextInt()", "sc.nextInt", "sc", "if (x == 0){\n break;\n }", "x == 0", "x", "0", "{\n break;\n }", "break;", "double sum = 0;", "sum", "0", "int[] y = new int[x];", "y", "new int[x]", "x", "for (int i = 0; i < x; i++) {\n y[i] = sc.nextInt();\n sum += y[i];\n }", "int i = 0;", "int i = 0;", "i", "0", "i < x", "i", "x", "i++", "i++", "i", "{\n y[i] = sc.nextInt();\n sum += y[i];\n }", "{\n y[i] = sc.nextInt();\n sum += y[i];\n }", "y[i] = sc.nextInt()", "y[i]", "y", "i", "sc.nextInt()", "sc.nextInt", "sc", "sum += y[i]", "sum", "y[i]", "y", "i", "double c = sum / x;", "c", "sum / x", "sum", "x", "double d = 0;", "d", "0", "for (int i = 0; i < x; i++) {\n d += Math.pow(y[i] - c, 2) / x;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < x", "i", "x", "i++", "i++", "i", "{\n d += Math.pow(y[i] - c, 2) / x;\n }", "{\n d += Math.pow(y[i] - c, 2) / x;\n }", "d += Math.pow(y[i] - c, 2) / x", "d", "Math.pow(y[i] - c, 2) / x", "Math.pow(y[i] - c, 2)", "Math.pow", "Math", "y[i] - c", "y[i]", "y", "i", "c", "2", "x", "System.out.println(Math.sqrt(d))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(d)", "Math.sqrt", "Math", "d", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (true) { int x = sc.nextInt(); if (x == 0){ break; } double sum = 0; int[] y = new int[x]; for (int i = 0; i < x; i++) { y[i] = sc.nextInt(); sum += y[i]; } double c = sum / x; double d = 0; for (int i = 0; i < x; i++) { d += Math.pow(y[i] - c, 2) / x; } System.out.println(Math.sqrt(d)); } } }
[ 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, 3, 41, 13, 17, 41, 13, 17, 41, 13, 17, 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, 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, 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 ], [ 113, 5 ], [ 113, 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 ], [ 15, 26 ], [ 26, 27 ], [ 26, 28 ], [ 15, 29 ], [ 29, 30 ], [ 29, 31 ], [ 15, 32 ], [ 32, 33 ], [ 32, 34 ], [ 15, 35 ], [ 35, 36 ], [ 35, 37 ], [ 15, 38 ], [ 38, 39 ], [ 38, 40 ], [ 15, 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 ], [ 15, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 15, 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 ], [ 87, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 87, 95 ], [ 15, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 101, 102 ], [ 101, 103 ], [ 15, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 6, 110 ], [ 110, 111 ], [ 0, 112 ], [ 112, 113 ], [ 112, 114 ] ]
[ "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\tfor(;;){\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n==0)break;\n\t\t\t\n\t\t\tdouble st = 0;\n\t\t\tdouble m = 0;\n\t\t\tdouble to = 0;\n\t\t\tdouble a = 0;\n\t\t\tdouble[] s = new double[n];\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = sc.nextDouble();\n\t\t\t\tst += s[i];\n\t\t\t}\n\t\t\tm = st/n;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tto += Math.pow(s[i]-m, 2);\n\t\t\t}\n\t\t\ta = Math.sqrt(to/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\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n==0)break;\n\t\t\t\n\t\t\tdouble st = 0;\n\t\t\tdouble m = 0;\n\t\t\tdouble to = 0;\n\t\t\tdouble a = 0;\n\t\t\tdouble[] s = new double[n];\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = sc.nextDouble();\n\t\t\t\tst += s[i];\n\t\t\t}\n\t\t\tm = st/n;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tto += Math.pow(s[i]-m, 2);\n\t\t\t}\n\t\t\ta = Math.sqrt(to/n);\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n==0)break;\n\t\t\t\n\t\t\tdouble st = 0;\n\t\t\tdouble m = 0;\n\t\t\tdouble to = 0;\n\t\t\tdouble a = 0;\n\t\t\tdouble[] s = new double[n];\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = sc.nextDouble();\n\t\t\t\tst += s[i];\n\t\t\t}\n\t\t\tm = st/n;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tto += Math.pow(s[i]-m, 2);\n\t\t\t}\n\t\t\ta = Math.sqrt(to/n);\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n==0)break;\n\t\t\t\n\t\t\tdouble st = 0;\n\t\t\tdouble m = 0;\n\t\t\tdouble to = 0;\n\t\t\tdouble a = 0;\n\t\t\tdouble[] s = new double[n];\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = sc.nextDouble();\n\t\t\t\tst += s[i];\n\t\t\t}\n\t\t\tm = st/n;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tto += Math.pow(s[i]-m, 2);\n\t\t\t}\n\t\t\ta = Math.sqrt(to/n);\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "for(;;){\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n==0)break;\n\t\t\t\n\t\t\tdouble st = 0;\n\t\t\tdouble m = 0;\n\t\t\tdouble to = 0;\n\t\t\tdouble a = 0;\n\t\t\tdouble[] s = new double[n];\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = sc.nextDouble();\n\t\t\t\tst += s[i];\n\t\t\t}\n\t\t\tm = st/n;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tto += Math.pow(s[i]-m, 2);\n\t\t\t}\n\t\t\ta = Math.sqrt(to/n);\n\t\t\tSystem.out.println(a);\n\t\t}", ";", "{\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n==0)break;\n\t\t\t\n\t\t\tdouble st = 0;\n\t\t\tdouble m = 0;\n\t\t\tdouble to = 0;\n\t\t\tdouble a = 0;\n\t\t\tdouble[] s = new double[n];\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = sc.nextDouble();\n\t\t\t\tst += s[i];\n\t\t\t}\n\t\t\tm = st/n;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tto += Math.pow(s[i]-m, 2);\n\t\t\t}\n\t\t\ta = Math.sqrt(to/n);\n\t\t\tSystem.out.println(a);\n\t\t}", "{\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n==0)break;\n\t\t\t\n\t\t\tdouble st = 0;\n\t\t\tdouble m = 0;\n\t\t\tdouble to = 0;\n\t\t\tdouble a = 0;\n\t\t\tdouble[] s = new double[n];\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = sc.nextDouble();\n\t\t\t\tst += s[i];\n\t\t\t}\n\t\t\tm = st/n;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tto += Math.pow(s[i]-m, 2);\n\t\t\t}\n\t\t\ta = Math.sqrt(to/n);\n\t\t\tSystem.out.println(a);\n\t\t}", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n==0)break;", "n==0", "n", "0", "break;", "double st = 0;", "st", "0", "double m = 0;", "m", "0", "double to = 0;", "to", "0", "double a = 0;", "a", "0", "double[] s = new double[n];", "s", "new double[n]", "n", "for(int i=0; i<n; i++){\n\t\t\t\ts[i] = sc.nextDouble();\n\t\t\t\tst += 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\tst += s[i];\n\t\t\t}", "{\n\t\t\t\ts[i] = sc.nextDouble();\n\t\t\t\tst += s[i];\n\t\t\t}", "s[i] = sc.nextDouble()", "s[i]", "s", "i", "sc.nextDouble()", "sc.nextDouble", "sc", "st += s[i]", "st", "s[i]", "s", "i", "m = st/n", "m", "st/n", "st", "n", "for(int i=0; i<n; i++){\n\t\t\t\tto += 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\tto += Math.pow(s[i]-m, 2);\n\t\t\t}", "{\n\t\t\t\tto += Math.pow(s[i]-m, 2);\n\t\t\t}", "to += Math.pow(s[i]-m, 2)", "to", "Math.pow(s[i]-m, 2)", "Math.pow", "Math", "s[i]-m", "s[i]", "s", "i", "m", "2", "a = Math.sqrt(to/n)", "a", "Math.sqrt(to/n)", "Math.sqrt", "Math", "to/n", "to", "n", "System.out.println(a)", "System.out.println", "System.out", "System", "System.out", "a", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n==0)break;\n\t\t\t\n\t\t\tdouble st = 0;\n\t\t\tdouble m = 0;\n\t\t\tdouble to = 0;\n\t\t\tdouble a = 0;\n\t\t\tdouble[] s = new double[n];\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = sc.nextDouble();\n\t\t\t\tst += s[i];\n\t\t\t}\n\t\t\tm = st/n;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tto += Math.pow(s[i]-m, 2);\n\t\t\t}\n\t\t\ta = Math.sqrt(to/n);\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n==0)break;\n\t\t\t\n\t\t\tdouble st = 0;\n\t\t\tdouble m = 0;\n\t\t\tdouble to = 0;\n\t\t\tdouble a = 0;\n\t\t\tdouble[] s = new double[n];\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\ts[i] = sc.nextDouble();\n\t\t\t\tst += s[i];\n\t\t\t}\n\t\t\tm = st/n;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tto += Math.pow(s[i]-m, 2);\n\t\t\t}\n\t\t\ta = Math.sqrt(to/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 sc = new Scanner(System.in); for(;;){ int n = sc.nextInt(); if(n==0)break; double st = 0; double m = 0; double to = 0; double a = 0; double[] s = new double[n]; for(int i=0; i<n; i++){ s[i] = sc.nextDouble(); st += s[i]; } m = st/n; for(int i=0; i<n; i++){ to += Math.pow(s[i]-m, 2); } a = Math.sqrt(to/n); System.out.println(a); } } }
[ 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, 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, 4, 18, 13, 2, 18, 13, 13, 13, 17, 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 ], [ 138, 5 ], [ 138, 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 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 66, 76 ], [ 76, 77 ], [ 77, 78 ], [ 66, 79 ], [ 80, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 16, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 16, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 100, 102 ], [ 93, 103 ], [ 103, 104 ], [ 104, 105 ], [ 93, 106 ], [ 107, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 110, 118 ], [ 16, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 123, 125 ], [ 16, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 131, 132 ], [ 132, 133 ], [ 131, 134 ], [ 6, 135 ], [ 135, 136 ], [ 0, 137 ], [ 137, 138 ], [ 137, 139 ] ]
[ " import java.util.Scanner;\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 average = 0, variance = 0;\n\n double sum1 = 0, sum2 = 0;\n for (int i = 0; i < scores.length; i++) {\n sum1 += scores[i];\n }\n average = sum1 / scores.length;\n for (int i = 0; i < scores.length; i++) {\n sum2 += Math.pow(scores[i] - average, 2);\n }\n variance = sum2 / scores.length;\n System.out.println(Math.sqrt(variance));\n }\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 average = 0, variance = 0;\n\n double sum1 = 0, sum2 = 0;\n for (int i = 0; i < scores.length; i++) {\n sum1 += scores[i];\n }\n average = sum1 / scores.length;\n for (int i = 0; i < scores.length; i++) {\n sum2 += Math.pow(scores[i] - average, 2);\n }\n variance = sum2 / 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 average = 0, variance = 0;\n\n double sum1 = 0, sum2 = 0;\n for (int i = 0; i < scores.length; i++) {\n sum1 += scores[i];\n }\n average = sum1 / scores.length;\n for (int i = 0; i < scores.length; i++) {\n sum2 += Math.pow(scores[i] - average, 2);\n }\n variance = sum2 / 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 average = 0, variance = 0;\n\n double sum1 = 0, sum2 = 0;\n for (int i = 0; i < scores.length; i++) {\n sum1 += scores[i];\n }\n average = sum1 / scores.length;\n for (int i = 0; i < scores.length; i++) {\n sum2 += Math.pow(scores[i] - average, 2);\n }\n variance = sum2 / 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 average = 0, variance = 0;\n\n double sum1 = 0, sum2 = 0;\n for (int i = 0; i < scores.length; i++) {\n sum1 += scores[i];\n }\n average = sum1 / scores.length;\n for (int i = 0; i < scores.length; i++) {\n sum2 += Math.pow(scores[i] - average, 2);\n }\n variance = sum2 / 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 average = 0, variance = 0;\n\n double sum1 = 0, sum2 = 0;\n for (int i = 0; i < scores.length; i++) {\n sum1 += scores[i];\n }\n average = sum1 / scores.length;\n for (int i = 0; i < scores.length; i++) {\n sum2 += Math.pow(scores[i] - average, 2);\n }\n variance = sum2 / 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 average = 0, variance = 0;\n\n double sum1 = 0, sum2 = 0;\n for (int i = 0; i < scores.length; i++) {\n sum1 += scores[i];\n }\n average = sum1 / scores.length;\n for (int i = 0; i < scores.length; i++) {\n sum2 += Math.pow(scores[i] - average, 2);\n }\n variance = sum2 / 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 average = 0, variance = 0;\n\n double sum1 = 0, sum2 = 0;\n for (int i = 0; i < scores.length; i++) {\n sum1 += scores[i];\n }\n average = sum1 / scores.length;\n for (int i = 0; i < scores.length; i++) {\n sum2 += Math.pow(scores[i] - average, 2);\n }\n variance = sum2 / 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 average = 0", "average", "0", "variance = 0;", "variance", "0", "double sum1 = 0", "sum1", "0", "sum2 = 0;", "sum2", "0", "for (int i = 0; i < scores.length; i++) {\n sum1 += scores[i];\n }", "int i = 0;", "int i = 0;", "i", "0", "i < scores.length", "i", "scores.length", "scores", "scores.length", "i++", "i++", "i", "{\n sum1 += scores[i];\n }", "{\n sum1 += scores[i];\n }", "sum1 += scores[i]", "sum1", "scores[i]", "scores", "i", "average = sum1 / scores.length", "average", "sum1 / scores.length", "sum1", "scores.length", "scores", "scores.length", "for (int i = 0; i < scores.length; i++) {\n sum2 += 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 sum2 += Math.pow(scores[i] - average, 2);\n }", "{\n sum2 += Math.pow(scores[i] - average, 2);\n }", "sum2 += Math.pow(scores[i] - average, 2)", "sum2", "Math.pow(scores[i] - average, 2)", "Math.pow", "Math", "scores[i] - average", "scores[i]", "scores", "i", "average", "2", "variance = sum2 / scores.length", "variance", "sum2 / scores.length", "sum2", "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 average = 0, variance = 0;\n\n double sum1 = 0, sum2 = 0;\n for (int i = 0; i < scores.length; i++) {\n sum1 += scores[i];\n }\n average = sum1 / scores.length;\n for (int i = 0; i < scores.length; i++) {\n sum2 += Math.pow(scores[i] - average, 2);\n }\n variance = sum2 / 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 average = 0, variance = 0;\n\n double sum1 = 0, sum2 = 0;\n for (int i = 0; i < scores.length; i++) {\n sum1 += scores[i];\n }\n average = sum1 / scores.length;\n for (int i = 0; i < scores.length; i++) {\n sum2 += Math.pow(scores[i] - average, 2);\n }\n variance = sum2 / 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 average = 0, variance = 0; double sum1 = 0, sum2 = 0; for (int i = 0; i < scores.length; i++) { sum1 += scores[i]; } average = sum1 / scores.length; for (int i = 0; i < scores.length; i++) { sum2 += Math.pow(scores[i] - average, 2); } variance = sum2 / scores.length; System.out.println(Math.sqrt(variance)); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 17, 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, 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, 13, 4, 18, 4, 18, 13, 4, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 131, 5 ], [ 131, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 25, 26 ], [ 26, 27 ], [ 19, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 32, 33 ], [ 19, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 36, 41 ], [ 19, 42 ], [ 42, 43 ], [ 42, 44 ], [ 19, 45 ], [ 45, 46 ], [ 45, 47 ], [ 19, 48 ], [ 48, 49 ], [ 48, 50 ], [ 19, 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 ], [ 69, 72 ], [ 72, 73 ], [ 72, 74 ], [ 64, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 19, 80 ], [ 80, 81 ], [ 80, 82 ], [ 19, 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 ], [ 19, 107 ], [ 107, 108 ], [ 107, 109 ], [ 19, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 112, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 110, 119 ], [ 8, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 120, 125 ], [ 125, 126 ], [ 126, 127 ], [ 6, 128 ], [ 128, 129 ], [ 0, 130 ], [ 130, 131 ], [ 130, 132 ] ]
[ "import java.io.*;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n int n;\n\n while(true){\n n = Integer.parseInt(br.readLine());\n if(n == 0){\n break;\n }\n\n String[] str = br.readLine().split(\" \");\n double ave = 0;\n double alpha = 0;\n double[] line = new double[n];\n for(int i = 0; i < n; i++){\n line[i] = Double.parseDouble(str[i]);\n ave += line[i];\n }\n ave /= n;\n\n for(int i = 0; i < n; i++){\n alpha += Math.pow((line[i]-ave), 2);\n }\n alpha /= n;\n sb.append(Math.sqrt(alpha)).append(\"\\n\");\n }\n System.out.print(sb.toString());\n }\n}", "import java.io.*;", "io.*", "java", "public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n int n;\n\n while(true){\n n = Integer.parseInt(br.readLine());\n if(n == 0){\n break;\n }\n\n String[] str = br.readLine().split(\" \");\n double ave = 0;\n double alpha = 0;\n double[] line = new double[n];\n for(int i = 0; i < n; i++){\n line[i] = Double.parseDouble(str[i]);\n ave += line[i];\n }\n ave /= n;\n\n for(int i = 0; i < n; i++){\n alpha += Math.pow((line[i]-ave), 2);\n }\n alpha /= n;\n sb.append(Math.sqrt(alpha)).append(\"\\n\");\n }\n System.out.print(sb.toString());\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n int n;\n\n while(true){\n n = Integer.parseInt(br.readLine());\n if(n == 0){\n break;\n }\n\n String[] str = br.readLine().split(\" \");\n double ave = 0;\n double alpha = 0;\n double[] line = new double[n];\n for(int i = 0; i < n; i++){\n line[i] = Double.parseDouble(str[i]);\n ave += line[i];\n }\n ave /= n;\n\n for(int i = 0; i < n; i++){\n alpha += Math.pow((line[i]-ave), 2);\n }\n alpha /= n;\n sb.append(Math.sqrt(alpha)).append(\"\\n\");\n }\n System.out.print(sb.toString());\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n int n;\n\n while(true){\n n = Integer.parseInt(br.readLine());\n if(n == 0){\n break;\n }\n\n String[] str = br.readLine().split(\" \");\n double ave = 0;\n double alpha = 0;\n double[] line = new double[n];\n for(int i = 0; i < n; i++){\n line[i] = Double.parseDouble(str[i]);\n ave += line[i];\n }\n ave /= n;\n\n for(int i = 0; i < n; i++){\n alpha += Math.pow((line[i]-ave), 2);\n }\n alpha /= n;\n sb.append(Math.sqrt(alpha)).append(\"\\n\");\n }\n System.out.print(sb.toString());\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "int n;", "n", "while(true){\n n = Integer.parseInt(br.readLine());\n if(n == 0){\n break;\n }\n\n String[] str = br.readLine().split(\" \");\n double ave = 0;\n double alpha = 0;\n double[] line = new double[n];\n for(int i = 0; i < n; i++){\n line[i] = Double.parseDouble(str[i]);\n ave += line[i];\n }\n ave /= n;\n\n for(int i = 0; i < n; i++){\n alpha += Math.pow((line[i]-ave), 2);\n }\n alpha /= n;\n sb.append(Math.sqrt(alpha)).append(\"\\n\");\n }", "true", "{\n n = Integer.parseInt(br.readLine());\n if(n == 0){\n break;\n }\n\n String[] str = br.readLine().split(\" \");\n double ave = 0;\n double alpha = 0;\n double[] line = new double[n];\n for(int i = 0; i < n; i++){\n line[i] = Double.parseDouble(str[i]);\n ave += line[i];\n }\n ave /= n;\n\n for(int i = 0; i < n; i++){\n alpha += Math.pow((line[i]-ave), 2);\n }\n alpha /= n;\n sb.append(Math.sqrt(alpha)).append(\"\\n\");\n }", "n = Integer.parseInt(br.readLine())", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "if(n == 0){\n break;\n }", "n == 0", "n", "0", "{\n break;\n }", "break;", "String[] str = br.readLine().split(\" \");", "str", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "double ave = 0;", "ave", "0", "double alpha = 0;", "alpha", "0", "double[] line = new double[n];", "line", "new double[n]", "n", "for(int i = 0; i < n; i++){\n line[i] = Double.parseDouble(str[i]);\n ave += line[i];\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n line[i] = Double.parseDouble(str[i]);\n ave += line[i];\n }", "{\n line[i] = Double.parseDouble(str[i]);\n ave += line[i];\n }", "line[i] = Double.parseDouble(str[i])", "line[i]", "line", "i", "Double.parseDouble(str[i])", "Double.parseDouble", "Double", "str[i]", "str", "i", "ave += line[i]", "ave", "line[i]", "line", "i", "ave /= n", "ave", "n", "for(int i = 0; i < n; i++){\n alpha += Math.pow((line[i]-ave), 2);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n alpha += Math.pow((line[i]-ave), 2);\n }", "{\n alpha += Math.pow((line[i]-ave), 2);\n }", "alpha += Math.pow((line[i]-ave), 2)", "alpha", "Math.pow((line[i]-ave), 2)", "Math.pow", "Math", "(line[i]-ave)", "line[i]", "line", "i", "ave", "2", "alpha /= n", "alpha", "n", "sb.append(Math.sqrt(alpha)).append(\"\\n\")", "sb.append(Math.sqrt(alpha)).append", "sb.append(Math.sqrt(alpha))", "sb.append", "sb", "Math.sqrt(alpha)", "Math.sqrt", "Math", "alpha", "\"\\n\"", "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 public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n int n;\n\n while(true){\n n = Integer.parseInt(br.readLine());\n if(n == 0){\n break;\n }\n\n String[] str = br.readLine().split(\" \");\n double ave = 0;\n double alpha = 0;\n double[] line = new double[n];\n for(int i = 0; i < n; i++){\n line[i] = Double.parseDouble(str[i]);\n ave += line[i];\n }\n ave /= n;\n\n for(int i = 0; i < n; i++){\n alpha += Math.pow((line[i]-ave), 2);\n }\n alpha /= n;\n sb.append(Math.sqrt(alpha)).append(\"\\n\");\n }\n System.out.print(sb.toString());\n }\n}", "public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n int n;\n\n while(true){\n n = Integer.parseInt(br.readLine());\n if(n == 0){\n break;\n }\n\n String[] str = br.readLine().split(\" \");\n double ave = 0;\n double alpha = 0;\n double[] line = new double[n];\n for(int i = 0; i < n; i++){\n line[i] = Double.parseDouble(str[i]);\n ave += line[i];\n }\n ave /= n;\n\n for(int i = 0; i < n; i++){\n alpha += Math.pow((line[i]-ave), 2);\n }\n alpha /= n;\n sb.append(Math.sqrt(alpha)).append(\"\\n\");\n }\n System.out.print(sb.toString());\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)); StringBuilder sb = new StringBuilder(); int n; while(true){ n = Integer.parseInt(br.readLine()); if(n == 0){ break; } String[] str = br.readLine().split(" "); double ave = 0; double alpha = 0; double[] line = new double[n]; for(int i = 0; i < n; i++){ line[i] = Double.parseDouble(str[i]); ave += line[i]; } ave /= n; for(int i = 0; i < n; i++){ alpha += Math.pow((line[i]-ave), 2); } alpha /= n; sb.append(Math.sqrt(alpha)).append("\n"); } System.out.print(sb.toString()); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 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, 4, 18, 13, 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, 4, 18, 13, 18, 13, 13, 17, 41, 13, 2, 13, 13, 41, 13, 4, 18, 13, 2, 2, 13, 13, 4, 18, 13, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 26, 27 ], [ 27, 28 ], [ 20, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 20, 34 ], [ 34, 35 ], [ 34, 36 ], [ 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 ], [ 20, 61 ], [ 61, 62 ], [ 61, 63 ], [ 20, 64 ], [ 64, 65 ], [ 64, 66 ], [ 20, 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 ], [ 79, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 90, 91 ], [ 90, 92 ], [ 87, 93 ], [ 20, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 20, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 104, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 108, 112 ], [ 20, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 12, 119 ], [ 119, 120 ] ]
[ "import java.io.*;\nimport java.util.*;\nimport java.lang.*;\n\nclass Main{\n public static void main(String[] args) throws IOException{\n Scanner scan=new Scanner(System.in);\n while(true){\n int n=Integer.parseInt(scan.next());\n if(n==0)break;\n int[] s=new int[n];\n for(int i=0;i<n;i++){\n s[i]=Integer.parseInt(scan.next());\n }\n double sum=0;\n double sum2=0;\n for(int i=0;i<n;i++){\n sum+=s[i];\n sum2+=Math.pow(s[i],2);\n }\n double avg=sum/n;\n double dev=Math.sqrt(sum2/n-Math.pow(avg,2));\n System.out.println(dev);\n }\n }\n}\n", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "import java.lang.*;", "lang.*", "java", "class Main{\n public static void main(String[] args) throws IOException{\n Scanner scan=new Scanner(System.in);\n while(true){\n int n=Integer.parseInt(scan.next());\n if(n==0)break;\n int[] s=new int[n];\n for(int i=0;i<n;i++){\n s[i]=Integer.parseInt(scan.next());\n }\n double sum=0;\n double sum2=0;\n for(int i=0;i<n;i++){\n sum+=s[i];\n sum2+=Math.pow(s[i],2);\n }\n double avg=sum/n;\n double dev=Math.sqrt(sum2/n-Math.pow(avg,2));\n System.out.println(dev);\n }\n }\n}", "Main", "public static void main(String[] args) throws IOException{\n Scanner scan=new Scanner(System.in);\n while(true){\n int n=Integer.parseInt(scan.next());\n if(n==0)break;\n int[] s=new int[n];\n for(int i=0;i<n;i++){\n s[i]=Integer.parseInt(scan.next());\n }\n double sum=0;\n double sum2=0;\n for(int i=0;i<n;i++){\n sum+=s[i];\n sum2+=Math.pow(s[i],2);\n }\n double avg=sum/n;\n double dev=Math.sqrt(sum2/n-Math.pow(avg,2));\n System.out.println(dev);\n }\n }", "main", "{\n Scanner scan=new Scanner(System.in);\n while(true){\n int n=Integer.parseInt(scan.next());\n if(n==0)break;\n int[] s=new int[n];\n for(int i=0;i<n;i++){\n s[i]=Integer.parseInt(scan.next());\n }\n double sum=0;\n double sum2=0;\n for(int i=0;i<n;i++){\n sum+=s[i];\n sum2+=Math.pow(s[i],2);\n }\n double avg=sum/n;\n double dev=Math.sqrt(sum2/n-Math.pow(avg,2));\n System.out.println(dev);\n }\n }", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(true){\n int n=Integer.parseInt(scan.next());\n if(n==0)break;\n int[] s=new int[n];\n for(int i=0;i<n;i++){\n s[i]=Integer.parseInt(scan.next());\n }\n double sum=0;\n double sum2=0;\n for(int i=0;i<n;i++){\n sum+=s[i];\n sum2+=Math.pow(s[i],2);\n }\n double avg=sum/n;\n double dev=Math.sqrt(sum2/n-Math.pow(avg,2));\n System.out.println(dev);\n }", "true", "{\n int n=Integer.parseInt(scan.next());\n if(n==0)break;\n int[] s=new int[n];\n for(int i=0;i<n;i++){\n s[i]=Integer.parseInt(scan.next());\n }\n double sum=0;\n double sum2=0;\n for(int i=0;i<n;i++){\n sum+=s[i];\n sum2+=Math.pow(s[i],2);\n }\n double avg=sum/n;\n double dev=Math.sqrt(sum2/n-Math.pow(avg,2));\n System.out.println(dev);\n }", "int n=Integer.parseInt(scan.next());", "n", "Integer.parseInt(scan.next())", "Integer.parseInt", "Integer", "scan.next()", "scan.next", "scan", "if(n==0)break;", "n==0", "n", "0", "break;", "int[] s=new int[n];", "s", "new int[n]", "n", "for(int i=0;i<n;i++){\n s[i]=Integer.parseInt(scan.next());\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n s[i]=Integer.parseInt(scan.next());\n }", "{\n s[i]=Integer.parseInt(scan.next());\n }", "s[i]=Integer.parseInt(scan.next())", "s[i]", "s", "i", "Integer.parseInt(scan.next())", "Integer.parseInt", "Integer", "scan.next()", "scan.next", "scan", "double sum=0;", "sum", "0", "double sum2=0;", "sum2", "0", "for(int i=0;i<n;i++){\n sum+=s[i];\n sum2+=Math.pow(s[i],2);\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n sum+=s[i];\n sum2+=Math.pow(s[i],2);\n }", "{\n sum+=s[i];\n sum2+=Math.pow(s[i],2);\n }", "sum+=s[i]", "sum", "s[i]", "s", "i", "sum2+=Math.pow(s[i],2)", "sum2", "Math.pow(s[i],2)", "Math.pow", "Math", "s[i]", "s", "i", "2", "double avg=sum/n;", "avg", "sum/n", "sum", "n", "double dev=Math.sqrt(sum2/n-Math.pow(avg,2));", "dev", "Math.sqrt(sum2/n-Math.pow(avg,2))", "Math.sqrt", "Math", "sum2/n-Math.pow(avg,2)", "sum2/n", "sum2", "n", "Math.pow(avg,2)", "Math.pow", "Math", "avg", "2", "System.out.println(dev)", "System.out.println", "System.out", "System", "System.out", "dev", "String[] args", "args" ]
import java.io.*; import java.util.*; import java.lang.*; class Main{ public static void main(String[] args) throws IOException{ Scanner scan=new Scanner(System.in); while(true){ int n=Integer.parseInt(scan.next()); if(n==0)break; int[] s=new int[n]; for(int i=0;i<n;i++){ s[i]=Integer.parseInt(scan.next()); } double sum=0; double sum2=0; for(int i=0;i<n;i++){ sum+=s[i]; sum2+=Math.pow(s[i],2); } double avg=sum/n; double dev=Math.sqrt(sum2/n-Math.pow(avg,2)); System.out.println(dev); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 0, 13, 17, 0, 13, 17, 41, 13, 20, 41, 13, 20, 42, 17, 30, 0, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 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, 4, 18, 13, 13, 13, 2, 4, 18, 13, 13, 13, 41, 13, 4, 18, 13, 2, 13, 13, 4, 18, 13, 13, 4, 18, 13, 17, 0, 13, 17, 0, 13, 17, 4, 18, 13, 4, 18, 13, 2, 4, 18, 13, 17, 4, 18, 18, 13, 13, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 157, 5 ], [ 157, 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 ], [ 18, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 8, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 32, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 32, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 44, 55 ], [ 56, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 60, 61 ], [ 61, 62 ], [ 32, 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 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 32, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 32, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 92, 93 ], [ 92, 94 ], [ 87, 95 ], [ 95, 96 ], [ 96, 97 ], [ 87, 98 ], [ 99, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 103, 108 ], [ 102, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 109, 114 ], [ 32, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 118, 119 ], [ 117, 120 ], [ 120, 121 ], [ 120, 122 ], [ 32, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 32, 127 ], [ 127, 128 ], [ 128, 129 ], [ 127, 130 ], [ 32, 131 ], [ 131, 132 ], [ 131, 133 ], [ 32, 134 ], [ 134, 135 ], [ 134, 136 ], [ 32, 137 ], [ 137, 138 ], [ 138, 139 ], [ 8, 140 ], [ 140, 141 ], [ 141, 142 ], [ 140, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 143, 147 ], [ 8, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 6, 154 ], [ 154, 155 ], [ 0, 156 ], [ 156, 157 ], [ 156, 158 ] ]
[ "\n\nimport java.util.*;\n\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 avg, num;\n\t\tnum = 0.0;\n\t\tavg = 0.0;\n\t\tStringBuilder sb = new StringBuilder();\n\t\tList<Integer> list = new ArrayList<Integer>();\n\n\t\twhile (true) {\n\t\t\tn = scan.nextInt();\n\n\t\t\t// n???0?????¨???????????????\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// n????????? n????????????????????????????´?\n\t\t\tfor (int count = 0; count < n; count++) {\n\t\t\t\tlist.add(scan.nextInt());\n\t\t\t}\n\t\t\t// ??????????????¨???\n\t\t\tfor (int count2 = 0; count2 < n; count2++) {\n\t\t\t\tavg += list.get(count2);\n\t\t\t}\n\t\t\tavg = avg / n;\n\n\t\t\t// ?????£????¨???? (s1..sn - avg)^2???????¨?/n\n\t\t\tfor (int count3 = 0; count3 < n; count3++) {\n\t\t\t\tnum += (list.get(count3) - avg)*(list.get(count3) - avg);\n\t\t\t}\n\n\t\t\t// ?¨?????????? ?????????(?????£/n)\n\t\t\tDouble d = Math.sqrt(num / n);\n\t\t\tsb.append(d);\n\t\t\tsb.append(\"\\n\");\n\n\t\t\t// ?????¨?????????????????????\n\t\t\tavg = 0.0;\n\t\t\tnum = 0.0;\n\t\t\tlist.clear();\n\t\t}\n\n\t\t// ????????????????????????\n\t\tsb.deleteCharAt(sb.length() - 1);\n\t\tSystem.out.print(new String(sb));\n\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n;\n\t\tDouble avg, num;\n\t\tnum = 0.0;\n\t\tavg = 0.0;\n\t\tStringBuilder sb = new StringBuilder();\n\t\tList<Integer> list = new ArrayList<Integer>();\n\n\t\twhile (true) {\n\t\t\tn = scan.nextInt();\n\n\t\t\t// n???0?????¨???????????????\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// n????????? n????????????????????????????´?\n\t\t\tfor (int count = 0; count < n; count++) {\n\t\t\t\tlist.add(scan.nextInt());\n\t\t\t}\n\t\t\t// ??????????????¨???\n\t\t\tfor (int count2 = 0; count2 < n; count2++) {\n\t\t\t\tavg += list.get(count2);\n\t\t\t}\n\t\t\tavg = avg / n;\n\n\t\t\t// ?????£????¨???? (s1..sn - avg)^2???????¨?/n\n\t\t\tfor (int count3 = 0; count3 < n; count3++) {\n\t\t\t\tnum += (list.get(count3) - avg)*(list.get(count3) - avg);\n\t\t\t}\n\n\t\t\t// ?¨?????????? ?????????(?????£/n)\n\t\t\tDouble d = Math.sqrt(num / n);\n\t\t\tsb.append(d);\n\t\t\tsb.append(\"\\n\");\n\n\t\t\t// ?????¨?????????????????????\n\t\t\tavg = 0.0;\n\t\t\tnum = 0.0;\n\t\t\tlist.clear();\n\t\t}\n\n\t\t// ????????????????????????\n\t\tsb.deleteCharAt(sb.length() - 1);\n\t\tSystem.out.print(new String(sb));\n\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 avg, num;\n\t\tnum = 0.0;\n\t\tavg = 0.0;\n\t\tStringBuilder sb = new StringBuilder();\n\t\tList<Integer> list = new ArrayList<Integer>();\n\n\t\twhile (true) {\n\t\t\tn = scan.nextInt();\n\n\t\t\t// n???0?????¨???????????????\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// n????????? n????????????????????????????´?\n\t\t\tfor (int count = 0; count < n; count++) {\n\t\t\t\tlist.add(scan.nextInt());\n\t\t\t}\n\t\t\t// ??????????????¨???\n\t\t\tfor (int count2 = 0; count2 < n; count2++) {\n\t\t\t\tavg += list.get(count2);\n\t\t\t}\n\t\t\tavg = avg / n;\n\n\t\t\t// ?????£????¨???? (s1..sn - avg)^2???????¨?/n\n\t\t\tfor (int count3 = 0; count3 < n; count3++) {\n\t\t\t\tnum += (list.get(count3) - avg)*(list.get(count3) - avg);\n\t\t\t}\n\n\t\t\t// ?¨?????????? ?????????(?????£/n)\n\t\t\tDouble d = Math.sqrt(num / n);\n\t\t\tsb.append(d);\n\t\t\tsb.append(\"\\n\");\n\n\t\t\t// ?????¨?????????????????????\n\t\t\tavg = 0.0;\n\t\t\tnum = 0.0;\n\t\t\tlist.clear();\n\t\t}\n\n\t\t// ????????????????????????\n\t\tsb.deleteCharAt(sb.length() - 1);\n\t\tSystem.out.print(new String(sb));\n\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n;\n\t\tDouble avg, num;\n\t\tnum = 0.0;\n\t\tavg = 0.0;\n\t\tStringBuilder sb = new StringBuilder();\n\t\tList<Integer> list = new ArrayList<Integer>();\n\n\t\twhile (true) {\n\t\t\tn = scan.nextInt();\n\n\t\t\t// n???0?????¨???????????????\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// n????????? n????????????????????????????´?\n\t\t\tfor (int count = 0; count < n; count++) {\n\t\t\t\tlist.add(scan.nextInt());\n\t\t\t}\n\t\t\t// ??????????????¨???\n\t\t\tfor (int count2 = 0; count2 < n; count2++) {\n\t\t\t\tavg += list.get(count2);\n\t\t\t}\n\t\t\tavg = avg / n;\n\n\t\t\t// ?????£????¨???? (s1..sn - avg)^2???????¨?/n\n\t\t\tfor (int count3 = 0; count3 < n; count3++) {\n\t\t\t\tnum += (list.get(count3) - avg)*(list.get(count3) - avg);\n\t\t\t}\n\n\t\t\t// ?¨?????????? ?????????(?????£/n)\n\t\t\tDouble d = Math.sqrt(num / n);\n\t\t\tsb.append(d);\n\t\t\tsb.append(\"\\n\");\n\n\t\t\t// ?????¨?????????????????????\n\t\t\tavg = 0.0;\n\t\t\tnum = 0.0;\n\t\t\tlist.clear();\n\t\t}\n\n\t\t// ????????????????????????\n\t\tsb.deleteCharAt(sb.length() - 1);\n\t\tSystem.out.print(new String(sb));\n\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n;", "n", "Double avg", "avg", "num;", "num", "num = 0.0", "num", "0.0", "avg = 0.0", "avg", "0.0", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "List<Integer> list = new ArrayList<Integer>();", "list", "new ArrayList<Integer>()", "while (true) {\n\t\t\tn = scan.nextInt();\n\n\t\t\t// n???0?????¨???????????????\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// n????????? n????????????????????????????´?\n\t\t\tfor (int count = 0; count < n; count++) {\n\t\t\t\tlist.add(scan.nextInt());\n\t\t\t}\n\t\t\t// ??????????????¨???\n\t\t\tfor (int count2 = 0; count2 < n; count2++) {\n\t\t\t\tavg += list.get(count2);\n\t\t\t}\n\t\t\tavg = avg / n;\n\n\t\t\t// ?????£????¨???? (s1..sn - avg)^2???????¨?/n\n\t\t\tfor (int count3 = 0; count3 < n; count3++) {\n\t\t\t\tnum += (list.get(count3) - avg)*(list.get(count3) - avg);\n\t\t\t}\n\n\t\t\t// ?¨?????????? ?????????(?????£/n)\n\t\t\tDouble d = Math.sqrt(num / n);\n\t\t\tsb.append(d);\n\t\t\tsb.append(\"\\n\");\n\n\t\t\t// ?????¨?????????????????????\n\t\t\tavg = 0.0;\n\t\t\tnum = 0.0;\n\t\t\tlist.clear();\n\t\t}", "true", "{\n\t\t\tn = scan.nextInt();\n\n\t\t\t// n???0?????¨???????????????\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// n????????? n????????????????????????????´?\n\t\t\tfor (int count = 0; count < n; count++) {\n\t\t\t\tlist.add(scan.nextInt());\n\t\t\t}\n\t\t\t// ??????????????¨???\n\t\t\tfor (int count2 = 0; count2 < n; count2++) {\n\t\t\t\tavg += list.get(count2);\n\t\t\t}\n\t\t\tavg = avg / n;\n\n\t\t\t// ?????£????¨???? (s1..sn - avg)^2???????¨?/n\n\t\t\tfor (int count3 = 0; count3 < n; count3++) {\n\t\t\t\tnum += (list.get(count3) - avg)*(list.get(count3) - avg);\n\t\t\t}\n\n\t\t\t// ?¨?????????? ?????????(?????£/n)\n\t\t\tDouble d = Math.sqrt(num / n);\n\t\t\tsb.append(d);\n\t\t\tsb.append(\"\\n\");\n\n\t\t\t// ?????¨?????????????????????\n\t\t\tavg = 0.0;\n\t\t\tnum = 0.0;\n\t\t\tlist.clear();\n\t\t}", "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;", "for (int count = 0; count < n; count++) {\n\t\t\t\tlist.add(scan.nextInt());\n\t\t\t}", "int count = 0;", "int count = 0;", "count", "0", "count < n", "count", "n", "count++", "count++", "count", "{\n\t\t\t\tlist.add(scan.nextInt());\n\t\t\t}", "{\n\t\t\t\tlist.add(scan.nextInt());\n\t\t\t}", "list.add(scan.nextInt())", "list.add", "list", "scan.nextInt()", "scan.nextInt", "scan", "for (int count2 = 0; count2 < n; count2++) {\n\t\t\t\tavg += list.get(count2);\n\t\t\t}", "int count2 = 0;", "int count2 = 0;", "count2", "0", "count2 < n", "count2", "n", "count2++", "count2++", "count2", "{\n\t\t\t\tavg += list.get(count2);\n\t\t\t}", "{\n\t\t\t\tavg += list.get(count2);\n\t\t\t}", "avg += list.get(count2)", "avg", "list.get(count2)", "list.get", "list", "count2", "avg = avg / n", "avg", "avg / n", "avg", "n", "for (int count3 = 0; count3 < n; count3++) {\n\t\t\t\tnum += (list.get(count3) - avg)*(list.get(count3) - avg);\n\t\t\t}", "int count3 = 0;", "int count3 = 0;", "count3", "0", "count3 < n", "count3", "n", "count3++", "count3++", "count3", "{\n\t\t\t\tnum += (list.get(count3) - avg)*(list.get(count3) - avg);\n\t\t\t}", "{\n\t\t\t\tnum += (list.get(count3) - avg)*(list.get(count3) - avg);\n\t\t\t}", "num += (list.get(count3) - avg)*(list.get(count3) - avg)", "num", "(list.get(count3) - avg)*(list.get(count3) - avg)", "(list.get(count3) - avg)", "list.get(count3)", "list.get", "list", "count3", "avg", "(list.get(count3) - avg)", "list.get(count3)", "list.get", "list", "count3", "avg", "Double d = Math.sqrt(num / n);", "d", "Math.sqrt(num / n)", "Math.sqrt", "Math", "num / n", "num", "n", "sb.append(d)", "sb.append", "sb", "d", "sb.append(\"\\n\")", "sb.append", "sb", "\"\\n\"", "avg = 0.0", "avg", "0.0", "num = 0.0", "num", "0.0", "list.clear()", "list.clear", "list", "sb.deleteCharAt(sb.length() - 1)", "sb.deleteCharAt", "sb", "sb.length() - 1", "sb.length()", "sb.length", "sb", "1", "System.out.print(new String(sb))", "System.out.print", "System.out", "System", "System.out", "new String(sb)", "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 avg, num;\n\t\tnum = 0.0;\n\t\tavg = 0.0;\n\t\tStringBuilder sb = new StringBuilder();\n\t\tList<Integer> list = new ArrayList<Integer>();\n\n\t\twhile (true) {\n\t\t\tn = scan.nextInt();\n\n\t\t\t// n???0?????¨???????????????\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// n????????? n????????????????????????????´?\n\t\t\tfor (int count = 0; count < n; count++) {\n\t\t\t\tlist.add(scan.nextInt());\n\t\t\t}\n\t\t\t// ??????????????¨???\n\t\t\tfor (int count2 = 0; count2 < n; count2++) {\n\t\t\t\tavg += list.get(count2);\n\t\t\t}\n\t\t\tavg = avg / n;\n\n\t\t\t// ?????£????¨???? (s1..sn - avg)^2???????¨?/n\n\t\t\tfor (int count3 = 0; count3 < n; count3++) {\n\t\t\t\tnum += (list.get(count3) - avg)*(list.get(count3) - avg);\n\t\t\t}\n\n\t\t\t// ?¨?????????? ?????????(?????£/n)\n\t\t\tDouble d = Math.sqrt(num / n);\n\t\t\tsb.append(d);\n\t\t\tsb.append(\"\\n\");\n\n\t\t\t// ?????¨?????????????????????\n\t\t\tavg = 0.0;\n\t\t\tnum = 0.0;\n\t\t\tlist.clear();\n\t\t}\n\n\t\t// ????????????????????????\n\t\tsb.deleteCharAt(sb.length() - 1);\n\t\tSystem.out.print(new String(sb));\n\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 avg, num;\n\t\tnum = 0.0;\n\t\tavg = 0.0;\n\t\tStringBuilder sb = new StringBuilder();\n\t\tList<Integer> list = new ArrayList<Integer>();\n\n\t\twhile (true) {\n\t\t\tn = scan.nextInt();\n\n\t\t\t// n???0?????¨???????????????\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// n????????? n????????????????????????????´?\n\t\t\tfor (int count = 0; count < n; count++) {\n\t\t\t\tlist.add(scan.nextInt());\n\t\t\t}\n\t\t\t// ??????????????¨???\n\t\t\tfor (int count2 = 0; count2 < n; count2++) {\n\t\t\t\tavg += list.get(count2);\n\t\t\t}\n\t\t\tavg = avg / n;\n\n\t\t\t// ?????£????¨???? (s1..sn - avg)^2???????¨?/n\n\t\t\tfor (int count3 = 0; count3 < n; count3++) {\n\t\t\t\tnum += (list.get(count3) - avg)*(list.get(count3) - avg);\n\t\t\t}\n\n\t\t\t// ?¨?????????? ?????????(?????£/n)\n\t\t\tDouble d = Math.sqrt(num / n);\n\t\t\tsb.append(d);\n\t\t\tsb.append(\"\\n\");\n\n\t\t\t// ?????¨?????????????????????\n\t\t\tavg = 0.0;\n\t\t\tnum = 0.0;\n\t\t\tlist.clear();\n\t\t}\n\n\t\t// ????????????????????????\n\t\tsb.deleteCharAt(sb.length() - 1);\n\t\tSystem.out.print(new String(sb));\n\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); int n; Double avg, num; num = 0.0; avg = 0.0; StringBuilder sb = new StringBuilder(); List<Integer> list = new ArrayList<Integer>(); while (true) { n = scan.nextInt(); // n???0?????¨??????????????? if (n == 0) { break; } // n????????? n????????????????????????????´? for (int count = 0; count < n; count++) { list.add(scan.nextInt()); } // ??????????????¨??? for (int count2 = 0; count2 < n; count2++) { avg += list.get(count2); } avg = avg / n; // ?????£????¨???? (s1..sn - avg)^2???????¨?/n for (int count3 = 0; count3 < n; count3++) { num += (list.get(count3) - avg)*(list.get(count3) - avg); } // ?¨?????????? ?????????(?????£/n) Double d = Math.sqrt(num / n); sb.append(d); sb.append("\n"); // ?????¨????????????????????? avg = 0.0; num = 0.0; list.clear(); } // ???????????????????????? sb.deleteCharAt(sb.length() - 1); System.out.print(new String(sb)); } }
[ 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, 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, 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, 4, 18, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 121, 5 ], [ 121, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 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 ], [ 29, 32 ], [ 32, 33 ], [ 33, 34 ], [ 14, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 39, 40 ], [ 14, 41 ], [ 41, 42 ], [ 41, 43 ], [ 14, 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 ], [ 62, 65 ], [ 65, 66 ], [ 66, 67 ], [ 57, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 14, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 14, 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 ], [ 14, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 109, 110 ], [ 109, 111 ], [ 14, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 6, 118 ], [ 118, 119 ], [ 0, 120 ], [ 120, 121 ], [ 120, 122 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n Scanner sc =new Scanner(System.in);\n\n while(true){\n \t\tdouble total = 0.0; //合計点\n double m = 0.0; //平均点\n double a = 0.0; //分散\n double stdev = 0.0;\n\n //学生の数\n int n = Integer.parseInt(sc.next());\n \tif(n==0){\n \t\tbreak;\n \t}\n \t//入力した分だけの配列内変数作成\n \tint points[] = new int[n];\n\n \t//合計\n for (int i=0; i<n; i++) {\n points[i] = Integer.parseInt(sc.next());\n total += points[i];\n }\n\n //平均\n m = total / n;\n\n //分散\n for (int i=0; i<n; i++) {\n a += ((points[i] - m)*(points[i] - m));\n }\n\n //標準偏差\n stdev = Math.sqrt(a/n);\n System.out.println(stdev);\n }\n\t}\n\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\n\tpublic static void main(String[] args) {\n Scanner sc =new Scanner(System.in);\n\n while(true){\n \t\tdouble total = 0.0; //合計点\n double m = 0.0; //平均点\n double a = 0.0; //分散\n double stdev = 0.0;\n\n //学生の数\n int n = Integer.parseInt(sc.next());\n \tif(n==0){\n \t\tbreak;\n \t}\n \t//入力した分だけの配列内変数作成\n \tint points[] = new int[n];\n\n \t//合計\n for (int i=0; i<n; i++) {\n points[i] = Integer.parseInt(sc.next());\n total += points[i];\n }\n\n //平均\n m = total / n;\n\n //分散\n for (int i=0; i<n; i++) {\n a += ((points[i] - m)*(points[i] - m));\n }\n\n //標準偏差\n stdev = Math.sqrt(a/n);\n System.out.println(stdev);\n }\n\t}\n\n}", "Main", "public static void main(String[] args) {\n Scanner sc =new Scanner(System.in);\n\n while(true){\n \t\tdouble total = 0.0; //合計点\n double m = 0.0; //平均点\n double a = 0.0; //分散\n double stdev = 0.0;\n\n //学生の数\n int n = Integer.parseInt(sc.next());\n \tif(n==0){\n \t\tbreak;\n \t}\n \t//入力した分だけの配列内変数作成\n \tint points[] = new int[n];\n\n \t//合計\n for (int i=0; i<n; i++) {\n points[i] = Integer.parseInt(sc.next());\n total += points[i];\n }\n\n //平均\n m = total / n;\n\n //分散\n for (int i=0; i<n; i++) {\n a += ((points[i] - m)*(points[i] - m));\n }\n\n //標準偏差\n stdev = Math.sqrt(a/n);\n System.out.println(stdev);\n }\n\t}", "main", "{\n Scanner sc =new Scanner(System.in);\n\n while(true){\n \t\tdouble total = 0.0; //合計点\n double m = 0.0; //平均点\n double a = 0.0; //分散\n double stdev = 0.0;\n\n //学生の数\n int n = Integer.parseInt(sc.next());\n \tif(n==0){\n \t\tbreak;\n \t}\n \t//入力した分だけの配列内変数作成\n \tint points[] = new int[n];\n\n \t//合計\n for (int i=0; i<n; i++) {\n points[i] = Integer.parseInt(sc.next());\n total += points[i];\n }\n\n //平均\n m = total / n;\n\n //分散\n for (int i=0; i<n; i++) {\n a += ((points[i] - m)*(points[i] - m));\n }\n\n //標準偏差\n stdev = Math.sqrt(a/n);\n System.out.println(stdev);\n }\n\t}", "Scanner sc =new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n \t\tdouble total = 0.0; //合計点\n double m = 0.0; //平均点\n double a = 0.0; //分散\n double stdev = 0.0;\n\n //学生の数\n int n = Integer.parseInt(sc.next());\n \tif(n==0){\n \t\tbreak;\n \t}\n \t//入力した分だけの配列内変数作成\n \tint points[] = new int[n];\n\n \t//合計\n for (int i=0; i<n; i++) {\n points[i] = Integer.parseInt(sc.next());\n total += points[i];\n }\n\n //平均\n m = total / n;\n\n //分散\n for (int i=0; i<n; i++) {\n a += ((points[i] - m)*(points[i] - m));\n }\n\n //標準偏差\n stdev = Math.sqrt(a/n);\n System.out.println(stdev);\n }", "true", "{\n \t\tdouble total = 0.0; //合計点\n double m = 0.0; //平均点\n double a = 0.0; //分散\n double stdev = 0.0;\n\n //学生の数\n int n = Integer.parseInt(sc.next());\n \tif(n==0){\n \t\tbreak;\n \t}\n \t//入力した分だけの配列内変数作成\n \tint points[] = new int[n];\n\n \t//合計\n for (int i=0; i<n; i++) {\n points[i] = Integer.parseInt(sc.next());\n total += points[i];\n }\n\n //平均\n m = total / n;\n\n //分散\n for (int i=0; i<n; i++) {\n a += ((points[i] - m)*(points[i] - m));\n }\n\n //標準偏差\n stdev = Math.sqrt(a/n);\n System.out.println(stdev);\n }", "double total = 0.0;", "total", "0.0", "double m = 0.0;", "m", "0.0", "double a = 0.0;", "a", "0.0", "double stdev = 0.0;", "stdev", "0.0", "int n = Integer.parseInt(sc.next());", "n", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "if(n==0){\n \t\tbreak;\n \t}", "n==0", "n", "0", "{\n \t\tbreak;\n \t}", "break;", "int points[] = new int[n];", "points", "new int[n]", "n", "for (int i=0; i<n; i++) {\n points[i] = Integer.parseInt(sc.next());\n total += points[i];\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n points[i] = Integer.parseInt(sc.next());\n total += points[i];\n }", "{\n points[i] = Integer.parseInt(sc.next());\n total += points[i];\n }", "points[i] = Integer.parseInt(sc.next())", "points[i]", "points", "i", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "total += points[i]", "total", "points[i]", "points", "i", "m = total / n", "m", "total / n", "total", "n", "for (int i=0; i<n; i++) {\n a += ((points[i] - m)*(points[i] - m));\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n a += ((points[i] - m)*(points[i] - m));\n }", "{\n a += ((points[i] - m)*(points[i] - m));\n }", "a += ((points[i] - m)*(points[i] - m))", "a", "((points[i] - m)*(points[i] - m))", "(points[i] - m)", "points[i]", "points", "i", "m", "(points[i] - m)", "points[i]", "points", "i", "m", "stdev = Math.sqrt(a/n)", "stdev", "Math.sqrt(a/n)", "Math.sqrt", "Math", "a/n", "a", "n", "System.out.println(stdev)", "System.out.println", "System.out", "System", "System.out", "stdev", "String[] args", "args", "public class Main{\n\n\tpublic static void main(String[] args) {\n Scanner sc =new Scanner(System.in);\n\n while(true){\n \t\tdouble total = 0.0; //合計点\n double m = 0.0; //平均点\n double a = 0.0; //分散\n double stdev = 0.0;\n\n //学生の数\n int n = Integer.parseInt(sc.next());\n \tif(n==0){\n \t\tbreak;\n \t}\n \t//入力した分だけの配列内変数作成\n \tint points[] = new int[n];\n\n \t//合計\n for (int i=0; i<n; i++) {\n points[i] = Integer.parseInt(sc.next());\n total += points[i];\n }\n\n //平均\n m = total / n;\n\n //分散\n for (int i=0; i<n; i++) {\n a += ((points[i] - m)*(points[i] - m));\n }\n\n //標準偏差\n stdev = Math.sqrt(a/n);\n System.out.println(stdev);\n }\n\t}\n\n}", "public class Main{\n\n\tpublic static void main(String[] args) {\n Scanner sc =new Scanner(System.in);\n\n while(true){\n \t\tdouble total = 0.0; //合計点\n double m = 0.0; //平均点\n double a = 0.0; //分散\n double stdev = 0.0;\n\n //学生の数\n int n = Integer.parseInt(sc.next());\n \tif(n==0){\n \t\tbreak;\n \t}\n \t//入力した分だけの配列内変数作成\n \tint points[] = new int[n];\n\n \t//合計\n for (int i=0; i<n; i++) {\n points[i] = Integer.parseInt(sc.next());\n total += points[i];\n }\n\n //平均\n m = total / n;\n\n //分散\n for (int i=0; i<n; i++) {\n a += ((points[i] - m)*(points[i] - m));\n }\n\n //標準偏差\n stdev = Math.sqrt(a/n);\n System.out.println(stdev);\n }\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc =new Scanner(System.in); while(true){ double total = 0.0; //合計点 double m = 0.0; //平均点 double a = 0.0; //分散 double stdev = 0.0; //学生の数 int n = Integer.parseInt(sc.next()); if(n==0){ break; } //入力した分だけの配列内変数作成 int points[] = new int[n]; //合計 for (int i=0; i<n; i++) { points[i] = Integer.parseInt(sc.next()); total += points[i]; } //平均 m = total / n; //分散 for (int i=0; i<n; i++) { a += ((points[i] - m)*(points[i] - m)); } //標準偏差 stdev = Math.sqrt(a/n); System.out.println(stdev); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 41, 13, 17, 41, 13, 41, 13, 17, 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, 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, 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 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 14, 22 ], [ 22, 23 ], [ 22, 24 ], [ 14, 25 ], [ 25, 26 ], [ 14, 27 ], [ 27, 28 ], [ 27, 29 ], [ 14, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 14, 35 ], [ 35, 36 ], [ 35, 37 ], [ 14, 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 ], [ 14, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 14, 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 ], [ 14, 95 ], [ 95, 96 ], [ 95, 97 ], [ 14, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 14, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 6, 110 ], [ 110, 111 ], [ 0, 112 ], [ 112, 113 ], [ 112, 114 ] ]
[ "import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n\n while(true){\n int n = scan.nextInt();\n int[] score;\n double sum = 0, avg;\n double bunsan = 0;\n if(n==0) break;\n score = new int[n];\n for(int i=0;i<n;i++){\n score[i] = scan.nextInt();\n sum += score[i];\n }\n avg = sum / n;\n for(int i=0;i<n;i++){\n bunsan += (score[i]-avg)*(score[i]-avg);\n }\n bunsan /= (double)n;\n bunsan = Math.sqrt(bunsan);\n System.out.println(bunsan);\n }\n }\n}\n", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n\n while(true){\n int n = scan.nextInt();\n int[] score;\n double sum = 0, avg;\n double bunsan = 0;\n if(n==0) break;\n score = new int[n];\n for(int i=0;i<n;i++){\n score[i] = scan.nextInt();\n sum += score[i];\n }\n avg = sum / n;\n for(int i=0;i<n;i++){\n bunsan += (score[i]-avg)*(score[i]-avg);\n }\n bunsan /= (double)n;\n bunsan = Math.sqrt(bunsan);\n System.out.println(bunsan);\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 int[] score;\n double sum = 0, avg;\n double bunsan = 0;\n if(n==0) break;\n score = new int[n];\n for(int i=0;i<n;i++){\n score[i] = scan.nextInt();\n sum += score[i];\n }\n avg = sum / n;\n for(int i=0;i<n;i++){\n bunsan += (score[i]-avg)*(score[i]-avg);\n }\n bunsan /= (double)n;\n bunsan = Math.sqrt(bunsan);\n System.out.println(bunsan);\n }\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n\n while(true){\n int n = scan.nextInt();\n int[] score;\n double sum = 0, avg;\n double bunsan = 0;\n if(n==0) break;\n score = new int[n];\n for(int i=0;i<n;i++){\n score[i] = scan.nextInt();\n sum += score[i];\n }\n avg = sum / n;\n for(int i=0;i<n;i++){\n bunsan += (score[i]-avg)*(score[i]-avg);\n }\n bunsan /= (double)n;\n bunsan = Math.sqrt(bunsan);\n System.out.println(bunsan);\n }\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(true){\n int n = scan.nextInt();\n int[] score;\n double sum = 0, avg;\n double bunsan = 0;\n if(n==0) break;\n score = new int[n];\n for(int i=0;i<n;i++){\n score[i] = scan.nextInt();\n sum += score[i];\n }\n avg = sum / n;\n for(int i=0;i<n;i++){\n bunsan += (score[i]-avg)*(score[i]-avg);\n }\n bunsan /= (double)n;\n bunsan = Math.sqrt(bunsan);\n System.out.println(bunsan);\n }", "true", "{\n int n = scan.nextInt();\n int[] score;\n double sum = 0, avg;\n double bunsan = 0;\n if(n==0) break;\n score = new int[n];\n for(int i=0;i<n;i++){\n score[i] = scan.nextInt();\n sum += score[i];\n }\n avg = sum / n;\n for(int i=0;i<n;i++){\n bunsan += (score[i]-avg)*(score[i]-avg);\n }\n bunsan /= (double)n;\n bunsan = Math.sqrt(bunsan);\n System.out.println(bunsan);\n }", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "int[] score;", "score", "double sum = 0", "sum", "0", "avg;", "avg", "double bunsan = 0;", "bunsan", "0", "if(n==0) break;", "n==0", "n", "0", "break;", "score = new int[n]", "score", "new int[n]", "n", "for(int i=0;i<n;i++){\n score[i] = scan.nextInt();\n sum += score[i];\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n score[i] = scan.nextInt();\n sum += score[i];\n }", "{\n score[i] = scan.nextInt();\n sum += score[i];\n }", "score[i] = scan.nextInt()", "score[i]", "score", "i", "scan.nextInt()", "scan.nextInt", "scan", "sum += score[i]", "sum", "score[i]", "score", "i", "avg = sum / n", "avg", "sum / n", "sum", "n", "for(int i=0;i<n;i++){\n bunsan += (score[i]-avg)*(score[i]-avg);\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n bunsan += (score[i]-avg)*(score[i]-avg);\n }", "{\n bunsan += (score[i]-avg)*(score[i]-avg);\n }", "bunsan += (score[i]-avg)*(score[i]-avg)", "bunsan", "(score[i]-avg)*(score[i]-avg)", "(score[i]-avg)", "score[i]", "score", "i", "avg", "(score[i]-avg)", "score[i]", "score", "i", "avg", "bunsan /= (double)n", "bunsan", "(double)n", "bunsan = Math.sqrt(bunsan)", "bunsan", "Math.sqrt(bunsan)", "Math.sqrt", "Math", "bunsan", "System.out.println(bunsan)", "System.out.println", "System.out", "System", "System.out", "bunsan", "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 int[] score;\n double sum = 0, avg;\n double bunsan = 0;\n if(n==0) break;\n score = new int[n];\n for(int i=0;i<n;i++){\n score[i] = scan.nextInt();\n sum += score[i];\n }\n avg = sum / n;\n for(int i=0;i<n;i++){\n bunsan += (score[i]-avg)*(score[i]-avg);\n }\n bunsan /= (double)n;\n bunsan = Math.sqrt(bunsan);\n System.out.println(bunsan);\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 int[] score;\n double sum = 0, avg;\n double bunsan = 0;\n if(n==0) break;\n score = new int[n];\n for(int i=0;i<n;i++){\n score[i] = scan.nextInt();\n sum += score[i];\n }\n avg = sum / n;\n for(int i=0;i<n;i++){\n bunsan += (score[i]-avg)*(score[i]-avg);\n }\n bunsan /= (double)n;\n bunsan = Math.sqrt(bunsan);\n System.out.println(bunsan);\n }\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); while(true){ int n = scan.nextInt(); int[] score; double sum = 0, avg; double bunsan = 0; if(n==0) break; score = new int[n]; for(int i=0;i<n;i++){ score[i] = scan.nextInt(); sum += score[i]; } avg = sum / n; for(int i=0;i<n;i++){ bunsan += (score[i]-avg)*(score[i]-avg); } bunsan /= (double)n; bunsan = Math.sqrt(bunsan); System.out.println(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, 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, 30, 0, 13, 2, 18, 13, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 122, 5 ], [ 122, 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 ], [ 37, 38 ], [ 37, 39 ], [ 30, 40 ], [ 40, 41 ], [ 41, 42 ], [ 30, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 14, 52 ], [ 52, 53 ], [ 52, 54 ], [ 14, 55 ], [ 55, 56 ], [ 55, 57 ], [ 14, 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 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 14, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 80, 90 ], [ 90, 91 ], [ 91, 92 ], [ 80, 93 ], [ 94, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 98, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 104, 108 ], [ 97, 109 ], [ 14, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 6, 119 ], [ 119, 120 ], [ 0, 121 ], [ 121, 122 ], [ 121, 123 ] ]
[ "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[] 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 for(int i=0;i<scores.length;i++){\n average+=(double)scores[i]/n;\n }\n for(int i=0;i<scores.length;i++){\n variance+=(double)(scores[i]-average)*(scores[i]-average)/n;\n }\n System.out.println(Math.sqrt(variance));\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[] 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 for(int i=0;i<scores.length;i++){\n average+=(double)scores[i]/n;\n }\n for(int i=0;i<scores.length;i++){\n variance+=(double)(scores[i]-average)*(scores[i]-average)/n;\n }\n System.out.println(Math.sqrt(variance));\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[] 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 for(int i=0;i<scores.length;i++){\n average+=(double)scores[i]/n;\n }\n for(int i=0;i<scores.length;i++){\n variance+=(double)(scores[i]-average)*(scores[i]-average)/n;\n }\n System.out.println(Math.sqrt(variance));\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[] 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 for(int i=0;i<scores.length;i++){\n average+=(double)scores[i]/n;\n }\n for(int i=0;i<scores.length;i++){\n variance+=(double)(scores[i]-average)*(scores[i]-average)/n;\n }\n System.out.println(Math.sqrt(variance));\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[] 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 for(int i=0;i<scores.length;i++){\n average+=(double)scores[i]/n;\n }\n for(int i=0;i<scores.length;i++){\n variance+=(double)(scores[i]-average)*(scores[i]-average)/n;\n }\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 average=0,variance=0;\n for(int i=0;i<scores.length;i++){\n average+=(double)scores[i]/n;\n }\n for(int i=0;i<scores.length;i++){\n variance+=(double)(scores[i]-average)*(scores[i]-average)/n;\n }\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 average=0", "average", "0", "variance=0;", "variance", "0", "for(int i=0;i<scores.length;i++){\n average+=(double)scores[i]/n;\n }", "int i=0;", "int i=0;", "i", "0", "i<scores.length", "i", "scores.length", "scores", "scores.length", "i++", "i++", "i", "{\n average+=(double)scores[i]/n;\n }", "{\n average+=(double)scores[i]/n;\n }", "average+=(double)scores[i]/n", "average", "(double)scores[i]/n", "(double)scores[i]", "scores", "i", "n", "for(int i=0;i<scores.length;i++){\n variance+=(double)(scores[i]-average)*(scores[i]-average)/n;\n }", "int i=0;", "int i=0;", "i", "0", "i<scores.length", "i", "scores.length", "scores", "scores.length", "i++", "i++", "i", "{\n variance+=(double)(scores[i]-average)*(scores[i]-average)/n;\n }", "{\n variance+=(double)(scores[i]-average)*(scores[i]-average)/n;\n }", "variance+=(double)(scores[i]-average)*(scores[i]-average)/n", "variance", "(double)(scores[i]-average)*(scores[i]-average)/n", "(double)(scores[i]-average)*(scores[i]-average)", "(double)(scores[i]-average)", "scores[i]", "scores", "i", "average", "(scores[i]-average)", "scores[i]", "scores", "i", "average", "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){\n 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 average=0,variance=0;\n for(int i=0;i<scores.length;i++){\n average+=(double)scores[i]/n;\n }\n for(int i=0;i<scores.length;i++){\n variance+=(double)(scores[i]-average)*(scores[i]-average)/n;\n }\n System.out.println(Math.sqrt(variance));\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[] 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 for(int i=0;i<scores.length;i++){\n average+=(double)scores[i]/n;\n }\n for(int i=0;i<scores.length;i++){\n variance+=(double)(scores[i]-average)*(scores[i]-average)/n;\n }\n System.out.println(Math.sqrt(variance));\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[] scores = new int[n]; for(int i=0;i<scores.length;i++){ scores[i]=sc.nextInt(); } double average=0,variance=0; for(int i=0;i<scores.length;i++){ average+=(double)scores[i]/n; } for(int i=0;i<scores.length;i++){ variance+=(double)(scores[i]-average)*(scores[i]-average)/n; } System.out.println(Math.sqrt(variance)); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 4, 18, 13, 13, 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, 0, 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 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 22, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 22, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 42, 47 ], [ 22, 48 ], [ 48, 49 ], [ 48, 50 ], [ 22, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 51, 59 ], [ 59, 60 ], [ 60, 61 ], [ 51, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 69, 70 ], [ 69, 71 ], [ 22, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 22, 77 ], [ 77, 78 ], [ 77, 79 ], [ 22, 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 ], [ 100, 101 ], [ 99, 102 ], [ 102, 103 ], [ 102, 104 ], [ 98, 105 ], [ 95, 106 ], [ 22, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 112, 113 ], [ 112, 114 ], [ 22, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 12, 121 ], [ 121, 122 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main{\n public static void main(String args[]) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n double alph;\n\n while(true){\n\n\t String st = br.readLine();\n\t if( st.equals(\"0\") ) break;\n double n = Double.parseDouble( st );\n String[] s = br.readLine().split(\" \");\n\n double sum = 0;\n for(int i = 0; i < n ; i++){\n \t sum += Double.parseDouble( s[i] );\n }\n\n double ave = sum / n;\n\n double sigma = 0;\n\n for(int i = 0; i < n ; i++){\n \t sigma += Math.pow(Double.parseDouble( s[i] ) - ave , 2) ;\n }\n\n alph =Math.sqrt (sigma / n );\n System.out.println(alph);\n\n }\n\n\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "class Main{\n public static void main(String args[]) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n double alph;\n\n while(true){\n\n\t String st = br.readLine();\n\t if( st.equals(\"0\") ) break;\n double n = Double.parseDouble( st );\n String[] s = br.readLine().split(\" \");\n\n double sum = 0;\n for(int i = 0; i < n ; i++){\n \t sum += Double.parseDouble( s[i] );\n }\n\n double ave = sum / n;\n\n double sigma = 0;\n\n for(int i = 0; i < n ; i++){\n \t sigma += Math.pow(Double.parseDouble( s[i] ) - ave , 2) ;\n }\n\n alph =Math.sqrt (sigma / n );\n System.out.println(alph);\n\n }\n\n\n }\n}", "Main", "public static void main(String args[]) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n double alph;\n\n while(true){\n\n\t String st = br.readLine();\n\t if( st.equals(\"0\") ) break;\n double n = Double.parseDouble( st );\n String[] s = br.readLine().split(\" \");\n\n double sum = 0;\n for(int i = 0; i < n ; i++){\n \t sum += Double.parseDouble( s[i] );\n }\n\n double ave = sum / n;\n\n double sigma = 0;\n\n for(int i = 0; i < n ; i++){\n \t sigma += Math.pow(Double.parseDouble( s[i] ) - ave , 2) ;\n }\n\n alph =Math.sqrt (sigma / n );\n System.out.println(alph);\n\n }\n\n\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n double alph;\n\n while(true){\n\n\t String st = br.readLine();\n\t if( st.equals(\"0\") ) break;\n double n = Double.parseDouble( st );\n String[] s = br.readLine().split(\" \");\n\n double sum = 0;\n for(int i = 0; i < n ; i++){\n \t sum += Double.parseDouble( s[i] );\n }\n\n double ave = sum / n;\n\n double sigma = 0;\n\n for(int i = 0; i < n ; i++){\n \t sigma += Math.pow(Double.parseDouble( s[i] ) - ave , 2) ;\n }\n\n alph =Math.sqrt (sigma / n );\n System.out.println(alph);\n\n }\n\n\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "double alph;", "alph", "while(true){\n\n\t String st = br.readLine();\n\t if( st.equals(\"0\") ) break;\n double n = Double.parseDouble( st );\n String[] s = br.readLine().split(\" \");\n\n double sum = 0;\n for(int i = 0; i < n ; i++){\n \t sum += Double.parseDouble( s[i] );\n }\n\n double ave = sum / n;\n\n double sigma = 0;\n\n for(int i = 0; i < n ; i++){\n \t sigma += Math.pow(Double.parseDouble( s[i] ) - ave , 2) ;\n }\n\n alph =Math.sqrt (sigma / n );\n System.out.println(alph);\n\n }", "true", "{\n\n\t String st = br.readLine();\n\t if( st.equals(\"0\") ) break;\n double n = Double.parseDouble( st );\n String[] s = br.readLine().split(\" \");\n\n double sum = 0;\n for(int i = 0; i < n ; i++){\n \t sum += Double.parseDouble( s[i] );\n }\n\n double ave = sum / n;\n\n double sigma = 0;\n\n for(int i = 0; i < n ; i++){\n \t sigma += Math.pow(Double.parseDouble( s[i] ) - ave , 2) ;\n }\n\n alph =Math.sqrt (sigma / n );\n System.out.println(alph);\n\n }", "String st = br.readLine();", "st", "br.readLine()", "br.readLine", "br", "if( st.equals(\"0\") ) break;", "st.equals(\"0\")", "st.equals", "st", "\"0\"", "break;", "double n = Double.parseDouble( st );", "n", "Double.parseDouble( st )", "Double.parseDouble", "Double", "st", "String[] s = br.readLine().split(\" \");", "s", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "double sum = 0;", "sum", "0", "for(int i = 0; i < n ; i++){\n \t sum += Double.parseDouble( s[i] );\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n \t sum += Double.parseDouble( s[i] );\n }", "{\n \t sum += Double.parseDouble( s[i] );\n }", "sum += Double.parseDouble( s[i] )", "sum", "Double.parseDouble( s[i] )", "Double.parseDouble", "Double", "s[i]", "s", "i", "double ave = sum / n;", "ave", "sum / n", "sum", "n", "double sigma = 0;", "sigma", "0", "for(int i = 0; i < n ; i++){\n \t sigma += Math.pow(Double.parseDouble( s[i] ) - ave , 2) ;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n \t sigma += Math.pow(Double.parseDouble( s[i] ) - ave , 2) ;\n }", "{\n \t sigma += Math.pow(Double.parseDouble( s[i] ) - ave , 2) ;\n }", "sigma += Math.pow(Double.parseDouble( s[i] ) - ave , 2)", "sigma", "Math.pow(Double.parseDouble( s[i] ) - ave , 2)", "Math.pow", "Math", "Double.parseDouble( s[i] ) - ave", "Double.parseDouble( s[i] )", "Double.parseDouble", "Double", "s[i]", "s", "i", "ave", "2", "alph =Math.sqrt (sigma / n )", "alph", "Math.sqrt (sigma / n )", "Math.sqrt", "Math", "sigma / n", "sigma", "n", "System.out.println(alph)", "System.out.println", "System.out", "System", "System.out", "alph", "String args[]", "args" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main{ public static void main(String args[]) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); double alph; while(true){ String st = br.readLine(); if( st.equals("0") ) break; double n = Double.parseDouble( st ); String[] s = br.readLine().split(" "); double sum = 0; for(int i = 0; i < n ; i++){ sum += Double.parseDouble( s[i] ); } double ave = sum / n; double sigma = 0; for(int i = 0; i < n ; i++){ sigma += Math.pow(Double.parseDouble( s[i] ) - ave , 2) ; } alph =Math.sqrt (sigma / n ); System.out.println(alph); } } }
[ 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, 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, 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, 0, 13, 2, 13, 13, 41, 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 ], [ 126, 5 ], [ 126, 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 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 47, 48 ], [ 14, 49 ], [ 49, 50 ], [ 49, 51 ], [ 14, 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 ], [ 67, 69 ], [ 14, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 14, 75 ], [ 75, 76 ], [ 75, 77 ], [ 14, 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 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 93, 101 ], [ 14, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 104, 106 ], [ 14, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 14, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 113, 119 ], [ 8, 120 ], [ 120, 121 ], [ 121, 122 ], [ 6, 123 ], [ 123, 124 ], [ 0, 125 ], [ 125, 126 ], [ 125, 127 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n while(true) {\n int n = scanner.nextInt();\n if (n == 0) break;\n\n int s[] = new int[n];\n for (int i = 0; i < n; i++) {\n s[i] = scanner.nextInt();\n }\n double sum = 0;\n for (int i = 0; i < n; i++) {\n sum += s[i];\n }\n double mean = sum / n;\n double var = 0;\n for (int i = 0; i < n; i++) {\n var += Math.pow((s[i] - mean), 2);\n }\n var = var / n;\n double stddev = Math.sqrt(var);\n System.out.printf(\"%.8f\\n\", stddev);\n }\n scanner.close();\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n while(true) {\n int n = scanner.nextInt();\n if (n == 0) break;\n\n int s[] = new int[n];\n for (int i = 0; i < n; i++) {\n s[i] = scanner.nextInt();\n }\n double sum = 0;\n for (int i = 0; i < n; i++) {\n sum += s[i];\n }\n double mean = sum / n;\n double var = 0;\n for (int i = 0; i < n; i++) {\n var += Math.pow((s[i] - mean), 2);\n }\n var = var / n;\n double stddev = Math.sqrt(var);\n System.out.printf(\"%.8f\\n\", stddev);\n }\n scanner.close();\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n while(true) {\n int n = scanner.nextInt();\n if (n == 0) break;\n\n int s[] = new int[n];\n for (int i = 0; i < n; i++) {\n s[i] = scanner.nextInt();\n }\n double sum = 0;\n for (int i = 0; i < n; i++) {\n sum += s[i];\n }\n double mean = sum / n;\n double var = 0;\n for (int i = 0; i < n; i++) {\n var += Math.pow((s[i] - mean), 2);\n }\n var = var / n;\n double stddev = Math.sqrt(var);\n System.out.printf(\"%.8f\\n\", stddev);\n }\n scanner.close();\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n\n while(true) {\n int n = scanner.nextInt();\n if (n == 0) break;\n\n int s[] = new int[n];\n for (int i = 0; i < n; i++) {\n s[i] = scanner.nextInt();\n }\n double sum = 0;\n for (int i = 0; i < n; i++) {\n sum += s[i];\n }\n double mean = sum / n;\n double var = 0;\n for (int i = 0; i < n; i++) {\n var += Math.pow((s[i] - mean), 2);\n }\n var = var / n;\n double stddev = Math.sqrt(var);\n System.out.printf(\"%.8f\\n\", stddev);\n }\n scanner.close();\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "while(true) {\n int n = scanner.nextInt();\n if (n == 0) break;\n\n int s[] = new int[n];\n for (int i = 0; i < n; i++) {\n s[i] = scanner.nextInt();\n }\n double sum = 0;\n for (int i = 0; i < n; i++) {\n sum += s[i];\n }\n double mean = sum / n;\n double var = 0;\n for (int i = 0; i < n; i++) {\n var += Math.pow((s[i] - mean), 2);\n }\n var = var / n;\n double stddev = Math.sqrt(var);\n System.out.printf(\"%.8f\\n\", stddev);\n }", "true", "{\n int n = scanner.nextInt();\n if (n == 0) break;\n\n int s[] = new int[n];\n for (int i = 0; i < n; i++) {\n s[i] = scanner.nextInt();\n }\n double sum = 0;\n for (int i = 0; i < n; i++) {\n sum += s[i];\n }\n double mean = sum / n;\n double var = 0;\n for (int i = 0; i < n; i++) {\n var += Math.pow((s[i] - mean), 2);\n }\n var = var / n;\n double stddev = Math.sqrt(var);\n System.out.printf(\"%.8f\\n\", stddev);\n }", "int n = scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "if (n == 0) break;", "n == 0", "n", "0", "break;", "int s[] = new int[n];", "s", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n s[i] = scanner.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n s[i] = scanner.nextInt();\n }", "{\n s[i] = scanner.nextInt();\n }", "s[i] = scanner.nextInt()", "s[i]", "s", "i", "scanner.nextInt()", "scanner.nextInt", "scanner", "double sum = 0;", "sum", "0", "for (int i = 0; i < n; i++) {\n sum += s[i];\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n sum += s[i];\n }", "{\n sum += s[i];\n }", "sum += s[i]", "sum", "s[i]", "s", "i", "double mean = sum / n;", "mean", "sum / n", "sum", "n", "double var = 0;", "var", "0", "for (int i = 0; i < n; i++) {\n var += Math.pow((s[i] - mean), 2);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n var += Math.pow((s[i] - mean), 2);\n }", "{\n var += Math.pow((s[i] - mean), 2);\n }", "var += Math.pow((s[i] - mean), 2)", "var", "Math.pow((s[i] - mean), 2)", "Math.pow", "Math", "(s[i] - mean)", "s[i]", "s", "i", "mean", "2", "var = var / n", "var", "var / n", "var", "n", "double stddev = Math.sqrt(var);", "stddev", "Math.sqrt(var)", "Math.sqrt", "Math", "var", "System.out.printf(\"%.8f\\n\", stddev)", "System.out.printf", "System.out", "System", "System.out", "\"%.8f\\n\"", "stddev", "scanner.close()", "scanner.close", "scanner", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n while(true) {\n int n = scanner.nextInt();\n if (n == 0) break;\n\n int s[] = new int[n];\n for (int i = 0; i < n; i++) {\n s[i] = scanner.nextInt();\n }\n double sum = 0;\n for (int i = 0; i < n; i++) {\n sum += s[i];\n }\n double mean = sum / n;\n double var = 0;\n for (int i = 0; i < n; i++) {\n var += Math.pow((s[i] - mean), 2);\n }\n var = var / n;\n double stddev = Math.sqrt(var);\n System.out.printf(\"%.8f\\n\", stddev);\n }\n scanner.close();\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n while(true) {\n int n = scanner.nextInt();\n if (n == 0) break;\n\n int s[] = new int[n];\n for (int i = 0; i < n; i++) {\n s[i] = scanner.nextInt();\n }\n double sum = 0;\n for (int i = 0; i < n; i++) {\n sum += s[i];\n }\n double mean = sum / n;\n double var = 0;\n for (int i = 0; i < n; i++) {\n var += Math.pow((s[i] - mean), 2);\n }\n var = var / n;\n double stddev = Math.sqrt(var);\n System.out.printf(\"%.8f\\n\", stddev);\n }\n scanner.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while(true) { int n = scanner.nextInt(); if (n == 0) break; int s[] = new int[n]; for (int i = 0; i < n; i++) { s[i] = scanner.nextInt(); } double sum = 0; for (int i = 0; i < n; i++) { sum += s[i]; } double mean = sum / n; double var = 0; for (int i = 0; i < n; i++) { var += Math.pow((s[i] - mean), 2); } var = var / n; double stddev = Math.sqrt(var); System.out.printf("%.8f\n", stddev); } scanner.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 20, 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, 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, 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, 2, 2, 13, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 134, 14 ], [ 134, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 17, 24 ], [ 24, 25 ], [ 24, 26 ], [ 17, 27 ], [ 27, 28 ], [ 27, 29 ], [ 17, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 38, 39 ], [ 39, 40 ], [ 32, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 32, 46 ], [ 46, 47 ], [ 46, 48 ], [ 32, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 52, 57 ], [ 32, 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 ], [ 32, 81 ], [ 81, 82 ], [ 81, 83 ], [ 32, 84 ], [ 84, 85 ], [ 84, 86 ], [ 84, 87 ], [ 88, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 32, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 32, 97 ], [ 97, 98 ], [ 97, 99 ], [ 32, 100 ], [ 100, 101 ], [ 100, 102 ], [ 100, 103 ], [ 104, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 111, 112 ], [ 111, 113 ], [ 32, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 116, 118 ], [ 32, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 122, 123 ], [ 121, 124 ], [ 32, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 125, 130 ], [ 15, 131 ], [ 131, 132 ], [ 0, 133 ], [ 133, 134 ], [ 133, 135 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new java.util.Scanner(System.in);\n\n\t\tInputStreamReader input = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(input);\n\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile (true) {\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tif (n==0) break;\n\t\t\tint[] s = new int[n];\n\n\t\t\tString[] dataset = br.readLine().split(\" \");\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = Integer.parseInt(dataset[i]);\n\t\t\t}\n\t\t\tint goukei = 0;\n\n\t\t\tfor (int i : s) {\n\t\t\t\tgoukei += i;\n\t\t\t}\n\t\t\tdouble m = (double)goukei / (double)n;\n\n\t\t\tdouble alfa2 = 0.0;\n\n\t\t\tfor (int i : s) {\n\t\t\t\talfa2 += (i - m) * (i - m);\n\t\t\t}\n\n\t\t\talfa2 = alfa2 / n;\n\n\t\t\tdouble alfa = Math.sqrt(alfa2);\n\t\t\tSystem.out.println(alfa);\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", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new java.util.Scanner(System.in);\n\n\t\tInputStreamReader input = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(input);\n\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile (true) {\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tif (n==0) break;\n\t\t\tint[] s = new int[n];\n\n\t\t\tString[] dataset = br.readLine().split(\" \");\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = Integer.parseInt(dataset[i]);\n\t\t\t}\n\t\t\tint goukei = 0;\n\n\t\t\tfor (int i : s) {\n\t\t\t\tgoukei += i;\n\t\t\t}\n\t\t\tdouble m = (double)goukei / (double)n;\n\n\t\t\tdouble alfa2 = 0.0;\n\n\t\t\tfor (int i : s) {\n\t\t\t\talfa2 += (i - m) * (i - m);\n\t\t\t}\n\n\t\t\talfa2 = alfa2 / n;\n\n\t\t\tdouble alfa = Math.sqrt(alfa2);\n\t\t\tSystem.out.println(alfa);\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new java.util.Scanner(System.in);\n\n\t\tInputStreamReader input = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(input);\n\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile (true) {\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tif (n==0) break;\n\t\t\tint[] s = new int[n];\n\n\t\t\tString[] dataset = br.readLine().split(\" \");\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = Integer.parseInt(dataset[i]);\n\t\t\t}\n\t\t\tint goukei = 0;\n\n\t\t\tfor (int i : s) {\n\t\t\t\tgoukei += i;\n\t\t\t}\n\t\t\tdouble m = (double)goukei / (double)n;\n\n\t\t\tdouble alfa2 = 0.0;\n\n\t\t\tfor (int i : s) {\n\t\t\t\talfa2 += (i - m) * (i - m);\n\t\t\t}\n\n\t\t\talfa2 = alfa2 / n;\n\n\t\t\tdouble alfa = Math.sqrt(alfa2);\n\t\t\tSystem.out.println(alfa);\n\t\t}\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new java.util.Scanner(System.in);\n\n\t\tInputStreamReader input = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(input);\n\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile (true) {\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tif (n==0) break;\n\t\t\tint[] s = new int[n];\n\n\t\t\tString[] dataset = br.readLine().split(\" \");\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = Integer.parseInt(dataset[i]);\n\t\t\t}\n\t\t\tint goukei = 0;\n\n\t\t\tfor (int i : s) {\n\t\t\t\tgoukei += i;\n\t\t\t}\n\t\t\tdouble m = (double)goukei / (double)n;\n\n\t\t\tdouble alfa2 = 0.0;\n\n\t\t\tfor (int i : s) {\n\t\t\t\talfa2 += (i - m) * (i - m);\n\t\t\t}\n\n\t\t\talfa2 = alfa2 / n;\n\n\t\t\tdouble alfa = Math.sqrt(alfa2);\n\t\t\tSystem.out.println(alfa);\n\t\t}\n\t}", "Scanner scan = new java.util.Scanner(System.in);", "scan", "new java.util.Scanner(System.in)", "InputStreamReader input = new InputStreamReader(System.in);", "input", "new InputStreamReader(System.in)", "BufferedReader br = new BufferedReader(input);", "br", "new BufferedReader(input)", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "while (true) {\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tif (n==0) break;\n\t\t\tint[] s = new int[n];\n\n\t\t\tString[] dataset = br.readLine().split(\" \");\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = Integer.parseInt(dataset[i]);\n\t\t\t}\n\t\t\tint goukei = 0;\n\n\t\t\tfor (int i : s) {\n\t\t\t\tgoukei += i;\n\t\t\t}\n\t\t\tdouble m = (double)goukei / (double)n;\n\n\t\t\tdouble alfa2 = 0.0;\n\n\t\t\tfor (int i : s) {\n\t\t\t\talfa2 += (i - m) * (i - m);\n\t\t\t}\n\n\t\t\talfa2 = alfa2 / n;\n\n\t\t\tdouble alfa = Math.sqrt(alfa2);\n\t\t\tSystem.out.println(alfa);\n\t\t}", "true", "{\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tif (n==0) break;\n\t\t\tint[] s = new int[n];\n\n\t\t\tString[] dataset = br.readLine().split(\" \");\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = Integer.parseInt(dataset[i]);\n\t\t\t}\n\t\t\tint goukei = 0;\n\n\t\t\tfor (int i : s) {\n\t\t\t\tgoukei += i;\n\t\t\t}\n\t\t\tdouble m = (double)goukei / (double)n;\n\n\t\t\tdouble alfa2 = 0.0;\n\n\t\t\tfor (int i : s) {\n\t\t\t\talfa2 += (i - m) * (i - m);\n\t\t\t}\n\n\t\t\talfa2 = alfa2 / n;\n\n\t\t\tdouble alfa = Math.sqrt(alfa2);\n\t\t\tSystem.out.println(alfa);\n\t\t}", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "if (n==0) break;", "n==0", "n", "0", "break;", "int[] s = new int[n];", "s", "new int[n]", "n", "String[] dataset = br.readLine().split(\" \");", "dataset", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "for (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = Integer.parseInt(dataset[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(dataset[i]);\n\t\t\t}", "{\n\t\t\t\ts[i] = Integer.parseInt(dataset[i]);\n\t\t\t}", "s[i] = Integer.parseInt(dataset[i])", "s[i]", "s", "i", "Integer.parseInt(dataset[i])", "Integer.parseInt", "Integer", "dataset[i]", "dataset", "i", "int goukei = 0;", "goukei", "0", "for (int i : s) {\n\t\t\t\tgoukei += i;\n\t\t\t}", "int i", "s", "{\n\t\t\t\tgoukei += i;\n\t\t\t}", "{\n\t\t\t\tgoukei += i;\n\t\t\t}", "goukei += i", "goukei", "i", "double m = (double)goukei / (double)n;", "m", "(double)goukei / (double)n", "(double)goukei", "(double)n", "double alfa2 = 0.0;", "alfa2", "0.0", "for (int i : s) {\n\t\t\t\talfa2 += (i - m) * (i - m);\n\t\t\t}", "int i", "s", "{\n\t\t\t\talfa2 += (i - m) * (i - m);\n\t\t\t}", "{\n\t\t\t\talfa2 += (i - m) * (i - m);\n\t\t\t}", "alfa2 += (i - m) * (i - m)", "alfa2", "(i - m) * (i - m)", "(i - m)", "i", "m", "(i - m)", "i", "m", "alfa2 = alfa2 / n", "alfa2", "alfa2 / n", "alfa2", "n", "double alfa = Math.sqrt(alfa2);", "alfa", "Math.sqrt(alfa2)", "Math.sqrt", "Math", "alfa2", "System.out.println(alfa)", "System.out.println", "System.out", "System", "System.out", "alfa", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new java.util.Scanner(System.in);\n\n\t\tInputStreamReader input = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(input);\n\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile (true) {\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tif (n==0) break;\n\t\t\tint[] s = new int[n];\n\n\t\t\tString[] dataset = br.readLine().split(\" \");\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = Integer.parseInt(dataset[i]);\n\t\t\t}\n\t\t\tint goukei = 0;\n\n\t\t\tfor (int i : s) {\n\t\t\t\tgoukei += i;\n\t\t\t}\n\t\t\tdouble m = (double)goukei / (double)n;\n\n\t\t\tdouble alfa2 = 0.0;\n\n\t\t\tfor (int i : s) {\n\t\t\t\talfa2 += (i - m) * (i - m);\n\t\t\t}\n\n\t\t\talfa2 = alfa2 / n;\n\n\t\t\tdouble alfa = Math.sqrt(alfa2);\n\t\t\tSystem.out.println(alfa);\n\t\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new java.util.Scanner(System.in);\n\n\t\tInputStreamReader input = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(input);\n\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile (true) {\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tif (n==0) break;\n\t\t\tint[] s = new int[n];\n\n\t\t\tString[] dataset = br.readLine().split(\" \");\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = Integer.parseInt(dataset[i]);\n\t\t\t}\n\t\t\tint goukei = 0;\n\n\t\t\tfor (int i : s) {\n\t\t\t\tgoukei += i;\n\t\t\t}\n\t\t\tdouble m = (double)goukei / (double)n;\n\n\t\t\tdouble alfa2 = 0.0;\n\n\t\t\tfor (int i : s) {\n\t\t\t\talfa2 += (i - m) * (i - m);\n\t\t\t}\n\n\t\t\talfa2 = alfa2 / n;\n\n\t\t\tdouble alfa = Math.sqrt(alfa2);\n\t\t\tSystem.out.println(alfa);\n\t\t}\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { // TODO ????????????????????????????????????????????? Scanner scan = new java.util.Scanner(System.in); InputStreamReader input = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(input); StringBuilder sb = new StringBuilder(); while (true) { int n = Integer.parseInt(br.readLine()); if (n==0) break; int[] s = new int[n]; String[] dataset = br.readLine().split(" "); for (int i = 0; i < n; i++) { s[i] = Integer.parseInt(dataset[i]); } int goukei = 0; for (int i : s) { goukei += i; } double m = (double)goukei / (double)n; double alfa2 = 0.0; for (int i : s) { alfa2 += (i - m) * (i - m); } alfa2 = alfa2 / n; double alfa = Math.sqrt(alfa2); System.out.println(alfa); } } }
[ 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, 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, 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 ], [ 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 ], [ 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 ], [ 96, 97 ], [ 96, 98 ], [ 14, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 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 public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(true){\n int count = sc.nextInt();\n if (count == 0) break;\n int[] score = new int[count];\n int sum = 0;\n double average = 0;\n for (int i=0; i<count; i++) {\n score[i] = sc.nextInt();\n sum += score[i];\n } \n average = (double)sum/count;\n double d = 0;\n for (int i=0; i<count; i++) {\n d += (score[i]-average)*(score[i]-average);\n }\n double b = (double)d/count;\n System.out.println(Math.sqrt(b));\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 while(true){\n int count = sc.nextInt();\n if (count == 0) break;\n int[] score = new int[count];\n int sum = 0;\n double average = 0;\n for (int i=0; i<count; i++) {\n score[i] = sc.nextInt();\n sum += score[i];\n } \n average = (double)sum/count;\n double d = 0;\n for (int i=0; i<count; i++) {\n d += (score[i]-average)*(score[i]-average);\n }\n double b = (double)d/count;\n System.out.println(Math.sqrt(b));\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(true){\n int count = sc.nextInt();\n if (count == 0) break;\n int[] score = new int[count];\n int sum = 0;\n double average = 0;\n for (int i=0; i<count; i++) {\n score[i] = sc.nextInt();\n sum += score[i];\n } \n average = (double)sum/count;\n double d = 0;\n for (int i=0; i<count; i++) {\n d += (score[i]-average)*(score[i]-average);\n }\n double b = (double)d/count;\n System.out.println(Math.sqrt(b));\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n while(true){\n int count = sc.nextInt();\n if (count == 0) break;\n int[] score = new int[count];\n int sum = 0;\n double average = 0;\n for (int i=0; i<count; i++) {\n score[i] = sc.nextInt();\n sum += score[i];\n } \n average = (double)sum/count;\n double d = 0;\n for (int i=0; i<count; i++) {\n d += (score[i]-average)*(score[i]-average);\n }\n double b = (double)d/count;\n System.out.println(Math.sqrt(b));\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n int count = sc.nextInt();\n if (count == 0) break;\n int[] score = new int[count];\n int sum = 0;\n double average = 0;\n for (int i=0; i<count; i++) {\n score[i] = sc.nextInt();\n sum += score[i];\n } \n average = (double)sum/count;\n double d = 0;\n for (int i=0; i<count; i++) {\n d += (score[i]-average)*(score[i]-average);\n }\n double b = (double)d/count;\n System.out.println(Math.sqrt(b));\n }", "true", "{\n int count = sc.nextInt();\n if (count == 0) break;\n int[] score = new int[count];\n int sum = 0;\n double average = 0;\n for (int i=0; i<count; i++) {\n score[i] = sc.nextInt();\n sum += score[i];\n } \n average = (double)sum/count;\n double d = 0;\n for (int i=0; i<count; i++) {\n d += (score[i]-average)*(score[i]-average);\n }\n double b = (double)d/count;\n System.out.println(Math.sqrt(b));\n }", "int count = sc.nextInt();", "count", "sc.nextInt()", "sc.nextInt", "sc", "if (count == 0) break;", "count == 0", "count", "0", "break;", "int[] score = new int[count];", "score", "new int[count]", "count", "int sum = 0;", "sum", "0", "double average = 0;", "average", "0", "for (int i=0; i<count; i++) {\n score[i] = sc.nextInt();\n sum += score[i];\n }", "int i=0;", "int i=0;", "i", "0", "i<count", "i", "count", "i++", "i++", "i", "{\n score[i] = sc.nextInt();\n sum += score[i];\n }", "{\n score[i] = sc.nextInt();\n sum += score[i];\n }", "score[i] = sc.nextInt()", "score[i]", "score", "i", "sc.nextInt()", "sc.nextInt", "sc", "sum += score[i]", "sum", "score[i]", "score", "i", "average = (double)sum/count", "average", "(double)sum/count", "(double)sum", "count", "double d = 0;", "d", "0", "for (int i=0; i<count; i++) {\n d += (score[i]-average)*(score[i]-average);\n }", "int i=0;", "int i=0;", "i", "0", "i<count", "i", "count", "i++", "i++", "i", "{\n d += (score[i]-average)*(score[i]-average);\n }", "{\n d += (score[i]-average)*(score[i]-average);\n }", "d += (score[i]-average)*(score[i]-average)", "d", "(score[i]-average)*(score[i]-average)", "(score[i]-average)", "score[i]", "score", "i", "average", "(score[i]-average)", "score[i]", "score", "i", "average", "double b = (double)d/count;", "b", "(double)d/count", "(double)d", "count", "System.out.println(Math.sqrt(b))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(b)", "Math.sqrt", "Math", "b", "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 count = sc.nextInt();\n if (count == 0) break;\n int[] score = new int[count];\n int sum = 0;\n double average = 0;\n for (int i=0; i<count; i++) {\n score[i] = sc.nextInt();\n sum += score[i];\n } \n average = (double)sum/count;\n double d = 0;\n for (int i=0; i<count; i++) {\n d += (score[i]-average)*(score[i]-average);\n }\n double b = (double)d/count;\n System.out.println(Math.sqrt(b));\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 count = sc.nextInt();\n if (count == 0) break;\n int[] score = new int[count];\n int sum = 0;\n double average = 0;\n for (int i=0; i<count; i++) {\n score[i] = sc.nextInt();\n sum += score[i];\n } \n average = (double)sum/count;\n double d = 0;\n for (int i=0; i<count; i++) {\n d += (score[i]-average)*(score[i]-average);\n }\n double b = (double)d/count;\n System.out.println(Math.sqrt(b));\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 count = sc.nextInt(); if (count == 0) break; int[] score = new int[count]; int sum = 0; double average = 0; for (int i=0; i<count; i++) { score[i] = sc.nextInt(); sum += score[i]; } average = (double)sum/count; double d = 0; for (int i=0; i<count; i++) { d += (score[i]-average)*(score[i]-average); } double b = (double)d/count; System.out.println(Math.sqrt(b)); } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 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, 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 ], [ 109, 5 ], [ 109, 6 ], [ 6, 7 ], [ 6, 8 ], [ 109, 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 ], [ 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 ], [ 61, 62 ], [ 61, 63 ], [ 14, 64 ], [ 64, 65 ], [ 64, 66 ], [ 14, 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 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 84, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 14, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 103, 104 ], [ 103, 105 ], [ 9, 106 ], [ 106, 107 ], [ 0, 108 ], [ 108, 109 ], [ 108, 110 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\tprivate static Scanner sc=new Scanner(System.in);\n\tpublic static void main (String[] args){\n\twhile(true){\n\t\tint n=sc.nextInt();\n\t\tif(n==0) break;\n\t\tint[] s=new int[n];\n\t\tdouble sum=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\ts[i]=sc.nextInt();\n\t\t\tsum=sum+s[i];\n\t\t}\n\t\tdouble ave=sum/n;\n\t\tdouble ssum=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tssum=ssum+(s[i]-ave)*(s[i]-ave);\n\t\t}\n\t\tSystem.out.println(Math.sqrt(ssum/n));\n\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tprivate static Scanner sc=new Scanner(System.in);\n\tpublic static void main (String[] args){\n\twhile(true){\n\t\tint n=sc.nextInt();\n\t\tif(n==0) break;\n\t\tint[] s=new int[n];\n\t\tdouble sum=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\ts[i]=sc.nextInt();\n\t\t\tsum=sum+s[i];\n\t\t}\n\t\tdouble ave=sum/n;\n\t\tdouble ssum=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tssum=ssum+(s[i]-ave)*(s[i]-ave);\n\t\t}\n\t\tSystem.out.println(Math.sqrt(ssum/n));\n\t}\n\t}\n}", "Main", "private static Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main (String[] args){\n\twhile(true){\n\t\tint n=sc.nextInt();\n\t\tif(n==0) break;\n\t\tint[] s=new int[n];\n\t\tdouble sum=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\ts[i]=sc.nextInt();\n\t\t\tsum=sum+s[i];\n\t\t}\n\t\tdouble ave=sum/n;\n\t\tdouble ssum=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tssum=ssum+(s[i]-ave)*(s[i]-ave);\n\t\t}\n\t\tSystem.out.println(Math.sqrt(ssum/n));\n\t}\n\t}", "main", "{\n\twhile(true){\n\t\tint n=sc.nextInt();\n\t\tif(n==0) break;\n\t\tint[] s=new int[n];\n\t\tdouble sum=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\ts[i]=sc.nextInt();\n\t\t\tsum=sum+s[i];\n\t\t}\n\t\tdouble ave=sum/n;\n\t\tdouble ssum=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tssum=ssum+(s[i]-ave)*(s[i]-ave);\n\t\t}\n\t\tSystem.out.println(Math.sqrt(ssum/n));\n\t}\n\t}", "while(true){\n\t\tint n=sc.nextInt();\n\t\tif(n==0) break;\n\t\tint[] s=new int[n];\n\t\tdouble sum=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\ts[i]=sc.nextInt();\n\t\t\tsum=sum+s[i];\n\t\t}\n\t\tdouble ave=sum/n;\n\t\tdouble ssum=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tssum=ssum+(s[i]-ave)*(s[i]-ave);\n\t\t}\n\t\tSystem.out.println(Math.sqrt(ssum/n));\n\t}", "true", "{\n\t\tint n=sc.nextInt();\n\t\tif(n==0) break;\n\t\tint[] s=new int[n];\n\t\tdouble sum=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\ts[i]=sc.nextInt();\n\t\t\tsum=sum+s[i];\n\t\t}\n\t\tdouble ave=sum/n;\n\t\tdouble ssum=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tssum=ssum+(s[i]-ave)*(s[i]-ave);\n\t\t}\n\t\tSystem.out.println(Math.sqrt(ssum/n));\n\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 sum=0;", "sum", "0", "for(int i=0;i<n;i++){\n\t\t\ts[i]=sc.nextInt();\n\t\t\tsum=sum+s[i];\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\ts[i]=sc.nextInt();\n\t\t\tsum=sum+s[i];\n\t\t}", "{\n\t\t\ts[i]=sc.nextInt();\n\t\t\tsum=sum+s[i];\n\t\t}", "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=sum/n;", "ave", "sum/n", "sum", "n", "double ssum=0;", "ssum", "0", "for(int i=0;i<n;i++){\n\t\t\tssum=ssum+(s[i]-ave)*(s[i]-ave);\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tssum=ssum+(s[i]-ave)*(s[i]-ave);\n\t\t}", "{\n\t\t\tssum=ssum+(s[i]-ave)*(s[i]-ave);\n\t\t}", "ssum=ssum+(s[i]-ave)*(s[i]-ave)", "ssum", "ssum+(s[i]-ave)*(s[i]-ave)", "ssum", "(s[i]-ave)*(s[i]-ave)", "(s[i]-ave)", "s[i]", "s", "i", "ave", "(s[i]-ave)", "s[i]", "s", "i", "ave", "System.out.println(Math.sqrt(ssum/n))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(ssum/n)", "Math.sqrt", "Math", "ssum/n", "ssum", "n", "String[] args", "args", "public class Main {\n\tprivate static Scanner sc=new Scanner(System.in);\n\tpublic static void main (String[] args){\n\twhile(true){\n\t\tint n=sc.nextInt();\n\t\tif(n==0) break;\n\t\tint[] s=new int[n];\n\t\tdouble sum=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\ts[i]=sc.nextInt();\n\t\t\tsum=sum+s[i];\n\t\t}\n\t\tdouble ave=sum/n;\n\t\tdouble ssum=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tssum=ssum+(s[i]-ave)*(s[i]-ave);\n\t\t}\n\t\tSystem.out.println(Math.sqrt(ssum/n));\n\t}\n\t}\n}", "public class Main {\n\tprivate static Scanner sc=new Scanner(System.in);\n\tpublic static void main (String[] args){\n\twhile(true){\n\t\tint n=sc.nextInt();\n\t\tif(n==0) break;\n\t\tint[] s=new int[n];\n\t\tdouble sum=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\ts[i]=sc.nextInt();\n\t\t\tsum=sum+s[i];\n\t\t}\n\t\tdouble ave=sum/n;\n\t\tdouble ssum=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tssum=ssum+(s[i]-ave)*(s[i]-ave);\n\t\t}\n\t\tSystem.out.println(Math.sqrt(ssum/n));\n\t}\n\t}\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; int[] s=new int[n]; double sum=0; for(int i=0;i<n;i++){ s[i]=sc.nextInt(); sum=sum+s[i]; } double ave=sum/n; double ssum=0; for(int i=0;i<n;i++){ ssum=ssum+(s[i]-ave)*(s[i]-ave); } System.out.println(Math.sqrt(ssum/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, 17, 42, 2, 0, 13, 4, 18, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 41, 13, 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, 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, 4, 18, 13, 2, 13, 13, 4, 18, 13, 2, 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 ], [ 143, 11 ], [ 143, 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 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 34, 35 ], [ 35, 36 ], [ 28, 37 ], [ 27, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 38, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 38, 50 ], [ 50, 51 ], [ 50, 52 ], [ 38, 54 ], [ 54, 55 ], [ 54, 56 ], [ 38, 57 ], [ 57, 58 ], [ 57, 59 ], [ 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 ], [ 75, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 38, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 101, 102 ], [ 101, 103 ], [ 96, 104 ], [ 104, 105 ], [ 105, 106 ], [ 96, 107 ], [ 108, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 116, 118 ], [ 111, 119 ], [ 38, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 123, 124 ], [ 122, 125 ], [ 125, 126 ], [ 125, 127 ], [ 38, 128 ], [ 128, 129 ], [ 129, 130 ], [ 128, 131 ], [ 131, 132 ], [ 131, 133 ], [ 14, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 134, 139 ], [ 12, 140 ], [ 140, 141 ], [ 0, 142 ], [ 142, 143 ], [ 142, 144 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint n = 0;\n\t double avg = 0;\n\t\t \n\t\twhile((n = Integer.parseInt(input.readLine())) != 0){\n\t\t String line = input.readLine();\n\t\t String[] str = line.split(\" \");\n\t\t double[] data = new double[n];\n\t\t \n\t\t double sum = 0 , scat = 0 , dev = 0;\n\t\t for(int i = 0 ; i < n ; i ++){\n\t\t\t data[i] = Double.parseDouble(str[i]);\n\t\t\t sum += data[i];\n\t\t\t avg = sum / (double)n ;\n\t\t }\n\t\t for(int j = 0 ; j < n ; j++){\n\t\t\t scat += Math.pow(avg - data[j], 2); \n\t\t }\n\t\t \n\t\t dev = Math.sqrt(scat/(double)n);\n\t\t sb.append(dev + \"\\n\");\n\t\t \n\t\t}\n\t\tSystem.out.print(sb);\n\t\t\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint n = 0;\n\t double avg = 0;\n\t\t \n\t\twhile((n = Integer.parseInt(input.readLine())) != 0){\n\t\t String line = input.readLine();\n\t\t String[] str = line.split(\" \");\n\t\t double[] data = new double[n];\n\t\t \n\t\t double sum = 0 , scat = 0 , dev = 0;\n\t\t for(int i = 0 ; i < n ; i ++){\n\t\t\t data[i] = Double.parseDouble(str[i]);\n\t\t\t sum += data[i];\n\t\t\t avg = sum / (double)n ;\n\t\t }\n\t\t for(int j = 0 ; j < n ; j++){\n\t\t\t scat += Math.pow(avg - data[j], 2); \n\t\t }\n\t\t \n\t\t dev = Math.sqrt(scat/(double)n);\n\t\t sb.append(dev + \"\\n\");\n\t\t \n\t\t}\n\t\tSystem.out.print(sb);\n\t\t\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint n = 0;\n\t double avg = 0;\n\t\t \n\t\twhile((n = Integer.parseInt(input.readLine())) != 0){\n\t\t String line = input.readLine();\n\t\t String[] str = line.split(\" \");\n\t\t double[] data = new double[n];\n\t\t \n\t\t double sum = 0 , scat = 0 , dev = 0;\n\t\t for(int i = 0 ; i < n ; i ++){\n\t\t\t data[i] = Double.parseDouble(str[i]);\n\t\t\t sum += data[i];\n\t\t\t avg = sum / (double)n ;\n\t\t }\n\t\t for(int j = 0 ; j < n ; j++){\n\t\t\t scat += Math.pow(avg - data[j], 2); \n\t\t }\n\t\t \n\t\t dev = Math.sqrt(scat/(double)n);\n\t\t sb.append(dev + \"\\n\");\n\t\t \n\t\t}\n\t\tSystem.out.print(sb);\n\t\t\n\t}", "main", "{\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint n = 0;\n\t double avg = 0;\n\t\t \n\t\twhile((n = Integer.parseInt(input.readLine())) != 0){\n\t\t String line = input.readLine();\n\t\t String[] str = line.split(\" \");\n\t\t double[] data = new double[n];\n\t\t \n\t\t double sum = 0 , scat = 0 , dev = 0;\n\t\t for(int i = 0 ; i < n ; i ++){\n\t\t\t data[i] = Double.parseDouble(str[i]);\n\t\t\t sum += data[i];\n\t\t\t avg = sum / (double)n ;\n\t\t }\n\t\t for(int j = 0 ; j < n ; j++){\n\t\t\t scat += Math.pow(avg - data[j], 2); \n\t\t }\n\t\t \n\t\t dev = Math.sqrt(scat/(double)n);\n\t\t sb.append(dev + \"\\n\");\n\t\t \n\t\t}\n\t\tSystem.out.print(sb);\n\t\t\n\t}", "BufferedReader input = new BufferedReader(new InputStreamReader(System.in));", "input", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "int n = 0;", "n", "0", "double avg = 0;", "avg", "0", "while((n = Integer.parseInt(input.readLine())) != 0){\n\t\t String line = input.readLine();\n\t\t String[] str = line.split(\" \");\n\t\t double[] data = new double[n];\n\t\t \n\t\t double sum = 0 , scat = 0 , dev = 0;\n\t\t for(int i = 0 ; i < n ; i ++){\n\t\t\t data[i] = Double.parseDouble(str[i]);\n\t\t\t sum += data[i];\n\t\t\t avg = sum / (double)n ;\n\t\t }\n\t\t for(int j = 0 ; j < n ; j++){\n\t\t\t scat += Math.pow(avg - data[j], 2); \n\t\t }\n\t\t \n\t\t dev = Math.sqrt(scat/(double)n);\n\t\t sb.append(dev + \"\\n\");\n\t\t \n\t\t}", "(n = Integer.parseInt(input.readLine())) != 0", "(n = Integer.parseInt(input.readLine()))", "n", "Integer.parseInt(input.readLine())", "Integer.parseInt", "Integer", "input.readLine()", "input.readLine", "input", "0", "{\n\t\t String line = input.readLine();\n\t\t String[] str = line.split(\" \");\n\t\t double[] data = new double[n];\n\t\t \n\t\t double sum = 0 , scat = 0 , dev = 0;\n\t\t for(int i = 0 ; i < n ; i ++){\n\t\t\t data[i] = Double.parseDouble(str[i]);\n\t\t\t sum += data[i];\n\t\t\t avg = sum / (double)n ;\n\t\t }\n\t\t for(int j = 0 ; j < n ; j++){\n\t\t\t scat += Math.pow(avg - data[j], 2); \n\t\t }\n\t\t \n\t\t dev = Math.sqrt(scat/(double)n);\n\t\t sb.append(dev + \"\\n\");\n\t\t \n\t\t}", "String line = input.readLine();", "line", "input.readLine()", "input.readLine", "input", "String[] str = line.split(\" \");", "str", "line.split(\" \")", "line.split", "line", "\" \"", "double[] data = new double[n];", "data", "new double[n]", "n", "double sum = 0", "sum", "0", "scat = 0", "scat", "0", "dev = 0;", "dev", "0", "for(int i = 0 ; i < n ; i ++){\n\t\t\t data[i] = Double.parseDouble(str[i]);\n\t\t\t sum += data[i];\n\t\t\t avg = sum / (double)n ;\n\t\t }", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < n", "i", "n", "i ++", "i ++", "i", "{\n\t\t\t data[i] = Double.parseDouble(str[i]);\n\t\t\t sum += data[i];\n\t\t\t avg = sum / (double)n ;\n\t\t }", "{\n\t\t\t data[i] = Double.parseDouble(str[i]);\n\t\t\t sum += data[i];\n\t\t\t avg = sum / (double)n ;\n\t\t }", "data[i] = Double.parseDouble(str[i])", "data[i]", "data", "i", "Double.parseDouble(str[i])", "Double.parseDouble", "Double", "str[i]", "str", "i", "sum += data[i]", "sum", "data[i]", "data", "i", "avg = sum / (double)n", "avg", "sum / (double)n", "sum", "(double)n", "for(int j = 0 ; j < n ; j++){\n\t\t\t scat += Math.pow(avg - data[j], 2); \n\t\t }", "int j = 0 ;", "int j = 0 ;", "j", "0", "j < n", "j", "n", "j++", "j++", "j", "{\n\t\t\t scat += Math.pow(avg - data[j], 2); \n\t\t }", "{\n\t\t\t scat += Math.pow(avg - data[j], 2); \n\t\t }", "scat += Math.pow(avg - data[j], 2)", "scat", "Math.pow(avg - data[j], 2)", "Math.pow", "Math", "avg - data[j]", "avg", "data[j]", "data", "j", "2", "dev = Math.sqrt(scat/(double)n)", "dev", "Math.sqrt(scat/(double)n)", "Math.sqrt", "Math", "scat/(double)n", "scat", "(double)n", "sb.append(dev + \"\\n\")", "sb.append", "sb", "dev + \"\\n\"", "dev", "\"\\n\"", "System.out.print(sb)", "System.out.print", "System.out", "System", "System.out", "sb", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint n = 0;\n\t double avg = 0;\n\t\t \n\t\twhile((n = Integer.parseInt(input.readLine())) != 0){\n\t\t String line = input.readLine();\n\t\t String[] str = line.split(\" \");\n\t\t double[] data = new double[n];\n\t\t \n\t\t double sum = 0 , scat = 0 , dev = 0;\n\t\t for(int i = 0 ; i < n ; i ++){\n\t\t\t data[i] = Double.parseDouble(str[i]);\n\t\t\t sum += data[i];\n\t\t\t avg = sum / (double)n ;\n\t\t }\n\t\t for(int j = 0 ; j < n ; j++){\n\t\t\t scat += Math.pow(avg - data[j], 2); \n\t\t }\n\t\t \n\t\t dev = Math.sqrt(scat/(double)n);\n\t\t sb.append(dev + \"\\n\");\n\t\t \n\t\t}\n\t\tSystem.out.print(sb);\n\t\t\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint n = 0;\n\t double avg = 0;\n\t\t \n\t\twhile((n = Integer.parseInt(input.readLine())) != 0){\n\t\t String line = input.readLine();\n\t\t String[] str = line.split(\" \");\n\t\t double[] data = new double[n];\n\t\t \n\t\t double sum = 0 , scat = 0 , dev = 0;\n\t\t for(int i = 0 ; i < n ; i ++){\n\t\t\t data[i] = Double.parseDouble(str[i]);\n\t\t\t sum += data[i];\n\t\t\t avg = sum / (double)n ;\n\t\t }\n\t\t for(int j = 0 ; j < n ; j++){\n\t\t\t scat += Math.pow(avg - data[j], 2); \n\t\t }\n\t\t \n\t\t dev = Math.sqrt(scat/(double)n);\n\t\t sb.append(dev + \"\\n\");\n\t\t \n\t\t}\n\t\tSystem.out.print(sb);\n\t\t\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; public class Main { public static void main(String[] args) throws IOException { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); int n = 0; double avg = 0; while((n = Integer.parseInt(input.readLine())) != 0){ String line = input.readLine(); String[] str = line.split(" "); double[] data = new double[n]; double sum = 0 , scat = 0 , dev = 0; for(int i = 0 ; i < n ; i ++){ data[i] = Double.parseDouble(str[i]); sum += data[i]; avg = sum / (double)n ; } for(int j = 0 ; j < n ; j++){ scat += Math.pow(avg - data[j], 2); } dev = Math.sqrt(scat/(double)n); sb.append(dev + "\n"); } System.out.print(sb); } }
[ 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, 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, 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, 13, 41, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 119, 5 ], [ 119, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 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 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 32, 34 ], [ 27, 35 ], [ 35, 36 ], [ 36, 37 ], [ 27, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 44, 45 ], [ 45, 46 ], [ 22, 47 ], [ 47, 48 ], [ 47, 49 ], [ 22, 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 ], [ 65, 67 ], [ 22, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 22, 73 ], [ 73, 74 ], [ 73, 75 ], [ 22, 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 ], [ 92, 94 ], [ 91, 95 ], [ 88, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 98, 100 ], [ 22, 101 ], [ 101, 102 ], [ 101, 103 ], [ 22, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 22, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 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 Scanner scanner = new Scanner(System.in);\n int n;\n while ((n = scanner.nextInt()) != 0) {\n int data[] = new int[n];\n for (int i = 0; i < n; i++) {\n data[i] = scanner.nextInt();\n }\n \n int sum = 0;\n for (int i = 0; i < n; i++) {\n sum += data[i];\n }\n double m = (double)sum / n;\n double a2 = 0;\n for (int i = 0; i < n; i++) {\n double d = data[i] - m;\n a2 += d*d;\n }\n a2 /= n;\n double a = Math.sqrt(a2);\n System.out.println(a);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n;\n while ((n = scanner.nextInt()) != 0) {\n int data[] = new int[n];\n for (int i = 0; i < n; i++) {\n data[i] = scanner.nextInt();\n }\n \n int sum = 0;\n for (int i = 0; i < n; i++) {\n sum += data[i];\n }\n double m = (double)sum / n;\n double a2 = 0;\n for (int i = 0; i < n; i++) {\n double d = data[i] - m;\n a2 += d*d;\n }\n a2 /= n;\n double a = Math.sqrt(a2);\n System.out.println(a);\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n;\n while ((n = scanner.nextInt()) != 0) {\n int data[] = new int[n];\n for (int i = 0; i < n; i++) {\n data[i] = scanner.nextInt();\n }\n \n int sum = 0;\n for (int i = 0; i < n; i++) {\n sum += data[i];\n }\n double m = (double)sum / n;\n double a2 = 0;\n for (int i = 0; i < n; i++) {\n double d = data[i] - m;\n a2 += d*d;\n }\n a2 /= n;\n double a = Math.sqrt(a2);\n System.out.println(a);\n }\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n int n;\n while ((n = scanner.nextInt()) != 0) {\n int data[] = new int[n];\n for (int i = 0; i < n; i++) {\n data[i] = scanner.nextInt();\n }\n \n int sum = 0;\n for (int i = 0; i < n; i++) {\n sum += data[i];\n }\n double m = (double)sum / n;\n double a2 = 0;\n for (int i = 0; i < n; i++) {\n double d = data[i] - m;\n a2 += d*d;\n }\n a2 /= n;\n double a = Math.sqrt(a2);\n System.out.println(a);\n }\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int n;", "n", "while ((n = scanner.nextInt()) != 0) {\n int data[] = new int[n];\n for (int i = 0; i < n; i++) {\n data[i] = scanner.nextInt();\n }\n \n int sum = 0;\n for (int i = 0; i < n; i++) {\n sum += data[i];\n }\n double m = (double)sum / n;\n double a2 = 0;\n for (int i = 0; i < n; i++) {\n double d = data[i] - m;\n a2 += d*d;\n }\n a2 /= n;\n double a = Math.sqrt(a2);\n System.out.println(a);\n }", "(n = scanner.nextInt()) != 0", "(n = scanner.nextInt())", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "0", "{\n int data[] = new int[n];\n for (int i = 0; i < n; i++) {\n data[i] = scanner.nextInt();\n }\n \n int sum = 0;\n for (int i = 0; i < n; i++) {\n sum += data[i];\n }\n double m = (double)sum / n;\n double a2 = 0;\n for (int i = 0; i < n; i++) {\n double d = data[i] - m;\n a2 += d*d;\n }\n a2 /= n;\n double a = Math.sqrt(a2);\n System.out.println(a);\n }", "int data[] = new int[n];", "data", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n data[i] = scanner.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n data[i] = scanner.nextInt();\n }", "{\n data[i] = scanner.nextInt();\n }", "data[i] = scanner.nextInt()", "data[i]", "data", "i", "scanner.nextInt()", "scanner.nextInt", "scanner", "int sum = 0;", "sum", "0", "for (int i = 0; i < n; i++) {\n sum += data[i];\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n sum += data[i];\n }", "{\n sum += data[i];\n }", "sum += data[i]", "sum", "data[i]", "data", "i", "double m = (double)sum / n;", "m", "(double)sum / n", "(double)sum", "n", "double a2 = 0;", "a2", "0", "for (int i = 0; i < n; i++) {\n double d = data[i] - m;\n a2 += d*d;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n double d = data[i] - m;\n a2 += d*d;\n }", "{\n double d = data[i] - m;\n a2 += d*d;\n }", "double d = data[i] - m;", "d", "data[i] - m", "data[i]", "data", "i", "m", "a2 += d*d", "a2", "d*d", "d", "d", "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 public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n;\n while ((n = scanner.nextInt()) != 0) {\n int data[] = new int[n];\n for (int i = 0; i < n; i++) {\n data[i] = scanner.nextInt();\n }\n \n int sum = 0;\n for (int i = 0; i < n; i++) {\n sum += data[i];\n }\n double m = (double)sum / n;\n double a2 = 0;\n for (int i = 0; i < n; i++) {\n double d = data[i] - m;\n a2 += d*d;\n }\n a2 /= n;\n double a = Math.sqrt(a2);\n System.out.println(a);\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n;\n while ((n = scanner.nextInt()) != 0) {\n int data[] = new int[n];\n for (int i = 0; i < n; i++) {\n data[i] = scanner.nextInt();\n }\n \n int sum = 0;\n for (int i = 0; i < n; i++) {\n sum += data[i];\n }\n double m = (double)sum / n;\n double a2 = 0;\n for (int i = 0; i < n; i++) {\n double d = data[i] - m;\n a2 += d*d;\n }\n a2 /= n;\n double a = Math.sqrt(a2);\n System.out.println(a);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n; while ((n = scanner.nextInt()) != 0) { int data[] = new int[n]; for (int i = 0; i < n; i++) { data[i] = scanner.nextInt(); } int sum = 0; for (int i = 0; i < n; i++) { sum += data[i]; } double m = (double)sum / n; double a2 = 0; for (int i = 0; i < n; i++) { double d = data[i] - m; a2 += d*d; } a2 /= n; double a = Math.sqrt(a2); System.out.println(a); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 41, 13, 41, 13, 41, 13, 17, 41, 13, 41, 13, 17, 41, 13, 17, 0, 13, 4, 18, 13, 41, 13, 20, 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, 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, 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 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 14, 19 ], [ 19, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 14, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 14, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 14, 37 ], [ 37, 38 ], [ 37, 39 ], [ 14, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 14, 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 ], [ 71, 72 ], [ 71, 73 ], [ 14, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 14, 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 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 96, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 14, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 112, 113 ], [ 112, 114 ], [ 14, 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{\npublic static void main(String[] args) {\nScanner sc = new Scanner(System.in);\n\n\nwhile(true){\nint i,j,k;\ndouble sum=0,ave,s=0,sg=0; \n\n\nj = sc.nextInt();\nint[] intarray = new int[j];\n\nif (j == 0 ){\n break;\n}\n\nfor(i=0;i<j;i++){\n\n intarray[i] = sc.nextInt();\n\nsum = sum + intarray[i];\n}\nave = sum/j;\n\nfor(k=0;k<j;k++){\n\n s = s + (intarray[k]-ave)*(intarray[k]-ave);\n}\n\n\n\nsg = Math.sqrt(s/j);\n\nSystem.out.println(sg);\n\n}\n}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\npublic static void main(String[] args) {\nScanner sc = new Scanner(System.in);\n\n\nwhile(true){\nint i,j,k;\ndouble sum=0,ave,s=0,sg=0; \n\n\nj = sc.nextInt();\nint[] intarray = new int[j];\n\nif (j == 0 ){\n break;\n}\n\nfor(i=0;i<j;i++){\n\n intarray[i] = sc.nextInt();\n\nsum = sum + intarray[i];\n}\nave = sum/j;\n\nfor(k=0;k<j;k++){\n\n s = s + (intarray[k]-ave)*(intarray[k]-ave);\n}\n\n\n\nsg = Math.sqrt(s/j);\n\nSystem.out.println(sg);\n\n}\n}\n}", "Main", "public static void main(String[] args) {\nScanner sc = new Scanner(System.in);\n\n\nwhile(true){\nint i,j,k;\ndouble sum=0,ave,s=0,sg=0; \n\n\nj = sc.nextInt();\nint[] intarray = new int[j];\n\nif (j == 0 ){\n break;\n}\n\nfor(i=0;i<j;i++){\n\n intarray[i] = sc.nextInt();\n\nsum = sum + intarray[i];\n}\nave = sum/j;\n\nfor(k=0;k<j;k++){\n\n s = s + (intarray[k]-ave)*(intarray[k]-ave);\n}\n\n\n\nsg = Math.sqrt(s/j);\n\nSystem.out.println(sg);\n\n}\n}", "main", "{\nScanner sc = new Scanner(System.in);\n\n\nwhile(true){\nint i,j,k;\ndouble sum=0,ave,s=0,sg=0; \n\n\nj = sc.nextInt();\nint[] intarray = new int[j];\n\nif (j == 0 ){\n break;\n}\n\nfor(i=0;i<j;i++){\n\n intarray[i] = sc.nextInt();\n\nsum = sum + intarray[i];\n}\nave = sum/j;\n\nfor(k=0;k<j;k++){\n\n s = s + (intarray[k]-ave)*(intarray[k]-ave);\n}\n\n\n\nsg = Math.sqrt(s/j);\n\nSystem.out.println(sg);\n\n}\n}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\nint i,j,k;\ndouble sum=0,ave,s=0,sg=0; \n\n\nj = sc.nextInt();\nint[] intarray = new int[j];\n\nif (j == 0 ){\n break;\n}\n\nfor(i=0;i<j;i++){\n\n intarray[i] = sc.nextInt();\n\nsum = sum + intarray[i];\n}\nave = sum/j;\n\nfor(k=0;k<j;k++){\n\n s = s + (intarray[k]-ave)*(intarray[k]-ave);\n}\n\n\n\nsg = Math.sqrt(s/j);\n\nSystem.out.println(sg);\n\n}", "true", "{\nint i,j,k;\ndouble sum=0,ave,s=0,sg=0; \n\n\nj = sc.nextInt();\nint[] intarray = new int[j];\n\nif (j == 0 ){\n break;\n}\n\nfor(i=0;i<j;i++){\n\n intarray[i] = sc.nextInt();\n\nsum = sum + intarray[i];\n}\nave = sum/j;\n\nfor(k=0;k<j;k++){\n\n s = s + (intarray[k]-ave)*(intarray[k]-ave);\n}\n\n\n\nsg = Math.sqrt(s/j);\n\nSystem.out.println(sg);\n\n}", "int i", "i", "j", "j", "k;", "k", "double sum=0", "sum", "0", "ave", "ave", "s=0", "s", "0", "sg=0;", "sg", "0", "j = sc.nextInt()", "j", "sc.nextInt()", "sc.nextInt", "sc", "int[] intarray = new int[j];", "intarray", "new int[j]", "j", "if (j == 0 ){\n break;\n}", "j == 0", "j", "0", "{\n break;\n}", "break;", "for(i=0;i<j;i++){\n\n intarray[i] = sc.nextInt();\n\nsum = sum + intarray[i];\n}", "i=0;", "i=0", "i", "0", "i<j", "i", "j", "i++", "i++", "i", "{\n\n intarray[i] = sc.nextInt();\n\nsum = sum + intarray[i];\n}", "{\n\n intarray[i] = sc.nextInt();\n\nsum = sum + intarray[i];\n}", "intarray[i] = sc.nextInt()", "intarray[i]", "intarray", "i", "sc.nextInt()", "sc.nextInt", "sc", "sum = sum + intarray[i]", "sum", "sum + intarray[i]", "sum", "intarray[i]", "intarray", "i", "ave = sum/j", "ave", "sum/j", "sum", "j", "for(k=0;k<j;k++){\n\n s = s + (intarray[k]-ave)*(intarray[k]-ave);\n}", "k=0;", "k=0", "k", "0", "k<j", "k", "j", "k++", "k++", "k", "{\n\n s = s + (intarray[k]-ave)*(intarray[k]-ave);\n}", "{\n\n s = s + (intarray[k]-ave)*(intarray[k]-ave);\n}", "s = s + (intarray[k]-ave)*(intarray[k]-ave)", "s", "s + (intarray[k]-ave)*(intarray[k]-ave)", "s", "(intarray[k]-ave)*(intarray[k]-ave)", "(intarray[k]-ave)", "intarray[k]", "intarray", "k", "ave", "(intarray[k]-ave)", "intarray[k]", "intarray", "k", "ave", "sg = Math.sqrt(s/j)", "sg", "Math.sqrt(s/j)", "Math.sqrt", "Math", "s/j", "s", "j", "System.out.println(sg)", "System.out.println", "System.out", "System", "System.out", "sg", "String[] args", "args", "public class Main{\npublic static void main(String[] args) {\nScanner sc = new Scanner(System.in);\n\n\nwhile(true){\nint i,j,k;\ndouble sum=0,ave,s=0,sg=0; \n\n\nj = sc.nextInt();\nint[] intarray = new int[j];\n\nif (j == 0 ){\n break;\n}\n\nfor(i=0;i<j;i++){\n\n intarray[i] = sc.nextInt();\n\nsum = sum + intarray[i];\n}\nave = sum/j;\n\nfor(k=0;k<j;k++){\n\n s = s + (intarray[k]-ave)*(intarray[k]-ave);\n}\n\n\n\nsg = Math.sqrt(s/j);\n\nSystem.out.println(sg);\n\n}\n}\n}", "public class Main{\npublic static void main(String[] args) {\nScanner sc = new Scanner(System.in);\n\n\nwhile(true){\nint i,j,k;\ndouble sum=0,ave,s=0,sg=0; \n\n\nj = sc.nextInt();\nint[] intarray = new int[j];\n\nif (j == 0 ){\n break;\n}\n\nfor(i=0;i<j;i++){\n\n intarray[i] = sc.nextInt();\n\nsum = sum + intarray[i];\n}\nave = sum/j;\n\nfor(k=0;k<j;k++){\n\n s = s + (intarray[k]-ave)*(intarray[k]-ave);\n}\n\n\n\nsg = Math.sqrt(s/j);\n\nSystem.out.println(sg);\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 i,j,k; double sum=0,ave,s=0,sg=0; j = sc.nextInt(); int[] intarray = new int[j]; if (j == 0 ){ break; } for(i=0;i<j;i++){ intarray[i] = sc.nextInt(); sum = sum + intarray[i]; } ave = sum/j; for(k=0;k<j;k++){ s = s + (intarray[k]-ave)*(intarray[k]-ave); } sg = Math.sqrt(s/j); System.out.println(sg); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 3, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 18, 13, 13, 0, 13, 13, 41, 13, 2, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 18, 13, 13, 0, 13, 4, 18, 13, 2, 13, 13, 17, 41, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 138, 11 ], [ 138, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 20, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 20, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 20, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 20, 49 ], [ 49, 50 ], [ 49, 51 ], [ 20, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 52, 62 ], [ 62, 63 ], [ 63, 64 ], [ 52, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 72, 73 ], [ 72, 74 ], [ 66, 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 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 86, 96 ], [ 96, 97 ], [ 97, 98 ], [ 86, 99 ], [ 100, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 106, 107 ], [ 106, 108 ], [ 100, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 114, 115 ], [ 114, 116 ], [ 111, 117 ], [ 20, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 120, 122 ], [ 20, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 126, 127 ], [ 125, 128 ], [ 20, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 129, 134 ], [ 12, 135 ], [ 135, 136 ], [ 0, 137 ], [ 137, 138 ], [ 137, 139 ] ]
[ "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 input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile (true) {\n\n\t\t\tString first_line = input.readLine();\n\n\t\t\t// ????????°??¨?????°\n\t\t\tint student_num = Integer.parseInt(first_line);\n\n\t\t\tif (student_num == 0) {\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t// ????????\\?????¨?????°\n\t\t\tString secound_lines = input.readLine();\n\n\t\t\tString[] score_arrays = secound_lines.split(\" \");\n\n\t\t\t// ?????°???????¨???¨?????°\n\t\t\tdouble score_sum = 0;\n\n\t\t\t//n???????????????????????????????????°?????????\n\t\t\tfor (int score_spot = 0; score_spot < score_arrays.length; score_spot++) {\n\n\t\t\t\tint score = Integer.parseInt(score_arrays[score_spot]);\n\n\t\t\t\tscore_sum += score;\n\n\t\t\t}\n\n\t\t\t//???????????????\n\t\t\tdouble average = score_sum / student_num;\n\n\t\t\t//??°???a???2???\n\t\t\tdouble sequence_a_square = 0;\n\n\t\t\t//??°???a???2??????????????????\n\t\t\tfor (int sequence_spot = 0; sequence_spot < score_arrays.length; sequence_spot++) {\n\n\t\t\t\tdouble score = Double.parseDouble(score_arrays[sequence_spot]);\n\n\n\t\t\t\tsequence_a_square += Math.pow(score - average, 2);\n\n\t\t\t}\n\n\t\t\tdouble distributed_a_square = sequence_a_square / student_num;\n\n\t\t\t//??°???a????????????\n\t\t\tdouble square_a = Math.sqrt(distributed_a_square);\n\n\t\t\tSystem.out.println(square_a);\n\t\t}\n\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile (true) {\n\n\t\t\tString first_line = input.readLine();\n\n\t\t\t// ????????°??¨?????°\n\t\t\tint student_num = Integer.parseInt(first_line);\n\n\t\t\tif (student_num == 0) {\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t// ????????\\?????¨?????°\n\t\t\tString secound_lines = input.readLine();\n\n\t\t\tString[] score_arrays = secound_lines.split(\" \");\n\n\t\t\t// ?????°???????¨???¨?????°\n\t\t\tdouble score_sum = 0;\n\n\t\t\t//n???????????????????????????????????°?????????\n\t\t\tfor (int score_spot = 0; score_spot < score_arrays.length; score_spot++) {\n\n\t\t\t\tint score = Integer.parseInt(score_arrays[score_spot]);\n\n\t\t\t\tscore_sum += score;\n\n\t\t\t}\n\n\t\t\t//???????????????\n\t\t\tdouble average = score_sum / student_num;\n\n\t\t\t//??°???a???2???\n\t\t\tdouble sequence_a_square = 0;\n\n\t\t\t//??°???a???2??????????????????\n\t\t\tfor (int sequence_spot = 0; sequence_spot < score_arrays.length; sequence_spot++) {\n\n\t\t\t\tdouble score = Double.parseDouble(score_arrays[sequence_spot]);\n\n\n\t\t\t\tsequence_a_square += Math.pow(score - average, 2);\n\n\t\t\t}\n\n\t\t\tdouble distributed_a_square = sequence_a_square / student_num;\n\n\t\t\t//??°???a????????????\n\t\t\tdouble square_a = Math.sqrt(distributed_a_square);\n\n\t\t\tSystem.out.println(square_a);\n\t\t}\n\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile (true) {\n\n\t\t\tString first_line = input.readLine();\n\n\t\t\t// ????????°??¨?????°\n\t\t\tint student_num = Integer.parseInt(first_line);\n\n\t\t\tif (student_num == 0) {\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t// ????????\\?????¨?????°\n\t\t\tString secound_lines = input.readLine();\n\n\t\t\tString[] score_arrays = secound_lines.split(\" \");\n\n\t\t\t// ?????°???????¨???¨?????°\n\t\t\tdouble score_sum = 0;\n\n\t\t\t//n???????????????????????????????????°?????????\n\t\t\tfor (int score_spot = 0; score_spot < score_arrays.length; score_spot++) {\n\n\t\t\t\tint score = Integer.parseInt(score_arrays[score_spot]);\n\n\t\t\t\tscore_sum += score;\n\n\t\t\t}\n\n\t\t\t//???????????????\n\t\t\tdouble average = score_sum / student_num;\n\n\t\t\t//??°???a???2???\n\t\t\tdouble sequence_a_square = 0;\n\n\t\t\t//??°???a???2??????????????????\n\t\t\tfor (int sequence_spot = 0; sequence_spot < score_arrays.length; sequence_spot++) {\n\n\t\t\t\tdouble score = Double.parseDouble(score_arrays[sequence_spot]);\n\n\n\t\t\t\tsequence_a_square += Math.pow(score - average, 2);\n\n\t\t\t}\n\n\t\t\tdouble distributed_a_square = sequence_a_square / student_num;\n\n\t\t\t//??°???a????????????\n\t\t\tdouble square_a = Math.sqrt(distributed_a_square);\n\n\t\t\tSystem.out.println(square_a);\n\t\t}\n\n\t}", "main", "{\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile (true) {\n\n\t\t\tString first_line = input.readLine();\n\n\t\t\t// ????????°??¨?????°\n\t\t\tint student_num = Integer.parseInt(first_line);\n\n\t\t\tif (student_num == 0) {\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t// ????????\\?????¨?????°\n\t\t\tString secound_lines = input.readLine();\n\n\t\t\tString[] score_arrays = secound_lines.split(\" \");\n\n\t\t\t// ?????°???????¨???¨?????°\n\t\t\tdouble score_sum = 0;\n\n\t\t\t//n???????????????????????????????????°?????????\n\t\t\tfor (int score_spot = 0; score_spot < score_arrays.length; score_spot++) {\n\n\t\t\t\tint score = Integer.parseInt(score_arrays[score_spot]);\n\n\t\t\t\tscore_sum += score;\n\n\t\t\t}\n\n\t\t\t//???????????????\n\t\t\tdouble average = score_sum / student_num;\n\n\t\t\t//??°???a???2???\n\t\t\tdouble sequence_a_square = 0;\n\n\t\t\t//??°???a???2??????????????????\n\t\t\tfor (int sequence_spot = 0; sequence_spot < score_arrays.length; sequence_spot++) {\n\n\t\t\t\tdouble score = Double.parseDouble(score_arrays[sequence_spot]);\n\n\n\t\t\t\tsequence_a_square += Math.pow(score - average, 2);\n\n\t\t\t}\n\n\t\t\tdouble distributed_a_square = sequence_a_square / student_num;\n\n\t\t\t//??°???a????????????\n\t\t\tdouble square_a = Math.sqrt(distributed_a_square);\n\n\t\t\tSystem.out.println(square_a);\n\t\t}\n\n\t}", "BufferedReader input = new BufferedReader(new InputStreamReader(System.in));", "input", "new BufferedReader(new InputStreamReader(System.in))", "while (true) {\n\n\t\t\tString first_line = input.readLine();\n\n\t\t\t// ????????°??¨?????°\n\t\t\tint student_num = Integer.parseInt(first_line);\n\n\t\t\tif (student_num == 0) {\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t// ????????\\?????¨?????°\n\t\t\tString secound_lines = input.readLine();\n\n\t\t\tString[] score_arrays = secound_lines.split(\" \");\n\n\t\t\t// ?????°???????¨???¨?????°\n\t\t\tdouble score_sum = 0;\n\n\t\t\t//n???????????????????????????????????°?????????\n\t\t\tfor (int score_spot = 0; score_spot < score_arrays.length; score_spot++) {\n\n\t\t\t\tint score = Integer.parseInt(score_arrays[score_spot]);\n\n\t\t\t\tscore_sum += score;\n\n\t\t\t}\n\n\t\t\t//???????????????\n\t\t\tdouble average = score_sum / student_num;\n\n\t\t\t//??°???a???2???\n\t\t\tdouble sequence_a_square = 0;\n\n\t\t\t//??°???a???2??????????????????\n\t\t\tfor (int sequence_spot = 0; sequence_spot < score_arrays.length; sequence_spot++) {\n\n\t\t\t\tdouble score = Double.parseDouble(score_arrays[sequence_spot]);\n\n\n\t\t\t\tsequence_a_square += Math.pow(score - average, 2);\n\n\t\t\t}\n\n\t\t\tdouble distributed_a_square = sequence_a_square / student_num;\n\n\t\t\t//??°???a????????????\n\t\t\tdouble square_a = Math.sqrt(distributed_a_square);\n\n\t\t\tSystem.out.println(square_a);\n\t\t}", "true", "{\n\n\t\t\tString first_line = input.readLine();\n\n\t\t\t// ????????°??¨?????°\n\t\t\tint student_num = Integer.parseInt(first_line);\n\n\t\t\tif (student_num == 0) {\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t// ????????\\?????¨?????°\n\t\t\tString secound_lines = input.readLine();\n\n\t\t\tString[] score_arrays = secound_lines.split(\" \");\n\n\t\t\t// ?????°???????¨???¨?????°\n\t\t\tdouble score_sum = 0;\n\n\t\t\t//n???????????????????????????????????°?????????\n\t\t\tfor (int score_spot = 0; score_spot < score_arrays.length; score_spot++) {\n\n\t\t\t\tint score = Integer.parseInt(score_arrays[score_spot]);\n\n\t\t\t\tscore_sum += score;\n\n\t\t\t}\n\n\t\t\t//???????????????\n\t\t\tdouble average = score_sum / student_num;\n\n\t\t\t//??°???a???2???\n\t\t\tdouble sequence_a_square = 0;\n\n\t\t\t//??°???a???2??????????????????\n\t\t\tfor (int sequence_spot = 0; sequence_spot < score_arrays.length; sequence_spot++) {\n\n\t\t\t\tdouble score = Double.parseDouble(score_arrays[sequence_spot]);\n\n\n\t\t\t\tsequence_a_square += Math.pow(score - average, 2);\n\n\t\t\t}\n\n\t\t\tdouble distributed_a_square = sequence_a_square / student_num;\n\n\t\t\t//??°???a????????????\n\t\t\tdouble square_a = Math.sqrt(distributed_a_square);\n\n\t\t\tSystem.out.println(square_a);\n\t\t}", "String first_line = input.readLine();", "first_line", "input.readLine()", "input.readLine", "input", "int student_num = Integer.parseInt(first_line);", "student_num", "Integer.parseInt(first_line)", "Integer.parseInt", "Integer", "first_line", "if (student_num == 0) {\n\n\t\t\t\tbreak;\n\n\t\t\t}", "student_num == 0", "student_num", "0", "{\n\n\t\t\t\tbreak;\n\n\t\t\t}", "break;", "String secound_lines = input.readLine();", "secound_lines", "input.readLine()", "input.readLine", "input", "String[] score_arrays = secound_lines.split(\" \");", "score_arrays", "secound_lines.split(\" \")", "secound_lines.split", "secound_lines", "\" \"", "double score_sum = 0;", "score_sum", "0", "for (int score_spot = 0; score_spot < score_arrays.length; score_spot++) {\n\n\t\t\t\tint score = Integer.parseInt(score_arrays[score_spot]);\n\n\t\t\t\tscore_sum += score;\n\n\t\t\t}", "int score_spot = 0;", "int score_spot = 0;", "score_spot", "0", "score_spot < score_arrays.length", "score_spot", "score_arrays.length", "score_arrays", "score_arrays.length", "score_spot++", "score_spot++", "score_spot", "{\n\n\t\t\t\tint score = Integer.parseInt(score_arrays[score_spot]);\n\n\t\t\t\tscore_sum += score;\n\n\t\t\t}", "{\n\n\t\t\t\tint score = Integer.parseInt(score_arrays[score_spot]);\n\n\t\t\t\tscore_sum += score;\n\n\t\t\t}", "int score = Integer.parseInt(score_arrays[score_spot]);", "score", "Integer.parseInt(score_arrays[score_spot])", "Integer.parseInt", "Integer", "score_arrays[score_spot]", "score_arrays", "score_spot", "score_sum += score", "score_sum", "score", "double average = score_sum / student_num;", "average", "score_sum / student_num", "score_sum", "student_num", "double sequence_a_square = 0;", "sequence_a_square", "0", "for (int sequence_spot = 0; sequence_spot < score_arrays.length; sequence_spot++) {\n\n\t\t\t\tdouble score = Double.parseDouble(score_arrays[sequence_spot]);\n\n\n\t\t\t\tsequence_a_square += Math.pow(score - average, 2);\n\n\t\t\t}", "int sequence_spot = 0;", "int sequence_spot = 0;", "sequence_spot", "0", "sequence_spot < score_arrays.length", "sequence_spot", "score_arrays.length", "score_arrays", "score_arrays.length", "sequence_spot++", "sequence_spot++", "sequence_spot", "{\n\n\t\t\t\tdouble score = Double.parseDouble(score_arrays[sequence_spot]);\n\n\n\t\t\t\tsequence_a_square += Math.pow(score - average, 2);\n\n\t\t\t}", "{\n\n\t\t\t\tdouble score = Double.parseDouble(score_arrays[sequence_spot]);\n\n\n\t\t\t\tsequence_a_square += Math.pow(score - average, 2);\n\n\t\t\t}", "double score = Double.parseDouble(score_arrays[sequence_spot]);", "score", "Double.parseDouble(score_arrays[sequence_spot])", "Double.parseDouble", "Double", "score_arrays[sequence_spot]", "score_arrays", "sequence_spot", "sequence_a_square += Math.pow(score - average, 2)", "sequence_a_square", "Math.pow(score - average, 2)", "Math.pow", "Math", "score - average", "score", "average", "2", "double distributed_a_square = sequence_a_square / student_num;", "distributed_a_square", "sequence_a_square / student_num", "sequence_a_square", "student_num", "double square_a = Math.sqrt(distributed_a_square);", "square_a", "Math.sqrt(distributed_a_square)", "Math.sqrt", "Math", "distributed_a_square", "System.out.println(square_a)", "System.out.println", "System.out", "System", "System.out", "square_a", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile (true) {\n\n\t\t\tString first_line = input.readLine();\n\n\t\t\t// ????????°??¨?????°\n\t\t\tint student_num = Integer.parseInt(first_line);\n\n\t\t\tif (student_num == 0) {\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t// ????????\\?????¨?????°\n\t\t\tString secound_lines = input.readLine();\n\n\t\t\tString[] score_arrays = secound_lines.split(\" \");\n\n\t\t\t// ?????°???????¨???¨?????°\n\t\t\tdouble score_sum = 0;\n\n\t\t\t//n???????????????????????????????????°?????????\n\t\t\tfor (int score_spot = 0; score_spot < score_arrays.length; score_spot++) {\n\n\t\t\t\tint score = Integer.parseInt(score_arrays[score_spot]);\n\n\t\t\t\tscore_sum += score;\n\n\t\t\t}\n\n\t\t\t//???????????????\n\t\t\tdouble average = score_sum / student_num;\n\n\t\t\t//??°???a???2???\n\t\t\tdouble sequence_a_square = 0;\n\n\t\t\t//??°???a???2??????????????????\n\t\t\tfor (int sequence_spot = 0; sequence_spot < score_arrays.length; sequence_spot++) {\n\n\t\t\t\tdouble score = Double.parseDouble(score_arrays[sequence_spot]);\n\n\n\t\t\t\tsequence_a_square += Math.pow(score - average, 2);\n\n\t\t\t}\n\n\t\t\tdouble distributed_a_square = sequence_a_square / student_num;\n\n\t\t\t//??°???a????????????\n\t\t\tdouble square_a = Math.sqrt(distributed_a_square);\n\n\t\t\tSystem.out.println(square_a);\n\t\t}\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile (true) {\n\n\t\t\tString first_line = input.readLine();\n\n\t\t\t// ????????°??¨?????°\n\t\t\tint student_num = Integer.parseInt(first_line);\n\n\t\t\tif (student_num == 0) {\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t// ????????\\?????¨?????°\n\t\t\tString secound_lines = input.readLine();\n\n\t\t\tString[] score_arrays = secound_lines.split(\" \");\n\n\t\t\t// ?????°???????¨???¨?????°\n\t\t\tdouble score_sum = 0;\n\n\t\t\t//n???????????????????????????????????°?????????\n\t\t\tfor (int score_spot = 0; score_spot < score_arrays.length; score_spot++) {\n\n\t\t\t\tint score = Integer.parseInt(score_arrays[score_spot]);\n\n\t\t\t\tscore_sum += score;\n\n\t\t\t}\n\n\t\t\t//???????????????\n\t\t\tdouble average = score_sum / student_num;\n\n\t\t\t//??°???a???2???\n\t\t\tdouble sequence_a_square = 0;\n\n\t\t\t//??°???a???2??????????????????\n\t\t\tfor (int sequence_spot = 0; sequence_spot < score_arrays.length; sequence_spot++) {\n\n\t\t\t\tdouble score = Double.parseDouble(score_arrays[sequence_spot]);\n\n\n\t\t\t\tsequence_a_square += Math.pow(score - average, 2);\n\n\t\t\t}\n\n\t\t\tdouble distributed_a_square = sequence_a_square / student_num;\n\n\t\t\t//??°???a????????????\n\t\t\tdouble square_a = Math.sqrt(distributed_a_square);\n\n\t\t\tSystem.out.println(square_a);\n\t\t}\n\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); while (true) { String first_line = input.readLine(); // ????????°??¨?????° int student_num = Integer.parseInt(first_line); if (student_num == 0) { break; } // ????????\?????¨?????° String secound_lines = input.readLine(); String[] score_arrays = secound_lines.split(" "); // ?????°???????¨???¨?????° double score_sum = 0; //n???????????????????????????????????°????????? for (int score_spot = 0; score_spot < score_arrays.length; score_spot++) { int score = Integer.parseInt(score_arrays[score_spot]); score_sum += score; } //??????????????? double average = score_sum / student_num; //??°???a???2??? double sequence_a_square = 0; //??°???a???2?????????????????? for (int sequence_spot = 0; sequence_spot < score_arrays.length; sequence_spot++) { double score = Double.parseDouble(score_arrays[sequence_spot]); sequence_a_square += Math.pow(score - average, 2); } double distributed_a_square = sequence_a_square / student_num; //??°???a???????????? double square_a = Math.sqrt(distributed_a_square); System.out.println(square_a); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 17, 42, 13, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 20, 13, 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, 2, 13, 18, 13, 13, 0, 13, 2, 13, 13, 0, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 13, 13, 30, 0, 13, 17, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 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, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 8, 29 ], [ 29, 30 ], [ 29, 31 ], [ 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 ], [ 46, 48 ], [ 34, 50 ], [ 50, 51 ], [ 50, 52 ], [ 34, 53 ], [ 53, 54 ], [ 53, 55 ], [ 34, 56 ], [ 56, 57 ], [ 56, 58 ], [ 34, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 59, 67 ], [ 67, 68 ], [ 68, 69 ], [ 59, 70 ], [ 71, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 77, 78 ], [ 71, 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 ], [ 106, 108 ], [ 101, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 111, 113 ], [ 101, 114 ], [ 114, 115 ], [ 114, 116 ], [ 34, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 124, 126 ], [ 117, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 34, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 134, 135 ], [ 133, 136 ], [ 34, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 137, 142 ], [ 8, 143 ], [ 143, 144 ], [ 144, 145 ], [ 6, 146 ], [ 146, 147 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String args[]) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tdouble area = 0.f;\n\t\tdouble sum;\n\t\tdouble sta;\n\t\tdouble dev;\n\t\tdouble dev_w;\n\t\tdouble dev_sum;\n\t\tdouble ave;\n\t\tdouble var;\n\t\tboolean Judge = true;\n\t\t\n\t\twhile(Judge){\n\t\t\tint stu_num = scanner.nextInt();\t//学生数\n\t\t\tif( stu_num == 0 ){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdouble stu[] = new double[stu_num];\n\t\t\tsum = 0;\n\t\t\tdev_sum = 0;\n\t\t\tdev_w = 0;\n\t\t\t\n\t\t\t//点数入れる処理\n\t\t\tfor( int i = 0; i < stu_num ; i ++ ){\n\t\t\t\tstu[i] = scanner.nextDouble();\n\t\t\t\tsum += stu[i];\n\t\t\t}\n\t\t\tave = sum / stu_num;\t\t//平均\n\t\t\t\n\t\t\t//偏差を求めて2乗\n\t\t\tfor( int i = 0; i < stu_num ; i ++ ){\n\t\t\t\tdev = ave - stu[i];\n\t\t\t\tdev_w = dev * dev;\n\t\t\t\tdev_sum += dev_w;\n\t\t\t}\n\t\t\t\n\t\t\tif(dev_sum != 0) {\n\t\t\t\tvar = dev_sum / stu_num;\t\t//分散\n\t\t\t}else {\n\t\t\t\tvar = 0;\n\t\t\t}\n\t\t\t\n\t\t\tsta = Math.sqrt(var);\n\t\t\n\t\t\tSystem.out.println(sta);\n\t\t\n\t\t}\n\t\t\n\t\tscanner.close();\n\t}\n}\n\n", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tdouble area = 0.f;\n\t\tdouble sum;\n\t\tdouble sta;\n\t\tdouble dev;\n\t\tdouble dev_w;\n\t\tdouble dev_sum;\n\t\tdouble ave;\n\t\tdouble var;\n\t\tboolean Judge = true;\n\t\t\n\t\twhile(Judge){\n\t\t\tint stu_num = scanner.nextInt();\t//学生数\n\t\t\tif( stu_num == 0 ){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdouble stu[] = new double[stu_num];\n\t\t\tsum = 0;\n\t\t\tdev_sum = 0;\n\t\t\tdev_w = 0;\n\t\t\t\n\t\t\t//点数入れる処理\n\t\t\tfor( int i = 0; i < stu_num ; i ++ ){\n\t\t\t\tstu[i] = scanner.nextDouble();\n\t\t\t\tsum += stu[i];\n\t\t\t}\n\t\t\tave = sum / stu_num;\t\t//平均\n\t\t\t\n\t\t\t//偏差を求めて2乗\n\t\t\tfor( int i = 0; i < stu_num ; i ++ ){\n\t\t\t\tdev = ave - stu[i];\n\t\t\t\tdev_w = dev * dev;\n\t\t\t\tdev_sum += dev_w;\n\t\t\t}\n\t\t\t\n\t\t\tif(dev_sum != 0) {\n\t\t\t\tvar = dev_sum / stu_num;\t\t//分散\n\t\t\t}else {\n\t\t\t\tvar = 0;\n\t\t\t}\n\t\t\t\n\t\t\tsta = Math.sqrt(var);\n\t\t\n\t\t\tSystem.out.println(sta);\n\t\t\n\t\t}\n\t\t\n\t\tscanner.close();\n\t}\n}", "Main", "public static void main(String args[]) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tdouble area = 0.f;\n\t\tdouble sum;\n\t\tdouble sta;\n\t\tdouble dev;\n\t\tdouble dev_w;\n\t\tdouble dev_sum;\n\t\tdouble ave;\n\t\tdouble var;\n\t\tboolean Judge = true;\n\t\t\n\t\twhile(Judge){\n\t\t\tint stu_num = scanner.nextInt();\t//学生数\n\t\t\tif( stu_num == 0 ){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdouble stu[] = new double[stu_num];\n\t\t\tsum = 0;\n\t\t\tdev_sum = 0;\n\t\t\tdev_w = 0;\n\t\t\t\n\t\t\t//点数入れる処理\n\t\t\tfor( int i = 0; i < stu_num ; i ++ ){\n\t\t\t\tstu[i] = scanner.nextDouble();\n\t\t\t\tsum += stu[i];\n\t\t\t}\n\t\t\tave = sum / stu_num;\t\t//平均\n\t\t\t\n\t\t\t//偏差を求めて2乗\n\t\t\tfor( int i = 0; i < stu_num ; i ++ ){\n\t\t\t\tdev = ave - stu[i];\n\t\t\t\tdev_w = dev * dev;\n\t\t\t\tdev_sum += dev_w;\n\t\t\t}\n\t\t\t\n\t\t\tif(dev_sum != 0) {\n\t\t\t\tvar = dev_sum / stu_num;\t\t//分散\n\t\t\t}else {\n\t\t\t\tvar = 0;\n\t\t\t}\n\t\t\t\n\t\t\tsta = Math.sqrt(var);\n\t\t\n\t\t\tSystem.out.println(sta);\n\t\t\n\t\t}\n\t\t\n\t\tscanner.close();\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tdouble area = 0.f;\n\t\tdouble sum;\n\t\tdouble sta;\n\t\tdouble dev;\n\t\tdouble dev_w;\n\t\tdouble dev_sum;\n\t\tdouble ave;\n\t\tdouble var;\n\t\tboolean Judge = true;\n\t\t\n\t\twhile(Judge){\n\t\t\tint stu_num = scanner.nextInt();\t//学生数\n\t\t\tif( stu_num == 0 ){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdouble stu[] = new double[stu_num];\n\t\t\tsum = 0;\n\t\t\tdev_sum = 0;\n\t\t\tdev_w = 0;\n\t\t\t\n\t\t\t//点数入れる処理\n\t\t\tfor( int i = 0; i < stu_num ; i ++ ){\n\t\t\t\tstu[i] = scanner.nextDouble();\n\t\t\t\tsum += stu[i];\n\t\t\t}\n\t\t\tave = sum / stu_num;\t\t//平均\n\t\t\t\n\t\t\t//偏差を求めて2乗\n\t\t\tfor( int i = 0; i < stu_num ; i ++ ){\n\t\t\t\tdev = ave - stu[i];\n\t\t\t\tdev_w = dev * dev;\n\t\t\t\tdev_sum += dev_w;\n\t\t\t}\n\t\t\t\n\t\t\tif(dev_sum != 0) {\n\t\t\t\tvar = dev_sum / stu_num;\t\t//分散\n\t\t\t}else {\n\t\t\t\tvar = 0;\n\t\t\t}\n\t\t\t\n\t\t\tsta = Math.sqrt(var);\n\t\t\n\t\t\tSystem.out.println(sta);\n\t\t\n\t\t}\n\t\t\n\t\tscanner.close();\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "double area = 0.f;", "area", "0.f", "double sum;", "sum", "double sta;", "sta", "double dev;", "dev", "double dev_w;", "dev_w", "double dev_sum;", "dev_sum", "double ave;", "ave", "double var;", "var", "boolean Judge = true;", "Judge", "true", "while(Judge){\n\t\t\tint stu_num = scanner.nextInt();\t//学生数\n\t\t\tif( stu_num == 0 ){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdouble stu[] = new double[stu_num];\n\t\t\tsum = 0;\n\t\t\tdev_sum = 0;\n\t\t\tdev_w = 0;\n\t\t\t\n\t\t\t//点数入れる処理\n\t\t\tfor( int i = 0; i < stu_num ; i ++ ){\n\t\t\t\tstu[i] = scanner.nextDouble();\n\t\t\t\tsum += stu[i];\n\t\t\t}\n\t\t\tave = sum / stu_num;\t\t//平均\n\t\t\t\n\t\t\t//偏差を求めて2乗\n\t\t\tfor( int i = 0; i < stu_num ; i ++ ){\n\t\t\t\tdev = ave - stu[i];\n\t\t\t\tdev_w = dev * dev;\n\t\t\t\tdev_sum += dev_w;\n\t\t\t}\n\t\t\t\n\t\t\tif(dev_sum != 0) {\n\t\t\t\tvar = dev_sum / stu_num;\t\t//分散\n\t\t\t}else {\n\t\t\t\tvar = 0;\n\t\t\t}\n\t\t\t\n\t\t\tsta = Math.sqrt(var);\n\t\t\n\t\t\tSystem.out.println(sta);\n\t\t\n\t\t}", "Judge", "{\n\t\t\tint stu_num = scanner.nextInt();\t//学生数\n\t\t\tif( stu_num == 0 ){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdouble stu[] = new double[stu_num];\n\t\t\tsum = 0;\n\t\t\tdev_sum = 0;\n\t\t\tdev_w = 0;\n\t\t\t\n\t\t\t//点数入れる処理\n\t\t\tfor( int i = 0; i < stu_num ; i ++ ){\n\t\t\t\tstu[i] = scanner.nextDouble();\n\t\t\t\tsum += stu[i];\n\t\t\t}\n\t\t\tave = sum / stu_num;\t\t//平均\n\t\t\t\n\t\t\t//偏差を求めて2乗\n\t\t\tfor( int i = 0; i < stu_num ; i ++ ){\n\t\t\t\tdev = ave - stu[i];\n\t\t\t\tdev_w = dev * dev;\n\t\t\t\tdev_sum += dev_w;\n\t\t\t}\n\t\t\t\n\t\t\tif(dev_sum != 0) {\n\t\t\t\tvar = dev_sum / stu_num;\t\t//分散\n\t\t\t}else {\n\t\t\t\tvar = 0;\n\t\t\t}\n\t\t\t\n\t\t\tsta = Math.sqrt(var);\n\t\t\n\t\t\tSystem.out.println(sta);\n\t\t\n\t\t}", "int stu_num = scanner.nextInt();", "stu_num", "scanner.nextInt()", "scanner.nextInt", "scanner", "if( stu_num == 0 ){\n\t\t\t\tbreak;\n\t\t\t}", "stu_num == 0", "stu_num", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "double stu[] = new double[stu_num];", "stu", "new double[stu_num]", "stu_num", "sum = 0", "sum", "0", "dev_sum = 0", "dev_sum", "0", "dev_w = 0", "dev_w", "0", "for( int i = 0; i < stu_num ; i ++ ){\n\t\t\t\tstu[i] = scanner.nextDouble();\n\t\t\t\tsum += stu[i];\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < stu_num", "i", "stu_num", "i ++", "i ++", "i", "{\n\t\t\t\tstu[i] = scanner.nextDouble();\n\t\t\t\tsum += stu[i];\n\t\t\t}", "{\n\t\t\t\tstu[i] = scanner.nextDouble();\n\t\t\t\tsum += stu[i];\n\t\t\t}", "stu[i] = scanner.nextDouble()", "stu[i]", "stu", "i", "scanner.nextDouble()", "scanner.nextDouble", "scanner", "sum += stu[i]", "sum", "stu[i]", "stu", "i", "ave = sum / stu_num", "ave", "sum / stu_num", "sum", "stu_num", "for( int i = 0; i < stu_num ; i ++ ){\n\t\t\t\tdev = ave - stu[i];\n\t\t\t\tdev_w = dev * dev;\n\t\t\t\tdev_sum += dev_w;\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < stu_num", "i", "stu_num", "i ++", "i ++", "i", "{\n\t\t\t\tdev = ave - stu[i];\n\t\t\t\tdev_w = dev * dev;\n\t\t\t\tdev_sum += dev_w;\n\t\t\t}", "{\n\t\t\t\tdev = ave - stu[i];\n\t\t\t\tdev_w = dev * dev;\n\t\t\t\tdev_sum += dev_w;\n\t\t\t}", "dev = ave - stu[i]", "dev", "ave - stu[i]", "ave", "stu[i]", "stu", "i", "dev_w = dev * dev", "dev_w", "dev * dev", "dev", "dev", "dev_sum += dev_w", "dev_sum", "dev_w", "if(dev_sum != 0) {\n\t\t\t\tvar = dev_sum / stu_num;\t\t//分散\n\t\t\t}else {\n\t\t\t\tvar = 0;\n\t\t\t}", "dev_sum != 0", "dev_sum", "0", "{\n\t\t\t\tvar = dev_sum / stu_num;\t\t//分散\n\t\t\t}", "var = dev_sum / stu_num", "var", "dev_sum / stu_num", "dev_sum", "stu_num", "{\n\t\t\t\tvar = 0;\n\t\t\t}", "var = 0", "var", "0", "sta = Math.sqrt(var)", "sta", "Math.sqrt(var)", "Math.sqrt", "Math", "var", "System.out.println(sta)", "System.out.println", "System.out", "System", "System.out", "sta", "scanner.close()", "scanner.close", "scanner", "String args[]", "args" ]
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner scanner = new Scanner(System.in); double area = 0.f; double sum; double sta; double dev; double dev_w; double dev_sum; double ave; double var; boolean Judge = true; while(Judge){ int stu_num = scanner.nextInt(); //学生数 if( stu_num == 0 ){ break; } double stu[] = new double[stu_num]; sum = 0; dev_sum = 0; dev_w = 0; //点数入れる処理 for( int i = 0; i < stu_num ; i ++ ){ stu[i] = scanner.nextDouble(); sum += stu[i]; } ave = sum / stu_num; //平均 //偏差を求めて2乗 for( int i = 0; i < stu_num ; i ++ ){ dev = ave - stu[i]; dev_w = dev * dev; dev_sum += dev_w; } if(dev_sum != 0) { var = dev_sum / stu_num; //分散 }else { var = 0; } sta = Math.sqrt(var); System.out.println(sta); } scanner.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 11, 1, 30, 30, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 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, 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, 41, 13, 4, 18, 13, 2, 13, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 117, 5 ], [ 117, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 15, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 15, 21 ], [ 21, 22 ], [ 21, 23 ], [ 15, 24 ], [ 24, 25 ], [ 24, 26 ], [ 15, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 27, 31 ], [ 15, 32 ], [ 32, 33 ], [ 32, 34 ], [ 15, 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 ], [ 15, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 15, 66 ], [ 66, 67 ], [ 66, 68 ], [ 15, 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 ], [ 15, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 100, 101 ], [ 100, 102 ], [ 15, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 6, 114 ], [ 114, 115 ], [ 0, 116 ], [ 116, 117 ], [ 116, 118 ] ]
[ "import java.util.Scanner;\npublic class Main {\n public static void main(String[] args){\n Scanner scan = new java.util.Scanner(System.in);\n for(;;){\n int n = scan.nextInt();\n double sum = 0;\n double m = 0;\n if(n == 0)break;\n double[] s = new double[n];\n for(int i = 0; i < n; i++){\n s[i] = scan.nextDouble();\n sum += s[i];\n }\n m = (double)sum / n;\n double a = 0;\n for(int i = 0; i < n; i++){\n a += (s[i] - m) * (s[i] - m);\n }\n double ans = Math.sqrt(a / n);\n if(ans >= 0){\n System.out.println(ans);\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 java.util.Scanner(System.in);\n for(;;){\n int n = scan.nextInt();\n double sum = 0;\n double m = 0;\n if(n == 0)break;\n double[] s = new double[n];\n for(int i = 0; i < n; i++){\n s[i] = scan.nextDouble();\n sum += s[i];\n }\n m = (double)sum / n;\n double a = 0;\n for(int i = 0; i < n; i++){\n a += (s[i] - m) * (s[i] - m);\n }\n double ans = Math.sqrt(a / n);\n if(ans >= 0){\n System.out.println(ans);\n }\n }\n\n }\n}", "Main", "public static void main(String[] args){\n Scanner scan = new java.util.Scanner(System.in);\n for(;;){\n int n = scan.nextInt();\n double sum = 0;\n double m = 0;\n if(n == 0)break;\n double[] s = new double[n];\n for(int i = 0; i < n; i++){\n s[i] = scan.nextDouble();\n sum += s[i];\n }\n m = (double)sum / n;\n double a = 0;\n for(int i = 0; i < n; i++){\n a += (s[i] - m) * (s[i] - m);\n }\n double ans = Math.sqrt(a / n);\n if(ans >= 0){\n System.out.println(ans);\n }\n }\n\n }", "main", "{\n Scanner scan = new java.util.Scanner(System.in);\n for(;;){\n int n = scan.nextInt();\n double sum = 0;\n double m = 0;\n if(n == 0)break;\n double[] s = new double[n];\n for(int i = 0; i < n; i++){\n s[i] = scan.nextDouble();\n sum += s[i];\n }\n m = (double)sum / n;\n double a = 0;\n for(int i = 0; i < n; i++){\n a += (s[i] - m) * (s[i] - m);\n }\n double ans = Math.sqrt(a / n);\n if(ans >= 0){\n System.out.println(ans);\n }\n }\n\n }", "Scanner scan = new java.util.Scanner(System.in);", "scan", "new java.util.Scanner(System.in)", "for(;;){\n int n = scan.nextInt();\n double sum = 0;\n double m = 0;\n if(n == 0)break;\n double[] s = new double[n];\n for(int i = 0; i < n; i++){\n s[i] = scan.nextDouble();\n sum += s[i];\n }\n m = (double)sum / n;\n double a = 0;\n for(int i = 0; i < n; i++){\n a += (s[i] - m) * (s[i] - m);\n }\n double ans = Math.sqrt(a / n);\n if(ans >= 0){\n System.out.println(ans);\n }\n }", ";", "{\n int n = scan.nextInt();\n double sum = 0;\n double m = 0;\n if(n == 0)break;\n double[] s = new double[n];\n for(int i = 0; i < n; i++){\n s[i] = scan.nextDouble();\n sum += s[i];\n }\n m = (double)sum / n;\n double a = 0;\n for(int i = 0; i < n; i++){\n a += (s[i] - m) * (s[i] - m);\n }\n double ans = Math.sqrt(a / n);\n if(ans >= 0){\n System.out.println(ans);\n }\n }", "{\n int n = scan.nextInt();\n double sum = 0;\n double m = 0;\n if(n == 0)break;\n double[] s = new double[n];\n for(int i = 0; i < n; i++){\n s[i] = scan.nextDouble();\n sum += s[i];\n }\n m = (double)sum / n;\n double a = 0;\n for(int i = 0; i < n; i++){\n a += (s[i] - m) * (s[i] - m);\n }\n double ans = Math.sqrt(a / n);\n if(ans >= 0){\n System.out.println(ans);\n }\n }", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "double sum = 0;", "sum", "0", "double m = 0;", "m", "0", "if(n == 0)break;", "n == 0", "n", "0", "break;", "double[] s = new double[n];", "s", "new double[n]", "n", "for(int i = 0; i < n; i++){\n s[i] = scan.nextDouble();\n sum += s[i];\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n s[i] = scan.nextDouble();\n sum += s[i];\n }", "{\n s[i] = scan.nextDouble();\n sum += s[i];\n }", "s[i] = scan.nextDouble()", "s[i]", "s", "i", "scan.nextDouble()", "scan.nextDouble", "scan", "sum += s[i]", "sum", "s[i]", "s", "i", "m = (double)sum / n", "m", "(double)sum / n", "(double)sum", "n", "double a = 0;", "a", "0", "for(int i = 0; i < n; i++){\n a += (s[i] - m) * (s[i] - m);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n a += (s[i] - m) * (s[i] - m);\n }", "{\n a += (s[i] - m) * (s[i] - m);\n }", "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", "double ans = Math.sqrt(a / n);", "ans", "Math.sqrt(a / n)", "Math.sqrt", "Math", "a / n", "a", "n", "if(ans >= 0){\n System.out.println(ans);\n }", "ans >= 0", "ans", "0", "{\n System.out.println(ans);\n }", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n Scanner scan = new java.util.Scanner(System.in);\n for(;;){\n int n = scan.nextInt();\n double sum = 0;\n double m = 0;\n if(n == 0)break;\n double[] s = new double[n];\n for(int i = 0; i < n; i++){\n s[i] = scan.nextDouble();\n sum += s[i];\n }\n m = (double)sum / n;\n double a = 0;\n for(int i = 0; i < n; i++){\n a += (s[i] - m) * (s[i] - m);\n }\n double ans = Math.sqrt(a / n);\n if(ans >= 0){\n System.out.println(ans);\n }\n }\n\n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner scan = new java.util.Scanner(System.in);\n for(;;){\n int n = scan.nextInt();\n double sum = 0;\n double m = 0;\n if(n == 0)break;\n double[] s = new double[n];\n for(int i = 0; i < n; i++){\n s[i] = scan.nextDouble();\n sum += s[i];\n }\n m = (double)sum / n;\n double a = 0;\n for(int i = 0; i < n; i++){\n a += (s[i] - m) * (s[i] - m);\n }\n double ans = Math.sqrt(a / n);\n if(ans >= 0){\n System.out.println(ans);\n }\n }\n\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scan = new java.util.Scanner(System.in); for(;;){ int n = scan.nextInt(); double sum = 0; double m = 0; if(n == 0)break; double[] s = new double[n]; for(int i = 0; i < n; i++){ s[i] = scan.nextDouble(); sum += s[i]; } m = (double)sum / n; double a = 0; for(int i = 0; i < n; i++){ a += (s[i] - m) * (s[i] - m); } double ans = Math.sqrt(a / n); if(ans >= 0){ System.out.println(ans); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 42, 4, 13, 0, 13, 4, 18, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 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, 20, 28, 13, 13, 30, 4, 18, 13, 4, 18, 13, 2, 4, 13, 13, 13, 17, 0, 13, 4, 18, 13, 4, 13, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 17, 28, 13, 13, 30, 30, 0, 13, 13, 29, 2, 13, 4, 18, 13, 23, 13, 12, 13, 30, 14, 2, 13, 13, 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 ], [ 148, 8 ], [ 148, 9 ], [ 9, 10 ], [ 9, 11 ], [ 148, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 23, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 31, 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 ], [ 48, 51 ], [ 51, 52 ], [ 52, 53 ], [ 31, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 57, 58 ], [ 57, 59 ], [ 14, 60 ], [ 60, 61 ], [ 60, 62 ], [ 60, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 12, 71 ], [ 71, 72 ], [ 148, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 79, 81 ], [ 75, 82 ], [ 82, 83 ], [ 82, 84 ], [ 82, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 89, 97 ], [ 75, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 103, 104 ], [ 103, 105 ], [ 75, 106 ], [ 106, 107 ], [ 73, 108 ], [ 108, 109 ], [ 148, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 116, 117 ], [ 116, 118 ], [ 116, 119 ], [ 120, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 112, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 128, 129 ], [ 110, 130 ], [ 130, 131 ], [ 148, 132 ], [ 132, 133 ], [ 132, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 135, 139 ], [ 139, 140 ], [ 140, 141 ], [ 135, 142 ], [ 142, 143 ], [ 143, 144 ], [ 132, 145 ], [ 145, 146 ], [ 0, 147 ], [ 147, 148 ], [ 147, 149 ] ]
[ "import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tstatic final int END_SIGN = 0;\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 標準偏差値のリスト\n\t\tArrayList<Double> standardDeviationList = new ArrayList<Double>();\n\n\t\tint inputCount;\n\t\t// 得点の件数を入力、0で終了\n\t\twhile (EndDecision(inputCount = sc.nextInt())) {\n\t\t\t// 得点リスト\n\t\t\tArrayList<Double> scores = new ArrayList<Double>();\n\t\t\tfor (int i = 0; i < inputCount; i++) {\n\t\t\t\tscores.add(sc.nextDouble());\n\t\t\t}\n\t\t\t// 標準偏差値を計算し、標準偏差値リストに追加\n\t\t\tstandardDeviationList.add(StandardDeviationCalculation(scores));\n\t\t}\n\n\t\t// 出力\n\t\tfor (double value : standardDeviationList) {\n\t\t\tSystem.out.println(value);\n\t\t}\n\n\t}\n\n\t// 得点リストを受け取り、標準偏差値を返す\n\tprivate static double StandardDeviationCalculation(ArrayList<Double> scores) {\n\t\tdouble standardDeviation = 0;\n\t\tArrayList<Double> differenceFromAverageList = new ArrayList<Double>();\n\t\tfor (double i : scores)\n\t\t\tdifferenceFromAverageList.add(Math.pow((Average(scores)) - i, 2));\n\t\t// 平均との差の2乗の合計から平均を平方根計算し標準偏差値を求める\n\t\tstandardDeviation = Math.sqrt(Average(differenceFromAverageList));\n\n\t\treturn standardDeviation;\n\t}\n\n\t// リストから平均を返す\n\tprivate static double Average(ArrayList<Double> List) {\n\t\tdouble sum = 0;\n\t\tfor (double d : List) {\n\t\t\tsum += d;\n\t\t}\n\t\treturn sum / List.size();\n\t}\n\n\t// 終了判定\n\tprivate static boolean EndDecision(int i) {\n\t\tif (i == END_SIGN) {\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\tstatic final int END_SIGN = 0;\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 標準偏差値のリスト\n\t\tArrayList<Double> standardDeviationList = new ArrayList<Double>();\n\n\t\tint inputCount;\n\t\t// 得点の件数を入力、0で終了\n\t\twhile (EndDecision(inputCount = sc.nextInt())) {\n\t\t\t// 得点リスト\n\t\t\tArrayList<Double> scores = new ArrayList<Double>();\n\t\t\tfor (int i = 0; i < inputCount; i++) {\n\t\t\t\tscores.add(sc.nextDouble());\n\t\t\t}\n\t\t\t// 標準偏差値を計算し、標準偏差値リストに追加\n\t\t\tstandardDeviationList.add(StandardDeviationCalculation(scores));\n\t\t}\n\n\t\t// 出力\n\t\tfor (double value : standardDeviationList) {\n\t\t\tSystem.out.println(value);\n\t\t}\n\n\t}\n\n\t// 得点リストを受け取り、標準偏差値を返す\n\tprivate static double StandardDeviationCalculation(ArrayList<Double> scores) {\n\t\tdouble standardDeviation = 0;\n\t\tArrayList<Double> differenceFromAverageList = new ArrayList<Double>();\n\t\tfor (double i : scores)\n\t\t\tdifferenceFromAverageList.add(Math.pow((Average(scores)) - i, 2));\n\t\t// 平均との差の2乗の合計から平均を平方根計算し標準偏差値を求める\n\t\tstandardDeviation = Math.sqrt(Average(differenceFromAverageList));\n\n\t\treturn standardDeviation;\n\t}\n\n\t// リストから平均を返す\n\tprivate static double Average(ArrayList<Double> List) {\n\t\tdouble sum = 0;\n\t\tfor (double d : List) {\n\t\t\tsum += d;\n\t\t}\n\t\treturn sum / List.size();\n\t}\n\n\t// 終了判定\n\tprivate static boolean EndDecision(int i) {\n\t\tif (i == END_SIGN) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}\n\n}", "Main", "static final int END_SIGN = 0;", "END_SIGN", "0", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 標準偏差値のリスト\n\t\tArrayList<Double> standardDeviationList = new ArrayList<Double>();\n\n\t\tint inputCount;\n\t\t// 得点の件数を入力、0で終了\n\t\twhile (EndDecision(inputCount = sc.nextInt())) {\n\t\t\t// 得点リスト\n\t\t\tArrayList<Double> scores = new ArrayList<Double>();\n\t\t\tfor (int i = 0; i < inputCount; i++) {\n\t\t\t\tscores.add(sc.nextDouble());\n\t\t\t}\n\t\t\t// 標準偏差値を計算し、標準偏差値リストに追加\n\t\t\tstandardDeviationList.add(StandardDeviationCalculation(scores));\n\t\t}\n\n\t\t// 出力\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\t// 標準偏差値のリスト\n\t\tArrayList<Double> standardDeviationList = new ArrayList<Double>();\n\n\t\tint inputCount;\n\t\t// 得点の件数を入力、0で終了\n\t\twhile (EndDecision(inputCount = sc.nextInt())) {\n\t\t\t// 得点リスト\n\t\t\tArrayList<Double> scores = new ArrayList<Double>();\n\t\t\tfor (int i = 0; i < inputCount; i++) {\n\t\t\t\tscores.add(sc.nextDouble());\n\t\t\t}\n\t\t\t// 標準偏差値を計算し、標準偏差値リストに追加\n\t\t\tstandardDeviationList.add(StandardDeviationCalculation(scores));\n\t\t}\n\n\t\t// 出力\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\t// 得点リスト\n\t\t\tArrayList<Double> scores = new ArrayList<Double>();\n\t\t\tfor (int i = 0; i < inputCount; i++) {\n\t\t\t\tscores.add(sc.nextDouble());\n\t\t\t}\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\t// 得点リスト\n\t\t\tArrayList<Double> scores = new ArrayList<Double>();\n\t\t\tfor (int i = 0; i < inputCount; i++) {\n\t\t\t\tscores.add(sc.nextDouble());\n\t\t\t}\n\t\t\t// 標準偏差値を計算し、標準偏差値リストに追加\n\t\t\tstandardDeviationList.add(StandardDeviationCalculation(scores));\n\t\t}", "ArrayList<Double> scores = new ArrayList<Double>();", "scores", "new ArrayList<Double>()", "for (int i = 0; i < inputCount; i++) {\n\t\t\t\tscores.add(sc.nextDouble());\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < inputCount", "i", "inputCount", "i++", "i++", "i", "{\n\t\t\t\tscores.add(sc.nextDouble());\n\t\t\t}", "{\n\t\t\t\tscores.add(sc.nextDouble());\n\t\t\t}", "scores.add(sc.nextDouble())", "scores.add", "scores", "sc.nextDouble()", "sc.nextDouble", "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", "// 得点リストを受け取り、標準偏差値を返す\n\tprivate static double StandardDeviationCalculation(ArrayList<Double> scores) {\n\t\tdouble standardDeviation = 0;\n\t\tArrayList<Double> differenceFromAverageList = new ArrayList<Double>();\n\t\tfor (double i : scores)\n\t\t\tdifferenceFromAverageList.add(Math.pow((Average(scores)) - i, 2));\n\t\t// 平均との差の2乗の合計から平均を平方根計算し標準偏差値を求める\n\t\tstandardDeviation = Math.sqrt(Average(differenceFromAverageList));\n\n\t\treturn standardDeviation;\n\t}", "StandardDeviationCalculation", "{\n\t\tdouble standardDeviation = 0;\n\t\tArrayList<Double> differenceFromAverageList = new ArrayList<Double>();\n\t\tfor (double i : scores)\n\t\t\tdifferenceFromAverageList.add(Math.pow((Average(scores)) - i, 2));\n\t\t// 平均との差の2乗の合計から平均を平方根計算し標準偏差値を求める\n\t\tstandardDeviation = Math.sqrt(Average(differenceFromAverageList));\n\n\t\treturn standardDeviation;\n\t}", "double standardDeviation = 0;", "standardDeviation", "0", "ArrayList<Double> differenceFromAverageList = new ArrayList<Double>();", "differenceFromAverageList", "new ArrayList<Double>()", "for (double i : scores)\n\t\t\tdifferenceFromAverageList.add(Math.pow((Average(scores)) - i, 2));", "double i", "scores", "differenceFromAverageList.add(Math.pow((Average(scores)) - i, 2));", "differenceFromAverageList.add(Math.pow((Average(scores)) - i, 2))", "differenceFromAverageList.add", "differenceFromAverageList", "Math.pow((Average(scores)) - i, 2)", "Math.pow", "Math", "(Average(scores)) - i", "(Average(scores))", "Average", "scores", "i", "2", "standardDeviation = Math.sqrt(Average(differenceFromAverageList))", "standardDeviation", "Math.sqrt(Average(differenceFromAverageList))", "Math.sqrt", "Math", "Average(differenceFromAverageList)", "Average", "differenceFromAverageList", "return standardDeviation;", "standardDeviation", "ArrayList<Double> scores", "scores", "// リストから平均を返す\n\tprivate static double Average(ArrayList<Double> List) {\n\t\tdouble sum = 0;\n\t\tfor (double d : List) {\n\t\t\tsum += d;\n\t\t}\n\t\treturn sum / List.size();\n\t}", "Average", "{\n\t\tdouble sum = 0;\n\t\tfor (double d : List) {\n\t\t\tsum += d;\n\t\t}\n\t\treturn sum / List.size();\n\t}", "double sum = 0;", "sum", "0", "for (double d : List) {\n\t\t\tsum += d;\n\t\t}", "double d", "List", "{\n\t\t\tsum += d;\n\t\t}", "{\n\t\t\tsum += d;\n\t\t}", "sum += d", "sum", "d", "return sum / List.size();", "sum / List.size()", "sum", "List.size()", "List.size", "List", "ArrayList<Double> List", "List", "// 終了判定\n\tprivate static boolean EndDecision(int i) {\n\t\tif (i == END_SIGN) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "EndDecision", "{\n\t\tif (i == END_SIGN) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "if (i == END_SIGN) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}", "i == END_SIGN", "i", "END_SIGN", "{\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\tstatic final int END_SIGN = 0;\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 標準偏差値のリスト\n\t\tArrayList<Double> standardDeviationList = new ArrayList<Double>();\n\n\t\tint inputCount;\n\t\t// 得点の件数を入力、0で終了\n\t\twhile (EndDecision(inputCount = sc.nextInt())) {\n\t\t\t// 得点リスト\n\t\t\tArrayList<Double> scores = new ArrayList<Double>();\n\t\t\tfor (int i = 0; i < inputCount; i++) {\n\t\t\t\tscores.add(sc.nextDouble());\n\t\t\t}\n\t\t\t// 標準偏差値を計算し、標準偏差値リストに追加\n\t\t\tstandardDeviationList.add(StandardDeviationCalculation(scores));\n\t\t}\n\n\t\t// 出力\n\t\tfor (double value : standardDeviationList) {\n\t\t\tSystem.out.println(value);\n\t\t}\n\n\t}\n\n\t// 得点リストを受け取り、標準偏差値を返す\n\tprivate static double StandardDeviationCalculation(ArrayList<Double> scores) {\n\t\tdouble standardDeviation = 0;\n\t\tArrayList<Double> differenceFromAverageList = new ArrayList<Double>();\n\t\tfor (double i : scores)\n\t\t\tdifferenceFromAverageList.add(Math.pow((Average(scores)) - i, 2));\n\t\t// 平均との差の2乗の合計から平均を平方根計算し標準偏差値を求める\n\t\tstandardDeviation = Math.sqrt(Average(differenceFromAverageList));\n\n\t\treturn standardDeviation;\n\t}\n\n\t// リストから平均を返す\n\tprivate static double Average(ArrayList<Double> List) {\n\t\tdouble sum = 0;\n\t\tfor (double d : List) {\n\t\t\tsum += d;\n\t\t}\n\t\treturn sum / List.size();\n\t}\n\n\t// 終了判定\n\tprivate static boolean EndDecision(int i) {\n\t\tif (i == END_SIGN) {\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\tstatic final int END_SIGN = 0;\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 標準偏差値のリスト\n\t\tArrayList<Double> standardDeviationList = new ArrayList<Double>();\n\n\t\tint inputCount;\n\t\t// 得点の件数を入力、0で終了\n\t\twhile (EndDecision(inputCount = sc.nextInt())) {\n\t\t\t// 得点リスト\n\t\t\tArrayList<Double> scores = new ArrayList<Double>();\n\t\t\tfor (int i = 0; i < inputCount; i++) {\n\t\t\t\tscores.add(sc.nextDouble());\n\t\t\t}\n\t\t\t// 標準偏差値を計算し、標準偏差値リストに追加\n\t\t\tstandardDeviationList.add(StandardDeviationCalculation(scores));\n\t\t}\n\n\t\t// 出力\n\t\tfor (double value : standardDeviationList) {\n\t\t\tSystem.out.println(value);\n\t\t}\n\n\t}\n\n\t// 得点リストを受け取り、標準偏差値を返す\n\tprivate static double StandardDeviationCalculation(ArrayList<Double> scores) {\n\t\tdouble standardDeviation = 0;\n\t\tArrayList<Double> differenceFromAverageList = new ArrayList<Double>();\n\t\tfor (double i : scores)\n\t\t\tdifferenceFromAverageList.add(Math.pow((Average(scores)) - i, 2));\n\t\t// 平均との差の2乗の合計から平均を平方根計算し標準偏差値を求める\n\t\tstandardDeviation = Math.sqrt(Average(differenceFromAverageList));\n\n\t\treturn standardDeviation;\n\t}\n\n\t// リストから平均を返す\n\tprivate static double Average(ArrayList<Double> List) {\n\t\tdouble sum = 0;\n\t\tfor (double d : List) {\n\t\t\tsum += d;\n\t\t}\n\t\treturn sum / List.size();\n\t}\n\n\t// 終了判定\n\tprivate static boolean EndDecision(int i) {\n\t\tif (i == END_SIGN) {\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 { static final int END_SIGN = 0; public static void main(String[] args) { Scanner sc = new Scanner(System.in); // 標準偏差値のリスト ArrayList<Double> standardDeviationList = new ArrayList<Double>(); int inputCount; // 得点の件数を入力、0で終了 while (EndDecision(inputCount = sc.nextInt())) { // 得点リスト ArrayList<Double> scores = new ArrayList<Double>(); for (int i = 0; i < inputCount; i++) { scores.add(sc.nextDouble()); } // 標準偏差値を計算し、標準偏差値リストに追加 standardDeviationList.add(StandardDeviationCalculation(scores)); } // 出力 for (double value : standardDeviationList) { System.out.println(value); } } // 得点リストを受け取り、標準偏差値を返す private static double StandardDeviationCalculation(ArrayList<Double> scores) { double standardDeviation = 0; ArrayList<Double> differenceFromAverageList = new ArrayList<Double>(); for (double i : scores) differenceFromAverageList.add(Math.pow((Average(scores)) - i, 2)); // 平均との差の2乗の合計から平均を平方根計算し標準偏差値を求める standardDeviation = Math.sqrt(Average(differenceFromAverageList)); return standardDeviation; } // リストから平均を返す private static double Average(ArrayList<Double> List) { double sum = 0; for (double d : List) { sum += d; } return sum / List.size(); } // 終了判定 private static boolean EndDecision(int i) { if (i == END_SIGN) { return false; } else { return true; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 42, 17, 30, 41, 13, 17, 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, 4, 18, 13, 2, 18, 13, 13, 13, 17, 0, 13, 4, 18, 13, 2, 13, 13, 4, 18, 18, 13, 13, 17, 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 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 18, 22 ], [ 22, 23 ], [ 22, 24 ], [ 18, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 18, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 18, 35 ], [ 35, 36 ], [ 35, 37 ], [ 18, 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 ], [ 18, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 18, 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 ], [ 84, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 84, 92 ], [ 18, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 98, 99 ], [ 98, 100 ], [ 18, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 101, 107 ], [ 6, 108 ], [ 108, 109 ], [ 0, 110 ], [ 110, 111 ], [ 110, 112 ] ]
[ "import java.util.Scanner;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n double ave;\n double s;\n while(true) {\n double sum=0;\n double tmp=0;\n int num = sc.nextInt();\n if (num == 0) break;\n int[] score = new int[num];\n for (int i = 0; i < num; i++) {\n score[i] = sc.nextInt();\n sum += (double)score[i];\n }\n ave = sum / (double) num;\n for (int i = 0; i < num; i++) {\n tmp += Math.pow((double) score[i] - ave, 2.0);\n }\n s = Math.sqrt(tmp / num);\n System.out.printf(\"%.8f\\n\", s);\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 double ave;\n double s;\n while(true) {\n double sum=0;\n double tmp=0;\n int num = sc.nextInt();\n if (num == 0) break;\n int[] score = new int[num];\n for (int i = 0; i < num; i++) {\n score[i] = sc.nextInt();\n sum += (double)score[i];\n }\n ave = sum / (double) num;\n for (int i = 0; i < num; i++) {\n tmp += Math.pow((double) score[i] - ave, 2.0);\n }\n s = Math.sqrt(tmp / num);\n System.out.printf(\"%.8f\\n\", s);\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n double ave;\n double s;\n while(true) {\n double sum=0;\n double tmp=0;\n int num = sc.nextInt();\n if (num == 0) break;\n int[] score = new int[num];\n for (int i = 0; i < num; i++) {\n score[i] = sc.nextInt();\n sum += (double)score[i];\n }\n ave = sum / (double) num;\n for (int i = 0; i < num; i++) {\n tmp += Math.pow((double) score[i] - ave, 2.0);\n }\n s = Math.sqrt(tmp / num);\n System.out.printf(\"%.8f\\n\", s);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n double ave;\n double s;\n while(true) {\n double sum=0;\n double tmp=0;\n int num = sc.nextInt();\n if (num == 0) break;\n int[] score = new int[num];\n for (int i = 0; i < num; i++) {\n score[i] = sc.nextInt();\n sum += (double)score[i];\n }\n ave = sum / (double) num;\n for (int i = 0; i < num; i++) {\n tmp += Math.pow((double) score[i] - ave, 2.0);\n }\n s = Math.sqrt(tmp / num);\n System.out.printf(\"%.8f\\n\", s);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "double ave;", "ave", "double s;", "s", "while(true) {\n double sum=0;\n double tmp=0;\n int num = sc.nextInt();\n if (num == 0) break;\n int[] score = new int[num];\n for (int i = 0; i < num; i++) {\n score[i] = sc.nextInt();\n sum += (double)score[i];\n }\n ave = sum / (double) num;\n for (int i = 0; i < num; i++) {\n tmp += Math.pow((double) score[i] - ave, 2.0);\n }\n s = Math.sqrt(tmp / num);\n System.out.printf(\"%.8f\\n\", s);\n }", "true", "{\n double sum=0;\n double tmp=0;\n int num = sc.nextInt();\n if (num == 0) break;\n int[] score = new int[num];\n for (int i = 0; i < num; i++) {\n score[i] = sc.nextInt();\n sum += (double)score[i];\n }\n ave = sum / (double) num;\n for (int i = 0; i < num; i++) {\n tmp += Math.pow((double) score[i] - ave, 2.0);\n }\n s = Math.sqrt(tmp / num);\n System.out.printf(\"%.8f\\n\", s);\n }", "double sum=0;", "sum", "0", "double tmp=0;", "tmp", "0", "int num = sc.nextInt();", "num", "sc.nextInt()", "sc.nextInt", "sc", "if (num == 0) break;", "num == 0", "num", "0", "break;", "int[] score = new int[num];", "score", "new int[num]", "num", "for (int i = 0; i < num; i++) {\n score[i] = sc.nextInt();\n sum += (double)score[i];\n }", "int i = 0;", "int i = 0;", "i", "0", "i < num", "i", "num", "i++", "i++", "i", "{\n score[i] = sc.nextInt();\n sum += (double)score[i];\n }", "{\n score[i] = sc.nextInt();\n sum += (double)score[i];\n }", "score[i] = sc.nextInt()", "score[i]", "score", "i", "sc.nextInt()", "sc.nextInt", "sc", "sum += (double)score[i]", "sum", "(double)score[i]", "score", "i", "ave = sum / (double) num", "ave", "sum / (double) num", "sum", "(double) num", "for (int i = 0; i < num; i++) {\n tmp += Math.pow((double) score[i] - ave, 2.0);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < num", "i", "num", "i++", "i++", "i", "{\n tmp += Math.pow((double) score[i] - ave, 2.0);\n }", "{\n tmp += Math.pow((double) score[i] - ave, 2.0);\n }", "tmp += Math.pow((double) score[i] - ave, 2.0)", "tmp", "Math.pow((double) score[i] - ave, 2.0)", "Math.pow", "Math", "(double) score[i] - ave", "(double) score[i]", "score", "i", "ave", "2.0", "s = Math.sqrt(tmp / num)", "s", "Math.sqrt(tmp / num)", "Math.sqrt", "Math", "tmp / num", "tmp", "num", "System.out.printf(\"%.8f\\n\", s)", "System.out.printf", "System.out", "System", "System.out", "\"%.8f\\n\"", "s", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n double ave;\n double s;\n while(true) {\n double sum=0;\n double tmp=0;\n int num = sc.nextInt();\n if (num == 0) break;\n int[] score = new int[num];\n for (int i = 0; i < num; i++) {\n score[i] = sc.nextInt();\n sum += (double)score[i];\n }\n ave = sum / (double) num;\n for (int i = 0; i < num; i++) {\n tmp += Math.pow((double) score[i] - ave, 2.0);\n }\n s = Math.sqrt(tmp / num);\n System.out.printf(\"%.8f\\n\", s);\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n double ave;\n double s;\n while(true) {\n double sum=0;\n double tmp=0;\n int num = sc.nextInt();\n if (num == 0) break;\n int[] score = new int[num];\n for (int i = 0; i < num; i++) {\n score[i] = sc.nextInt();\n sum += (double)score[i];\n }\n ave = sum / (double) num;\n for (int i = 0; i < num; i++) {\n tmp += Math.pow((double) score[i] - ave, 2.0);\n }\n s = Math.sqrt(tmp / num);\n System.out.printf(\"%.8f\\n\", s);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double ave; double s; while(true) { double sum=0; double tmp=0; int num = sc.nextInt(); if (num == 0) break; int[] score = new int[num]; for (int i = 0; i < num; i++) { score[i] = sc.nextInt(); sum += (double)score[i]; } ave = sum / (double) num; for (int i = 0; i < num; i++) { tmp += Math.pow((double) score[i] - ave, 2.0); } s = Math.sqrt(tmp / num); System.out.printf("%.8f\n", s); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 42, 2, 13, 17, 30, 41, 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, 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, 13, 13, 0, 13, 4, 18, 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 ], [ 121, 5 ], [ 121, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 29 ], [ 29, 30 ], [ 29, 31 ], [ 24, 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 ], [ 44, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 44, 55 ], [ 55, 56 ], [ 55, 57 ], [ 24, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 24, 63 ], [ 63, 64 ], [ 63, 65 ], [ 24, 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 ], [ 24, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 95, 96 ], [ 95, 97 ], [ 24, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 24, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 8, 107 ], [ 107, 108 ], [ 107, 109 ], [ 107, 110 ], [ 111, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 6, 118 ], [ 118, 119 ], [ 0, 120 ], [ 120, 121 ], [ 120, 122 ] ]
[ "import java.util.*;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\n\t\tList<Double> listAl = new ArrayList<Double>();\n\t\tScanner scan = new Scanner(System.in);\n\t\tdouble n = scan.nextDouble();\n\t\twhile(n != 0){\n\t\t\tdouble[] sc = new double[(int) n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tdouble s = scan.nextDouble();\n\t\t\t\tsc[i] = s;\n\t\t\t\tsum += s;\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\ta += Math.pow((sc[i] - m), 2);\n\t\t\t}\n\t\t\tdouble al = Math.sqrt(a / n);\n\t\t\tlistAl.add(al);\n\t\t\tn = scan.nextDouble();\n\t\t}\n\n\t\tfor(double a : listAl){\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main{\n\tpublic static void main(String[] args){\n\n\t\tList<Double> listAl = new ArrayList<Double>();\n\t\tScanner scan = new Scanner(System.in);\n\t\tdouble n = scan.nextDouble();\n\t\twhile(n != 0){\n\t\t\tdouble[] sc = new double[(int) n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tdouble s = scan.nextDouble();\n\t\t\t\tsc[i] = s;\n\t\t\t\tsum += s;\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\ta += Math.pow((sc[i] - m), 2);\n\t\t\t}\n\t\t\tdouble al = Math.sqrt(a / n);\n\t\t\tlistAl.add(al);\n\t\t\tn = scan.nextDouble();\n\t\t}\n\n\t\tfor(double a : listAl){\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\n\t\tList<Double> listAl = new ArrayList<Double>();\n\t\tScanner scan = new Scanner(System.in);\n\t\tdouble n = scan.nextDouble();\n\t\twhile(n != 0){\n\t\t\tdouble[] sc = new double[(int) n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tdouble s = scan.nextDouble();\n\t\t\t\tsc[i] = s;\n\t\t\t\tsum += s;\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\ta += Math.pow((sc[i] - m), 2);\n\t\t\t}\n\t\t\tdouble al = Math.sqrt(a / n);\n\t\t\tlistAl.add(al);\n\t\t\tn = scan.nextDouble();\n\t\t}\n\n\t\tfor(double a : listAl){\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}", "main", "{\n\n\t\tList<Double> listAl = new ArrayList<Double>();\n\t\tScanner scan = new Scanner(System.in);\n\t\tdouble n = scan.nextDouble();\n\t\twhile(n != 0){\n\t\t\tdouble[] sc = new double[(int) n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tdouble s = scan.nextDouble();\n\t\t\t\tsc[i] = s;\n\t\t\t\tsum += s;\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\ta += Math.pow((sc[i] - m), 2);\n\t\t\t}\n\t\t\tdouble al = Math.sqrt(a / n);\n\t\t\tlistAl.add(al);\n\t\t\tn = scan.nextDouble();\n\t\t}\n\n\t\tfor(double a : listAl){\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}", "List<Double> listAl = new ArrayList<Double>();", "listAl", "new ArrayList<Double>()", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "double n = scan.nextDouble();", "n", "scan.nextDouble()", "scan.nextDouble", "scan", "while(n != 0){\n\t\t\tdouble[] sc = new double[(int) n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tdouble s = scan.nextDouble();\n\t\t\t\tsc[i] = s;\n\t\t\t\tsum += s;\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\ta += Math.pow((sc[i] - m), 2);\n\t\t\t}\n\t\t\tdouble al = Math.sqrt(a / n);\n\t\t\tlistAl.add(al);\n\t\t\tn = scan.nextDouble();\n\t\t}", "n != 0", "n", "0", "{\n\t\t\tdouble[] sc = new double[(int) n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tdouble s = scan.nextDouble();\n\t\t\t\tsc[i] = s;\n\t\t\t\tsum += s;\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\ta += Math.pow((sc[i] - m), 2);\n\t\t\t}\n\t\t\tdouble al = Math.sqrt(a / n);\n\t\t\tlistAl.add(al);\n\t\t\tn = scan.nextDouble();\n\t\t}", "double[] sc = new double[(int) n];", "sc", "new double[(int) n]", "(int) n", "double sum = 0;", "sum", "0", "for(int i = 0; i < n; i++){\n\t\t\t\tdouble s = scan.nextDouble();\n\t\t\t\tsc[i] = 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 = scan.nextDouble();\n\t\t\t\tsc[i] = s;\n\t\t\t\tsum += s;\n\t\t\t}", "{\n\t\t\t\tdouble s = scan.nextDouble();\n\t\t\t\tsc[i] = s;\n\t\t\t\tsum += s;\n\t\t\t}", "double s = scan.nextDouble();", "s", "scan.nextDouble()", "scan.nextDouble", "scan", "sc[i] = s", "sc[i]", "sc", "i", "s", "sum += s", "sum", "s", "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\ta += Math.pow((sc[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((sc[i] - m), 2);\n\t\t\t}", "{\n\t\t\t\ta += Math.pow((sc[i] - m), 2);\n\t\t\t}", "a += Math.pow((sc[i] - m), 2)", "a", "Math.pow((sc[i] - m), 2)", "Math.pow", "Math", "(sc[i] - m)", "sc[i]", "sc", "i", "m", "2", "double al = Math.sqrt(a / n);", "al", "Math.sqrt(a / n)", "Math.sqrt", "Math", "a / n", "a", "n", "listAl.add(al)", "listAl.add", "listAl", "al", "n = scan.nextDouble()", "n", "scan.nextDouble()", "scan.nextDouble", "scan", "for(double a : listAl){\n\t\t\tSystem.out.println(a);\n\t\t}", "double a", "listAl", "{\n\t\t\tSystem.out.println(a);\n\t\t}", "{\n\t\t\tSystem.out.println(a);\n\t\t}", "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\n\t\tList<Double> listAl = new ArrayList<Double>();\n\t\tScanner scan = new Scanner(System.in);\n\t\tdouble n = scan.nextDouble();\n\t\twhile(n != 0){\n\t\t\tdouble[] sc = new double[(int) n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tdouble s = scan.nextDouble();\n\t\t\t\tsc[i] = s;\n\t\t\t\tsum += s;\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\ta += Math.pow((sc[i] - m), 2);\n\t\t\t}\n\t\t\tdouble al = Math.sqrt(a / n);\n\t\t\tlistAl.add(al);\n\t\t\tn = scan.nextDouble();\n\t\t}\n\n\t\tfor(double a : listAl){\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args){\n\n\t\tList<Double> listAl = new ArrayList<Double>();\n\t\tScanner scan = new Scanner(System.in);\n\t\tdouble n = scan.nextDouble();\n\t\twhile(n != 0){\n\t\t\tdouble[] sc = new double[(int) n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tdouble s = scan.nextDouble();\n\t\t\t\tsc[i] = s;\n\t\t\t\tsum += s;\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\ta += Math.pow((sc[i] - m), 2);\n\t\t\t}\n\t\t\tdouble al = Math.sqrt(a / n);\n\t\t\tlistAl.add(al);\n\t\t\tn = scan.nextDouble();\n\t\t}\n\n\t\tfor(double a : listAl){\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ List<Double> listAl = new ArrayList<Double>(); Scanner scan = new Scanner(System.in); double n = scan.nextDouble(); while(n != 0){ double[] sc = new double[(int) n]; double sum = 0; for(int i = 0; i < n; i++){ double s = scan.nextDouble(); sc[i] = s; sum += s; } double m = sum / n; double a = 0; for(int i = 0; i < n; i++){ a += Math.pow((sc[i] - m), 2); } double al = Math.sqrt(a / n); listAl.add(al); n = scan.nextDouble(); } for(double a : listAl){ System.out.println(a); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 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, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 2, 13, 2, 18, 13, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 13, 2, 2, 2, 18, 13, 13, 13, 2, 18, 13, 13, 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 ], [ 109, 5 ], [ 109, 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 ], [ 22, 24 ], [ 16, 26 ], [ 26, 27 ], [ 26, 28 ], [ 16, 29 ], [ 29, 30 ], [ 29, 31 ], [ 16, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 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 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 16, 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 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 84, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 83, 95 ], [ 16, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 96, 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 try(Scanner sc = new Scanner(System.in)){\n while(true){\n int num = sc.nextInt();\n double score[] = new double[num];\n double ave = 0;\n double var = 0;\n if(num==0)\n break;\n for(int i=0;i<num;i++){\n score[i] = sc.nextInt();\n ave = ave + (score[i]/num);\n }\n\n for(int i=0;i<num;i++){\n var = var + ((score[i] - ave)*(score[i] - ave) / num);\n }\n System.out.printf(\"%s\\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[] args){\n try(Scanner sc = new Scanner(System.in)){\n while(true){\n int num = sc.nextInt();\n double score[] = new double[num];\n double ave = 0;\n double var = 0;\n if(num==0)\n break;\n for(int i=0;i<num;i++){\n score[i] = sc.nextInt();\n ave = ave + (score[i]/num);\n }\n\n for(int i=0;i<num;i++){\n var = var + ((score[i] - ave)*(score[i] - ave) / num);\n }\n System.out.printf(\"%s\\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 num = sc.nextInt();\n double score[] = new double[num];\n double ave = 0;\n double var = 0;\n if(num==0)\n break;\n for(int i=0;i<num;i++){\n score[i] = sc.nextInt();\n ave = ave + (score[i]/num);\n }\n\n for(int i=0;i<num;i++){\n var = var + ((score[i] - ave)*(score[i] - ave) / num);\n }\n System.out.printf(\"%s\\n\",Math.sqrt(var));\n }\n }\n }", "main", "{\n try(Scanner sc = new Scanner(System.in)){\n while(true){\n int num = sc.nextInt();\n double score[] = new double[num];\n double ave = 0;\n double var = 0;\n if(num==0)\n break;\n for(int i=0;i<num;i++){\n score[i] = sc.nextInt();\n ave = ave + (score[i]/num);\n }\n\n for(int i=0;i<num;i++){\n var = var + ((score[i] - ave)*(score[i] - ave) / num);\n }\n System.out.printf(\"%s\\n\",Math.sqrt(var));\n }\n }\n }", "try(Scanner sc = new Scanner(System.in)){\n while(true){\n int num = sc.nextInt();\n double score[] = new double[num];\n double ave = 0;\n double var = 0;\n if(num==0)\n break;\n for(int i=0;i<num;i++){\n score[i] = sc.nextInt();\n ave = ave + (score[i]/num);\n }\n\n for(int i=0;i<num;i++){\n var = var + ((score[i] - ave)*(score[i] - ave) / num);\n }\n System.out.printf(\"%s\\n\",Math.sqrt(var));\n }\n }", "{\n while(true){\n int num = sc.nextInt();\n double score[] = new double[num];\n double ave = 0;\n double var = 0;\n if(num==0)\n break;\n for(int i=0;i<num;i++){\n score[i] = sc.nextInt();\n ave = ave + (score[i]/num);\n }\n\n for(int i=0;i<num;i++){\n var = var + ((score[i] - ave)*(score[i] - ave) / num);\n }\n System.out.printf(\"%s\\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 num = sc.nextInt();\n double score[] = new double[num];\n double ave = 0;\n double var = 0;\n if(num==0)\n break;\n for(int i=0;i<num;i++){\n score[i] = sc.nextInt();\n ave = ave + (score[i]/num);\n }\n\n for(int i=0;i<num;i++){\n var = var + ((score[i] - ave)*(score[i] - ave) / num);\n }\n System.out.printf(\"%s\\n\",Math.sqrt(var));\n }", "true", "{\n int num = sc.nextInt();\n double score[] = new double[num];\n double ave = 0;\n double var = 0;\n if(num==0)\n break;\n for(int i=0;i<num;i++){\n score[i] = sc.nextInt();\n ave = ave + (score[i]/num);\n }\n\n for(int i=0;i<num;i++){\n var = var + ((score[i] - ave)*(score[i] - ave) / num);\n }\n System.out.printf(\"%s\\n\",Math.sqrt(var));\n }", "int num = sc.nextInt();", "num", "sc.nextInt()", "sc.nextInt", "sc", "double score[] = new double[num];", "score", "new double[num]", "num", "double ave = 0;", "ave", "0", "double var = 0;", "var", "0", "if(num==0)\n break;", "num==0", "num", "0", "break;", "for(int i=0;i<num;i++){\n score[i] = sc.nextInt();\n ave = ave + (score[i]/num);\n }", "int i=0;", "int i=0;", "i", "0", "i<num", "i", "num", "i++", "i++", "i", "{\n score[i] = sc.nextInt();\n ave = ave + (score[i]/num);\n }", "{\n score[i] = sc.nextInt();\n ave = ave + (score[i]/num);\n }", "score[i] = sc.nextInt()", "score[i]", "score", "i", "sc.nextInt()", "sc.nextInt", "sc", "ave = ave + (score[i]/num)", "ave", "ave + (score[i]/num)", "ave", "(score[i]/num)", "score[i]", "score", "i", "num", "for(int i=0;i<num;i++){\n var = var + ((score[i] - ave)*(score[i] - ave) / num);\n }", "int i=0;", "int i=0;", "i", "0", "i<num", "i", "num", "i++", "i++", "i", "{\n var = var + ((score[i] - ave)*(score[i] - ave) / num);\n }", "{\n var = var + ((score[i] - ave)*(score[i] - ave) / num);\n }", "var = var + ((score[i] - ave)*(score[i] - ave) / num)", "var", "var + ((score[i] - ave)*(score[i] - ave) / num)", "var", "((score[i] - ave)*(score[i] - ave) / num)", "(score[i] - ave)*(score[i] - ave)", "(score[i] - ave)", "score[i]", "score", "i", "ave", "(score[i] - ave)", "score[i]", "score", "i", "ave", "num", "System.out.printf(\"%s\\n\",Math.sqrt(var))", "System.out.printf", "System.out", "System", "System.out", "\"%s\\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 num = sc.nextInt();\n double score[] = new double[num];\n double ave = 0;\n double var = 0;\n if(num==0)\n break;\n for(int i=0;i<num;i++){\n score[i] = sc.nextInt();\n ave = ave + (score[i]/num);\n }\n\n for(int i=0;i<num;i++){\n var = var + ((score[i] - ave)*(score[i] - ave) / num);\n }\n System.out.printf(\"%s\\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 num = sc.nextInt();\n double score[] = new double[num];\n double ave = 0;\n double var = 0;\n if(num==0)\n break;\n for(int i=0;i<num;i++){\n score[i] = sc.nextInt();\n ave = ave + (score[i]/num);\n }\n\n for(int i=0;i<num;i++){\n var = var + ((score[i] - ave)*(score[i] - ave) / num);\n }\n System.out.printf(\"%s\\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 num = sc.nextInt(); double score[] = new double[num]; double ave = 0; double var = 0; if(num==0) break; for(int i=0;i<num;i++){ score[i] = sc.nextInt(); ave = ave + (score[i]/num); } for(int i=0;i<num;i++){ var = var + ((score[i] - ave)*(score[i] - ave) / num); } System.out.printf("%s\n",Math.sqrt(var)); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 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, 13, 13, 17, 41, 13, 4, 18, 13, 2, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 135, 8 ], [ 135, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 15, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 25, 26 ], [ 26, 27 ], [ 19, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 32, 33 ], [ 19, 34 ], [ 34, 35 ], [ 34, 36 ], [ 19, 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 ], [ 50, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 56, 57 ], [ 57, 58 ], [ 19, 59 ], [ 59, 60 ], [ 59, 61 ], [ 19, 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 ], [ 19, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 19, 86 ], [ 86, 87 ], [ 86, 88 ], [ 19, 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 ], [ 104, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 107, 112 ], [ 104, 113 ], [ 19, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 117, 118 ], [ 116, 119 ], [ 119, 120 ], [ 119, 121 ], [ 19, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 127, 128 ], [ 128, 129 ], [ 127, 130 ], [ 127, 131 ], [ 9, 132 ], [ 132, 133 ], [ 0, 134 ], [ 134, 135 ], [ 134, 136 ] ]
[ "import java.io.*;\nimport java.util.*;\npublic class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\twhile(s.hasNext()){\n\t\t\tInteger student_num = Integer.parseInt(s.next());\n\t\t\tif(student_num == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tArrayList<Integer> score_list = new ArrayList<Integer>();\n\t\t\tfor(int i = 0; i < student_num; i++){\n\t\t\t\tscore_list.add(Integer.parseInt(s.next()));\n\t\t\t}\n\t\t\tInteger total = 0;\n\t\t\tfor(int i = 0; i < student_num; i++){\n\t\t\t\ttotal += score_list.get(i);\n\t\t\t}\n\t\t\tdouble m = (double)total / student_num;\n\t\t\tdouble dev = 0;\n\t\t\tfor(int i = 0; i < student_num; i++){\n\t\t\t\tdev += Math.pow(score_list.get(i) - m, 2);\n\t\t\t}\n\t\t\tdouble standard_dev = Math.sqrt(dev / student_num);\n\t\t\tSystem.out.println(String.format(\"%.8f\", standard_dev));\n\t\t}\n\n\t}\n\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\twhile(s.hasNext()){\n\t\t\tInteger student_num = Integer.parseInt(s.next());\n\t\t\tif(student_num == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tArrayList<Integer> score_list = new ArrayList<Integer>();\n\t\t\tfor(int i = 0; i < student_num; i++){\n\t\t\t\tscore_list.add(Integer.parseInt(s.next()));\n\t\t\t}\n\t\t\tInteger total = 0;\n\t\t\tfor(int i = 0; i < student_num; i++){\n\t\t\t\ttotal += score_list.get(i);\n\t\t\t}\n\t\t\tdouble m = (double)total / student_num;\n\t\t\tdouble dev = 0;\n\t\t\tfor(int i = 0; i < student_num; i++){\n\t\t\t\tdev += Math.pow(score_list.get(i) - m, 2);\n\t\t\t}\n\t\t\tdouble standard_dev = Math.sqrt(dev / student_num);\n\t\t\tSystem.out.println(String.format(\"%.8f\", standard_dev));\n\t\t}\n\n\t}\n\n}", "Main", "/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\twhile(s.hasNext()){\n\t\t\tInteger student_num = Integer.parseInt(s.next());\n\t\t\tif(student_num == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tArrayList<Integer> score_list = new ArrayList<Integer>();\n\t\t\tfor(int i = 0; i < student_num; i++){\n\t\t\t\tscore_list.add(Integer.parseInt(s.next()));\n\t\t\t}\n\t\t\tInteger total = 0;\n\t\t\tfor(int i = 0; i < student_num; i++){\n\t\t\t\ttotal += score_list.get(i);\n\t\t\t}\n\t\t\tdouble m = (double)total / student_num;\n\t\t\tdouble dev = 0;\n\t\t\tfor(int i = 0; i < student_num; i++){\n\t\t\t\tdev += Math.pow(score_list.get(i) - m, 2);\n\t\t\t}\n\t\t\tdouble standard_dev = Math.sqrt(dev / student_num);\n\t\t\tSystem.out.println(String.format(\"%.8f\", standard_dev));\n\t\t}\n\n\t}", "main", "{\n\t\tScanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\twhile(s.hasNext()){\n\t\t\tInteger student_num = Integer.parseInt(s.next());\n\t\t\tif(student_num == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tArrayList<Integer> score_list = new ArrayList<Integer>();\n\t\t\tfor(int i = 0; i < student_num; i++){\n\t\t\t\tscore_list.add(Integer.parseInt(s.next()));\n\t\t\t}\n\t\t\tInteger total = 0;\n\t\t\tfor(int i = 0; i < student_num; i++){\n\t\t\t\ttotal += score_list.get(i);\n\t\t\t}\n\t\t\tdouble m = (double)total / student_num;\n\t\t\tdouble dev = 0;\n\t\t\tfor(int i = 0; i < student_num; i++){\n\t\t\t\tdev += Math.pow(score_list.get(i) - m, 2);\n\t\t\t}\n\t\t\tdouble standard_dev = Math.sqrt(dev / student_num);\n\t\t\tSystem.out.println(String.format(\"%.8f\", standard_dev));\n\t\t}\n\n\t}", "Scanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));", "s", "new Scanner(new BufferedReader(new InputStreamReader(System.in)))", "while(s.hasNext()){\n\t\t\tInteger student_num = Integer.parseInt(s.next());\n\t\t\tif(student_num == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tArrayList<Integer> score_list = new ArrayList<Integer>();\n\t\t\tfor(int i = 0; i < student_num; i++){\n\t\t\t\tscore_list.add(Integer.parseInt(s.next()));\n\t\t\t}\n\t\t\tInteger total = 0;\n\t\t\tfor(int i = 0; i < student_num; i++){\n\t\t\t\ttotal += score_list.get(i);\n\t\t\t}\n\t\t\tdouble m = (double)total / student_num;\n\t\t\tdouble dev = 0;\n\t\t\tfor(int i = 0; i < student_num; i++){\n\t\t\t\tdev += Math.pow(score_list.get(i) - m, 2);\n\t\t\t}\n\t\t\tdouble standard_dev = Math.sqrt(dev / student_num);\n\t\t\tSystem.out.println(String.format(\"%.8f\", standard_dev));\n\t\t}", "s.hasNext()", "s.hasNext", "s", "{\n\t\t\tInteger student_num = Integer.parseInt(s.next());\n\t\t\tif(student_num == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tArrayList<Integer> score_list = new ArrayList<Integer>();\n\t\t\tfor(int i = 0; i < student_num; i++){\n\t\t\t\tscore_list.add(Integer.parseInt(s.next()));\n\t\t\t}\n\t\t\tInteger total = 0;\n\t\t\tfor(int i = 0; i < student_num; i++){\n\t\t\t\ttotal += score_list.get(i);\n\t\t\t}\n\t\t\tdouble m = (double)total / student_num;\n\t\t\tdouble dev = 0;\n\t\t\tfor(int i = 0; i < student_num; i++){\n\t\t\t\tdev += Math.pow(score_list.get(i) - m, 2);\n\t\t\t}\n\t\t\tdouble standard_dev = Math.sqrt(dev / student_num);\n\t\t\tSystem.out.println(String.format(\"%.8f\", standard_dev));\n\t\t}", "Integer student_num = Integer.parseInt(s.next());", "student_num", "Integer.parseInt(s.next())", "Integer.parseInt", "Integer", "s.next()", "s.next", "s", "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;", "ArrayList<Integer> score_list = new ArrayList<Integer>();", "score_list", "new ArrayList<Integer>()", "for(int i = 0; i < student_num; i++){\n\t\t\t\tscore_list.add(Integer.parseInt(s.next()));\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_list.add(Integer.parseInt(s.next()));\n\t\t\t}", "{\n\t\t\t\tscore_list.add(Integer.parseInt(s.next()));\n\t\t\t}", "score_list.add(Integer.parseInt(s.next()))", "score_list.add", "score_list", "Integer.parseInt(s.next())", "Integer.parseInt", "Integer", "s.next()", "s.next", "s", "Integer total = 0;", "total", "0", "for(int i = 0; i < student_num; i++){\n\t\t\t\ttotal += score_list.get(i);\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\ttotal += score_list.get(i);\n\t\t\t}", "{\n\t\t\t\ttotal += score_list.get(i);\n\t\t\t}", "total += score_list.get(i)", "total", "score_list.get(i)", "score_list.get", "score_list", "i", "double m = (double)total / student_num;", "m", "(double)total / student_num", "(double)total", "student_num", "double dev = 0;", "dev", "0", "for(int i = 0; i < student_num; i++){\n\t\t\t\tdev += Math.pow(score_list.get(i) - m, 2);\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\tdev += Math.pow(score_list.get(i) - m, 2);\n\t\t\t}", "{\n\t\t\t\tdev += Math.pow(score_list.get(i) - m, 2);\n\t\t\t}", "dev += Math.pow(score_list.get(i) - m, 2)", "dev", "Math.pow(score_list.get(i) - m, 2)", "Math.pow", "Math", "score_list.get(i) - m", "score_list.get(i)", "score_list.get", "score_list", "i", "m", "2", "double standard_dev = Math.sqrt(dev / student_num);", "standard_dev", "Math.sqrt(dev / student_num)", "Math.sqrt", "Math", "dev / student_num", "dev", "student_num", "System.out.println(String.format(\"%.8f\", standard_dev))", "System.out.println", "System.out", "System", "System.out", "String.format(\"%.8f\", standard_dev)", "String.format", "String", "\"%.8f\"", "standard_dev", "String[] args", "args", "public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\twhile(s.hasNext()){\n\t\t\tInteger student_num = Integer.parseInt(s.next());\n\t\t\tif(student_num == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tArrayList<Integer> score_list = new ArrayList<Integer>();\n\t\t\tfor(int i = 0; i < student_num; i++){\n\t\t\t\tscore_list.add(Integer.parseInt(s.next()));\n\t\t\t}\n\t\t\tInteger total = 0;\n\t\t\tfor(int i = 0; i < student_num; i++){\n\t\t\t\ttotal += score_list.get(i);\n\t\t\t}\n\t\t\tdouble m = (double)total / student_num;\n\t\t\tdouble dev = 0;\n\t\t\tfor(int i = 0; i < student_num; i++){\n\t\t\t\tdev += Math.pow(score_list.get(i) - m, 2);\n\t\t\t}\n\t\t\tdouble standard_dev = Math.sqrt(dev / student_num);\n\t\t\tSystem.out.println(String.format(\"%.8f\", standard_dev));\n\t\t}\n\n\t}\n\n}", "public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\twhile(s.hasNext()){\n\t\t\tInteger student_num = Integer.parseInt(s.next());\n\t\t\tif(student_num == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tArrayList<Integer> score_list = new ArrayList<Integer>();\n\t\t\tfor(int i = 0; i < student_num; i++){\n\t\t\t\tscore_list.add(Integer.parseInt(s.next()));\n\t\t\t}\n\t\t\tInteger total = 0;\n\t\t\tfor(int i = 0; i < student_num; i++){\n\t\t\t\ttotal += score_list.get(i);\n\t\t\t}\n\t\t\tdouble m = (double)total / student_num;\n\t\t\tdouble dev = 0;\n\t\t\tfor(int i = 0; i < student_num; i++){\n\t\t\t\tdev += Math.pow(score_list.get(i) - m, 2);\n\t\t\t}\n\t\t\tdouble standard_dev = Math.sqrt(dev / student_num);\n\t\t\tSystem.out.println(String.format(\"%.8f\", standard_dev));\n\t\t}\n\n\t}\n\n}", "Main" ]
import java.io.*; import java.util.*; public class Main { /** * @param args */ public static void main(String[] args) { Scanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in))); while(s.hasNext()){ Integer student_num = Integer.parseInt(s.next()); if(student_num == 0){ break; } ArrayList<Integer> score_list = new ArrayList<Integer>(); for(int i = 0; i < student_num; i++){ score_list.add(Integer.parseInt(s.next())); } Integer total = 0; for(int i = 0; i < student_num; i++){ total += score_list.get(i); } double m = (double)total / student_num; double dev = 0; for(int i = 0; i < student_num; i++){ dev += Math.pow(score_list.get(i) - m, 2); } double standard_dev = Math.sqrt(dev / student_num); System.out.println(String.format("%.8f", standard_dev)); } } }
[ 7, 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, 20, 13, 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, 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, 4, 18, 18, 13, 13, 17, 4, 18, 13, 2, 13, 13, 0, 13, 4, 18, 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 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 31, 36 ], [ 24, 37 ], [ 37, 38 ], [ 37, 39 ], [ 24, 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 ], [ 57, 60 ], [ 60, 61 ], [ 60, 62 ], [ 52, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 24, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 24, 73 ], [ 73, 74 ], [ 73, 75 ], [ 24, 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 ], [ 91, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 91, 99 ], [ 24, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 100, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 109, 110 ], [ 109, 111 ], [ 24, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 117, 118 ], [ 118, 119 ], [ 6, 120 ], [ 120, 121 ] ]
[ "import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) throws Exception {\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\tdouble[] s=new double[n];\n\t\t\tString[] a=br.readLine().split(\" \");\n\t\t\tdouble sum=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\ts[i]=Double.parseDouble(a[i]);\n\t\t\t\tsum+=s[i];\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\tv+=Math.pow(s[i]-m, 2);\n\t\t\t}\n\t System.out.printf(\"%.8f%n\", Math.sqrt(v/n));\n\t n=Integer.parseInt(br.readLine());\n\t\t}\n\t}\n}", "import java.io.*;", "io.*", "java", "class Main {\n\tpublic static void main(String[] args) throws Exception {\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\tdouble[] s=new double[n];\n\t\t\tString[] a=br.readLine().split(\" \");\n\t\t\tdouble sum=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\ts[i]=Double.parseDouble(a[i]);\n\t\t\t\tsum+=s[i];\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\tv+=Math.pow(s[i]-m, 2);\n\t\t\t}\n\t System.out.printf(\"%.8f%n\", Math.sqrt(v/n));\n\t n=Integer.parseInt(br.readLine());\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws Exception {\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\tdouble[] s=new double[n];\n\t\t\tString[] a=br.readLine().split(\" \");\n\t\t\tdouble sum=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\ts[i]=Double.parseDouble(a[i]);\n\t\t\t\tsum+=s[i];\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\tv+=Math.pow(s[i]-m, 2);\n\t\t\t}\n\t System.out.printf(\"%.8f%n\", Math.sqrt(v/n));\n\t n=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\tdouble[] s=new double[n];\n\t\t\tString[] a=br.readLine().split(\" \");\n\t\t\tdouble sum=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\ts[i]=Double.parseDouble(a[i]);\n\t\t\t\tsum+=s[i];\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\tv+=Math.pow(s[i]-m, 2);\n\t\t\t}\n\t System.out.printf(\"%.8f%n\", Math.sqrt(v/n));\n\t n=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\tdouble[] s=new double[n];\n\t\t\tString[] a=br.readLine().split(\" \");\n\t\t\tdouble sum=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\ts[i]=Double.parseDouble(a[i]);\n\t\t\t\tsum+=s[i];\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\tv+=Math.pow(s[i]-m, 2);\n\t\t\t}\n\t System.out.printf(\"%.8f%n\", Math.sqrt(v/n));\n\t n=Integer.parseInt(br.readLine());\n\t\t}", "n!=0", "n", "0", "{\n\t\t\tdouble[] s=new double[n];\n\t\t\tString[] a=br.readLine().split(\" \");\n\t\t\tdouble sum=0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\ts[i]=Double.parseDouble(a[i]);\n\t\t\t\tsum+=s[i];\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\tv+=Math.pow(s[i]-m, 2);\n\t\t\t}\n\t System.out.printf(\"%.8f%n\", Math.sqrt(v/n));\n\t n=Integer.parseInt(br.readLine());\n\t\t}", "double[] s=new double[n];", "s", "new double[n]", "n", "String[] a=br.readLine().split(\" \");", "a", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "double sum=0;", "sum", "0", "for(int i=0;i<n;i++){\n\t\t\t\ts[i]=Double.parseDouble(a[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(a[i]);\n\t\t\t\tsum+=s[i];\n\t\t\t}", "{\n\t\t\t\ts[i]=Double.parseDouble(a[i]);\n\t\t\t\tsum+=s[i];\n\t\t\t}", "s[i]=Double.parseDouble(a[i])", "s[i]", "s", "i", "Double.parseDouble(a[i])", "Double.parseDouble", "Double", "a[i]", "a", "i", "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\tv+=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\tv+=Math.pow(s[i]-m, 2);\n\t\t\t}", "{\n\t\t\t\tv+=Math.pow(s[i]-m, 2);\n\t\t\t}", "v+=Math.pow(s[i]-m, 2)", "v", "Math.pow(s[i]-m, 2)", "Math.pow", "Math", "s[i]-m", "s[i]", "s", "i", "m", "2", "System.out.printf(\"%.8f%n\", Math.sqrt(v/n))", "System.out.printf", "System.out", "System", "System.out", "\"%.8f%n\"", "Math.sqrt(v/n)", "Math.sqrt", "Math", "v/n", "v", "n", "n=Integer.parseInt(br.readLine())", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "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=Integer.parseInt(br.readLine()); while(n!=0){ double[] s=new double[n]; String[] a=br.readLine().split(" "); double sum=0; for(int i=0;i<n;i++){ s[i]=Double.parseDouble(a[i]); sum+=s[i]; } double m=sum/n; double v=0; for(int i=0;i<n;i++){ v+=Math.pow(s[i]-m, 2); } System.out.printf("%.8f%n", Math.sqrt(v/n)); n=Integer.parseInt(br.readLine()); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 42, 17, 30, 0, 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, 0, 18, 13, 13, 4, 18, 13, 41, 13, 17, 28, 13, 13, 30, 30, 0, 13, 13, 0, 13, 2, 13, 13, 41, 13, 17, 28, 13, 13, 30, 30, 0, 13, 4, 18, 13, 2, 13, 13, 17, 40, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 17, 4, 18, 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 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ], [ 8, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 22, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 31, 35 ], [ 35, 36 ], [ 22, 37 ], [ 37, 38 ], [ 37, 39 ], [ 22, 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 ], [ 22, 61 ], [ 61, 62 ], [ 61, 63 ], [ 22, 64 ], [ 64, 65 ], [ 64, 66 ], [ 64, 67 ], [ 68, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 22, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 22, 77 ], [ 77, 78 ], [ 77, 79 ], [ 22, 80 ], [ 80, 81 ], [ 80, 82 ], [ 80, 83 ], [ 84, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 90, 91 ], [ 90, 92 ], [ 87, 93 ], [ 84, 94 ], [ 94, 95 ], [ 22, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 98, 100 ], [ 22, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 101, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 8, 111 ], [ 111, 112 ], [ 112, 113 ], [ 6, 114 ], [ 114, 115 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint n;\n\t\tdouble a, m, b;\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tb = 0.0;\n\t\t\tn = stdIn.nextInt();\n\t\t\tif(n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] s = new int[n];\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = stdIn.nextInt();\n\t\t\t}\n\n\t\t\tdouble temp = 0.0;\n\t\t\tfor (Integer j : s) {\n\t\t\t\ttemp += j;\n\t\t\t}\n\t\t\tm = (temp / n);\n\n\t\t\tint i = 0;\n\t\t\tfor (Integer j : s) {\n\t\t\t\tb += Math.pow((j - m), 2);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\ta = b / n;\n\t\t\tSystem.out.format(\"%.8f\\n\", Math.sqrt(a));\n\t\t}\n\t\tstdIn.close();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint n;\n\t\tdouble a, m, b;\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tb = 0.0;\n\t\t\tn = stdIn.nextInt();\n\t\t\tif(n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] s = new int[n];\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = stdIn.nextInt();\n\t\t\t}\n\n\t\t\tdouble temp = 0.0;\n\t\t\tfor (Integer j : s) {\n\t\t\t\ttemp += j;\n\t\t\t}\n\t\t\tm = (temp / n);\n\n\t\t\tint i = 0;\n\t\t\tfor (Integer j : s) {\n\t\t\t\tb += Math.pow((j - m), 2);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\ta = b / n;\n\t\t\tSystem.out.format(\"%.8f\\n\", Math.sqrt(a));\n\t\t}\n\t\tstdIn.close();\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\tint n;\n\t\tdouble a, m, b;\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tb = 0.0;\n\t\t\tn = stdIn.nextInt();\n\t\t\tif(n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] s = new int[n];\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = stdIn.nextInt();\n\t\t\t}\n\n\t\t\tdouble temp = 0.0;\n\t\t\tfor (Integer j : s) {\n\t\t\t\ttemp += j;\n\t\t\t}\n\t\t\tm = (temp / n);\n\n\t\t\tint i = 0;\n\t\t\tfor (Integer j : s) {\n\t\t\t\tb += Math.pow((j - m), 2);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\ta = b / n;\n\t\t\tSystem.out.format(\"%.8f\\n\", Math.sqrt(a));\n\t\t}\n\t\tstdIn.close();\n\t}", "main", "{\n\n\t\tint n;\n\t\tdouble a, m, b;\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tb = 0.0;\n\t\t\tn = stdIn.nextInt();\n\t\t\tif(n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] s = new int[n];\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = stdIn.nextInt();\n\t\t\t}\n\n\t\t\tdouble temp = 0.0;\n\t\t\tfor (Integer j : s) {\n\t\t\t\ttemp += j;\n\t\t\t}\n\t\t\tm = (temp / n);\n\n\t\t\tint i = 0;\n\t\t\tfor (Integer j : s) {\n\t\t\t\tb += Math.pow((j - m), 2);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\ta = b / n;\n\t\t\tSystem.out.format(\"%.8f\\n\", Math.sqrt(a));\n\t\t}\n\t\tstdIn.close();\n\t}", "int n;", "n", "double a", "a", "m", "m", "b;", "b", "Scanner stdIn = new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "while (true) {\n\t\t\tb = 0.0;\n\t\t\tn = stdIn.nextInt();\n\t\t\tif(n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] s = new int[n];\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = stdIn.nextInt();\n\t\t\t}\n\n\t\t\tdouble temp = 0.0;\n\t\t\tfor (Integer j : s) {\n\t\t\t\ttemp += j;\n\t\t\t}\n\t\t\tm = (temp / n);\n\n\t\t\tint i = 0;\n\t\t\tfor (Integer j : s) {\n\t\t\t\tb += Math.pow((j - m), 2);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\ta = b / n;\n\t\t\tSystem.out.format(\"%.8f\\n\", Math.sqrt(a));\n\t\t}", "true", "{\n\t\t\tb = 0.0;\n\t\t\tn = stdIn.nextInt();\n\t\t\tif(n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] s = new int[n];\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = stdIn.nextInt();\n\t\t\t}\n\n\t\t\tdouble temp = 0.0;\n\t\t\tfor (Integer j : s) {\n\t\t\t\ttemp += j;\n\t\t\t}\n\t\t\tm = (temp / n);\n\n\t\t\tint i = 0;\n\t\t\tfor (Integer j : s) {\n\t\t\t\tb += Math.pow((j - m), 2);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\ta = b / n;\n\t\t\tSystem.out.format(\"%.8f\\n\", Math.sqrt(a));\n\t\t}", "b = 0.0", "b", "0.0", "n = stdIn.nextInt()", "n", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "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", "for (int i = 0; i < n; i++) {\n\t\t\t\ts[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\ts[i] = stdIn.nextInt();\n\t\t\t}", "{\n\t\t\t\ts[i] = stdIn.nextInt();\n\t\t\t}", "s[i] = stdIn.nextInt()", "s[i]", "s", "i", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "double temp = 0.0;", "temp", "0.0", "for (Integer j : s) {\n\t\t\t\ttemp += j;\n\t\t\t}", "Integer j", "s", "{\n\t\t\t\ttemp += j;\n\t\t\t}", "{\n\t\t\t\ttemp += j;\n\t\t\t}", "temp += j", "temp", "j", "m = (temp / n)", "m", "(temp / n)", "temp", "n", "int i = 0;", "i", "0", "for (Integer j : s) {\n\t\t\t\tb += Math.pow((j - m), 2);\n\t\t\t\ti++;\n\t\t\t}", "Integer j", "s", "{\n\t\t\t\tb += Math.pow((j - m), 2);\n\t\t\t\ti++;\n\t\t\t}", "{\n\t\t\t\tb += Math.pow((j - m), 2);\n\t\t\t\ti++;\n\t\t\t}", "b += Math.pow((j - m), 2)", "b", "Math.pow((j - m), 2)", "Math.pow", "Math", "(j - m)", "j", "m", "2", "i++", "i", "a = b / n", "a", "b / n", "b", "n", "System.out.format(\"%.8f\\n\", Math.sqrt(a))", "System.out.format", "System.out", "System", "System.out", "\"%.8f\\n\"", "Math.sqrt(a)", "Math.sqrt", "Math", "a", "stdIn.close()", "stdIn.close", "stdIn", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args) { int n; double a, m, b; Scanner stdIn = new Scanner(System.in); while (true) { b = 0.0; n = stdIn.nextInt(); if(n == 0) { break; } int[] s = new int[n]; for (int i = 0; i < n; i++) { s[i] = stdIn.nextInt(); } double temp = 0.0; for (Integer j : s) { temp += j; } m = (temp / n); int i = 0; for (Integer j : s) { b += Math.pow((j - m), 2); i++; } a = b / n; System.out.format("%.8f\n", Math.sqrt(a)); } stdIn.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 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, 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 ], [ 118, 8 ], [ 118, 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 ], [ 23, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 17, 29 ], [ 29, 30 ], [ 29, 31 ], [ 17, 32 ], [ 32, 33 ], [ 32, 34 ], [ 17, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 39, 40 ], [ 17, 41 ], [ 41, 42 ], [ 41, 43 ], [ 17, 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 ], [ 17, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 17, 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 ], [ 17, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 106, 107 ], [ 106, 108 ], [ 17, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 9, 115 ], [ 115, 116 ], [ 0, 117 ], [ 117, 118 ], [ 117, 119 ] ]
[ "import java.util.Scanner;\nimport java.util.ArrayList;\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 int sum=0;\n double m=0;\n double ans=0;\n double sum1=0;\n if(n==0){\n break;\n }\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 = (double)sum/n;\n for(int i=0;i<n;i++){\n sum1 += ((double)s[i]-m)*((double)s[i]-m);\n }\n ans = Math.sqrt(sum1/n);\n System.out.println(ans);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.ArrayList;", "ArrayList", "java.util", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n int n = sc.nextInt();\n int sum=0;\n double m=0;\n double ans=0;\n double sum1=0;\n if(n==0){\n break;\n }\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 = (double)sum/n;\n for(int i=0;i<n;i++){\n sum1 += ((double)s[i]-m)*((double)s[i]-m);\n }\n ans = Math.sqrt(sum1/n);\n System.out.println(ans);\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 int sum=0;\n double m=0;\n double ans=0;\n double sum1=0;\n if(n==0){\n break;\n }\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 = (double)sum/n;\n for(int i=0;i<n;i++){\n sum1 += ((double)s[i]-m)*((double)s[i]-m);\n }\n ans = Math.sqrt(sum1/n);\n System.out.println(ans);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n while(true){\n int n = sc.nextInt();\n int sum=0;\n double m=0;\n double ans=0;\n double sum1=0;\n if(n==0){\n break;\n }\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 = (double)sum/n;\n for(int i=0;i<n;i++){\n sum1 += ((double)s[i]-m)*((double)s[i]-m);\n }\n ans = Math.sqrt(sum1/n);\n System.out.println(ans);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n int n = sc.nextInt();\n int sum=0;\n double m=0;\n double ans=0;\n double sum1=0;\n if(n==0){\n break;\n }\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 = (double)sum/n;\n for(int i=0;i<n;i++){\n sum1 += ((double)s[i]-m)*((double)s[i]-m);\n }\n ans = Math.sqrt(sum1/n);\n System.out.println(ans);\n }", "true", "{\n int n = sc.nextInt();\n int sum=0;\n double m=0;\n double ans=0;\n double sum1=0;\n if(n==0){\n break;\n }\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 = (double)sum/n;\n for(int i=0;i<n;i++){\n sum1 += ((double)s[i]-m)*((double)s[i]-m);\n }\n ans = Math.sqrt(sum1/n);\n System.out.println(ans);\n }", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int sum=0;", "sum", "0", "double m=0;", "m", "0", "double ans=0;", "ans", "0", "double sum1=0;", "sum1", "0", "if(n==0){\n break;\n }", "n==0", "n", "0", "{\n break;\n }", "break;", "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 = (double)sum/n", "m", "(double)sum/n", "(double)sum", "n", "for(int i=0;i<n;i++){\n sum1 += ((double)s[i]-m)*((double)s[i]-m);\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n sum1 += ((double)s[i]-m)*((double)s[i]-m);\n }", "{\n sum1 += ((double)s[i]-m)*((double)s[i]-m);\n }", "sum1 += ((double)s[i]-m)*((double)s[i]-m)", "sum1", "((double)s[i]-m)*((double)s[i]-m)", "((double)s[i]-m)", "(double)s[i]", "s", "i", "m", "((double)s[i]-m)", "(double)s[i]", "s", "i", "m", "ans = Math.sqrt(sum1/n)", "ans", "Math.sqrt(sum1/n)", "Math.sqrt", "Math", "sum1/n", "sum1", "n", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n int n = sc.nextInt();\n int sum=0;\n double m=0;\n double ans=0;\n double sum1=0;\n if(n==0){\n break;\n }\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 = (double)sum/n;\n for(int i=0;i<n;i++){\n sum1 += ((double)s[i]-m)*((double)s[i]-m);\n }\n ans = Math.sqrt(sum1/n);\n System.out.println(ans);\n }\n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n int n = sc.nextInt();\n int sum=0;\n double m=0;\n double ans=0;\n double sum1=0;\n if(n==0){\n break;\n }\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 = (double)sum/n;\n for(int i=0;i<n;i++){\n sum1 += ((double)s[i]-m)*((double)s[i]-m);\n }\n ans = Math.sqrt(sum1/n);\n System.out.println(ans);\n }\n }\n}", "Main" ]
import java.util.Scanner; import java.util.ArrayList; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(true){ int n = sc.nextInt(); int sum=0; double m=0; double ans=0; double sum1=0; if(n==0){ break; } int[] s = new int[n]; 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++){ sum1 += ((double)s[i]-m)*((double)s[i]-m); } ans = Math.sqrt(sum1/n); System.out.println(ans); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 17, 41, 13, 17, 41, 13, 17, 14, 2, 0, 13, 4, 18, 13, 17, 30, 3, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 13, 0, 13, 4, 18, 13, 13, 17, 0, 13, 13, 0, 13, 13, 41, 13, 4, 18, 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 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 14, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 25, 31 ], [ 24, 32 ], [ 32, 33 ], [ 14, 34 ], [ 34, 35 ], [ 34, 36 ], [ 14, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 37, 45 ], [ 45, 46 ], [ 46, 47 ], [ 37, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 49, 55 ], [ 55, 56 ], [ 55, 57 ], [ 49, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 60, 64 ], [ 14, 65 ], [ 65, 66 ], [ 65, 67 ], [ 14, 68 ], [ 68, 69 ], [ 68, 70 ], [ 14, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 73, 77 ], [ 14, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 86, 87 ], [ 86, 88 ], [ 6, 89 ], [ 89, 90 ] ]
[ "\nimport java.util.*;\nclass Main {\n\tpublic static void main(String...args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\tdouble heikin = 0;\n\t\tdouble powM = 0;\n\t\tint howM = 0;\n\t\t\tif((howM = scan.nextInt()) == 0 ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint mem = 0;\n\t\t\tfor(int i = 0; i < howM ; i++) {\n\t\t\t\tmem = scan.nextInt();\n\t\t\t\theikin += mem;\n\t\t\t\tpowM +=Math.pow(mem , 2);\n\t\t\t}\n\t\t\theikin /= howM;\n\t\t powM /=howM;\n Double powH = Math.pow(heikin,2);\n\t\t\t//System.out.println(heikin + \" \" + powM);\n\t\t\tSystem.out.println(Math.sqrt(powM - powH));\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "class Main {\n\tpublic static void main(String...args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\tdouble heikin = 0;\n\t\tdouble powM = 0;\n\t\tint howM = 0;\n\t\t\tif((howM = scan.nextInt()) == 0 ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint mem = 0;\n\t\t\tfor(int i = 0; i < howM ; i++) {\n\t\t\t\tmem = scan.nextInt();\n\t\t\t\theikin += mem;\n\t\t\t\tpowM +=Math.pow(mem , 2);\n\t\t\t}\n\t\t\theikin /= howM;\n\t\t powM /=howM;\n Double powH = Math.pow(heikin,2);\n\t\t\t//System.out.println(heikin + \" \" + powM);\n\t\t\tSystem.out.println(Math.sqrt(powM - powH));\n\t\t}\n\t}\n}", "Main", "public static void main(String...args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\tdouble heikin = 0;\n\t\tdouble powM = 0;\n\t\tint howM = 0;\n\t\t\tif((howM = scan.nextInt()) == 0 ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint mem = 0;\n\t\t\tfor(int i = 0; i < howM ; i++) {\n\t\t\t\tmem = scan.nextInt();\n\t\t\t\theikin += mem;\n\t\t\t\tpowM +=Math.pow(mem , 2);\n\t\t\t}\n\t\t\theikin /= howM;\n\t\t powM /=howM;\n Double powH = Math.pow(heikin,2);\n\t\t\t//System.out.println(heikin + \" \" + powM);\n\t\t\tSystem.out.println(Math.sqrt(powM - powH));\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\tdouble heikin = 0;\n\t\tdouble powM = 0;\n\t\tint howM = 0;\n\t\t\tif((howM = scan.nextInt()) == 0 ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint mem = 0;\n\t\t\tfor(int i = 0; i < howM ; i++) {\n\t\t\t\tmem = scan.nextInt();\n\t\t\t\theikin += mem;\n\t\t\t\tpowM +=Math.pow(mem , 2);\n\t\t\t}\n\t\t\theikin /= howM;\n\t\t powM /=howM;\n Double powH = Math.pow(heikin,2);\n\t\t\t//System.out.println(heikin + \" \" + powM);\n\t\t\tSystem.out.println(Math.sqrt(powM - powH));\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(true) {\n\t\tdouble heikin = 0;\n\t\tdouble powM = 0;\n\t\tint howM = 0;\n\t\t\tif((howM = scan.nextInt()) == 0 ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint mem = 0;\n\t\t\tfor(int i = 0; i < howM ; i++) {\n\t\t\t\tmem = scan.nextInt();\n\t\t\t\theikin += mem;\n\t\t\t\tpowM +=Math.pow(mem , 2);\n\t\t\t}\n\t\t\theikin /= howM;\n\t\t powM /=howM;\n Double powH = Math.pow(heikin,2);\n\t\t\t//System.out.println(heikin + \" \" + powM);\n\t\t\tSystem.out.println(Math.sqrt(powM - powH));\n\t\t}", "true", "{\n\t\tdouble heikin = 0;\n\t\tdouble powM = 0;\n\t\tint howM = 0;\n\t\t\tif((howM = scan.nextInt()) == 0 ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint mem = 0;\n\t\t\tfor(int i = 0; i < howM ; i++) {\n\t\t\t\tmem = scan.nextInt();\n\t\t\t\theikin += mem;\n\t\t\t\tpowM +=Math.pow(mem , 2);\n\t\t\t}\n\t\t\theikin /= howM;\n\t\t powM /=howM;\n Double powH = Math.pow(heikin,2);\n\t\t\t//System.out.println(heikin + \" \" + powM);\n\t\t\tSystem.out.println(Math.sqrt(powM - powH));\n\t\t}", "double heikin = 0;", "heikin", "0", "double powM = 0;", "powM", "0", "int howM = 0;", "howM", "0", "if((howM = scan.nextInt()) == 0 ) {\n\t\t\t\tbreak;\n\t\t\t}", "(howM = scan.nextInt()) == 0", "(howM = scan.nextInt())", "howM", "scan.nextInt()", "scan.nextInt", "scan", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "int mem = 0;", "mem", "0", "for(int i = 0; i < howM ; i++) {\n\t\t\t\tmem = scan.nextInt();\n\t\t\t\theikin += mem;\n\t\t\t\tpowM +=Math.pow(mem , 2);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < howM", "i", "howM", "i++", "i++", "i", "{\n\t\t\t\tmem = scan.nextInt();\n\t\t\t\theikin += mem;\n\t\t\t\tpowM +=Math.pow(mem , 2);\n\t\t\t}", "{\n\t\t\t\tmem = scan.nextInt();\n\t\t\t\theikin += mem;\n\t\t\t\tpowM +=Math.pow(mem , 2);\n\t\t\t}", "mem = scan.nextInt()", "mem", "scan.nextInt()", "scan.nextInt", "scan", "heikin += mem", "heikin", "mem", "powM +=Math.pow(mem , 2)", "powM", "Math.pow(mem , 2)", "Math.pow", "Math", "mem", "2", "heikin /= howM", "heikin", "howM", "powM /=howM", "powM", "howM", "Double powH = Math.pow(heikin,2);", "powH", "Math.pow(heikin,2)", "Math.pow", "Math", "heikin", "2", "System.out.println(Math.sqrt(powM - powH))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(powM - powH)", "Math.sqrt", "Math", "powM - powH", "powM", "powH", "String...args", "args" ]
import java.util.*; class Main { public static void main(String...args) { Scanner scan = new Scanner(System.in); while(true) { double heikin = 0; double powM = 0; int howM = 0; if((howM = scan.nextInt()) == 0 ) { break; } int mem = 0; for(int i = 0; i < howM ; i++) { mem = scan.nextInt(); heikin += mem; powM +=Math.pow(mem , 2); } heikin /= howM; powM /=howM; Double powH = Math.pow(heikin,2); //System.out.println(heikin + " " + powM); System.out.println(Math.sqrt(powM - powH)); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 13, 30, 42, 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, 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, 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 ], [ 138, 11 ], [ 138, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 18, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 34, 35 ], [ 35, 36 ], [ 28, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 28, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 45, 50 ], [ 28, 51 ], [ 51, 52 ], [ 51, 53 ], [ 28, 55 ], [ 55, 56 ], [ 55, 57 ], [ 28, 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 ], [ 28, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 28, 91 ], [ 91, 92 ], [ 91, 93 ], [ 28, 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 ], [ 28, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 123, 124 ], [ 123, 125 ], [ 28, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 131, 132 ], [ 132, 133 ], [ 131, 134 ], [ 12, 135 ], [ 135, 136 ], [ 0, 137 ], [ 137, 138 ], [ 137, 139 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\n\npublic class Main{\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n while(true){\n int x = Integer.parseInt(br.readLine());\n if(x==0){\n break;\n }\n \n String[] arr = br.readLine().split(\"\\\\s\");\n Double[] data = new Double[x];\n Double sum = 0.0;\n for(int i=0; i<x; i++){\n data[i] = Double.parseDouble(arr[i]);\n sum += data[i];\n }\n \n Double avg = sum/x;\n Double tmp = 0.0;\n for(int i=0; i<x; i++){\n tmp += Math.pow(data[i] - avg, 2);\n }\n Double stdev = Math.sqrt(tmp/x);\n System.out.println(String.valueOf(stdev));\n }\n } catch(IOException e) {\n e.printStackTrace();\n }\n }\n}\n", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "public class Main{\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n while(true){\n int x = Integer.parseInt(br.readLine());\n if(x==0){\n break;\n }\n \n String[] arr = br.readLine().split(\"\\\\s\");\n Double[] data = new Double[x];\n Double sum = 0.0;\n for(int i=0; i<x; i++){\n data[i] = Double.parseDouble(arr[i]);\n sum += data[i];\n }\n \n Double avg = sum/x;\n Double tmp = 0.0;\n for(int i=0; i<x; i++){\n tmp += Math.pow(data[i] - avg, 2);\n }\n Double stdev = Math.sqrt(tmp/x);\n System.out.println(String.valueOf(stdev));\n }\n } catch(IOException e) {\n e.printStackTrace();\n }\n }\n}", "Main", "public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n while(true){\n int x = Integer.parseInt(br.readLine());\n if(x==0){\n break;\n }\n \n String[] arr = br.readLine().split(\"\\\\s\");\n Double[] data = new Double[x];\n Double sum = 0.0;\n for(int i=0; i<x; i++){\n data[i] = Double.parseDouble(arr[i]);\n sum += data[i];\n }\n \n Double avg = sum/x;\n Double tmp = 0.0;\n for(int i=0; i<x; i++){\n tmp += Math.pow(data[i] - avg, 2);\n }\n Double stdev = Math.sqrt(tmp/x);\n System.out.println(String.valueOf(stdev));\n }\n } catch(IOException e) {\n e.printStackTrace();\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n while(true){\n int x = Integer.parseInt(br.readLine());\n if(x==0){\n break;\n }\n \n String[] arr = br.readLine().split(\"\\\\s\");\n Double[] data = new Double[x];\n Double sum = 0.0;\n for(int i=0; i<x; i++){\n data[i] = Double.parseDouble(arr[i]);\n sum += data[i];\n }\n \n Double avg = sum/x;\n Double tmp = 0.0;\n for(int i=0; i<x; i++){\n tmp += Math.pow(data[i] - avg, 2);\n }\n Double stdev = Math.sqrt(tmp/x);\n System.out.println(String.valueOf(stdev));\n }\n } catch(IOException e) {\n e.printStackTrace();\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "try {\n while(true){\n int x = Integer.parseInt(br.readLine());\n if(x==0){\n break;\n }\n \n String[] arr = br.readLine().split(\"\\\\s\");\n Double[] data = new Double[x];\n Double sum = 0.0;\n for(int i=0; i<x; i++){\n data[i] = Double.parseDouble(arr[i]);\n sum += data[i];\n }\n \n Double avg = sum/x;\n Double tmp = 0.0;\n for(int i=0; i<x; i++){\n tmp += Math.pow(data[i] - avg, 2);\n }\n Double stdev = Math.sqrt(tmp/x);\n System.out.println(String.valueOf(stdev));\n }\n } catch(IOException e) {\n e.printStackTrace();\n }", "catch(IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n while(true){\n int x = Integer.parseInt(br.readLine());\n if(x==0){\n break;\n }\n \n String[] arr = br.readLine().split(\"\\\\s\");\n Double[] data = new Double[x];\n Double sum = 0.0;\n for(int i=0; i<x; i++){\n data[i] = Double.parseDouble(arr[i]);\n sum += data[i];\n }\n \n Double avg = sum/x;\n Double tmp = 0.0;\n for(int i=0; i<x; i++){\n tmp += Math.pow(data[i] - avg, 2);\n }\n Double stdev = Math.sqrt(tmp/x);\n System.out.println(String.valueOf(stdev));\n }\n }", "while(true){\n int x = Integer.parseInt(br.readLine());\n if(x==0){\n break;\n }\n \n String[] arr = br.readLine().split(\"\\\\s\");\n Double[] data = new Double[x];\n Double sum = 0.0;\n for(int i=0; i<x; i++){\n data[i] = Double.parseDouble(arr[i]);\n sum += data[i];\n }\n \n Double avg = sum/x;\n Double tmp = 0.0;\n for(int i=0; i<x; i++){\n tmp += Math.pow(data[i] - avg, 2);\n }\n Double stdev = Math.sqrt(tmp/x);\n System.out.println(String.valueOf(stdev));\n }", "true", "{\n int x = Integer.parseInt(br.readLine());\n if(x==0){\n break;\n }\n \n String[] arr = br.readLine().split(\"\\\\s\");\n Double[] data = new Double[x];\n Double sum = 0.0;\n for(int i=0; i<x; i++){\n data[i] = Double.parseDouble(arr[i]);\n sum += data[i];\n }\n \n Double avg = sum/x;\n Double tmp = 0.0;\n for(int i=0; i<x; i++){\n tmp += Math.pow(data[i] - avg, 2);\n }\n Double stdev = Math.sqrt(tmp/x);\n System.out.println(String.valueOf(stdev));\n }", "int x = Integer.parseInt(br.readLine());", "x", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "if(x==0){\n break;\n }", "x==0", "x", "0", "{\n break;\n }", "break;", "String[] arr = br.readLine().split(\"\\\\s\");", "arr", "br.readLine().split(\"\\\\s\")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\"\\\\s\"", "Double[] data = new Double[x];", "data", "new Double[x]", "x", "Double sum = 0.0;", "sum", "0.0", "for(int i=0; i<x; i++){\n data[i] = Double.parseDouble(arr[i]);\n sum += data[i];\n }", "int i=0;", "int i=0;", "i", "0", "i<x", "i", "x", "i++", "i++", "i", "{\n data[i] = Double.parseDouble(arr[i]);\n sum += data[i];\n }", "{\n data[i] = Double.parseDouble(arr[i]);\n sum += data[i];\n }", "data[i] = Double.parseDouble(arr[i])", "data[i]", "data", "i", "Double.parseDouble(arr[i])", "Double.parseDouble", "Double", "arr[i]", "arr", "i", "sum += data[i]", "sum", "data[i]", "data", "i", "Double avg = sum/x;", "avg", "sum/x", "sum", "x", "Double tmp = 0.0;", "tmp", "0.0", "for(int i=0; i<x; i++){\n tmp += Math.pow(data[i] - avg, 2);\n }", "int i=0;", "int i=0;", "i", "0", "i<x", "i", "x", "i++", "i++", "i", "{\n tmp += Math.pow(data[i] - avg, 2);\n }", "{\n tmp += Math.pow(data[i] - avg, 2);\n }", "tmp += Math.pow(data[i] - avg, 2)", "tmp", "Math.pow(data[i] - avg, 2)", "Math.pow", "Math", "data[i] - avg", "data[i]", "data", "i", "avg", "2", "Double stdev = Math.sqrt(tmp/x);", "stdev", "Math.sqrt(tmp/x)", "Math.sqrt", "Math", "tmp/x", "tmp", "x", "System.out.println(String.valueOf(stdev))", "System.out.println", "System.out", "System", "System.out", "String.valueOf(stdev)", "String.valueOf", "String", "stdev", "String[] args", "args", "public class Main{\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n while(true){\n int x = Integer.parseInt(br.readLine());\n if(x==0){\n break;\n }\n \n String[] arr = br.readLine().split(\"\\\\s\");\n Double[] data = new Double[x];\n Double sum = 0.0;\n for(int i=0; i<x; i++){\n data[i] = Double.parseDouble(arr[i]);\n sum += data[i];\n }\n \n Double avg = sum/x;\n Double tmp = 0.0;\n for(int i=0; i<x; i++){\n tmp += Math.pow(data[i] - avg, 2);\n }\n Double stdev = Math.sqrt(tmp/x);\n System.out.println(String.valueOf(stdev));\n }\n } catch(IOException e) {\n e.printStackTrace();\n }\n }\n}", "public class Main{\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n while(true){\n int x = Integer.parseInt(br.readLine());\n if(x==0){\n break;\n }\n \n String[] arr = br.readLine().split(\"\\\\s\");\n Double[] data = new Double[x];\n Double sum = 0.0;\n for(int i=0; i<x; i++){\n data[i] = Double.parseDouble(arr[i]);\n sum += data[i];\n }\n \n Double avg = sum/x;\n Double tmp = 0.0;\n for(int i=0; i<x; i++){\n tmp += Math.pow(data[i] - avg, 2);\n }\n Double stdev = Math.sqrt(tmp/x);\n System.out.println(String.valueOf(stdev));\n }\n } catch(IOException e) {\n e.printStackTrace();\n }\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; public class Main{ public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try { while(true){ int x = Integer.parseInt(br.readLine()); if(x==0){ break; } String[] arr = br.readLine().split("\\s"); Double[] data = new Double[x]; Double sum = 0.0; for(int i=0; i<x; i++){ data[i] = Double.parseDouble(arr[i]); sum += data[i]; } Double avg = sum/x; Double tmp = 0.0; for(int i=0; i<x; i++){ tmp += Math.pow(data[i] - avg, 2); } Double stdev = Math.sqrt(tmp/x); System.out.println(String.valueOf(stdev)); } } catch(IOException e) { e.printStackTrace(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 13, 30, 42, 17, 30, 41, 13, 4, 18, 13, 4, 18, 13, 14, 2, 13, 17, 3, 41, 13, 17, 41, 13, 17, 41, 13, 17, 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, 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, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 12, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 28, 29 ], [ 29, 30 ], [ 22, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 31, 35 ], [ 22, 36 ], [ 36, 37 ], [ 36, 38 ], [ 22, 39 ], [ 39, 40 ], [ 39, 41 ], [ 22, 42 ], [ 42, 43 ], [ 42, 44 ], [ 22, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 47, 52 ], [ 22, 53 ], [ 53, 54 ], [ 53, 55 ], [ 22, 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 ], [ 22, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 22, 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 ], [ 107, 108 ], [ 106, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 109, 113 ], [ 106, 114 ], [ 105, 115 ], [ 22, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 121, 122 ], [ 122, 123 ], [ 121, 124 ], [ 6, 125 ], [ 125, 126 ] ]
[ "// ITP1_10_C Standard_Deviation\nimport java.io.*;\n\nclass Main {\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n while (true) {\n int n = Integer.parseInt(br.readLine());\n if (n == 0) break;\n\n double sum = 0;\n double sumx = 0;\n double ave = 0;\n\n String[] input = br.readLine().split(\" \");\n double[] s = new double[n];\n\n for (int i = 0; i < n; i++) {\n s[i] = Double.parseDouble(input[i]);\n sum += s[i];\n }\n\n ave = sum / n;\n\n for (int i = 0; i < n; i++) {\n sumx += Math.pow((s[i] - ave), 2) / n;\n }\n\n System.out.println(Math.sqrt(sumx));\n }\n }\n\n catch (Exception e) {\n e.printStackTrace();\n }\n }\n}", "import java.io.*;", "io.*", "java", "class Main {\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n while (true) {\n int n = Integer.parseInt(br.readLine());\n if (n == 0) break;\n\n double sum = 0;\n double sumx = 0;\n double ave = 0;\n\n String[] input = br.readLine().split(\" \");\n double[] s = new double[n];\n\n for (int i = 0; i < n; i++) {\n s[i] = Double.parseDouble(input[i]);\n sum += s[i];\n }\n\n ave = sum / n;\n\n for (int i = 0; i < n; i++) {\n sumx += Math.pow((s[i] - ave), 2) / n;\n }\n\n System.out.println(Math.sqrt(sumx));\n }\n }\n\n catch (Exception e) {\n e.printStackTrace();\n }\n }\n}", "Main", "public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n while (true) {\n int n = Integer.parseInt(br.readLine());\n if (n == 0) break;\n\n double sum = 0;\n double sumx = 0;\n double ave = 0;\n\n String[] input = br.readLine().split(\" \");\n double[] s = new double[n];\n\n for (int i = 0; i < n; i++) {\n s[i] = Double.parseDouble(input[i]);\n sum += s[i];\n }\n\n ave = sum / n;\n\n for (int i = 0; i < n; i++) {\n sumx += Math.pow((s[i] - ave), 2) / n;\n }\n\n System.out.println(Math.sqrt(sumx));\n }\n }\n\n catch (Exception e) {\n e.printStackTrace();\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n while (true) {\n int n = Integer.parseInt(br.readLine());\n if (n == 0) break;\n\n double sum = 0;\n double sumx = 0;\n double ave = 0;\n\n String[] input = br.readLine().split(\" \");\n double[] s = new double[n];\n\n for (int i = 0; i < n; i++) {\n s[i] = Double.parseDouble(input[i]);\n sum += s[i];\n }\n\n ave = sum / n;\n\n for (int i = 0; i < n; i++) {\n sumx += Math.pow((s[i] - ave), 2) / n;\n }\n\n System.out.println(Math.sqrt(sumx));\n }\n }\n\n catch (Exception e) {\n e.printStackTrace();\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "try {\n while (true) {\n int n = Integer.parseInt(br.readLine());\n if (n == 0) break;\n\n double sum = 0;\n double sumx = 0;\n double ave = 0;\n\n String[] input = br.readLine().split(\" \");\n double[] s = new double[n];\n\n for (int i = 0; i < n; i++) {\n s[i] = Double.parseDouble(input[i]);\n sum += s[i];\n }\n\n ave = sum / n;\n\n for (int i = 0; i < n; i++) {\n sumx += Math.pow((s[i] - ave), 2) / n;\n }\n\n System.out.println(Math.sqrt(sumx));\n }\n }\n\n catch (Exception e) {\n e.printStackTrace();\n }", "catch (Exception e) {\n e.printStackTrace();\n }", "Exception e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n while (true) {\n int n = Integer.parseInt(br.readLine());\n if (n == 0) break;\n\n double sum = 0;\n double sumx = 0;\n double ave = 0;\n\n String[] input = br.readLine().split(\" \");\n double[] s = new double[n];\n\n for (int i = 0; i < n; i++) {\n s[i] = Double.parseDouble(input[i]);\n sum += s[i];\n }\n\n ave = sum / n;\n\n for (int i = 0; i < n; i++) {\n sumx += Math.pow((s[i] - ave), 2) / n;\n }\n\n System.out.println(Math.sqrt(sumx));\n }\n }", "while (true) {\n int n = Integer.parseInt(br.readLine());\n if (n == 0) break;\n\n double sum = 0;\n double sumx = 0;\n double ave = 0;\n\n String[] input = br.readLine().split(\" \");\n double[] s = new double[n];\n\n for (int i = 0; i < n; i++) {\n s[i] = Double.parseDouble(input[i]);\n sum += s[i];\n }\n\n ave = sum / n;\n\n for (int i = 0; i < n; i++) {\n sumx += Math.pow((s[i] - ave), 2) / n;\n }\n\n System.out.println(Math.sqrt(sumx));\n }", "true", "{\n int n = Integer.parseInt(br.readLine());\n if (n == 0) break;\n\n double sum = 0;\n double sumx = 0;\n double ave = 0;\n\n String[] input = br.readLine().split(\" \");\n double[] s = new double[n];\n\n for (int i = 0; i < n; i++) {\n s[i] = Double.parseDouble(input[i]);\n sum += s[i];\n }\n\n ave = sum / n;\n\n for (int i = 0; i < n; i++) {\n sumx += Math.pow((s[i] - ave), 2) / n;\n }\n\n System.out.println(Math.sqrt(sumx));\n }", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "if (n == 0) break;", "n == 0", "n", "0", "break;", "double sum = 0;", "sum", "0", "double sumx = 0;", "sumx", "0", "double ave = 0;", "ave", "0", "String[] input = br.readLine().split(\" \");", "input", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "double[] s = new double[n];", "s", "new double[n]", "n", "for (int i = 0; i < n; i++) {\n s[i] = Double.parseDouble(input[i]);\n sum += s[i];\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n s[i] = Double.parseDouble(input[i]);\n sum += s[i];\n }", "{\n s[i] = Double.parseDouble(input[i]);\n sum += s[i];\n }", "s[i] = Double.parseDouble(input[i])", "s[i]", "s", "i", "Double.parseDouble(input[i])", "Double.parseDouble", "Double", "input[i]", "input", "i", "sum += s[i]", "sum", "s[i]", "s", "i", "ave = sum / n", "ave", "sum / n", "sum", "n", "for (int i = 0; i < n; i++) {\n sumx += Math.pow((s[i] - ave), 2) / n;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n sumx += Math.pow((s[i] - ave), 2) / n;\n }", "{\n sumx += Math.pow((s[i] - ave), 2) / n;\n }", "sumx += Math.pow((s[i] - ave), 2) / n", "sumx", "Math.pow((s[i] - ave), 2) / n", "Math.pow((s[i] - ave), 2)", "Math.pow", "Math", "(s[i] - ave)", "s[i]", "s", "i", "ave", "2", "n", "System.out.println(Math.sqrt(sumx))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(sumx)", "Math.sqrt", "Math", "sumx", "String[] args", "args" ]
// ITP1_10_C Standard_Deviation import java.io.*; class Main { public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try { while (true) { int n = Integer.parseInt(br.readLine()); if (n == 0) break; double sum = 0; double sumx = 0; double ave = 0; String[] input = br.readLine().split(" "); double[] s = new double[n]; for (int i = 0; i < n; i++) { s[i] = Double.parseDouble(input[i]); sum += s[i]; } ave = sum / n; for (int i = 0; i < n; i++) { sumx += Math.pow((s[i] - ave), 2) / n; } System.out.println(Math.sqrt(sumx)); } } catch (Exception e) { e.printStackTrace(); } } }
[ 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, 17, 41, 13, 17, 41, 13, 4, 18, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 18, 13, 13, 0, 13, 13, 0, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 18, 13, 13, 0, 13, 2, 2, 13, 13, 2, 13, 13, 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 ], [ 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, 31 ], [ 31, 32 ], [ 31, 33 ], [ 14, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 36, 41 ], [ 14, 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 ], [ 54, 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 ], [ 89, 91 ], [ 83, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 98, 100 ], [ 14, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 109, 110 ], [ 109, 111 ], [ 6, 112 ], [ 112, 113 ] ]
[ "import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] arg)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tif(n == 0)break;\n\t\t\tdouble m = 0,sig = 0;\n\t\t\tString[] div = br.readLine().split(\" \");\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tdouble s = Double.parseDouble(div[i]);\n\t\t\t\tm += s;\n\t\t\t}\n\t\t\tm = m / n;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tdouble s = Double.parseDouble(div[i]);\n\t\t\t\tsig +=(s-m)*(s-m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(sig/n));\n\t\t}\n\t}\n}", "import java.io.*;", "io.*", "java", "class Main {\n\tpublic static void main(String[] arg)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tif(n == 0)break;\n\t\t\tdouble m = 0,sig = 0;\n\t\t\tString[] div = br.readLine().split(\" \");\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tdouble s = Double.parseDouble(div[i]);\n\t\t\t\tm += s;\n\t\t\t}\n\t\t\tm = m / n;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tdouble s = Double.parseDouble(div[i]);\n\t\t\t\tsig +=(s-m)*(s-m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(sig/n));\n\t\t}\n\t}\n}", "Main", "public static void main(String[] arg)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tif(n == 0)break;\n\t\t\tdouble m = 0,sig = 0;\n\t\t\tString[] div = br.readLine().split(\" \");\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tdouble s = Double.parseDouble(div[i]);\n\t\t\t\tm += s;\n\t\t\t}\n\t\t\tm = m / n;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tdouble s = Double.parseDouble(div[i]);\n\t\t\t\tsig +=(s-m)*(s-m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(sig/n));\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tif(n == 0)break;\n\t\t\tdouble m = 0,sig = 0;\n\t\t\tString[] div = br.readLine().split(\" \");\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tdouble s = Double.parseDouble(div[i]);\n\t\t\t\tm += s;\n\t\t\t}\n\t\t\tm = m / n;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tdouble s = Double.parseDouble(div[i]);\n\t\t\t\tsig +=(s-m)*(s-m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(sig/n));\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while(true){\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tif(n == 0)break;\n\t\t\tdouble m = 0,sig = 0;\n\t\t\tString[] div = br.readLine().split(\" \");\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tdouble s = Double.parseDouble(div[i]);\n\t\t\t\tm += s;\n\t\t\t}\n\t\t\tm = m / n;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tdouble s = Double.parseDouble(div[i]);\n\t\t\t\tsig +=(s-m)*(s-m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(sig/n));\n\t\t}", "true", "{\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tif(n == 0)break;\n\t\t\tdouble m = 0,sig = 0;\n\t\t\tString[] div = br.readLine().split(\" \");\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tdouble s = Double.parseDouble(div[i]);\n\t\t\t\tm += s;\n\t\t\t}\n\t\t\tm = m / n;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tdouble s = Double.parseDouble(div[i]);\n\t\t\t\tsig +=(s-m)*(s-m);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(sig/n));\n\t\t}", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "if(n == 0)break;", "n == 0", "n", "0", "break;", "double m = 0", "m", "0", "sig = 0;", "sig", "0", "String[] div = br.readLine().split(\" \");", "div", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "for(int i=0; i<n; i++){\n\t\t\t\tdouble s = Double.parseDouble(div[i]);\n\t\t\t\tm += 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 = Double.parseDouble(div[i]);\n\t\t\t\tm += s;\n\t\t\t}", "{\n\t\t\t\tdouble s = Double.parseDouble(div[i]);\n\t\t\t\tm += s;\n\t\t\t}", "double s = Double.parseDouble(div[i]);", "s", "Double.parseDouble(div[i])", "Double.parseDouble", "Double", "div[i]", "div", "i", "m += s", "m", "s", "m = m / n", "m", "m / n", "m", "n", "for(int i=0; i<n; i++){\n\t\t\t\tdouble s = Double.parseDouble(div[i]);\n\t\t\t\tsig +=(s-m)*(s-m);\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 = Double.parseDouble(div[i]);\n\t\t\t\tsig +=(s-m)*(s-m);\n\t\t\t}", "{\n\t\t\t\tdouble s = Double.parseDouble(div[i]);\n\t\t\t\tsig +=(s-m)*(s-m);\n\t\t\t}", "double s = Double.parseDouble(div[i]);", "s", "Double.parseDouble(div[i])", "Double.parseDouble", "Double", "div[i]", "div", "i", "sig +=(s-m)*(s-m)", "sig", "(s-m)*(s-m)", "(s-m)", "s", "m", "(s-m)", "s", "m", "System.out.println(Math.sqrt(sig/n))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(sig/n)", "Math.sqrt", "Math", "sig/n", "sig", "n", "String[] arg", "arg" ]
import java.io.*; class Main { public static void main(String[] arg)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while(true){ int n = Integer.parseInt(br.readLine()); if(n == 0)break; double m = 0,sig = 0; String[] div = br.readLine().split(" "); for(int i=0; i<n; i++){ double s = Double.parseDouble(div[i]); m += s; } m = m / n; for(int i=0; i<n; i++){ double s = Double.parseDouble(div[i]); sig +=(s-m)*(s-m); } System.out.println(Math.sqrt(sig/n)); } } }