node_ids
sequencelengths 4
1.4k
| edge_index
sequencelengths 1
2.22k
| text
sequencelengths 4
1.4k
| source
stringlengths 14
427k
|
---|---|---|---|
[
7,
15,
13,
17,
6,
13,
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,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
18,
13,
13,
41,
13,
2,
13,
13,
41,
13,
17,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
2,
18,
13,
13,
13,
2,
18,
13,
13,
13,
0,
13,
18,
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
],
[
128,
5
],
[
128,
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
],
[
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
],
[
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
],
[
66,
67
],
[
66,
68
],
[
16,
69
],
[
69,
70
],
[
69,
71
],
[
16,
72
],
[
72,
73
],
[
72,
74
],
[
16,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
76,
86
],
[
86,
87
],
[
87,
88
],
[
76,
89
],
[
90,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
95,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
90,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
108,
110
],
[
16,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
113,
115
],
[
16,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
121,
122
],
[
122,
123
],
[
121,
124
],
[
6,
125
],
[
125,
126
],
[
0,
127
],
[
127,
128
],
[
127,
129
]
] | [
"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 int sum=0;\n double sum2=0;\n for(int i=0;i<scores.length;i++){\n scores[i] = sc.nextInt();\n sum += scores[i];\n }\n double ave= (double)sum/n,var = 0;\n double[]scores2 = new double[n];\n for(int i=0;i<scores.length;i++){\n scores2[i] = (scores[i] - ave)*(scores[i] - ave);\n sum2 += scores2[i];\n }\n var = sum2 /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 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 int sum=0;\n double sum2=0;\n for(int i=0;i<scores.length;i++){\n scores[i] = sc.nextInt();\n sum += scores[i];\n }\n double ave= (double)sum/n,var = 0;\n double[]scores2 = new double[n];\n for(int i=0;i<scores.length;i++){\n scores2[i] = (scores[i] - ave)*(scores[i] - ave);\n sum2 += scores2[i];\n }\n var = sum2 /n;\n System.out.println(Math.sqrt(var));\n }\n }\n }\n}",
"Main",
"public static void main(String[] args){\n try(Scanner sc = new Scanner(System.in);){\n while(true){\n int n = sc.nextInt();\n if(n== 0)break;\n int[]scores = new int[n];\n int sum=0;\n double sum2=0;\n for(int i=0;i<scores.length;i++){\n scores[i] = sc.nextInt();\n sum += scores[i];\n }\n double ave= (double)sum/n,var = 0;\n double[]scores2 = new double[n];\n for(int i=0;i<scores.length;i++){\n scores2[i] = (scores[i] - ave)*(scores[i] - ave);\n sum2 += scores2[i];\n }\n var = sum2 /n;\n System.out.println(Math.sqrt(var));\n }\n }\n }",
"main",
"{\n try(Scanner sc = new Scanner(System.in);){\n while(true){\n int n = sc.nextInt();\n if(n== 0)break;\n int[]scores = new int[n];\n int sum=0;\n double sum2=0;\n for(int i=0;i<scores.length;i++){\n scores[i] = sc.nextInt();\n sum += scores[i];\n }\n double ave= (double)sum/n,var = 0;\n double[]scores2 = new double[n];\n for(int i=0;i<scores.length;i++){\n scores2[i] = (scores[i] - ave)*(scores[i] - ave);\n sum2 += scores2[i];\n }\n var = sum2 /n;\n System.out.println(Math.sqrt(var));\n }\n }\n }",
"try(Scanner sc = new Scanner(System.in);){\n while(true){\n int n = sc.nextInt();\n if(n== 0)break;\n int[]scores = new int[n];\n int sum=0;\n double sum2=0;\n for(int i=0;i<scores.length;i++){\n scores[i] = sc.nextInt();\n sum += scores[i];\n }\n double ave= (double)sum/n,var = 0;\n double[]scores2 = new double[n];\n for(int i=0;i<scores.length;i++){\n scores2[i] = (scores[i] - ave)*(scores[i] - ave);\n sum2 += scores2[i];\n }\n var = sum2 /n;\n System.out.println(Math.sqrt(var));\n }\n }",
"{\n while(true){\n int n = sc.nextInt();\n if(n== 0)break;\n int[]scores = new int[n];\n int sum=0;\n double sum2=0;\n for(int i=0;i<scores.length;i++){\n scores[i] = sc.nextInt();\n sum += scores[i];\n }\n double ave= (double)sum/n,var = 0;\n double[]scores2 = new double[n];\n for(int i=0;i<scores.length;i++){\n scores2[i] = (scores[i] - ave)*(scores[i] - ave);\n sum2 += scores2[i];\n }\n var = sum2 /n;\n System.out.println(Math.sqrt(var));\n }\n }",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"while(true){\n int n = sc.nextInt();\n if(n== 0)break;\n int[]scores = new int[n];\n int sum=0;\n double sum2=0;\n for(int i=0;i<scores.length;i++){\n scores[i] = sc.nextInt();\n sum += scores[i];\n }\n double ave= (double)sum/n,var = 0;\n double[]scores2 = new double[n];\n for(int i=0;i<scores.length;i++){\n scores2[i] = (scores[i] - ave)*(scores[i] - ave);\n sum2 += scores2[i];\n }\n var = sum2 /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 int sum=0;\n double sum2=0;\n for(int i=0;i<scores.length;i++){\n scores[i] = sc.nextInt();\n sum += scores[i];\n }\n double ave= (double)sum/n,var = 0;\n double[]scores2 = new double[n];\n for(int i=0;i<scores.length;i++){\n scores2[i] = (scores[i] - ave)*(scores[i] - ave);\n sum2 += scores2[i];\n }\n var = sum2 /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",
"int sum=0;",
"sum",
"0",
"double sum2=0;",
"sum2",
"0",
"for(int i=0;i<scores.length;i++){\n scores[i] = sc.nextInt();\n sum += scores[i];\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<scores.length",
"i",
"scores.length",
"scores",
"scores.length",
"i++",
"i++",
"i",
"{\n scores[i] = sc.nextInt();\n sum += scores[i];\n }",
"{\n scores[i] = sc.nextInt();\n sum += scores[i];\n }",
"scores[i] = sc.nextInt()",
"scores[i]",
"scores",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sum += scores[i]",
"sum",
"scores[i]",
"scores",
"i",
"double ave= (double)sum/n",
"ave",
"(double)sum/n",
"(double)sum",
"n",
"var = 0;",
"var",
"0",
"double[]scores2 = new double[n];",
"scores2",
"new double[n]",
"n",
"for(int i=0;i<scores.length;i++){\n scores2[i] = (scores[i] - ave)*(scores[i] - ave);\n sum2 += scores2[i];\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<scores.length",
"i",
"scores.length",
"scores",
"scores.length",
"i++",
"i++",
"i",
"{\n scores2[i] = (scores[i] - ave)*(scores[i] - ave);\n sum2 += scores2[i];\n }",
"{\n scores2[i] = (scores[i] - ave)*(scores[i] - ave);\n sum2 += scores2[i];\n }",
"scores2[i] = (scores[i] - ave)*(scores[i] - ave)",
"scores2[i]",
"scores2",
"i",
"(scores[i] - ave)*(scores[i] - ave)",
"(scores[i] - ave)",
"scores[i]",
"scores",
"i",
"ave",
"(scores[i] - ave)",
"scores[i]",
"scores",
"i",
"ave",
"sum2 += scores2[i]",
"sum2",
"scores2[i]",
"scores2",
"i",
"var = sum2 /n",
"var",
"sum2 /n",
"sum2",
"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 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 int sum=0;\n double sum2=0;\n for(int i=0;i<scores.length;i++){\n scores[i] = sc.nextInt();\n sum += scores[i];\n }\n double ave= (double)sum/n,var = 0;\n double[]scores2 = new double[n];\n for(int i=0;i<scores.length;i++){\n scores2[i] = (scores[i] - ave)*(scores[i] - ave);\n sum2 += scores2[i];\n }\n var = sum2 /n;\n System.out.println(Math.sqrt(var));\n }\n }\n }\n}",
"public class Main {\n public static void main(String[] args){\n try(Scanner sc = new Scanner(System.in);){\n while(true){\n int n = sc.nextInt();\n if(n== 0)break;\n int[]scores = new int[n];\n int sum=0;\n double sum2=0;\n for(int i=0;i<scores.length;i++){\n scores[i] = sc.nextInt();\n sum += scores[i];\n }\n double ave= (double)sum/n,var = 0;\n double[]scores2 = new double[n];\n for(int i=0;i<scores.length;i++){\n scores2[i] = (scores[i] - ave)*(scores[i] - ave);\n sum2 += scores2[i];\n }\n var = sum2 /n;\n System.out.println(Math.sqrt(var));\n }\n }\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args){
try(Scanner sc = new Scanner(System.in);){
while(true){
int n = sc.nextInt();
if(n== 0)break;
int[]scores = new int[n];
int sum=0;
double sum2=0;
for(int i=0;i<scores.length;i++){
scores[i] = sc.nextInt();
sum += scores[i];
}
double ave= (double)sum/n,var = 0;
double[]scores2 = new double[n];
for(int i=0;i<scores.length;i++){
scores2[i] = (scores[i] - ave)*(scores[i] - ave);
sum2 += scores2[i];
}
var = sum2 /n;
System.out.println(Math.sqrt(var));
}
}
}
}
|
[
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,
18,
13,
13,
18,
13,
13,
0,
13,
13,
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
],
[
93,
5
],
[
93,
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
],
[
47,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
66,
68
],
[
14,
69
],
[
69,
70
],
[
69,
71
],
[
14,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
78,
80
],
[
14,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
6,
90
],
[
90,
91
],
[
0,
92
],
[
92,
93
],
[
92,
94
]
] | [
"\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0) break;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble e = 0.0, v = 0.0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\te += s[i];\n\t\t\t\tv += s[i] * s[i];\n\t\t\t}\n\t\t\te /= n;\n\t\t\tv = v / n - e * e;\n\t\t\tSystem.out.println(Math.sqrt(v));\n\t\t}\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0) break;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble e = 0.0, v = 0.0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\te += s[i];\n\t\t\t\tv += s[i] * s[i];\n\t\t\t}\n\t\t\te /= n;\n\t\t\tv = v / n - e * e;\n\t\t\tSystem.out.println(Math.sqrt(v));\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0) break;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble e = 0.0, v = 0.0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\te += s[i];\n\t\t\t\tv += s[i] * s[i];\n\t\t\t}\n\t\t\te /= n;\n\t\t\tv = v / n - e * e;\n\t\t\tSystem.out.println(Math.sqrt(v));\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0) break;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble e = 0.0, v = 0.0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\te += s[i];\n\t\t\t\tv += s[i] * s[i];\n\t\t\t}\n\t\t\te /= n;\n\t\t\tv = v / n - e * e;\n\t\t\tSystem.out.println(Math.sqrt(v));\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while (true) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0) break;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble e = 0.0, v = 0.0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\te += s[i];\n\t\t\t\tv += s[i] * s[i];\n\t\t\t}\n\t\t\te /= n;\n\t\t\tv = v / n - e * e;\n\t\t\tSystem.out.println(Math.sqrt(v));\n\t\t}",
"true",
"{\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0) break;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble e = 0.0, v = 0.0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\te += s[i];\n\t\t\t\tv += s[i] * s[i];\n\t\t\t}\n\t\t\te /= n;\n\t\t\tv = v / n - e * e;\n\t\t\tSystem.out.println(Math.sqrt(v));\n\t\t}",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (n == 0) break;",
"n == 0",
"n",
"0",
"break;",
"int[] s = new int[n];",
"s",
"new int[n]",
"n",
"double e = 0.0",
"e",
"0.0",
"v = 0.0;",
"v",
"0.0",
"for (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\te += s[i];\n\t\t\t\tv += s[i] * s[i];\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\te += s[i];\n\t\t\t\tv += s[i] * s[i];\n\t\t\t}",
"{\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\te += s[i];\n\t\t\t\tv += s[i] * s[i];\n\t\t\t}",
"s[i] = sc.nextInt()",
"s[i]",
"s",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"e += s[i]",
"e",
"s[i]",
"s",
"i",
"v += s[i] * s[i]",
"v",
"s[i] * s[i]",
"s[i]",
"s",
"i",
"s[i]",
"s",
"i",
"e /= n",
"e",
"n",
"v = v / n - e * e",
"v",
"v / n - e * e",
"v / n",
"v",
"n",
"e * e",
"e",
"e",
"System.out.println(Math.sqrt(v))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.sqrt(v)",
"Math.sqrt",
"Math",
"v",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0) break;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble e = 0.0, v = 0.0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\te += s[i];\n\t\t\t\tv += s[i] * s[i];\n\t\t\t}\n\t\t\te /= n;\n\t\t\tv = v / n - e * e;\n\t\t\tSystem.out.println(Math.sqrt(v));\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif (n == 0) break;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble e = 0.0, v = 0.0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = sc.nextInt();\n\t\t\t\te += s[i];\n\t\t\t\tv += s[i] * s[i];\n\t\t\t}\n\t\t\te /= n;\n\t\t\tv = v / n - e * e;\n\t\t\tSystem.out.println(Math.sqrt(v));\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[] s = new int[n];
double e = 0.0, v = 0.0;
for (int i = 0; i < n; i++) {
s[i] = sc.nextInt();
e += s[i];
v += s[i] * s[i];
}
e /= n;
v = v / n - e * e;
System.out.println(Math.sqrt(v));
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
20,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
20,
13,
41,
13,
17,
0,
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,
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,
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
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
11,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
21,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
36,
38
],
[
28,
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
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
51,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
51,
62
],
[
62,
63
],
[
62,
64
],
[
28,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
28,
70
],
[
70,
71
],
[
70,
72
],
[
28,
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
],
[
28,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
104,
105
],
[
104,
106
],
[
28,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
6,
113
],
[
113,
114
]
] | [
"import java.util.*;\n \nclass Main{\n public static void main(String[] args){\n\t\tint n;\n\t\tdouble avr = 0.0;\n\t\tdouble ans = 0.0;\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile((n = scan.nextInt()) != 0){\n\t\t\tint[] arr = new int[n];\n\t\t\tint sum1 = 0;\n\t\t\tavr = 0.0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tint tmp = scan.nextInt();\n\t\t\t\tarr[i] = tmp;\n\t\t\t\tsum1 += tmp;\n\t\t\t}\n\t\t\tavr = (double)sum1 / n;\n\t\t\tdouble sum2 = 0.0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tsum2 += (arr[i] - avr) * (arr[i] - avr);\n\t\t\t}\n\t\t\tans = Math.sqrt(sum2 / n);\n\t\t\tSystem.out.println(ans);\n\t\t}\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n public static void main(String[] args){\n\t\tint n;\n\t\tdouble avr = 0.0;\n\t\tdouble ans = 0.0;\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile((n = scan.nextInt()) != 0){\n\t\t\tint[] arr = new int[n];\n\t\t\tint sum1 = 0;\n\t\t\tavr = 0.0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tint tmp = scan.nextInt();\n\t\t\t\tarr[i] = tmp;\n\t\t\t\tsum1 += tmp;\n\t\t\t}\n\t\t\tavr = (double)sum1 / n;\n\t\t\tdouble sum2 = 0.0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tsum2 += (arr[i] - avr) * (arr[i] - avr);\n\t\t\t}\n\t\t\tans = Math.sqrt(sum2 / n);\n\t\t\tSystem.out.println(ans);\n\t\t}\n }\n}",
"Main",
"public static void main(String[] args){\n\t\tint n;\n\t\tdouble avr = 0.0;\n\t\tdouble ans = 0.0;\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile((n = scan.nextInt()) != 0){\n\t\t\tint[] arr = new int[n];\n\t\t\tint sum1 = 0;\n\t\t\tavr = 0.0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tint tmp = scan.nextInt();\n\t\t\t\tarr[i] = tmp;\n\t\t\t\tsum1 += tmp;\n\t\t\t}\n\t\t\tavr = (double)sum1 / n;\n\t\t\tdouble sum2 = 0.0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tsum2 += (arr[i] - avr) * (arr[i] - avr);\n\t\t\t}\n\t\t\tans = Math.sqrt(sum2 / n);\n\t\t\tSystem.out.println(ans);\n\t\t}\n }",
"main",
"{\n\t\tint n;\n\t\tdouble avr = 0.0;\n\t\tdouble ans = 0.0;\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile((n = scan.nextInt()) != 0){\n\t\t\tint[] arr = new int[n];\n\t\t\tint sum1 = 0;\n\t\t\tavr = 0.0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tint tmp = scan.nextInt();\n\t\t\t\tarr[i] = tmp;\n\t\t\t\tsum1 += tmp;\n\t\t\t}\n\t\t\tavr = (double)sum1 / n;\n\t\t\tdouble sum2 = 0.0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tsum2 += (arr[i] - avr) * (arr[i] - avr);\n\t\t\t}\n\t\t\tans = Math.sqrt(sum2 / n);\n\t\t\tSystem.out.println(ans);\n\t\t}\n }",
"int n;",
"n",
"double avr = 0.0;",
"avr",
"0.0",
"double ans = 0.0;",
"ans",
"0.0",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"while((n = scan.nextInt()) != 0){\n\t\t\tint[] arr = new int[n];\n\t\t\tint sum1 = 0;\n\t\t\tavr = 0.0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tint tmp = scan.nextInt();\n\t\t\t\tarr[i] = tmp;\n\t\t\t\tsum1 += tmp;\n\t\t\t}\n\t\t\tavr = (double)sum1 / n;\n\t\t\tdouble sum2 = 0.0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tsum2 += (arr[i] - avr) * (arr[i] - avr);\n\t\t\t}\n\t\t\tans = Math.sqrt(sum2 / n);\n\t\t\tSystem.out.println(ans);\n\t\t}",
"(n = scan.nextInt()) != 0",
"(n = scan.nextInt())",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"0",
"{\n\t\t\tint[] arr = new int[n];\n\t\t\tint sum1 = 0;\n\t\t\tavr = 0.0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tint tmp = scan.nextInt();\n\t\t\t\tarr[i] = tmp;\n\t\t\t\tsum1 += tmp;\n\t\t\t}\n\t\t\tavr = (double)sum1 / n;\n\t\t\tdouble sum2 = 0.0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tsum2 += (arr[i] - avr) * (arr[i] - avr);\n\t\t\t}\n\t\t\tans = Math.sqrt(sum2 / n);\n\t\t\tSystem.out.println(ans);\n\t\t}",
"int[] arr = new int[n];",
"arr",
"new int[n]",
"n",
"int sum1 = 0;",
"sum1",
"0",
"avr = 0.0",
"avr",
"0.0",
"for(int i=0; i<n; i++){\n\t\t\t\tint tmp = scan.nextInt();\n\t\t\t\tarr[i] = tmp;\n\t\t\t\tsum1 += tmp;\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tint tmp = scan.nextInt();\n\t\t\t\tarr[i] = tmp;\n\t\t\t\tsum1 += tmp;\n\t\t\t}",
"{\n\t\t\t\tint tmp = scan.nextInt();\n\t\t\t\tarr[i] = tmp;\n\t\t\t\tsum1 += tmp;\n\t\t\t}",
"int tmp = scan.nextInt();",
"tmp",
"scan.nextInt()",
"scan.nextInt",
"scan",
"arr[i] = tmp",
"arr[i]",
"arr",
"i",
"tmp",
"sum1 += tmp",
"sum1",
"tmp",
"avr = (double)sum1 / n",
"avr",
"(double)sum1 / n",
"(double)sum1",
"n",
"double sum2 = 0.0;",
"sum2",
"0.0",
"for(int i=0; i<n; i++){\n\t\t\t\tsum2 += (arr[i] - avr) * (arr[i] - avr);\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tsum2 += (arr[i] - avr) * (arr[i] - avr);\n\t\t\t}",
"{\n\t\t\t\tsum2 += (arr[i] - avr) * (arr[i] - avr);\n\t\t\t}",
"sum2 += (arr[i] - avr) * (arr[i] - avr)",
"sum2",
"(arr[i] - avr) * (arr[i] - avr)",
"(arr[i] - avr)",
"arr[i]",
"arr",
"i",
"avr",
"(arr[i] - avr)",
"arr[i]",
"arr",
"i",
"avr",
"ans = Math.sqrt(sum2 / n)",
"ans",
"Math.sqrt(sum2 / n)",
"Math.sqrt",
"Math",
"sum2 / n",
"sum2",
"n",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args"
] | import java.util.*;
class Main{
public static void main(String[] args){
int n;
double avr = 0.0;
double ans = 0.0;
Scanner scan = new Scanner(System.in);
while((n = scan.nextInt()) != 0){
int[] arr = new int[n];
int sum1 = 0;
avr = 0.0;
for(int i=0; i<n; i++){
int tmp = scan.nextInt();
arr[i] = tmp;
sum1 += tmp;
}
avr = (double)sum1 / n;
double sum2 = 0.0;
for(int i=0; i<n; i++){
sum2 += (arr[i] - avr) * (arr[i] - avr);
}
ans = Math.sqrt(sum2 / n);
System.out.println(ans);
}
}
} |
[
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,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
18,
13,
13,
0,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
2,
18,
13,
13,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
13,
2,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
105,
8
],
[
105,
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
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
47,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
17,
60
],
[
60,
61
],
[
60,
62
],
[
17,
63
],
[
63,
64
],
[
63,
65
],
[
17,
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
],
[
17,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
90,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
99,
100
],
[
99,
101
],
[
9,
102
],
[
102,
103
],
[
0,
104
],
[
104,
105
],
[
104,
106
]
] | [
"import java.util.*;\nimport java.lang.*;\n\n/**\n * StandardDeviation\n */\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while (true) {\n int n = sc.nextInt();\n\n if (n == 0)\n break;\n\n int list[] = new int[n];\n double sum = 0;\n for (int i = 0; i < n; i++) {\n list[i] = sc.nextInt();\n sum += list[i];\n }\n\n sum /= n;\n double ans = 0;\n for (int i = 0; i < n; i++) {\n ans += Math.pow((list[i] - sum), 2);\n }\n\n System.out.printf(\"%.8f\\n\", Math.sqrt((double) ans / n));\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while (true) {\n int n = sc.nextInt();\n\n if (n == 0)\n break;\n\n int list[] = new int[n];\n double sum = 0;\n for (int i = 0; i < n; i++) {\n list[i] = sc.nextInt();\n sum += list[i];\n }\n\n sum /= n;\n double ans = 0;\n for (int i = 0; i < n; i++) {\n ans += Math.pow((list[i] - sum), 2);\n }\n\n System.out.printf(\"%.8f\\n\", Math.sqrt((double) ans / 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\n if (n == 0)\n break;\n\n int list[] = new int[n];\n double sum = 0;\n for (int i = 0; i < n; i++) {\n list[i] = sc.nextInt();\n sum += list[i];\n }\n\n sum /= n;\n double ans = 0;\n for (int i = 0; i < n; i++) {\n ans += Math.pow((list[i] - sum), 2);\n }\n\n System.out.printf(\"%.8f\\n\", Math.sqrt((double) ans / n));\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n while (true) {\n int n = sc.nextInt();\n\n if (n == 0)\n break;\n\n int list[] = new int[n];\n double sum = 0;\n for (int i = 0; i < n; i++) {\n list[i] = sc.nextInt();\n sum += list[i];\n }\n\n sum /= n;\n double ans = 0;\n for (int i = 0; i < n; i++) {\n ans += Math.pow((list[i] - sum), 2);\n }\n\n System.out.printf(\"%.8f\\n\", Math.sqrt((double) ans / n));\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while (true) {\n int n = sc.nextInt();\n\n if (n == 0)\n break;\n\n int list[] = new int[n];\n double sum = 0;\n for (int i = 0; i < n; i++) {\n list[i] = sc.nextInt();\n sum += list[i];\n }\n\n sum /= n;\n double ans = 0;\n for (int i = 0; i < n; i++) {\n ans += Math.pow((list[i] - sum), 2);\n }\n\n System.out.printf(\"%.8f\\n\", Math.sqrt((double) ans / n));\n }",
"true",
"{\n int n = sc.nextInt();\n\n if (n == 0)\n break;\n\n int list[] = new int[n];\n double sum = 0;\n for (int i = 0; i < n; i++) {\n list[i] = sc.nextInt();\n sum += list[i];\n }\n\n sum /= n;\n double ans = 0;\n for (int i = 0; i < n; i++) {\n ans += Math.pow((list[i] - sum), 2);\n }\n\n System.out.printf(\"%.8f\\n\", Math.sqrt((double) ans / n));\n }",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (n == 0)\n break;",
"n == 0",
"n",
"0",
"break;",
"int list[] = new int[n];",
"list",
"new int[n]",
"n",
"double sum = 0;",
"sum",
"0",
"for (int i = 0; i < n; i++) {\n list[i] = sc.nextInt();\n sum += list[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n list[i] = sc.nextInt();\n sum += list[i];\n }",
"{\n list[i] = sc.nextInt();\n sum += list[i];\n }",
"list[i] = sc.nextInt()",
"list[i]",
"list",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sum += list[i]",
"sum",
"list[i]",
"list",
"i",
"sum /= n",
"sum",
"n",
"double ans = 0;",
"ans",
"0",
"for (int i = 0; i < n; i++) {\n ans += Math.pow((list[i] - sum), 2);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n ans += Math.pow((list[i] - sum), 2);\n }",
"{\n ans += Math.pow((list[i] - sum), 2);\n }",
"ans += Math.pow((list[i] - sum), 2)",
"ans",
"Math.pow((list[i] - sum), 2)",
"Math.pow",
"Math",
"(list[i] - sum)",
"list[i]",
"list",
"i",
"sum",
"2",
"System.out.printf(\"%.8f\\n\", Math.sqrt((double) ans / n))",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%.8f\\n\"",
"Math.sqrt((double) ans / n)",
"Math.sqrt",
"Math",
"(double) ans / n",
"(double) ans",
"n",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while (true) {\n int n = sc.nextInt();\n\n if (n == 0)\n break;\n\n int list[] = new int[n];\n double sum = 0;\n for (int i = 0; i < n; i++) {\n list[i] = sc.nextInt();\n sum += list[i];\n }\n\n sum /= n;\n double ans = 0;\n for (int i = 0; i < n; i++) {\n ans += Math.pow((list[i] - sum), 2);\n }\n\n System.out.printf(\"%.8f\\n\", Math.sqrt((double) ans / n));\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while (true) {\n int n = sc.nextInt();\n\n if (n == 0)\n break;\n\n int list[] = new int[n];\n double sum = 0;\n for (int i = 0; i < n; i++) {\n list[i] = sc.nextInt();\n sum += list[i];\n }\n\n sum /= n;\n double ans = 0;\n for (int i = 0; i < n; i++) {\n ans += Math.pow((list[i] - sum), 2);\n }\n\n System.out.printf(\"%.8f\\n\", Math.sqrt((double) ans / n));\n }\n }\n}",
"Main"
] | import java.util.*;
import java.lang.*;
/**
* StandardDeviation
*/
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 list[] = new int[n];
double sum = 0;
for (int i = 0; i < n; i++) {
list[i] = sc.nextInt();
sum += list[i];
}
sum /= n;
double ans = 0;
for (int i = 0; i < n; i++) {
ans += Math.pow((list[i] - sum), 2);
}
System.out.printf("%.8f\n", Math.sqrt((double) ans / 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,
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,
18,
13,
13,
18,
13,
13,
0,
13,
2,
13,
13,
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
],
[
121,
5
],
[
121,
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
],
[
80,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
92,
94
],
[
16,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
97,
99
],
[
16,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
106,
107
],
[
106,
108
],
[
16,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
6,
118
],
[
118,
119
],
[
0,
120
],
[
120,
121
],
[
120,
122
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n \n try(Scanner scanner = new Scanner(System.in);){\n \n\n while(true){\n int n = scanner.nextInt();\n if(n == 0){\n break;\n }\n\n int[] scores = new int[n];\n\n for(int i=0; i<scores.length; i++){\n scores[i] = scanner.nextInt(); \n }\n\n int sum1 = 0, sum2 = 0;\n double average = 0, variance = 0;\n for(int j=0; j<scores.length; j++){\n sum1 += scores[j];\n sum2 += scores[j] * scores[j];\n } \n average = (double)sum1 / n;\n variance = (double)sum2 / n - average * average;\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 \n try(Scanner scanner = new Scanner(System.in);){\n \n\n while(true){\n int n = scanner.nextInt();\n if(n == 0){\n break;\n }\n\n int[] scores = new int[n];\n\n for(int i=0; i<scores.length; i++){\n scores[i] = scanner.nextInt(); \n }\n\n int sum1 = 0, sum2 = 0;\n double average = 0, variance = 0;\n for(int j=0; j<scores.length; j++){\n sum1 += scores[j];\n sum2 += scores[j] * scores[j];\n } \n average = (double)sum1 / n;\n variance = (double)sum2 / n - average * average;\n \n System.out.println(Math.sqrt(variance));\n }\n }\n }\n}",
"Main",
"public static void main(String[] args){\n \n try(Scanner scanner = new Scanner(System.in);){\n \n\n while(true){\n int n = scanner.nextInt();\n if(n == 0){\n break;\n }\n\n int[] scores = new int[n];\n\n for(int i=0; i<scores.length; i++){\n scores[i] = scanner.nextInt(); \n }\n\n int sum1 = 0, sum2 = 0;\n double average = 0, variance = 0;\n for(int j=0; j<scores.length; j++){\n sum1 += scores[j];\n sum2 += scores[j] * scores[j];\n } \n average = (double)sum1 / n;\n variance = (double)sum2 / n - average * average;\n \n System.out.println(Math.sqrt(variance));\n }\n }\n }",
"main",
"{\n \n try(Scanner scanner = new Scanner(System.in);){\n \n\n while(true){\n int n = scanner.nextInt();\n if(n == 0){\n break;\n }\n\n int[] scores = new int[n];\n\n for(int i=0; i<scores.length; i++){\n scores[i] = scanner.nextInt(); \n }\n\n int sum1 = 0, sum2 = 0;\n double average = 0, variance = 0;\n for(int j=0; j<scores.length; j++){\n sum1 += scores[j];\n sum2 += scores[j] * scores[j];\n } \n average = (double)sum1 / n;\n variance = (double)sum2 / n - average * average;\n \n System.out.println(Math.sqrt(variance));\n }\n }\n }",
"try(Scanner scanner = new Scanner(System.in);){\n \n\n while(true){\n int n = scanner.nextInt();\n if(n == 0){\n break;\n }\n\n int[] scores = new int[n];\n\n for(int i=0; i<scores.length; i++){\n scores[i] = scanner.nextInt(); \n }\n\n int sum1 = 0, sum2 = 0;\n double average = 0, variance = 0;\n for(int j=0; j<scores.length; j++){\n sum1 += scores[j];\n sum2 += scores[j] * scores[j];\n } \n average = (double)sum1 / n;\n variance = (double)sum2 / n - average * average;\n \n System.out.println(Math.sqrt(variance));\n }\n }",
"{\n \n\n while(true){\n int n = scanner.nextInt();\n if(n == 0){\n break;\n }\n\n int[] scores = new int[n];\n\n for(int i=0; i<scores.length; i++){\n scores[i] = scanner.nextInt(); \n }\n\n int sum1 = 0, sum2 = 0;\n double average = 0, variance = 0;\n for(int j=0; j<scores.length; j++){\n sum1 += scores[j];\n sum2 += scores[j] * scores[j];\n } \n average = (double)sum1 / n;\n variance = (double)sum2 / n - average * average;\n \n System.out.println(Math.sqrt(variance));\n }\n }",
"Scanner scanner = new Scanner(System.in)",
"Scanner scanner = new Scanner(System.in)",
"new Scanner(System.in)",
"while(true){\n int n = scanner.nextInt();\n if(n == 0){\n break;\n }\n\n int[] scores = new int[n];\n\n for(int i=0; i<scores.length; i++){\n scores[i] = scanner.nextInt(); \n }\n\n int sum1 = 0, sum2 = 0;\n double average = 0, variance = 0;\n for(int j=0; j<scores.length; j++){\n sum1 += scores[j];\n sum2 += scores[j] * scores[j];\n } \n average = (double)sum1 / n;\n variance = (double)sum2 / n - average * average;\n \n System.out.println(Math.sqrt(variance));\n }",
"true",
"{\n int n = scanner.nextInt();\n if(n == 0){\n break;\n }\n\n int[] scores = new int[n];\n\n for(int i=0; i<scores.length; i++){\n scores[i] = scanner.nextInt(); \n }\n\n int sum1 = 0, sum2 = 0;\n double average = 0, variance = 0;\n for(int j=0; j<scores.length; j++){\n sum1 += scores[j];\n sum2 += scores[j] * scores[j];\n } \n average = (double)sum1 / n;\n variance = (double)sum2 / n - average * average;\n \n System.out.println(Math.sqrt(variance));\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[] scores = new int[n];",
"scores",
"new int[n]",
"n",
"for(int i=0; i<scores.length; i++){\n scores[i] = scanner.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] = scanner.nextInt(); \n }",
"{\n scores[i] = scanner.nextInt(); \n }",
"scores[i] = scanner.nextInt()",
"scores[i]",
"scores",
"i",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int sum1 = 0",
"sum1",
"0",
"sum2 = 0;",
"sum2",
"0",
"double average = 0",
"average",
"0",
"variance = 0;",
"variance",
"0",
"for(int j=0; j<scores.length; j++){\n sum1 += scores[j];\n sum2 += scores[j] * scores[j];\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<scores.length",
"j",
"scores.length",
"scores",
"scores.length",
"j++",
"j++",
"j",
"{\n sum1 += scores[j];\n sum2 += scores[j] * scores[j];\n }",
"{\n sum1 += scores[j];\n sum2 += scores[j] * scores[j];\n }",
"sum1 += scores[j]",
"sum1",
"scores[j]",
"scores",
"j",
"sum2 += scores[j] * scores[j]",
"sum2",
"scores[j] * scores[j]",
"scores[j]",
"scores",
"j",
"scores[j]",
"scores",
"j",
"average = (double)sum1 / n",
"average",
"(double)sum1 / n",
"(double)sum1",
"n",
"variance = (double)sum2 / n - average * average",
"variance",
"(double)sum2 / n - average * average",
"(double)sum2 / n",
"(double)sum2",
"n",
"average * average",
"average",
"average",
"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 \n try(Scanner scanner = new Scanner(System.in);){\n \n\n while(true){\n int n = scanner.nextInt();\n if(n == 0){\n break;\n }\n\n int[] scores = new int[n];\n\n for(int i=0; i<scores.length; i++){\n scores[i] = scanner.nextInt(); \n }\n\n int sum1 = 0, sum2 = 0;\n double average = 0, variance = 0;\n for(int j=0; j<scores.length; j++){\n sum1 += scores[j];\n sum2 += scores[j] * scores[j];\n } \n average = (double)sum1 / n;\n variance = (double)sum2 / n - average * average;\n \n System.out.println(Math.sqrt(variance));\n }\n }\n }\n}",
"public class Main{\n public static void main(String[] args){\n \n try(Scanner scanner = new Scanner(System.in);){\n \n\n while(true){\n int n = scanner.nextInt();\n if(n == 0){\n break;\n }\n\n int[] scores = new int[n];\n\n for(int i=0; i<scores.length; i++){\n scores[i] = scanner.nextInt(); \n }\n\n int sum1 = 0, sum2 = 0;\n double average = 0, variance = 0;\n for(int j=0; j<scores.length; j++){\n sum1 += scores[j];\n sum2 += scores[j] * scores[j];\n } \n average = (double)sum1 / n;\n variance = (double)sum2 / n - average * average;\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 scanner = new Scanner(System.in);){
while(true){
int n = scanner.nextInt();
if(n == 0){
break;
}
int[] scores = new int[n];
for(int i=0; i<scores.length; i++){
scores[i] = scanner.nextInt();
}
int sum1 = 0, sum2 = 0;
double average = 0, variance = 0;
for(int j=0; j<scores.length; j++){
sum1 += scores[j];
sum2 += scores[j] * scores[j];
}
average = (double)sum1 / n;
variance = (double)sum2 / n - average * average;
System.out.println(Math.sqrt(variance));
}
}
}
}
|
[
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,
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,
41,
13,
17,
41,
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
],
[
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
],
[
26,
27
],
[
16,
28
],
[
28,
29
],
[
28,
30
],
[
16,
32
],
[
32,
33
],
[
32,
34
],
[
16,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
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
],
[
16,
60
],
[
60,
61
],
[
16,
62
],
[
62,
63
],
[
62,
64
],
[
16,
65
],
[
65,
66
],
[
16,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
69,
71
],
[
16,
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
],
[
16,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
101,
102
],
[
101,
103
],
[
16,
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;\n while(true){\n n = sc.nextInt();\n if(n == 0){\n break;\n }\n\n int[] score = new int[n];\n int sum_1=0;\n for(int i=0;i<n;i++){\n score[i] = sc.nextInt();\n sum_1 += score[i];\n }\n\n \n double ave,sum_2=0,sd;\n ave = (double)sum_1/n;\n for(int i=0;i<n;i++){\n sum_2 += Math.pow((score[i]-ave),2);\n }\n sd = Math.sqrt((double)sum_2/n);\n System.out.printf(\"%.5f\\n\",sd);\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 while(true){\n n = sc.nextInt();\n if(n == 0){\n break;\n }\n\n int[] score = new int[n];\n int sum_1=0;\n for(int i=0;i<n;i++){\n score[i] = sc.nextInt();\n sum_1 += score[i];\n }\n\n \n double ave,sum_2=0,sd;\n ave = (double)sum_1/n;\n for(int i=0;i<n;i++){\n sum_2 += Math.pow((score[i]-ave),2);\n }\n sd = Math.sqrt((double)sum_2/n);\n System.out.printf(\"%.5f\\n\",sd);\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){\n break;\n }\n\n int[] score = new int[n];\n int sum_1=0;\n for(int i=0;i<n;i++){\n score[i] = sc.nextInt();\n sum_1 += score[i];\n }\n\n \n double ave,sum_2=0,sd;\n ave = (double)sum_1/n;\n for(int i=0;i<n;i++){\n sum_2 += Math.pow((score[i]-ave),2);\n }\n sd = Math.sqrt((double)sum_2/n);\n System.out.printf(\"%.5f\\n\",sd);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n;\n while(true){\n n = sc.nextInt();\n if(n == 0){\n break;\n }\n\n int[] score = new int[n];\n int sum_1=0;\n for(int i=0;i<n;i++){\n score[i] = sc.nextInt();\n sum_1 += score[i];\n }\n\n \n double ave,sum_2=0,sd;\n ave = (double)sum_1/n;\n for(int i=0;i<n;i++){\n sum_2 += Math.pow((score[i]-ave),2);\n }\n sd = Math.sqrt((double)sum_2/n);\n System.out.printf(\"%.5f\\n\",sd);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n;",
"n",
"while(true){\n n = sc.nextInt();\n if(n == 0){\n break;\n }\n\n int[] score = new int[n];\n int sum_1=0;\n for(int i=0;i<n;i++){\n score[i] = sc.nextInt();\n sum_1 += score[i];\n }\n\n \n double ave,sum_2=0,sd;\n ave = (double)sum_1/n;\n for(int i=0;i<n;i++){\n sum_2 += Math.pow((score[i]-ave),2);\n }\n sd = Math.sqrt((double)sum_2/n);\n System.out.printf(\"%.5f\\n\",sd);\n }",
"true",
"{\n n = sc.nextInt();\n if(n == 0){\n break;\n }\n\n int[] score = new int[n];\n int sum_1=0;\n for(int i=0;i<n;i++){\n score[i] = sc.nextInt();\n sum_1 += score[i];\n }\n\n \n double ave,sum_2=0,sd;\n ave = (double)sum_1/n;\n for(int i=0;i<n;i++){\n sum_2 += Math.pow((score[i]-ave),2);\n }\n sd = Math.sqrt((double)sum_2/n);\n System.out.printf(\"%.5f\\n\",sd);\n }",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(n == 0){\n break;\n }",
"n == 0",
"n",
"0",
"{\n break;\n }",
"break;",
"int[] score = new int[n];",
"score",
"new int[n]",
"n",
"int sum_1=0;",
"sum_1",
"0",
"for(int i=0;i<n;i++){\n score[i] = sc.nextInt();\n sum_1 += score[i];\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n score[i] = sc.nextInt();\n sum_1 += score[i];\n }",
"{\n score[i] = sc.nextInt();\n sum_1 += score[i];\n }",
"score[i] = sc.nextInt()",
"score[i]",
"score",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sum_1 += score[i]",
"sum_1",
"score[i]",
"score",
"i",
"double ave",
"ave",
"sum_2=0",
"sum_2",
"0",
"sd;",
"sd",
"ave = (double)sum_1/n",
"ave",
"(double)sum_1/n",
"(double)sum_1",
"n",
"for(int i=0;i<n;i++){\n sum_2 += Math.pow((score[i]-ave),2);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n sum_2 += Math.pow((score[i]-ave),2);\n }",
"{\n sum_2 += Math.pow((score[i]-ave),2);\n }",
"sum_2 += Math.pow((score[i]-ave),2)",
"sum_2",
"Math.pow((score[i]-ave),2)",
"Math.pow",
"Math",
"(score[i]-ave)",
"score[i]",
"score",
"i",
"ave",
"2",
"sd = Math.sqrt((double)sum_2/n)",
"sd",
"Math.sqrt((double)sum_2/n)",
"Math.sqrt",
"Math",
"(double)sum_2/n",
"(double)sum_2",
"n",
"System.out.printf(\"%.5f\\n\",sd)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%.5f\\n\"",
"sd",
"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){\n break;\n }\n\n int[] score = new int[n];\n int sum_1=0;\n for(int i=0;i<n;i++){\n score[i] = sc.nextInt();\n sum_1 += score[i];\n }\n\n \n double ave,sum_2=0,sd;\n ave = (double)sum_1/n;\n for(int i=0;i<n;i++){\n sum_2 += Math.pow((score[i]-ave),2);\n }\n sd = Math.sqrt((double)sum_2/n);\n System.out.printf(\"%.5f\\n\",sd);\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){\n break;\n }\n\n int[] score = new int[n];\n int sum_1=0;\n for(int i=0;i<n;i++){\n score[i] = sc.nextInt();\n sum_1 += score[i];\n }\n\n \n double ave,sum_2=0,sd;\n ave = (double)sum_1/n;\n for(int i=0;i<n;i++){\n sum_2 += Math.pow((score[i]-ave),2);\n }\n sd = Math.sqrt((double)sum_2/n);\n System.out.printf(\"%.5f\\n\",sd);\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[] score = new int[n];
int sum_1=0;
for(int i=0;i<n;i++){
score[i] = sc.nextInt();
sum_1 += score[i];
}
double ave,sum_2=0,sd;
ave = (double)sum_1/n;
for(int i=0;i<n;i++){
sum_2 += Math.pow((score[i]-ave),2);
}
sd = Math.sqrt((double)sum_2/n);
System.out.printf("%.5f\n",sd);
}
}
}
|
[
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,
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,
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,
2,
2,
18,
13,
13,
13,
2,
18,
13,
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
],
[
128,
5
],
[
128,
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
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
50,
51
],
[
16,
52
],
[
52,
53
],
[
52,
54
],
[
16,
55
],
[
55,
56
],
[
55,
57
],
[
16,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
58,
69
],
[
70,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
75,
77
],
[
16,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
80,
82
],
[
16,
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
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
99,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
98,
110
],
[
16,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
113,
115
],
[
16,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
121,
122
],
[
122,
123
],
[
121,
124
],
[
6,
125
],
[
125,
126
],
[
0,
127
],
[
127,
128
],
[
127,
129
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[]args){\n \n try(Scanner sc = new Scanner(System.in)){\n while(true){\n int n = sc.nextInt();\n if(n == 0){\n\tbreak;\n }\n\tint[]score = new int[n];\n\tfor(int i = 0;i < n;i++){\n\tscore[i] = sc.nextInt();\n\t}\n\tdouble average = 0,variance = 0;\n\tfor(int i = 0;i < n;i++){\n\taverage = average+score[i];\n\t}\n\taverage = average/n;\n\tfor(int i = 0;i < n;i++){\n\tvariance = (score[i]-average)*(score[i]-average)+variance;\n\t}\n\tvariance = variance/n;\n\tSystem.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 \n try(Scanner sc = new Scanner(System.in)){\n while(true){\n int n = sc.nextInt();\n if(n == 0){\n\tbreak;\n }\n\tint[]score = new int[n];\n\tfor(int i = 0;i < n;i++){\n\tscore[i] = sc.nextInt();\n\t}\n\tdouble average = 0,variance = 0;\n\tfor(int i = 0;i < n;i++){\n\taverage = average+score[i];\n\t}\n\taverage = average/n;\n\tfor(int i = 0;i < n;i++){\n\tvariance = (score[i]-average)*(score[i]-average)+variance;\n\t}\n\tvariance = variance/n;\n\tSystem.out.println(Math.sqrt(variance));\n } \n }\n }\n}",
"Main",
"public static void main(String[]args){\n \n try(Scanner sc = new Scanner(System.in)){\n while(true){\n int n = sc.nextInt();\n if(n == 0){\n\tbreak;\n }\n\tint[]score = new int[n];\n\tfor(int i = 0;i < n;i++){\n\tscore[i] = sc.nextInt();\n\t}\n\tdouble average = 0,variance = 0;\n\tfor(int i = 0;i < n;i++){\n\taverage = average+score[i];\n\t}\n\taverage = average/n;\n\tfor(int i = 0;i < n;i++){\n\tvariance = (score[i]-average)*(score[i]-average)+variance;\n\t}\n\tvariance = variance/n;\n\tSystem.out.println(Math.sqrt(variance));\n } \n }\n }",
"main",
"{\n \n try(Scanner sc = new Scanner(System.in)){\n while(true){\n int n = sc.nextInt();\n if(n == 0){\n\tbreak;\n }\n\tint[]score = new int[n];\n\tfor(int i = 0;i < n;i++){\n\tscore[i] = sc.nextInt();\n\t}\n\tdouble average = 0,variance = 0;\n\tfor(int i = 0;i < n;i++){\n\taverage = average+score[i];\n\t}\n\taverage = average/n;\n\tfor(int i = 0;i < n;i++){\n\tvariance = (score[i]-average)*(score[i]-average)+variance;\n\t}\n\tvariance = variance/n;\n\tSystem.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\tbreak;\n }\n\tint[]score = new int[n];\n\tfor(int i = 0;i < n;i++){\n\tscore[i] = sc.nextInt();\n\t}\n\tdouble average = 0,variance = 0;\n\tfor(int i = 0;i < n;i++){\n\taverage = average+score[i];\n\t}\n\taverage = average/n;\n\tfor(int i = 0;i < n;i++){\n\tvariance = (score[i]-average)*(score[i]-average)+variance;\n\t}\n\tvariance = variance/n;\n\tSystem.out.println(Math.sqrt(variance));\n } \n }",
"{\n while(true){\n int n = sc.nextInt();\n if(n == 0){\n\tbreak;\n }\n\tint[]score = new int[n];\n\tfor(int i = 0;i < n;i++){\n\tscore[i] = sc.nextInt();\n\t}\n\tdouble average = 0,variance = 0;\n\tfor(int i = 0;i < n;i++){\n\taverage = average+score[i];\n\t}\n\taverage = average/n;\n\tfor(int i = 0;i < n;i++){\n\tvariance = (score[i]-average)*(score[i]-average)+variance;\n\t}\n\tvariance = variance/n;\n\tSystem.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\tbreak;\n }\n\tint[]score = new int[n];\n\tfor(int i = 0;i < n;i++){\n\tscore[i] = sc.nextInt();\n\t}\n\tdouble average = 0,variance = 0;\n\tfor(int i = 0;i < n;i++){\n\taverage = average+score[i];\n\t}\n\taverage = average/n;\n\tfor(int i = 0;i < n;i++){\n\tvariance = (score[i]-average)*(score[i]-average)+variance;\n\t}\n\tvariance = variance/n;\n\tSystem.out.println(Math.sqrt(variance));\n }",
"true",
"{\n int n = sc.nextInt();\n if(n == 0){\n\tbreak;\n }\n\tint[]score = new int[n];\n\tfor(int i = 0;i < n;i++){\n\tscore[i] = sc.nextInt();\n\t}\n\tdouble average = 0,variance = 0;\n\tfor(int i = 0;i < n;i++){\n\taverage = average+score[i];\n\t}\n\taverage = average/n;\n\tfor(int i = 0;i < n;i++){\n\tvariance = (score[i]-average)*(score[i]-average)+variance;\n\t}\n\tvariance = variance/n;\n\tSystem.out.println(Math.sqrt(variance));\n }",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(n == 0){\n\tbreak;\n }",
"n == 0",
"n",
"0",
"{\n\tbreak;\n }",
"break;",
"int[]score = new int[n];",
"score",
"new int[n]",
"n",
"for(int i = 0;i < n;i++){\n\tscore[i] = sc.nextInt();\n\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\tscore[i] = sc.nextInt();\n\t}",
"{\n\tscore[i] = sc.nextInt();\n\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 < n;i++){\n\taverage = average+score[i];\n\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\taverage = average+score[i];\n\t}",
"{\n\taverage = average+score[i];\n\t}",
"average = average+score[i]",
"average",
"average+score[i]",
"average",
"score[i]",
"score",
"i",
"average = average/n",
"average",
"average/n",
"average",
"n",
"for(int i = 0;i < n;i++){\n\tvariance = (score[i]-average)*(score[i]-average)+variance;\n\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\tvariance = (score[i]-average)*(score[i]-average)+variance;\n\t}",
"{\n\tvariance = (score[i]-average)*(score[i]-average)+variance;\n\t}",
"variance = (score[i]-average)*(score[i]-average)+variance",
"variance",
"(score[i]-average)*(score[i]-average)+variance",
"(score[i]-average)*(score[i]-average)",
"(score[i]-average)",
"score[i]",
"score",
"i",
"average",
"(score[i]-average)",
"score[i]",
"score",
"i",
"average",
"variance",
"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 \n try(Scanner sc = new Scanner(System.in)){\n while(true){\n int n = sc.nextInt();\n if(n == 0){\n\tbreak;\n }\n\tint[]score = new int[n];\n\tfor(int i = 0;i < n;i++){\n\tscore[i] = sc.nextInt();\n\t}\n\tdouble average = 0,variance = 0;\n\tfor(int i = 0;i < n;i++){\n\taverage = average+score[i];\n\t}\n\taverage = average/n;\n\tfor(int i = 0;i < n;i++){\n\tvariance = (score[i]-average)*(score[i]-average)+variance;\n\t}\n\tvariance = variance/n;\n\tSystem.out.println(Math.sqrt(variance));\n } \n }\n }\n}",
"public class Main{\n public static void main(String[]args){\n \n try(Scanner sc = new Scanner(System.in)){\n while(true){\n int n = sc.nextInt();\n if(n == 0){\n\tbreak;\n }\n\tint[]score = new int[n];\n\tfor(int i = 0;i < n;i++){\n\tscore[i] = sc.nextInt();\n\t}\n\tdouble average = 0,variance = 0;\n\tfor(int i = 0;i < n;i++){\n\taverage = average+score[i];\n\t}\n\taverage = average/n;\n\tfor(int i = 0;i < n;i++){\n\tvariance = (score[i]-average)*(score[i]-average)+variance;\n\t}\n\tvariance = variance/n;\n\tSystem.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[]score = new int[n];
for(int i = 0;i < n;i++){
score[i] = sc.nextInt();
}
double average = 0,variance = 0;
for(int i = 0;i < n;i++){
average = average+score[i];
}
average = average/n;
for(int i = 0;i < n;i++){
variance = (score[i]-average)*(score[i]-average)+variance;
}
variance = variance/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,
4,
18,
13,
41,
13,
4,
18,
13,
13,
42,
2,
13,
17,
30,
41,
13,
17,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
17,
41,
13,
20,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
0,
13,
18,
13,
13,
41,
13,
2,
13,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
0,
13,
4,
13,
2,
18,
13,
13,
13,
17,
41,
13,
2,
13,
18,
13,
13,
41,
13,
4,
13,
13,
4,
18,
18,
13,
13,
17,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
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
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
14,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
33,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
44,
48
],
[
33,
49
],
[
49,
50
],
[
49,
51
],
[
52,
53
],
[
52,
54
],
[
33,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
55,
65
],
[
65,
66
],
[
66,
67
],
[
55,
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
],
[
33,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
89,
91
],
[
33,
92
],
[
92,
93
],
[
92,
94
],
[
33,
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
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
111,
118
],
[
33,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
123,
125
],
[
33,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
128,
130
],
[
33,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
131,
137
],
[
33,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
33,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
145,
148
],
[
12,
149
],
[
149,
150
]
] | [
"import java.util.Scanner;\n\nimport static java.lang.Math.pow;\nimport static java.lang.Math.sqrt;\n\nclass Main{\n \n public static void main(String[] arg){\n\n Scanner in = new Scanner(System.in);\n\n String input = in.nextLine();\n\n int cnt = Integer.parseInt(input);\n\n while(cnt != 0){\n double sum = 0.0;\n input = in.nextLine();\n String [] param_line = input.split(\" \", 0);\n int [] points = new int[param_line.length];\n for(int i=0; i<points.length; i++){\n points[i] = Integer.parseInt(param_line[i]);\n sum += points[i];\n }\n\n double avg = sum/points.length;\n double tmp = 0;\n for(int i=0; i<points.length; i++)\n tmp += pow(points[i]-avg,2);\n\n double bunsan = tmp/points.length;\n double hyohen = sqrt(bunsan);\n\n System.out.printf(\"%.8f\\n\",hyohen);\n\n input = in.nextLine();\n cnt = Integer.parseInt(input);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import static java.lang.Math.pow;",
"import static java.lang.Math.pow;",
"import static java.lang.Math.pow;",
"import static java.lang.Math.sqrt;",
"import static java.lang.Math.sqrt;",
"import static java.lang.Math.sqrt;",
"class Main{\n \n public static void main(String[] arg){\n\n Scanner in = new Scanner(System.in);\n\n String input = in.nextLine();\n\n int cnt = Integer.parseInt(input);\n\n while(cnt != 0){\n double sum = 0.0;\n input = in.nextLine();\n String [] param_line = input.split(\" \", 0);\n int [] points = new int[param_line.length];\n for(int i=0; i<points.length; i++){\n points[i] = Integer.parseInt(param_line[i]);\n sum += points[i];\n }\n\n double avg = sum/points.length;\n double tmp = 0;\n for(int i=0; i<points.length; i++)\n tmp += pow(points[i]-avg,2);\n\n double bunsan = tmp/points.length;\n double hyohen = sqrt(bunsan);\n\n System.out.printf(\"%.8f\\n\",hyohen);\n\n input = in.nextLine();\n cnt = Integer.parseInt(input);\n }\n }\n}",
"Main",
"public static void main(String[] arg){\n\n Scanner in = new Scanner(System.in);\n\n String input = in.nextLine();\n\n int cnt = Integer.parseInt(input);\n\n while(cnt != 0){\n double sum = 0.0;\n input = in.nextLine();\n String [] param_line = input.split(\" \", 0);\n int [] points = new int[param_line.length];\n for(int i=0; i<points.length; i++){\n points[i] = Integer.parseInt(param_line[i]);\n sum += points[i];\n }\n\n double avg = sum/points.length;\n double tmp = 0;\n for(int i=0; i<points.length; i++)\n tmp += pow(points[i]-avg,2);\n\n double bunsan = tmp/points.length;\n double hyohen = sqrt(bunsan);\n\n System.out.printf(\"%.8f\\n\",hyohen);\n\n input = in.nextLine();\n cnt = Integer.parseInt(input);\n }\n }",
"main",
"{\n\n Scanner in = new Scanner(System.in);\n\n String input = in.nextLine();\n\n int cnt = Integer.parseInt(input);\n\n while(cnt != 0){\n double sum = 0.0;\n input = in.nextLine();\n String [] param_line = input.split(\" \", 0);\n int [] points = new int[param_line.length];\n for(int i=0; i<points.length; i++){\n points[i] = Integer.parseInt(param_line[i]);\n sum += points[i];\n }\n\n double avg = sum/points.length;\n double tmp = 0;\n for(int i=0; i<points.length; i++)\n tmp += pow(points[i]-avg,2);\n\n double bunsan = tmp/points.length;\n double hyohen = sqrt(bunsan);\n\n System.out.printf(\"%.8f\\n\",hyohen);\n\n input = in.nextLine();\n cnt = Integer.parseInt(input);\n }\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"String input = in.nextLine();",
"input",
"in.nextLine()",
"in.nextLine",
"in",
"int cnt = Integer.parseInt(input);",
"cnt",
"Integer.parseInt(input)",
"Integer.parseInt",
"Integer",
"input",
"while(cnt != 0){\n double sum = 0.0;\n input = in.nextLine();\n String [] param_line = input.split(\" \", 0);\n int [] points = new int[param_line.length];\n for(int i=0; i<points.length; i++){\n points[i] = Integer.parseInt(param_line[i]);\n sum += points[i];\n }\n\n double avg = sum/points.length;\n double tmp = 0;\n for(int i=0; i<points.length; i++)\n tmp += pow(points[i]-avg,2);\n\n double bunsan = tmp/points.length;\n double hyohen = sqrt(bunsan);\n\n System.out.printf(\"%.8f\\n\",hyohen);\n\n input = in.nextLine();\n cnt = Integer.parseInt(input);\n }",
"cnt != 0",
"cnt",
"0",
"{\n double sum = 0.0;\n input = in.nextLine();\n String [] param_line = input.split(\" \", 0);\n int [] points = new int[param_line.length];\n for(int i=0; i<points.length; i++){\n points[i] = Integer.parseInt(param_line[i]);\n sum += points[i];\n }\n\n double avg = sum/points.length;\n double tmp = 0;\n for(int i=0; i<points.length; i++)\n tmp += pow(points[i]-avg,2);\n\n double bunsan = tmp/points.length;\n double hyohen = sqrt(bunsan);\n\n System.out.printf(\"%.8f\\n\",hyohen);\n\n input = in.nextLine();\n cnt = Integer.parseInt(input);\n }",
"double sum = 0.0;",
"sum",
"0.0",
"input = in.nextLine()",
"input",
"in.nextLine()",
"in.nextLine",
"in",
"String [] param_line = input.split(\" \", 0);",
"param_line",
"input.split(\" \", 0)",
"input.split",
"input",
"\" \"",
"0",
"int [] points = new int[param_line.length];",
"points",
"new int[param_line.length]",
"param_line.length",
"param_line",
"param_line.length",
"for(int i=0; i<points.length; i++){\n points[i] = Integer.parseInt(param_line[i]);\n sum += points[i];\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<points.length",
"i",
"points.length",
"points",
"points.length",
"i++",
"i++",
"i",
"{\n points[i] = Integer.parseInt(param_line[i]);\n sum += points[i];\n }",
"{\n points[i] = Integer.parseInt(param_line[i]);\n sum += points[i];\n }",
"points[i] = Integer.parseInt(param_line[i])",
"points[i]",
"points",
"i",
"Integer.parseInt(param_line[i])",
"Integer.parseInt",
"Integer",
"param_line[i]",
"param_line",
"i",
"sum += points[i]",
"sum",
"points[i]",
"points",
"i",
"double avg = sum/points.length;",
"avg",
"sum/points.length",
"sum",
"points.length",
"points",
"points.length",
"double tmp = 0;",
"tmp",
"0",
"for(int i=0; i<points.length; i++)\n tmp += pow(points[i]-avg,2);",
"int i=0;",
"int i=0;",
"i",
"0",
"i<points.length",
"i",
"points.length",
"points",
"points.length",
"i++",
"i++",
"i",
"tmp += pow(points[i]-avg,2);",
"tmp += pow(points[i]-avg,2)",
"tmp",
"pow(points[i]-avg,2)",
"pow",
"points[i]-avg",
"points[i]",
"points",
"i",
"avg",
"2",
"double bunsan = tmp/points.length;",
"bunsan",
"tmp/points.length",
"tmp",
"points.length",
"points",
"points.length",
"double hyohen = sqrt(bunsan);",
"hyohen",
"sqrt(bunsan)",
"sqrt",
"bunsan",
"System.out.printf(\"%.8f\\n\",hyohen)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%.8f\\n\"",
"hyohen",
"input = in.nextLine()",
"input",
"in.nextLine()",
"in.nextLine",
"in",
"cnt = Integer.parseInt(input)",
"cnt",
"Integer.parseInt(input)",
"Integer.parseInt",
"Integer",
"input",
"String[] arg",
"arg"
] | import java.util.Scanner;
import static java.lang.Math.pow;
import static java.lang.Math.sqrt;
class Main{
public static void main(String[] arg){
Scanner in = new Scanner(System.in);
String input = in.nextLine();
int cnt = Integer.parseInt(input);
while(cnt != 0){
double sum = 0.0;
input = in.nextLine();
String [] param_line = input.split(" ", 0);
int [] points = new int[param_line.length];
for(int i=0; i<points.length; i++){
points[i] = Integer.parseInt(param_line[i]);
sum += points[i];
}
double avg = sum/points.length;
double tmp = 0;
for(int i=0; i<points.length; i++)
tmp += pow(points[i]-avg,2);
double bunsan = tmp/points.length;
double hyohen = sqrt(bunsan);
System.out.printf("%.8f\n",hyohen);
input = in.nextLine();
cnt = Integer.parseInt(input);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
3,
41,
13,
17,
41,
13,
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,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
103,
5
],
[
103,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
14,
25
],
[
25,
26
],
[
25,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
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
],
[
81,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
81,
89
],
[
80,
90
],
[
14,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
6,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
] | [
"\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tif (a == 0)\n\t\t\t\tbreak;\n\t\t\tdouble sum = 0;\n\t\t\tint[] b = new int[a];\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tb[i] = scanner.nextInt();\n\t\t\t\tsum += b[i];\n\t\t\t}\n\t\t\tdouble m = sum / a;\n\t\t\tdouble aa = 0;\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\taa += Math.pow(b[i] - m, 2) / a;\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(aa));\n\n\t\t}\n\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tif (a == 0)\n\t\t\t\tbreak;\n\t\t\tdouble sum = 0;\n\t\t\tint[] b = new int[a];\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tb[i] = scanner.nextInt();\n\t\t\t\tsum += b[i];\n\t\t\t}\n\t\t\tdouble m = sum / a;\n\t\t\tdouble aa = 0;\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\taa += Math.pow(b[i] - m, 2) / a;\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(aa));\n\n\t\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tif (a == 0)\n\t\t\t\tbreak;\n\t\t\tdouble sum = 0;\n\t\t\tint[] b = new int[a];\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tb[i] = scanner.nextInt();\n\t\t\t\tsum += b[i];\n\t\t\t}\n\t\t\tdouble m = sum / a;\n\t\t\tdouble aa = 0;\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\taa += Math.pow(b[i] - m, 2) / a;\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(aa));\n\n\t\t}\n\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tif (a == 0)\n\t\t\t\tbreak;\n\t\t\tdouble sum = 0;\n\t\t\tint[] b = new int[a];\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tb[i] = scanner.nextInt();\n\t\t\t\tsum += b[i];\n\t\t\t}\n\t\t\tdouble m = sum / a;\n\t\t\tdouble aa = 0;\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\taa += Math.pow(b[i] - m, 2) / a;\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(aa));\n\n\t\t}\n\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"while (true) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tif (a == 0)\n\t\t\t\tbreak;\n\t\t\tdouble sum = 0;\n\t\t\tint[] b = new int[a];\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tb[i] = scanner.nextInt();\n\t\t\t\tsum += b[i];\n\t\t\t}\n\t\t\tdouble m = sum / a;\n\t\t\tdouble aa = 0;\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\taa += Math.pow(b[i] - m, 2) / a;\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(aa));\n\n\t\t}",
"true",
"{\n\t\t\tint a = scanner.nextInt();\n\t\t\tif (a == 0)\n\t\t\t\tbreak;\n\t\t\tdouble sum = 0;\n\t\t\tint[] b = new int[a];\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tb[i] = scanner.nextInt();\n\t\t\t\tsum += b[i];\n\t\t\t}\n\t\t\tdouble m = sum / a;\n\t\t\tdouble aa = 0;\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\taa += Math.pow(b[i] - m, 2) / a;\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(aa));\n\n\t\t}",
"int a = scanner.nextInt();",
"a",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"if (a == 0)\n\t\t\t\tbreak;",
"a == 0",
"a",
"0",
"break;",
"double sum = 0;",
"sum",
"0",
"int[] b = new int[a];",
"b",
"new int[a]",
"a",
"for (int i = 0; i < a; i++) {\n\t\t\t\tb[i] = scanner.nextInt();\n\t\t\t\tsum += b[i];\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a",
"i",
"a",
"i++",
"i++",
"i",
"{\n\t\t\t\tb[i] = scanner.nextInt();\n\t\t\t\tsum += b[i];\n\t\t\t}",
"{\n\t\t\t\tb[i] = scanner.nextInt();\n\t\t\t\tsum += b[i];\n\t\t\t}",
"b[i] = scanner.nextInt()",
"b[i]",
"b",
"i",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"sum += b[i]",
"sum",
"b[i]",
"b",
"i",
"double m = sum / a;",
"m",
"sum / a",
"sum",
"a",
"double aa = 0;",
"aa",
"0",
"for (int i = 0; i < a; i++) {\n\t\t\t\taa += Math.pow(b[i] - m, 2) / a;\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a",
"i",
"a",
"i++",
"i++",
"i",
"{\n\t\t\t\taa += Math.pow(b[i] - m, 2) / a;\n\t\t\t}",
"{\n\t\t\t\taa += Math.pow(b[i] - m, 2) / a;\n\t\t\t}",
"aa += Math.pow(b[i] - m, 2) / a",
"aa",
"Math.pow(b[i] - m, 2) / a",
"Math.pow(b[i] - m, 2)",
"Math.pow",
"Math",
"b[i] - m",
"b[i]",
"b",
"i",
"m",
"2",
"a",
"System.out.println(Math.sqrt(aa))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.sqrt(aa)",
"Math.sqrt",
"Math",
"aa",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tif (a == 0)\n\t\t\t\tbreak;\n\t\t\tdouble sum = 0;\n\t\t\tint[] b = new int[a];\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tb[i] = scanner.nextInt();\n\t\t\t\tsum += b[i];\n\t\t\t}\n\t\t\tdouble m = sum / a;\n\t\t\tdouble aa = 0;\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\taa += Math.pow(b[i] - m, 2) / a;\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(aa));\n\n\t\t}\n\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tif (a == 0)\n\t\t\t\tbreak;\n\t\t\tdouble sum = 0;\n\t\t\tint[] b = new int[a];\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tb[i] = scanner.nextInt();\n\t\t\t\tsum += b[i];\n\t\t\t}\n\t\t\tdouble m = sum / a;\n\t\t\tdouble aa = 0;\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\taa += Math.pow(b[i] - m, 2) / a;\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(aa));\n\n\t\t}\n\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
while (true) {
int a = scanner.nextInt();
if (a == 0)
break;
double sum = 0;
int[] b = new int[a];
for (int i = 0; i < a; i++) {
b[i] = scanner.nextInt();
sum += b[i];
}
double m = sum / a;
double aa = 0;
for (int i = 0; i < a; i++) {
aa += Math.pow(b[i] - m, 2) / a;
}
System.out.println(Math.sqrt(aa));
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
17,
30,
41,
13,
14,
2,
0,
13,
4,
18,
13,
4,
18,
13,
17,
3,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
41,
13,
17,
28,
13,
13,
30,
30,
0,
13,
13,
41,
13,
2,
20,
13,
41,
13,
17,
28,
13,
13,
30,
30,
0,
13,
2,
2,
13,
13,
2,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
119,
11
],
[
119,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
30,
31
],
[
31,
32
],
[
24,
33
],
[
23,
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
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
67,
68
],
[
67,
69
],
[
20,
70
],
[
70,
71
],
[
70,
72
],
[
20,
73
],
[
73,
74
],
[
73,
75
],
[
73,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
20,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
20,
86
],
[
86,
87
],
[
86,
88
],
[
20,
89
],
[
89,
90
],
[
89,
91
],
[
89,
92
],
[
93,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
100,
102
],
[
20,
103
],
[
103,
104
],
[
103,
105
],
[
20,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
106,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
12,
116
],
[
116,
117
],
[
0,
118
],
[
118,
119
],
[
118,
120
]
] | [
"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\t\t\tint n;\n\t\t\tif((n = Integer.parseInt(br.readLine())) == 0)\n\t\t\t\tbreak;\n\n\t\t\tString[] pointsStr = br.readLine().split(\" \");\n\t\t\tint[] points = new int[n];\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\tpoints[i] = Integer.parseInt(pointsStr[i]);\n\t\t\t}\n\n\t\t\tint sum = 0;\n\t\t\tfor(int point : points){\n\t\t\t\tsum += point;\n\t\t\t}\n\t\t\tdouble mean = (new Double(sum)) / n;\n\t\t\tdouble disp = 0;\n\t\t\tfor(int point : points){\n\t\t\t\tdisp += (point - mean) * (point - mean);\n\t\t\t}\n\t\t\tdisp /= n;\n\t\t\tSystem.out.printf(\"%.8f%n\", Math.sqrt(disp));\n\t\t}\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile(true){\n\t\t\tint n;\n\t\t\tif((n = Integer.parseInt(br.readLine())) == 0)\n\t\t\t\tbreak;\n\n\t\t\tString[] pointsStr = br.readLine().split(\" \");\n\t\t\tint[] points = new int[n];\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\tpoints[i] = Integer.parseInt(pointsStr[i]);\n\t\t\t}\n\n\t\t\tint sum = 0;\n\t\t\tfor(int point : points){\n\t\t\t\tsum += point;\n\t\t\t}\n\t\t\tdouble mean = (new Double(sum)) / n;\n\t\t\tdouble disp = 0;\n\t\t\tfor(int point : points){\n\t\t\t\tdisp += (point - mean) * (point - mean);\n\t\t\t}\n\t\t\tdisp /= n;\n\t\t\tSystem.out.printf(\"%.8f%n\", Math.sqrt(disp));\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile(true){\n\t\t\tint n;\n\t\t\tif((n = Integer.parseInt(br.readLine())) == 0)\n\t\t\t\tbreak;\n\n\t\t\tString[] pointsStr = br.readLine().split(\" \");\n\t\t\tint[] points = new int[n];\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\tpoints[i] = Integer.parseInt(pointsStr[i]);\n\t\t\t}\n\n\t\t\tint sum = 0;\n\t\t\tfor(int point : points){\n\t\t\t\tsum += point;\n\t\t\t}\n\t\t\tdouble mean = (new Double(sum)) / n;\n\t\t\tdouble disp = 0;\n\t\t\tfor(int point : points){\n\t\t\t\tdisp += (point - mean) * (point - mean);\n\t\t\t}\n\t\t\tdisp /= n;\n\t\t\tSystem.out.printf(\"%.8f%n\", Math.sqrt(disp));\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile(true){\n\t\t\tint n;\n\t\t\tif((n = Integer.parseInt(br.readLine())) == 0)\n\t\t\t\tbreak;\n\n\t\t\tString[] pointsStr = br.readLine().split(\" \");\n\t\t\tint[] points = new int[n];\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\tpoints[i] = Integer.parseInt(pointsStr[i]);\n\t\t\t}\n\n\t\t\tint sum = 0;\n\t\t\tfor(int point : points){\n\t\t\t\tsum += point;\n\t\t\t}\n\t\t\tdouble mean = (new Double(sum)) / n;\n\t\t\tdouble disp = 0;\n\t\t\tfor(int point : points){\n\t\t\t\tdisp += (point - mean) * (point - mean);\n\t\t\t}\n\t\t\tdisp /= n;\n\t\t\tSystem.out.printf(\"%.8f%n\", Math.sqrt(disp));\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;\n\t\t\tif((n = Integer.parseInt(br.readLine())) == 0)\n\t\t\t\tbreak;\n\n\t\t\tString[] pointsStr = br.readLine().split(\" \");\n\t\t\tint[] points = new int[n];\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\tpoints[i] = Integer.parseInt(pointsStr[i]);\n\t\t\t}\n\n\t\t\tint sum = 0;\n\t\t\tfor(int point : points){\n\t\t\t\tsum += point;\n\t\t\t}\n\t\t\tdouble mean = (new Double(sum)) / n;\n\t\t\tdouble disp = 0;\n\t\t\tfor(int point : points){\n\t\t\t\tdisp += (point - mean) * (point - mean);\n\t\t\t}\n\t\t\tdisp /= n;\n\t\t\tSystem.out.printf(\"%.8f%n\", Math.sqrt(disp));\n\t\t}",
"true",
"{\n\t\t\tint n;\n\t\t\tif((n = Integer.parseInt(br.readLine())) == 0)\n\t\t\t\tbreak;\n\n\t\t\tString[] pointsStr = br.readLine().split(\" \");\n\t\t\tint[] points = new int[n];\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\tpoints[i] = Integer.parseInt(pointsStr[i]);\n\t\t\t}\n\n\t\t\tint sum = 0;\n\t\t\tfor(int point : points){\n\t\t\t\tsum += point;\n\t\t\t}\n\t\t\tdouble mean = (new Double(sum)) / n;\n\t\t\tdouble disp = 0;\n\t\t\tfor(int point : points){\n\t\t\t\tdisp += (point - mean) * (point - mean);\n\t\t\t}\n\t\t\tdisp /= n;\n\t\t\tSystem.out.printf(\"%.8f%n\", Math.sqrt(disp));\n\t\t}",
"int n;",
"n",
"if((n = Integer.parseInt(br.readLine())) == 0)\n\t\t\t\tbreak;",
"(n = Integer.parseInt(br.readLine())) == 0",
"(n = Integer.parseInt(br.readLine()))",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"0",
"break;",
"String[] pointsStr = br.readLine().split(\" \");",
"pointsStr",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int[] points = new int[n];",
"points",
"new int[n]",
"n",
"for(int i = 0;i < n;i++){\n\t\t\t\tpoints[i] = Integer.parseInt(pointsStr[i]);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tpoints[i] = Integer.parseInt(pointsStr[i]);\n\t\t\t}",
"{\n\t\t\t\tpoints[i] = Integer.parseInt(pointsStr[i]);\n\t\t\t}",
"points[i] = Integer.parseInt(pointsStr[i])",
"points[i]",
"points",
"i",
"Integer.parseInt(pointsStr[i])",
"Integer.parseInt",
"Integer",
"pointsStr[i]",
"pointsStr",
"i",
"int sum = 0;",
"sum",
"0",
"for(int point : points){\n\t\t\t\tsum += point;\n\t\t\t}",
"int point",
"points",
"{\n\t\t\t\tsum += point;\n\t\t\t}",
"{\n\t\t\t\tsum += point;\n\t\t\t}",
"sum += point",
"sum",
"point",
"double mean = (new Double(sum)) / n;",
"mean",
"(new Double(sum)) / n",
"(new Double(sum))",
"n",
"double disp = 0;",
"disp",
"0",
"for(int point : points){\n\t\t\t\tdisp += (point - mean) * (point - mean);\n\t\t\t}",
"int point",
"points",
"{\n\t\t\t\tdisp += (point - mean) * (point - mean);\n\t\t\t}",
"{\n\t\t\t\tdisp += (point - mean) * (point - mean);\n\t\t\t}",
"disp += (point - mean) * (point - mean)",
"disp",
"(point - mean) * (point - mean)",
"(point - mean)",
"point",
"mean",
"(point - mean)",
"point",
"mean",
"disp /= n",
"disp",
"n",
"System.out.printf(\"%.8f%n\", Math.sqrt(disp))",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%.8f%n\"",
"Math.sqrt(disp)",
"Math.sqrt",
"Math",
"disp",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile(true){\n\t\t\tint n;\n\t\t\tif((n = Integer.parseInt(br.readLine())) == 0)\n\t\t\t\tbreak;\n\n\t\t\tString[] pointsStr = br.readLine().split(\" \");\n\t\t\tint[] points = new int[n];\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\tpoints[i] = Integer.parseInt(pointsStr[i]);\n\t\t\t}\n\n\t\t\tint sum = 0;\n\t\t\tfor(int point : points){\n\t\t\t\tsum += point;\n\t\t\t}\n\t\t\tdouble mean = (new Double(sum)) / n;\n\t\t\tdouble disp = 0;\n\t\t\tfor(int point : points){\n\t\t\t\tdisp += (point - mean) * (point - mean);\n\t\t\t}\n\t\t\tdisp /= n;\n\t\t\tSystem.out.printf(\"%.8f%n\", Math.sqrt(disp));\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile(true){\n\t\t\tint n;\n\t\t\tif((n = Integer.parseInt(br.readLine())) == 0)\n\t\t\t\tbreak;\n\n\t\t\tString[] pointsStr = br.readLine().split(\" \");\n\t\t\tint[] points = new int[n];\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\tpoints[i] = Integer.parseInt(pointsStr[i]);\n\t\t\t}\n\n\t\t\tint sum = 0;\n\t\t\tfor(int point : points){\n\t\t\t\tsum += point;\n\t\t\t}\n\t\t\tdouble mean = (new Double(sum)) / n;\n\t\t\tdouble disp = 0;\n\t\t\tfor(int point : points){\n\t\t\t\tdisp += (point - mean) * (point - mean);\n\t\t\t}\n\t\t\tdisp /= n;\n\t\t\tSystem.out.printf(\"%.8f%n\", Math.sqrt(disp));\n\t\t}\n\t}\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
while(true){
int n;
if((n = Integer.parseInt(br.readLine())) == 0)
break;
String[] pointsStr = br.readLine().split(" ");
int[] points = new int[n];
for(int i = 0;i < n;i++){
points[i] = Integer.parseInt(pointsStr[i]);
}
int sum = 0;
for(int point : points){
sum += point;
}
double mean = (new Double(sum)) / n;
double disp = 0;
for(int point : points){
disp += (point - mean) * (point - mean);
}
disp /= n;
System.out.printf("%.8f%n", Math.sqrt(disp));
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
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,
13,
2,
2,
18,
13,
13,
13,
2,
18,
13,
13,
13,
41,
13,
4,
18,
13,
2,
13,
13,
4,
18,
18,
13,
13,
17,
13,
4,
18,
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
],
[
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
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
78,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
14,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
94,
95
],
[
94,
96
],
[
14,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
97,
103
],
[
8,
104
],
[
104,
105
],
[
105,
106
],
[
6,
107
],
[
107,
108
],
[
0,
109
],
[
109,
110
],
[
109,
111
]
] | [
"import java.util.*;\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 = new int[n];\n double ave = 0.0;\n for(int i = 0; i<n; i++){\n s[i] = sc.nextInt();\n ave += s[i];\n }\n ave /= (double)n;\n double v = 0;\n for(int i = 0;i<n;i++){\n v += (s[i] - ave)*(s[i] - ave);\n }\n double ans = Math.sqrt(v/(double)n);\n System.out.printf(\"%f\\n\", ans);\n }\n sc.close();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n int n = sc.nextInt();\n if(n==0) break;\n int[] s = new int[n];\n double ave = 0.0;\n for(int i = 0; i<n; i++){\n s[i] = sc.nextInt();\n ave += s[i];\n }\n ave /= (double)n;\n double v = 0;\n for(int i = 0;i<n;i++){\n v += (s[i] - ave)*(s[i] - ave);\n }\n double ans = Math.sqrt(v/(double)n);\n System.out.printf(\"%f\\n\", ans);\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 = new int[n];\n double ave = 0.0;\n for(int i = 0; i<n; i++){\n s[i] = sc.nextInt();\n ave += s[i];\n }\n ave /= (double)n;\n double v = 0;\n for(int i = 0;i<n;i++){\n v += (s[i] - ave)*(s[i] - ave);\n }\n double ans = Math.sqrt(v/(double)n);\n System.out.printf(\"%f\\n\", ans);\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 = new int[n];\n double ave = 0.0;\n for(int i = 0; i<n; i++){\n s[i] = sc.nextInt();\n ave += s[i];\n }\n ave /= (double)n;\n double v = 0;\n for(int i = 0;i<n;i++){\n v += (s[i] - ave)*(s[i] - ave);\n }\n double ans = Math.sqrt(v/(double)n);\n System.out.printf(\"%f\\n\", ans);\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 = new int[n];\n double ave = 0.0;\n for(int i = 0; i<n; i++){\n s[i] = sc.nextInt();\n ave += s[i];\n }\n ave /= (double)n;\n double v = 0;\n for(int i = 0;i<n;i++){\n v += (s[i] - ave)*(s[i] - ave);\n }\n double ans = Math.sqrt(v/(double)n);\n System.out.printf(\"%f\\n\", ans);\n }",
"true",
"{\n int n = sc.nextInt();\n if(n==0) break;\n int[] s = new int[n];\n double ave = 0.0;\n for(int i = 0; i<n; i++){\n s[i] = sc.nextInt();\n ave += s[i];\n }\n ave /= (double)n;\n double v = 0;\n for(int i = 0;i<n;i++){\n v += (s[i] - ave)*(s[i] - ave);\n }\n double ans = Math.sqrt(v/(double)n);\n System.out.printf(\"%f\\n\", ans);\n }",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(n==0) break;",
"n==0",
"n",
"0",
"break;",
"int[] s = new int[n];",
"s",
"new int[n]",
"n",
"double ave = 0.0;",
"ave",
"0.0",
"for(int i = 0; i<n; i++){\n s[i] = sc.nextInt();\n ave += s[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n s[i] = sc.nextInt();\n ave += s[i];\n }",
"{\n s[i] = sc.nextInt();\n ave += s[i];\n }",
"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",
"double v = 0;",
"v",
"0",
"for(int i = 0;i<n;i++){\n v += (s[i] - ave)*(s[i] - ave);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n v += (s[i] - ave)*(s[i] - ave);\n }",
"{\n v += (s[i] - ave)*(s[i] - ave);\n }",
"v += (s[i] - ave)*(s[i] - ave)",
"v",
"(s[i] - ave)*(s[i] - ave)",
"(s[i] - ave)",
"s[i]",
"s",
"i",
"ave",
"(s[i] - ave)",
"s[i]",
"s",
"i",
"ave",
"double ans = Math.sqrt(v/(double)n);",
"ans",
"Math.sqrt(v/(double)n)",
"Math.sqrt",
"Math",
"v/(double)n",
"v",
"(double)n",
"System.out.printf(\"%f\\n\", ans)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%f\\n\"",
"ans",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n int n = sc.nextInt();\n if(n==0) break;\n int[] s = new int[n];\n double ave = 0.0;\n for(int i = 0; i<n; i++){\n s[i] = sc.nextInt();\n ave += s[i];\n }\n ave /= (double)n;\n double v = 0;\n for(int i = 0;i<n;i++){\n v += (s[i] - ave)*(s[i] - ave);\n }\n double ans = Math.sqrt(v/(double)n);\n System.out.printf(\"%f\\n\", ans);\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 = new int[n];\n double ave = 0.0;\n for(int i = 0; i<n; i++){\n s[i] = sc.nextInt();\n ave += s[i];\n }\n ave /= (double)n;\n double v = 0;\n for(int i = 0;i<n;i++){\n v += (s[i] - ave)*(s[i] - ave);\n }\n double ans = Math.sqrt(v/(double)n);\n System.out.printf(\"%f\\n\", ans);\n }\n sc.close();\n }\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
while(true){
int n = sc.nextInt();
if(n==0) break;
int[] s = new int[n];
double ave = 0.0;
for(int i = 0; i<n; i++){
s[i] = sc.nextInt();
ave += s[i];
}
ave /= (double)n;
double v = 0;
for(int i = 0;i<n;i++){
v += (s[i] - ave)*(s[i] - ave);
}
double ans = Math.sqrt(v/(double)n);
System.out.printf("%f\n", ans);
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
17,
30,
41,
13,
17,
41,
13,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
3,
41,
13,
20,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
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,
4,
18,
13,
2,
18,
13,
13,
13,
17,
0,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
124,
5
],
[
124,
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
],
[
14,
20
],
[
20,
21
],
[
14,
22
],
[
22,
23
],
[
22,
24
],
[
14,
25
],
[
25,
26
],
[
25,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
14,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
14,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
14,
42
],
[
42,
43
],
[
42,
44
],
[
14,
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
],
[
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
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
95,
103
],
[
14,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
106,
108
],
[
14,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
111,
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.*;\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n int n=0,i,j;\n double sum=0,a=0,b=0;\n n=sc.nextInt();\n if(n==0){\n break;\n }\n int []d =new int[n];\n for(i=0;i<n;i++){\n d[i]=sc.nextInt();\n sum=sum+d[i];\n }\n sum=sum/n;\n for(j=0;j<n;j++){\n a = a+ Math.pow(d[j]-sum,2);\n }\n a= a/n;\n b=Math.sqrt(a);\n \n System.out.println(b);\n\n\n}\n\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n int n=0,i,j;\n double sum=0,a=0,b=0;\n n=sc.nextInt();\n if(n==0){\n break;\n }\n int []d =new int[n];\n for(i=0;i<n;i++){\n d[i]=sc.nextInt();\n sum=sum+d[i];\n }\n sum=sum/n;\n for(j=0;j<n;j++){\n a = a+ Math.pow(d[j]-sum,2);\n }\n a= a/n;\n b=Math.sqrt(a);\n \n System.out.println(b);\n\n\n}\n\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n int n=0,i,j;\n double sum=0,a=0,b=0;\n n=sc.nextInt();\n if(n==0){\n break;\n }\n int []d =new int[n];\n for(i=0;i<n;i++){\n d[i]=sc.nextInt();\n sum=sum+d[i];\n }\n sum=sum/n;\n for(j=0;j<n;j++){\n a = a+ Math.pow(d[j]-sum,2);\n }\n a= a/n;\n b=Math.sqrt(a);\n \n System.out.println(b);\n\n\n}\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n while(true){\n int n=0,i,j;\n double sum=0,a=0,b=0;\n n=sc.nextInt();\n if(n==0){\n break;\n }\n int []d =new int[n];\n for(i=0;i<n;i++){\n d[i]=sc.nextInt();\n sum=sum+d[i];\n }\n sum=sum/n;\n for(j=0;j<n;j++){\n a = a+ Math.pow(d[j]-sum,2);\n }\n a= a/n;\n b=Math.sqrt(a);\n \n System.out.println(b);\n\n\n}\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while(true){\n int n=0,i,j;\n double sum=0,a=0,b=0;\n n=sc.nextInt();\n if(n==0){\n break;\n }\n int []d =new int[n];\n for(i=0;i<n;i++){\n d[i]=sc.nextInt();\n sum=sum+d[i];\n }\n sum=sum/n;\n for(j=0;j<n;j++){\n a = a+ Math.pow(d[j]-sum,2);\n }\n a= a/n;\n b=Math.sqrt(a);\n \n System.out.println(b);\n\n\n}",
"true",
"{\n int n=0,i,j;\n double sum=0,a=0,b=0;\n n=sc.nextInt();\n if(n==0){\n break;\n }\n int []d =new int[n];\n for(i=0;i<n;i++){\n d[i]=sc.nextInt();\n sum=sum+d[i];\n }\n sum=sum/n;\n for(j=0;j<n;j++){\n a = a+ Math.pow(d[j]-sum,2);\n }\n a= a/n;\n b=Math.sqrt(a);\n \n System.out.println(b);\n\n\n}",
"int n=0",
"n",
"0",
"i",
"i",
"j;",
"j",
"double sum=0",
"sum",
"0",
"a=0",
"a",
"0",
"b=0;",
"b",
"0",
"n=sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(n==0){\n break;\n }",
"n==0",
"n",
"0",
"{\n break;\n }",
"break;",
"int []d =new int[n];",
"d",
"new int[n]",
"n",
"for(i=0;i<n;i++){\n d[i]=sc.nextInt();\n sum=sum+d[i];\n }",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n d[i]=sc.nextInt();\n sum=sum+d[i];\n }",
"{\n d[i]=sc.nextInt();\n sum=sum+d[i];\n }",
"d[i]=sc.nextInt()",
"d[i]",
"d",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sum=sum+d[i]",
"sum",
"sum+d[i]",
"sum",
"d[i]",
"d",
"i",
"sum=sum/n",
"sum",
"sum/n",
"sum",
"n",
"for(j=0;j<n;j++){\n a = a+ Math.pow(d[j]-sum,2);\n }",
"j=0;",
"j=0",
"j",
"0",
"j<n",
"j",
"n",
"j++",
"j++",
"j",
"{\n a = a+ Math.pow(d[j]-sum,2);\n }",
"{\n a = a+ Math.pow(d[j]-sum,2);\n }",
"a = a+ Math.pow(d[j]-sum,2)",
"a",
"a+ Math.pow(d[j]-sum,2)",
"a",
"Math.pow(d[j]-sum,2)",
"Math.pow",
"Math",
"d[j]-sum",
"d[j]",
"d",
"j",
"sum",
"2",
"a= a/n",
"a",
"a/n",
"a",
"n",
"b=Math.sqrt(a)",
"b",
"Math.sqrt(a)",
"Math.sqrt",
"Math",
"a",
"System.out.println(b)",
"System.out.println",
"System.out",
"System",
"System.out",
"b",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n int n=0,i,j;\n double sum=0,a=0,b=0;\n n=sc.nextInt();\n if(n==0){\n break;\n }\n int []d =new int[n];\n for(i=0;i<n;i++){\n d[i]=sc.nextInt();\n sum=sum+d[i];\n }\n sum=sum/n;\n for(j=0;j<n;j++){\n a = a+ Math.pow(d[j]-sum,2);\n }\n a= a/n;\n b=Math.sqrt(a);\n \n System.out.println(b);\n\n\n}\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=0,i,j;\n double sum=0,a=0,b=0;\n n=sc.nextInt();\n if(n==0){\n break;\n }\n int []d =new int[n];\n for(i=0;i<n;i++){\n d[i]=sc.nextInt();\n sum=sum+d[i];\n }\n sum=sum/n;\n for(j=0;j<n;j++){\n a = a+ Math.pow(d[j]-sum,2);\n }\n a= a/n;\n b=Math.sqrt(a);\n \n System.out.println(b);\n\n\n}\n\n }\n}",
"Main"
] | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
while(true){
int n=0,i,j;
double sum=0,a=0,b=0;
n=sc.nextInt();
if(n==0){
break;
}
int []d =new int[n];
for(i=0;i<n;i++){
d[i]=sc.nextInt();
sum=sum+d[i];
}
sum=sum/n;
for(j=0;j<n;j++){
a = a+ Math.pow(d[j]-sum,2);
}
a= a/n;
b=Math.sqrt(a);
System.out.println(b);
}
}
}
|
[
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,
3,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
18,
13,
13,
41,
13,
2,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
2,
18,
13,
13,
13,
17,
41,
13,
2,
13,
13,
41,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
111,
5
],
[
111,
6
],
[
6,
7
],
[
6,
8
],
[
111,
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
],
[
16,
27
],
[
27,
28
],
[
27,
29
],
[
16,
31
],
[
31,
32
],
[
31,
33
],
[
16,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
39,
40
],
[
39,
41
],
[
34,
42
],
[
42,
43
],
[
43,
44
],
[
34,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
52,
53
],
[
46,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
16,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
16,
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
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
16,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
9,
108
],
[
108,
109
],
[
0,
110
],
[
110,
111
],
[
110,
112
]
] | [
"\nimport java.util.Scanner;\n\npublic class Main {\n static Scanner sc = new Scanner(System.in);\n\n public static void main(String[] args) {\n while (sc.hasNext()){\n int studentsNum = sc.nextInt();\n if (studentsNum == 0)\n break;\n double point[] = new double[studentsNum];\n double sum = 0;\n for (int i = 0; i < studentsNum; i++){\n point[i] = sc.nextInt();\n sum += point[i];\n }\n double ave = sum / studentsNum;\n double sm = 0;\n for (int j = 0; j < studentsNum; j++){\n sm += Math.pow(point[j] - ave, 2);\n }\n double aa = sm / studentsNum;\n double result = Math.sqrt(aa);\n System.out.println(result);\n }\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n static Scanner sc = new Scanner(System.in);\n\n public static void main(String[] args) {\n while (sc.hasNext()){\n int studentsNum = sc.nextInt();\n if (studentsNum == 0)\n break;\n double point[] = new double[studentsNum];\n double sum = 0;\n for (int i = 0; i < studentsNum; i++){\n point[i] = sc.nextInt();\n sum += point[i];\n }\n double ave = sum / studentsNum;\n double sm = 0;\n for (int j = 0; j < studentsNum; j++){\n sm += Math.pow(point[j] - ave, 2);\n }\n double aa = sm / studentsNum;\n double result = Math.sqrt(aa);\n System.out.println(result);\n }\n }\n}",
"Main",
"static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public static void main(String[] args) {\n while (sc.hasNext()){\n int studentsNum = sc.nextInt();\n if (studentsNum == 0)\n break;\n double point[] = new double[studentsNum];\n double sum = 0;\n for (int i = 0; i < studentsNum; i++){\n point[i] = sc.nextInt();\n sum += point[i];\n }\n double ave = sum / studentsNum;\n double sm = 0;\n for (int j = 0; j < studentsNum; j++){\n sm += Math.pow(point[j] - ave, 2);\n }\n double aa = sm / studentsNum;\n double result = Math.sqrt(aa);\n System.out.println(result);\n }\n }",
"main",
"{\n while (sc.hasNext()){\n int studentsNum = sc.nextInt();\n if (studentsNum == 0)\n break;\n double point[] = new double[studentsNum];\n double sum = 0;\n for (int i = 0; i < studentsNum; i++){\n point[i] = sc.nextInt();\n sum += point[i];\n }\n double ave = sum / studentsNum;\n double sm = 0;\n for (int j = 0; j < studentsNum; j++){\n sm += Math.pow(point[j] - ave, 2);\n }\n double aa = sm / studentsNum;\n double result = Math.sqrt(aa);\n System.out.println(result);\n }\n }",
"while (sc.hasNext()){\n int studentsNum = sc.nextInt();\n if (studentsNum == 0)\n break;\n double point[] = new double[studentsNum];\n double sum = 0;\n for (int i = 0; i < studentsNum; i++){\n point[i] = sc.nextInt();\n sum += point[i];\n }\n double ave = sum / studentsNum;\n double sm = 0;\n for (int j = 0; j < studentsNum; j++){\n sm += Math.pow(point[j] - ave, 2);\n }\n double aa = sm / studentsNum;\n double result = Math.sqrt(aa);\n System.out.println(result);\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n int studentsNum = sc.nextInt();\n if (studentsNum == 0)\n break;\n double point[] = new double[studentsNum];\n double sum = 0;\n for (int i = 0; i < studentsNum; i++){\n point[i] = sc.nextInt();\n sum += point[i];\n }\n double ave = sum / studentsNum;\n double sm = 0;\n for (int j = 0; j < studentsNum; j++){\n sm += Math.pow(point[j] - ave, 2);\n }\n double aa = sm / studentsNum;\n double result = Math.sqrt(aa);\n System.out.println(result);\n }",
"int studentsNum = sc.nextInt();",
"studentsNum",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (studentsNum == 0)\n break;",
"studentsNum == 0",
"studentsNum",
"0",
"break;",
"double point[] = new double[studentsNum];",
"point",
"new double[studentsNum]",
"studentsNum",
"double sum = 0;",
"sum",
"0",
"for (int i = 0; i < studentsNum; i++){\n point[i] = sc.nextInt();\n sum += point[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < studentsNum",
"i",
"studentsNum",
"i++",
"i++",
"i",
"{\n point[i] = sc.nextInt();\n sum += point[i];\n }",
"{\n point[i] = sc.nextInt();\n sum += point[i];\n }",
"point[i] = sc.nextInt()",
"point[i]",
"point",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sum += point[i]",
"sum",
"point[i]",
"point",
"i",
"double ave = sum / studentsNum;",
"ave",
"sum / studentsNum",
"sum",
"studentsNum",
"double sm = 0;",
"sm",
"0",
"for (int j = 0; j < studentsNum; j++){\n sm += Math.pow(point[j] - ave, 2);\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < studentsNum",
"j",
"studentsNum",
"j++",
"j++",
"j",
"{\n sm += Math.pow(point[j] - ave, 2);\n }",
"{\n sm += Math.pow(point[j] - ave, 2);\n }",
"sm += Math.pow(point[j] - ave, 2)",
"sm",
"Math.pow(point[j] - ave, 2)",
"Math.pow",
"Math",
"point[j] - ave",
"point[j]",
"point",
"j",
"ave",
"2",
"double aa = sm / studentsNum;",
"aa",
"sm / studentsNum",
"sm",
"studentsNum",
"double result = Math.sqrt(aa);",
"result",
"Math.sqrt(aa)",
"Math.sqrt",
"Math",
"aa",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"public class Main {\n static Scanner sc = new Scanner(System.in);\n\n public static void main(String[] args) {\n while (sc.hasNext()){\n int studentsNum = sc.nextInt();\n if (studentsNum == 0)\n break;\n double point[] = new double[studentsNum];\n double sum = 0;\n for (int i = 0; i < studentsNum; i++){\n point[i] = sc.nextInt();\n sum += point[i];\n }\n double ave = sum / studentsNum;\n double sm = 0;\n for (int j = 0; j < studentsNum; j++){\n sm += Math.pow(point[j] - ave, 2);\n }\n double aa = sm / studentsNum;\n double result = Math.sqrt(aa);\n System.out.println(result);\n }\n }\n}",
"public class Main {\n static Scanner sc = new Scanner(System.in);\n\n public static void main(String[] args) {\n while (sc.hasNext()){\n int studentsNum = sc.nextInt();\n if (studentsNum == 0)\n break;\n double point[] = new double[studentsNum];\n double sum = 0;\n for (int i = 0; i < studentsNum; i++){\n point[i] = sc.nextInt();\n sum += point[i];\n }\n double ave = sum / studentsNum;\n double sm = 0;\n for (int j = 0; j < studentsNum; j++){\n sm += Math.pow(point[j] - ave, 2);\n }\n double aa = sm / studentsNum;\n double result = Math.sqrt(aa);\n System.out.println(result);\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
while (sc.hasNext()){
int studentsNum = sc.nextInt();
if (studentsNum == 0)
break;
double point[] = new double[studentsNum];
double sum = 0;
for (int i = 0; i < studentsNum; i++){
point[i] = sc.nextInt();
sum += point[i];
}
double ave = sum / studentsNum;
double sm = 0;
for (int j = 0; j < studentsNum; j++){
sm += Math.pow(point[j] - ave, 2);
}
double aa = sm / studentsNum;
double result = Math.sqrt(aa);
System.out.println(result);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
42,
2,
13,
17,
30,
41,
13,
17,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
0,
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,
4,
18,
13,
13,
13,
2,
4,
18,
13,
13,
13,
41,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
17,
13,
0,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
121,
8
],
[
121,
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
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
28
],
[
28,
29
],
[
28,
30
],
[
24,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
43,
53
],
[
53,
54
],
[
53,
55
],
[
24,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
58,
60
],
[
24,
61
],
[
61,
62
],
[
61,
63
],
[
24,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
64,
72
],
[
72,
73
],
[
73,
74
],
[
64,
75
],
[
76,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
80,
85
],
[
79,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
86,
91
],
[
24,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
94,
96
],
[
24,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
24,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
108,
112
],
[
24,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
9,
118
],
[
118,
119
],
[
0,
120
],
[
120,
121
],
[
120,
122
]
] | [
"import java.util.Scanner;\nimport java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\twhile (n != 0) {\n\t\t\tdouble sum = 0;\n\t\t\tList<Integer> vals = new ArrayList<Integer>();\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tvals.add(a);\n\t\t\t\tsum += a;\n\t\t\t}\n\t\t\tdouble ave = sum/n;\n\t\t\tsum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsum += (vals.get(i) - ave)*(vals.get(i) - ave);\n\t\t\t}\n\t\t\tdouble a = sum/n;\n\t\t\ta = Math.sqrt(a);\n\t\t\tSystem.out.println(String.format(\"%.5f\", a));\n\t\t\tn = sc.nextInt();\n\t\t}\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\twhile (n != 0) {\n\t\t\tdouble sum = 0;\n\t\t\tList<Integer> vals = new ArrayList<Integer>();\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tvals.add(a);\n\t\t\t\tsum += a;\n\t\t\t}\n\t\t\tdouble ave = sum/n;\n\t\t\tsum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsum += (vals.get(i) - ave)*(vals.get(i) - ave);\n\t\t\t}\n\t\t\tdouble a = sum/n;\n\t\t\ta = Math.sqrt(a);\n\t\t\tSystem.out.println(String.format(\"%.5f\", a));\n\t\t\tn = sc.nextInt();\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\twhile (n != 0) {\n\t\t\tdouble sum = 0;\n\t\t\tList<Integer> vals = new ArrayList<Integer>();\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tvals.add(a);\n\t\t\t\tsum += a;\n\t\t\t}\n\t\t\tdouble ave = sum/n;\n\t\t\tsum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsum += (vals.get(i) - ave)*(vals.get(i) - ave);\n\t\t\t}\n\t\t\tdouble a = sum/n;\n\t\t\ta = Math.sqrt(a);\n\t\t\tSystem.out.println(String.format(\"%.5f\", a));\n\t\t\tn = sc.nextInt();\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\twhile (n != 0) {\n\t\t\tdouble sum = 0;\n\t\t\tList<Integer> vals = new ArrayList<Integer>();\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tvals.add(a);\n\t\t\t\tsum += a;\n\t\t\t}\n\t\t\tdouble ave = sum/n;\n\t\t\tsum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsum += (vals.get(i) - ave)*(vals.get(i) - ave);\n\t\t\t}\n\t\t\tdouble a = sum/n;\n\t\t\ta = Math.sqrt(a);\n\t\t\tSystem.out.println(String.format(\"%.5f\", a));\n\t\t\tn = sc.nextInt();\n\t\t}\n\t}",
"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\t\t\tdouble sum = 0;\n\t\t\tList<Integer> vals = new ArrayList<Integer>();\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tvals.add(a);\n\t\t\t\tsum += a;\n\t\t\t}\n\t\t\tdouble ave = sum/n;\n\t\t\tsum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsum += (vals.get(i) - ave)*(vals.get(i) - ave);\n\t\t\t}\n\t\t\tdouble a = sum/n;\n\t\t\ta = Math.sqrt(a);\n\t\t\tSystem.out.println(String.format(\"%.5f\", a));\n\t\t\tn = sc.nextInt();\n\t\t}",
"n != 0",
"n",
"0",
"{\n\t\t\tdouble sum = 0;\n\t\t\tList<Integer> vals = new ArrayList<Integer>();\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tvals.add(a);\n\t\t\t\tsum += a;\n\t\t\t}\n\t\t\tdouble ave = sum/n;\n\t\t\tsum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsum += (vals.get(i) - ave)*(vals.get(i) - ave);\n\t\t\t}\n\t\t\tdouble a = sum/n;\n\t\t\ta = Math.sqrt(a);\n\t\t\tSystem.out.println(String.format(\"%.5f\", a));\n\t\t\tn = sc.nextInt();\n\t\t}",
"double sum = 0;",
"sum",
"0",
"List<Integer> vals = new ArrayList<Integer>();",
"vals",
"new ArrayList<Integer>()",
"for (int i = 0; i < n; i++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tvals.add(a);\n\t\t\t\tsum += a;\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tvals.add(a);\n\t\t\t\tsum += a;\n\t\t\t}",
"{\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tvals.add(a);\n\t\t\t\tsum += a;\n\t\t\t}",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"vals.add(a)",
"vals.add",
"vals",
"a",
"sum += a",
"sum",
"a",
"double ave = sum/n;",
"ave",
"sum/n",
"sum",
"n",
"sum = 0",
"sum",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\t\tsum += (vals.get(i) - ave)*(vals.get(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\tsum += (vals.get(i) - ave)*(vals.get(i) - ave);\n\t\t\t}",
"{\n\t\t\t\tsum += (vals.get(i) - ave)*(vals.get(i) - ave);\n\t\t\t}",
"sum += (vals.get(i) - ave)*(vals.get(i) - ave)",
"sum",
"(vals.get(i) - ave)*(vals.get(i) - ave)",
"(vals.get(i) - ave)",
"vals.get(i)",
"vals.get",
"vals",
"i",
"ave",
"(vals.get(i) - ave)",
"vals.get(i)",
"vals.get",
"vals",
"i",
"ave",
"double a = sum/n;",
"a",
"sum/n",
"sum",
"n",
"a = Math.sqrt(a)",
"a",
"Math.sqrt(a)",
"Math.sqrt",
"Math",
"a",
"System.out.println(String.format(\"%.5f\", a))",
"System.out.println",
"System.out",
"System",
"System.out",
"String.format(\"%.5f\", a)",
"String.format",
"String",
"\"%.5f\"",
"a",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\twhile (n != 0) {\n\t\t\tdouble sum = 0;\n\t\t\tList<Integer> vals = new ArrayList<Integer>();\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tvals.add(a);\n\t\t\t\tsum += a;\n\t\t\t}\n\t\t\tdouble ave = sum/n;\n\t\t\tsum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsum += (vals.get(i) - ave)*(vals.get(i) - ave);\n\t\t\t}\n\t\t\tdouble a = sum/n;\n\t\t\ta = Math.sqrt(a);\n\t\t\tSystem.out.println(String.format(\"%.5f\", a));\n\t\t\tn = sc.nextInt();\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\twhile (n != 0) {\n\t\t\tdouble sum = 0;\n\t\t\tList<Integer> vals = new ArrayList<Integer>();\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tvals.add(a);\n\t\t\t\tsum += a;\n\t\t\t}\n\t\t\tdouble ave = sum/n;\n\t\t\tsum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tsum += (vals.get(i) - ave)*(vals.get(i) - ave);\n\t\t\t}\n\t\t\tdouble a = sum/n;\n\t\t\ta = Math.sqrt(a);\n\t\t\tSystem.out.println(String.format(\"%.5f\", a));\n\t\t\tn = sc.nextInt();\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
while (n != 0) {
double sum = 0;
List<Integer> vals = new ArrayList<Integer>();
for (int i = 0; i < n; i++) {
int a = sc.nextInt();
vals.add(a);
sum += a;
}
double ave = sum/n;
sum = 0;
for (int i = 0; i < n; i++) {
sum += (vals.get(i) - ave)*(vals.get(i) - ave);
}
double a = sum/n;
a = Math.sqrt(a);
System.out.println(String.format("%.5f", a));
n = sc.nextInt();
}
}
}
|
[
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,
30,
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,
2,
18,
13,
13,
13,
2,
18,
13,
13,
13,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
111,
5
],
[
111,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
20,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
39,
40
],
[
39,
41
],
[
34,
42
],
[
42,
43
],
[
43,
44
],
[
34,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
52,
53
],
[
46,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
26,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
26,
64
],
[
64,
65
],
[
64,
66
],
[
26,
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
],
[
26,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
95,
97
],
[
26,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
98,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
6,
108
],
[
108,
109
],
[
0,
110
],
[
110,
111
],
[
110,
112
]
] | [
"import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint n=sc.nextInt();\n\t\t\tif(n==0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tint sum=0;\n\t\t\t\tint[] s=new int[n];\n\t\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\t\ts[i]=sc.nextInt();\n\t\t\t\t\tsum+=s[i];\n\t\t\t\t}\n\t\t\t\tdouble m=(double)sum/(double)n;\n\t\t\t\tdouble a=0;\n\t\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\t\ta+=(s[i]-m)*(s[i]-m);\n\t\t\t\t}\n\t\t\t\ta=a/n;\n\t\t\t\tSystem.out.printf(\"%.8f\\n\",Math.sqrt(a));\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint n=sc.nextInt();\n\t\t\tif(n==0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tint sum=0;\n\t\t\t\tint[] s=new int[n];\n\t\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\t\ts[i]=sc.nextInt();\n\t\t\t\t\tsum+=s[i];\n\t\t\t\t}\n\t\t\t\tdouble m=(double)sum/(double)n;\n\t\t\t\tdouble a=0;\n\t\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\t\ta+=(s[i]-m)*(s[i]-m);\n\t\t\t\t}\n\t\t\t\ta=a/n;\n\t\t\t\tSystem.out.printf(\"%.8f\\n\",Math.sqrt(a));\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint n=sc.nextInt();\n\t\t\tif(n==0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tint sum=0;\n\t\t\t\tint[] s=new int[n];\n\t\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\t\ts[i]=sc.nextInt();\n\t\t\t\t\tsum+=s[i];\n\t\t\t\t}\n\t\t\t\tdouble m=(double)sum/(double)n;\n\t\t\t\tdouble a=0;\n\t\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\t\ta+=(s[i]-m)*(s[i]-m);\n\t\t\t\t}\n\t\t\t\ta=a/n;\n\t\t\t\tSystem.out.printf(\"%.8f\\n\",Math.sqrt(a));\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint n=sc.nextInt();\n\t\t\tif(n==0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tint sum=0;\n\t\t\t\tint[] s=new int[n];\n\t\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\t\ts[i]=sc.nextInt();\n\t\t\t\t\tsum+=s[i];\n\t\t\t\t}\n\t\t\t\tdouble m=(double)sum/(double)n;\n\t\t\t\tdouble a=0;\n\t\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\t\ta+=(s[i]-m)*(s[i]-m);\n\t\t\t\t}\n\t\t\t\ta=a/n;\n\t\t\t\tSystem.out.printf(\"%.8f\\n\",Math.sqrt(a));\n\t\t\t}\n\t\t}\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while(true){\n\t\t\tint n=sc.nextInt();\n\t\t\tif(n==0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tint sum=0;\n\t\t\t\tint[] s=new int[n];\n\t\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\t\ts[i]=sc.nextInt();\n\t\t\t\t\tsum+=s[i];\n\t\t\t\t}\n\t\t\t\tdouble m=(double)sum/(double)n;\n\t\t\t\tdouble a=0;\n\t\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\t\ta+=(s[i]-m)*(s[i]-m);\n\t\t\t\t}\n\t\t\t\ta=a/n;\n\t\t\t\tSystem.out.printf(\"%.8f\\n\",Math.sqrt(a));\n\t\t\t}\n\t\t}",
"true",
"{\n\t\t\tint n=sc.nextInt();\n\t\t\tif(n==0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tint sum=0;\n\t\t\t\tint[] s=new int[n];\n\t\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\t\ts[i]=sc.nextInt();\n\t\t\t\t\tsum+=s[i];\n\t\t\t\t}\n\t\t\t\tdouble m=(double)sum/(double)n;\n\t\t\t\tdouble a=0;\n\t\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\t\ta+=(s[i]-m)*(s[i]-m);\n\t\t\t\t}\n\t\t\t\ta=a/n;\n\t\t\t\tSystem.out.printf(\"%.8f\\n\",Math.sqrt(a));\n\t\t\t}\n\t\t}",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(n==0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tint sum=0;\n\t\t\t\tint[] s=new int[n];\n\t\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\t\ts[i]=sc.nextInt();\n\t\t\t\t\tsum+=s[i];\n\t\t\t\t}\n\t\t\t\tdouble m=(double)sum/(double)n;\n\t\t\t\tdouble a=0;\n\t\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\t\ta+=(s[i]-m)*(s[i]-m);\n\t\t\t\t}\n\t\t\t\ta=a/n;\n\t\t\t\tSystem.out.printf(\"%.8f\\n\",Math.sqrt(a));\n\t\t\t}",
"n==0",
"n",
"0",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"{\n\t\t\t\tint sum=0;\n\t\t\t\tint[] s=new int[n];\n\t\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\t\ts[i]=sc.nextInt();\n\t\t\t\t\tsum+=s[i];\n\t\t\t\t}\n\t\t\t\tdouble m=(double)sum/(double)n;\n\t\t\t\tdouble a=0;\n\t\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\t\ta+=(s[i]-m)*(s[i]-m);\n\t\t\t\t}\n\t\t\t\ta=a/n;\n\t\t\t\tSystem.out.printf(\"%.8f\\n\",Math.sqrt(a));\n\t\t\t}",
"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\t\ts[i]=sc.nextInt();\n\t\t\t\t\tsum+=s[i];\n\t\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\t\ts[i]=sc.nextInt();\n\t\t\t\t\tsum+=s[i];\n\t\t\t\t}",
"{\n\t\t\t\t\ts[i]=sc.nextInt();\n\t\t\t\t\tsum+=s[i];\n\t\t\t\t}",
"s[i]=sc.nextInt()",
"s[i]",
"s",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sum+=s[i]",
"sum",
"s[i]",
"s",
"i",
"double m=(double)sum/(double)n;",
"m",
"(double)sum/(double)n",
"(double)sum",
"(double)n",
"double a=0;",
"a",
"0",
"for(int i=0;i<n;i++){\n\t\t\t\t\ta+=(s[i]-m)*(s[i]-m);\n\t\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\t\ta+=(s[i]-m)*(s[i]-m);\n\t\t\t\t}",
"{\n\t\t\t\t\ta+=(s[i]-m)*(s[i]-m);\n\t\t\t\t}",
"a+=(s[i]-m)*(s[i]-m)",
"a",
"(s[i]-m)*(s[i]-m)",
"(s[i]-m)",
"s[i]",
"s",
"i",
"m",
"(s[i]-m)",
"s[i]",
"s",
"i",
"m",
"a=a/n",
"a",
"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",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint n=sc.nextInt();\n\t\t\tif(n==0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tint sum=0;\n\t\t\t\tint[] s=new int[n];\n\t\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\t\ts[i]=sc.nextInt();\n\t\t\t\t\tsum+=s[i];\n\t\t\t\t}\n\t\t\t\tdouble m=(double)sum/(double)n;\n\t\t\t\tdouble a=0;\n\t\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\t\ta+=(s[i]-m)*(s[i]-m);\n\t\t\t\t}\n\t\t\t\ta=a/n;\n\t\t\t\tSystem.out.printf(\"%.8f\\n\",Math.sqrt(a));\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint n=sc.nextInt();\n\t\t\tif(n==0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tint sum=0;\n\t\t\t\tint[] s=new int[n];\n\t\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\t\ts[i]=sc.nextInt();\n\t\t\t\t\tsum+=s[i];\n\t\t\t\t}\n\t\t\t\tdouble m=(double)sum/(double)n;\n\t\t\t\tdouble a=0;\n\t\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\t\ta+=(s[i]-m)*(s[i]-m);\n\t\t\t\t}\n\t\t\t\ta=a/n;\n\t\t\t\tSystem.out.printf(\"%.8f\\n\",Math.sqrt(a));\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
while(true){
int n=sc.nextInt();
if(n==0){
break;
}else{
int sum=0;
int[] s=new int[n];
for(int i=0;i<n;i++){
s[i]=sc.nextInt();
sum+=s[i];
}
double m=(double)sum/(double)n;
double a=0;
for(int i=0;i<n;i++){
a+=(s[i]-m)*(s[i]-m);
}
a=a/n;
System.out.printf("%.8f\n",Math.sqrt(a));
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
38,
5,
13,
30,
30,
42,
17,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
3,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
41,
13,
17,
41,
13,
17,
28,
13,
13,
30,
30,
0,
13,
13,
0,
13,
2,
13,
4,
18,
13,
28,
13,
13,
30,
30,
0,
13,
4,
18,
13,
2,
13,
13,
17,
0,
13,
2,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
13,
4,
18,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
118,
8
],
[
118,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
18,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
25,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
48,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
25,
58
],
[
58,
59
],
[
58,
60
],
[
25,
61
],
[
61,
62
],
[
61,
63
],
[
25,
64
],
[
64,
65
],
[
64,
66
],
[
64,
67
],
[
68,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
25,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
25,
79
],
[
79,
80
],
[
79,
81
],
[
79,
82
],
[
83,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
89,
90
],
[
89,
91
],
[
86,
92
],
[
25,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
25,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
25,
109
],
[
109,
110
],
[
110,
111
],
[
11,
112
],
[
112,
113
],
[
113,
114
],
[
9,
115
],
[
115,
116
],
[
0,
117
],
[
117,
118
],
[
117,
119
]
] | [
"import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n ArrayList<Integer> list = new ArrayList<>();\n try{\n while(true){\n int n = sc.nextInt();\n if(n==0) break;\n for(int i=0;i<n;i++){\n int S = sc.nextInt();\n list.add(S);\n }\n double Avg=0, sig=0;\n for(Integer num : list){\n Avg += num;\n }\n Avg = Avg / list.size();\n for(Integer num : list){\n sig += Math.pow((num - Avg), 2);\n }\n sig = sig / list.size();\n System.out.println(Math.sqrt(sig));\n list.clear();\n }\n }catch(Exception e){\n }\n sc.close();\n }\n}",
"import java.util.ArrayList;",
"ArrayList",
"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 ArrayList<Integer> list = new ArrayList<>();\n try{\n while(true){\n int n = sc.nextInt();\n if(n==0) break;\n for(int i=0;i<n;i++){\n int S = sc.nextInt();\n list.add(S);\n }\n double Avg=0, sig=0;\n for(Integer num : list){\n Avg += num;\n }\n Avg = Avg / list.size();\n for(Integer num : list){\n sig += Math.pow((num - Avg), 2);\n }\n sig = sig / list.size();\n System.out.println(Math.sqrt(sig));\n list.clear();\n }\n }catch(Exception e){\n }\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n ArrayList<Integer> list = new ArrayList<>();\n try{\n while(true){\n int n = sc.nextInt();\n if(n==0) break;\n for(int i=0;i<n;i++){\n int S = sc.nextInt();\n list.add(S);\n }\n double Avg=0, sig=0;\n for(Integer num : list){\n Avg += num;\n }\n Avg = Avg / list.size();\n for(Integer num : list){\n sig += Math.pow((num - Avg), 2);\n }\n sig = sig / list.size();\n System.out.println(Math.sqrt(sig));\n list.clear();\n }\n }catch(Exception e){\n }\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n ArrayList<Integer> list = new ArrayList<>();\n try{\n while(true){\n int n = sc.nextInt();\n if(n==0) break;\n for(int i=0;i<n;i++){\n int S = sc.nextInt();\n list.add(S);\n }\n double Avg=0, sig=0;\n for(Integer num : list){\n Avg += num;\n }\n Avg = Avg / list.size();\n for(Integer num : list){\n sig += Math.pow((num - Avg), 2);\n }\n sig = sig / list.size();\n System.out.println(Math.sqrt(sig));\n list.clear();\n }\n }catch(Exception e){\n }\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"ArrayList<Integer> list = new ArrayList<>();",
"list",
"new ArrayList<>()",
"try{\n while(true){\n int n = sc.nextInt();\n if(n==0) break;\n for(int i=0;i<n;i++){\n int S = sc.nextInt();\n list.add(S);\n }\n double Avg=0, sig=0;\n for(Integer num : list){\n Avg += num;\n }\n Avg = Avg / list.size();\n for(Integer num : list){\n sig += Math.pow((num - Avg), 2);\n }\n sig = sig / list.size();\n System.out.println(Math.sqrt(sig));\n list.clear();\n }\n }catch(Exception e){\n }",
"catch(Exception e){\n }",
"Exception e",
"{\n }",
"{\n while(true){\n int n = sc.nextInt();\n if(n==0) break;\n for(int i=0;i<n;i++){\n int S = sc.nextInt();\n list.add(S);\n }\n double Avg=0, sig=0;\n for(Integer num : list){\n Avg += num;\n }\n Avg = Avg / list.size();\n for(Integer num : list){\n sig += Math.pow((num - Avg), 2);\n }\n sig = sig / list.size();\n System.out.println(Math.sqrt(sig));\n list.clear();\n }\n }",
"while(true){\n int n = sc.nextInt();\n if(n==0) break;\n for(int i=0;i<n;i++){\n int S = sc.nextInt();\n list.add(S);\n }\n double Avg=0, sig=0;\n for(Integer num : list){\n Avg += num;\n }\n Avg = Avg / list.size();\n for(Integer num : list){\n sig += Math.pow((num - Avg), 2);\n }\n sig = sig / list.size();\n System.out.println(Math.sqrt(sig));\n list.clear();\n }",
"true",
"{\n int n = sc.nextInt();\n if(n==0) break;\n for(int i=0;i<n;i++){\n int S = sc.nextInt();\n list.add(S);\n }\n double Avg=0, sig=0;\n for(Integer num : list){\n Avg += num;\n }\n Avg = Avg / list.size();\n for(Integer num : list){\n sig += Math.pow((num - Avg), 2);\n }\n sig = sig / list.size();\n System.out.println(Math.sqrt(sig));\n list.clear();\n }",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(n==0) break;",
"n==0",
"n",
"0",
"break;",
"for(int i=0;i<n;i++){\n int S = sc.nextInt();\n list.add(S);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int S = sc.nextInt();\n list.add(S);\n }",
"{\n int S = sc.nextInt();\n list.add(S);\n }",
"int S = sc.nextInt();",
"S",
"sc.nextInt()",
"sc.nextInt",
"sc",
"list.add(S)",
"list.add",
"list",
"S",
"double Avg=0",
"Avg",
"0",
"sig=0;",
"sig",
"0",
"for(Integer num : list){\n Avg += num;\n }",
"Integer num",
"list",
"{\n Avg += num;\n }",
"{\n Avg += num;\n }",
"Avg += num",
"Avg",
"num",
"Avg = Avg / list.size()",
"Avg",
"Avg / list.size()",
"Avg",
"list.size()",
"list.size",
"list",
"for(Integer num : list){\n sig += Math.pow((num - Avg), 2);\n }",
"Integer num",
"list",
"{\n sig += Math.pow((num - Avg), 2);\n }",
"{\n sig += Math.pow((num - Avg), 2);\n }",
"sig += Math.pow((num - Avg), 2)",
"sig",
"Math.pow((num - Avg), 2)",
"Math.pow",
"Math",
"(num - Avg)",
"num",
"Avg",
"2",
"sig = sig / list.size()",
"sig",
"sig / list.size()",
"sig",
"list.size()",
"list.size",
"list",
"System.out.println(Math.sqrt(sig))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.sqrt(sig)",
"Math.sqrt",
"Math",
"sig",
"list.clear()",
"list.clear",
"list",
"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 ArrayList<Integer> list = new ArrayList<>();\n try{\n while(true){\n int n = sc.nextInt();\n if(n==0) break;\n for(int i=0;i<n;i++){\n int S = sc.nextInt();\n list.add(S);\n }\n double Avg=0, sig=0;\n for(Integer num : list){\n Avg += num;\n }\n Avg = Avg / list.size();\n for(Integer num : list){\n sig += Math.pow((num - Avg), 2);\n }\n sig = sig / list.size();\n System.out.println(Math.sqrt(sig));\n list.clear();\n }\n }catch(Exception e){\n }\n sc.close();\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n ArrayList<Integer> list = new ArrayList<>();\n try{\n while(true){\n int n = sc.nextInt();\n if(n==0) break;\n for(int i=0;i<n;i++){\n int S = sc.nextInt();\n list.add(S);\n }\n double Avg=0, sig=0;\n for(Integer num : list){\n Avg += num;\n }\n Avg = Avg / list.size();\n for(Integer num : list){\n sig += Math.pow((num - Avg), 2);\n }\n sig = sig / list.size();\n System.out.println(Math.sqrt(sig));\n list.clear();\n }\n }catch(Exception e){\n }\n sc.close();\n }\n}",
"Main"
] | import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
ArrayList<Integer> list = new ArrayList<>();
try{
while(true){
int n = sc.nextInt();
if(n==0) break;
for(int i=0;i<n;i++){
int S = sc.nextInt();
list.add(S);
}
double Avg=0, sig=0;
for(Integer num : list){
Avg += num;
}
Avg = Avg / list.size();
for(Integer num : list){
sig += Math.pow((num - Avg), 2);
}
sig = sig / list.size();
System.out.println(Math.sqrt(sig));
list.clear();
}
}catch(Exception e){
}
sc.close();
}
}
|
[
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,
4,
18,
13,
14,
2,
13,
17,
30,
3,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
18,
13,
13,
41,
13,
2,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
2,
18,
13,
13,
13,
2,
18,
13,
13,
13,
0,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
143,
5
],
[
143,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
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
],
[
28,
29
],
[
29,
30
],
[
16,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
16,
37
],
[
37,
38
],
[
37,
39
],
[
16,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
41,
51
],
[
51,
52
],
[
52,
53
],
[
41,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
16,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
63,
73
],
[
73,
74
],
[
74,
75
],
[
63,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
16,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
16,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
97,
99
],
[
90,
100
],
[
100,
101
],
[
101,
102
],
[
90,
103
],
[
104,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
107,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
104,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
120,
122
],
[
16,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
125,
127
],
[
16,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
130,
133
],
[
16,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
6,
140
],
[
140,
141
],
[
0,
142
],
[
142,
143
],
[
142,
144
]
] | [
"import java.util.*;\npublic class Main {\npublic static void main(String[] args) {\n\tScanner sc=new Scanner(System.in);\n\twhile(sc.hasNext()) {\n\t\tdouble sum=0;\n\t\tdouble sum2=0;\n\t\tdouble a = 0;\n\tint n=sc.nextInt();\n\tif(n==0) {\n\t\tbreak;\n\t}\n\tint s[]=new int[n];\n\tfor(int i=0;i<s.length;i++) {\n\t\ts[i]=sc.nextInt();\n\t}\n\tfor(int i=0;i<s.length;i++) {\n\t\tsum=sum+s[i];\n\t}\n\tdouble m=sum/n;\n\tfor(int i=0;i<s.length;i++) {\n\t\t\ta=(s[i]-m)*(s[i]-m);\n\t\t\tsum2=sum2+a;\n\t}\n\tdouble a2=sum2/n;\n\tdouble a3=(double) Math.sqrt(a2);\n\tSystem.out.println(a3);\n}\n}\n}\n",
"import java.util.*;",
"util.*",
"java",
"public class Main {\npublic static void main(String[] args) {\n\tScanner sc=new Scanner(System.in);\n\twhile(sc.hasNext()) {\n\t\tdouble sum=0;\n\t\tdouble sum2=0;\n\t\tdouble a = 0;\n\tint n=sc.nextInt();\n\tif(n==0) {\n\t\tbreak;\n\t}\n\tint s[]=new int[n];\n\tfor(int i=0;i<s.length;i++) {\n\t\ts[i]=sc.nextInt();\n\t}\n\tfor(int i=0;i<s.length;i++) {\n\t\tsum=sum+s[i];\n\t}\n\tdouble m=sum/n;\n\tfor(int i=0;i<s.length;i++) {\n\t\t\ta=(s[i]-m)*(s[i]-m);\n\t\t\tsum2=sum2+a;\n\t}\n\tdouble a2=sum2/n;\n\tdouble a3=(double) Math.sqrt(a2);\n\tSystem.out.println(a3);\n}\n}\n}",
"Main",
"public static void main(String[] args) {\n\tScanner sc=new Scanner(System.in);\n\twhile(sc.hasNext()) {\n\t\tdouble sum=0;\n\t\tdouble sum2=0;\n\t\tdouble a = 0;\n\tint n=sc.nextInt();\n\tif(n==0) {\n\t\tbreak;\n\t}\n\tint s[]=new int[n];\n\tfor(int i=0;i<s.length;i++) {\n\t\ts[i]=sc.nextInt();\n\t}\n\tfor(int i=0;i<s.length;i++) {\n\t\tsum=sum+s[i];\n\t}\n\tdouble m=sum/n;\n\tfor(int i=0;i<s.length;i++) {\n\t\t\ta=(s[i]-m)*(s[i]-m);\n\t\t\tsum2=sum2+a;\n\t}\n\tdouble a2=sum2/n;\n\tdouble a3=(double) Math.sqrt(a2);\n\tSystem.out.println(a3);\n}\n}",
"main",
"{\n\tScanner sc=new Scanner(System.in);\n\twhile(sc.hasNext()) {\n\t\tdouble sum=0;\n\t\tdouble sum2=0;\n\t\tdouble a = 0;\n\tint n=sc.nextInt();\n\tif(n==0) {\n\t\tbreak;\n\t}\n\tint s[]=new int[n];\n\tfor(int i=0;i<s.length;i++) {\n\t\ts[i]=sc.nextInt();\n\t}\n\tfor(int i=0;i<s.length;i++) {\n\t\tsum=sum+s[i];\n\t}\n\tdouble m=sum/n;\n\tfor(int i=0;i<s.length;i++) {\n\t\t\ta=(s[i]-m)*(s[i]-m);\n\t\t\tsum2=sum2+a;\n\t}\n\tdouble a2=sum2/n;\n\tdouble a3=(double) Math.sqrt(a2);\n\tSystem.out.println(a3);\n}\n}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while(sc.hasNext()) {\n\t\tdouble sum=0;\n\t\tdouble sum2=0;\n\t\tdouble a = 0;\n\tint n=sc.nextInt();\n\tif(n==0) {\n\t\tbreak;\n\t}\n\tint s[]=new int[n];\n\tfor(int i=0;i<s.length;i++) {\n\t\ts[i]=sc.nextInt();\n\t}\n\tfor(int i=0;i<s.length;i++) {\n\t\tsum=sum+s[i];\n\t}\n\tdouble m=sum/n;\n\tfor(int i=0;i<s.length;i++) {\n\t\t\ta=(s[i]-m)*(s[i]-m);\n\t\t\tsum2=sum2+a;\n\t}\n\tdouble a2=sum2/n;\n\tdouble a3=(double) Math.sqrt(a2);\n\tSystem.out.println(a3);\n}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t\tdouble sum=0;\n\t\tdouble sum2=0;\n\t\tdouble a = 0;\n\tint n=sc.nextInt();\n\tif(n==0) {\n\t\tbreak;\n\t}\n\tint s[]=new int[n];\n\tfor(int i=0;i<s.length;i++) {\n\t\ts[i]=sc.nextInt();\n\t}\n\tfor(int i=0;i<s.length;i++) {\n\t\tsum=sum+s[i];\n\t}\n\tdouble m=sum/n;\n\tfor(int i=0;i<s.length;i++) {\n\t\t\ta=(s[i]-m)*(s[i]-m);\n\t\t\tsum2=sum2+a;\n\t}\n\tdouble a2=sum2/n;\n\tdouble a3=(double) Math.sqrt(a2);\n\tSystem.out.println(a3);\n}",
"double sum=0;",
"sum",
"0",
"double sum2=0;",
"sum2",
"0",
"double a = 0;",
"a",
"0",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(n==0) {\n\t\tbreak;\n\t}",
"n==0",
"n",
"0",
"{\n\t\tbreak;\n\t}",
"break;",
"int s[]=new int[n];",
"s",
"new int[n]",
"n",
"for(int i=0;i<s.length;i++) {\n\t\ts[i]=sc.nextInt();\n\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<s.length",
"i",
"s.length",
"s",
"s.length",
"i++",
"i++",
"i",
"{\n\t\ts[i]=sc.nextInt();\n\t}",
"{\n\t\ts[i]=sc.nextInt();\n\t}",
"s[i]=sc.nextInt()",
"s[i]",
"s",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=0;i<s.length;i++) {\n\t\tsum=sum+s[i];\n\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<s.length",
"i",
"s.length",
"s",
"s.length",
"i++",
"i++",
"i",
"{\n\t\tsum=sum+s[i];\n\t}",
"{\n\t\tsum=sum+s[i];\n\t}",
"sum=sum+s[i]",
"sum",
"sum+s[i]",
"sum",
"s[i]",
"s",
"i",
"double m=sum/n;",
"m",
"sum/n",
"sum",
"n",
"for(int i=0;i<s.length;i++) {\n\t\t\ta=(s[i]-m)*(s[i]-m);\n\t\t\tsum2=sum2+a;\n\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<s.length",
"i",
"s.length",
"s",
"s.length",
"i++",
"i++",
"i",
"{\n\t\t\ta=(s[i]-m)*(s[i]-m);\n\t\t\tsum2=sum2+a;\n\t}",
"{\n\t\t\ta=(s[i]-m)*(s[i]-m);\n\t\t\tsum2=sum2+a;\n\t}",
"a=(s[i]-m)*(s[i]-m)",
"a",
"(s[i]-m)*(s[i]-m)",
"(s[i]-m)",
"s[i]",
"s",
"i",
"m",
"(s[i]-m)",
"s[i]",
"s",
"i",
"m",
"sum2=sum2+a",
"sum2",
"sum2+a",
"sum2",
"a",
"double a2=sum2/n;",
"a2",
"sum2/n",
"sum2",
"n",
"double a3=(double) Math.sqrt(a2);",
"a3",
"(double) Math.sqrt(a2)",
"Math.sqrt",
"Math",
"a2",
"System.out.println(a3)",
"System.out.println",
"System.out",
"System",
"System.out",
"a3",
"String[] args",
"args",
"public class Main {\npublic static void main(String[] args) {\n\tScanner sc=new Scanner(System.in);\n\twhile(sc.hasNext()) {\n\t\tdouble sum=0;\n\t\tdouble sum2=0;\n\t\tdouble a = 0;\n\tint n=sc.nextInt();\n\tif(n==0) {\n\t\tbreak;\n\t}\n\tint s[]=new int[n];\n\tfor(int i=0;i<s.length;i++) {\n\t\ts[i]=sc.nextInt();\n\t}\n\tfor(int i=0;i<s.length;i++) {\n\t\tsum=sum+s[i];\n\t}\n\tdouble m=sum/n;\n\tfor(int i=0;i<s.length;i++) {\n\t\t\ta=(s[i]-m)*(s[i]-m);\n\t\t\tsum2=sum2+a;\n\t}\n\tdouble a2=sum2/n;\n\tdouble a3=(double) Math.sqrt(a2);\n\tSystem.out.println(a3);\n}\n}\n}",
"public class Main {\npublic static void main(String[] args) {\n\tScanner sc=new Scanner(System.in);\n\twhile(sc.hasNext()) {\n\t\tdouble sum=0;\n\t\tdouble sum2=0;\n\t\tdouble a = 0;\n\tint n=sc.nextInt();\n\tif(n==0) {\n\t\tbreak;\n\t}\n\tint s[]=new int[n];\n\tfor(int i=0;i<s.length;i++) {\n\t\ts[i]=sc.nextInt();\n\t}\n\tfor(int i=0;i<s.length;i++) {\n\t\tsum=sum+s[i];\n\t}\n\tdouble m=sum/n;\n\tfor(int i=0;i<s.length;i++) {\n\t\t\ta=(s[i]-m)*(s[i]-m);\n\t\t\tsum2=sum2+a;\n\t}\n\tdouble a2=sum2/n;\n\tdouble a3=(double) Math.sqrt(a2);\n\tSystem.out.println(a3);\n}\n}\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
while(sc.hasNext()) {
double sum=0;
double sum2=0;
double a = 0;
int n=sc.nextInt();
if(n==0) {
break;
}
int s[]=new int[n];
for(int i=0;i<s.length;i++) {
s[i]=sc.nextInt();
}
for(int i=0;i<s.length;i++) {
sum=sum+s[i];
}
double m=sum/n;
for(int i=0;i<s.length;i++) {
a=(s[i]-m)*(s[i]-m);
sum2=sum2+a;
}
double a2=sum2/n;
double a3=(double) Math.sqrt(a2);
System.out.println(a3);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
17,
41,
13,
41,
13,
41,
13,
17,
41,
13,
0,
13,
20,
17,
41,
13,
20,
42,
17,
30,
0,
13,
17,
0,
13,
17,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
3,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
18,
13,
13,
0,
13,
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,
2,
17,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
130,
5
],
[
130,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
13,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
38,
40
],
[
34,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
34,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
34,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
61,
62
],
[
52,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
70,
71
],
[
64,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
74,
76
],
[
34,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
34,
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
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
97,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
34,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
113,
114
],
[
113,
115
],
[
34,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
121,
122
],
[
121,
123
],
[
8,
124
],
[
124,
125
],
[
125,
126
],
[
6,
127
],
[
127,
128
],
[
0,
129
],
[
129,
130
],
[
129,
131
]
] | [
"import java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tint n,i;\n\t\tint sum=0;\n\t\tdouble ave,syg,bsum=0;\n\t\tint[] data;\n\t\tdata = new int[1000];\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(true) {\n\t\t\tbsum = 0;\n\t\t\tsum = 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\tfor (i=0 ; i<n ; i++) {\n\t\t\t\tdata[i]=sc.nextInt();\n\t\t\t\tsum += data[i];\n\t\t\t}\n\t\t\tave = (double)sum/(double)n;\n\t\t\tfor (i=0 ; i<n ; i++) {\n\t\t\t\tbsum += ((double)data[i]-ave)*((double)data[i]-ave);\n\t\t\t}\n\t\t\tsyg = Math.sqrt((double)bsum/(double)n);\n\t\t\tSystem.out.println(\"\"+syg);\n\t\t}\n\t\t\n\t\tsc.close();\n\t}\t\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tint n,i;\n\t\tint sum=0;\n\t\tdouble ave,syg,bsum=0;\n\t\tint[] data;\n\t\tdata = new int[1000];\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(true) {\n\t\t\tbsum = 0;\n\t\t\tsum = 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\tfor (i=0 ; i<n ; i++) {\n\t\t\t\tdata[i]=sc.nextInt();\n\t\t\t\tsum += data[i];\n\t\t\t}\n\t\t\tave = (double)sum/(double)n;\n\t\t\tfor (i=0 ; i<n ; i++) {\n\t\t\t\tbsum += ((double)data[i]-ave)*((double)data[i]-ave);\n\t\t\t}\n\t\t\tsyg = Math.sqrt((double)bsum/(double)n);\n\t\t\tSystem.out.println(\"\"+syg);\n\t\t}\n\t\t\n\t\tsc.close();\n\t}\t\n}",
"Main",
"public static void main(String[] args) {\n\t\t\n\t\tint n,i;\n\t\tint sum=0;\n\t\tdouble ave,syg,bsum=0;\n\t\tint[] data;\n\t\tdata = new int[1000];\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(true) {\n\t\t\tbsum = 0;\n\t\t\tsum = 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\tfor (i=0 ; i<n ; i++) {\n\t\t\t\tdata[i]=sc.nextInt();\n\t\t\t\tsum += data[i];\n\t\t\t}\n\t\t\tave = (double)sum/(double)n;\n\t\t\tfor (i=0 ; i<n ; i++) {\n\t\t\t\tbsum += ((double)data[i]-ave)*((double)data[i]-ave);\n\t\t\t}\n\t\t\tsyg = Math.sqrt((double)bsum/(double)n);\n\t\t\tSystem.out.println(\"\"+syg);\n\t\t}\n\t\t\n\t\tsc.close();\n\t}",
"main",
"{\n\t\t\n\t\tint n,i;\n\t\tint sum=0;\n\t\tdouble ave,syg,bsum=0;\n\t\tint[] data;\n\t\tdata = new int[1000];\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(true) {\n\t\t\tbsum = 0;\n\t\t\tsum = 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\tfor (i=0 ; i<n ; i++) {\n\t\t\t\tdata[i]=sc.nextInt();\n\t\t\t\tsum += data[i];\n\t\t\t}\n\t\t\tave = (double)sum/(double)n;\n\t\t\tfor (i=0 ; i<n ; i++) {\n\t\t\t\tbsum += ((double)data[i]-ave)*((double)data[i]-ave);\n\t\t\t}\n\t\t\tsyg = Math.sqrt((double)bsum/(double)n);\n\t\t\tSystem.out.println(\"\"+syg);\n\t\t}\n\t\t\n\t\tsc.close();\n\t}",
"int n",
"n",
"i;",
"i",
"int sum=0;",
"sum",
"0",
"double ave",
"ave",
"syg",
"syg",
"bsum=0;",
"bsum",
"0",
"int[] data;",
"data",
"data = new int[1000]",
"data",
"new int[1000]",
"1000",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while(true) {\n\t\t\tbsum = 0;\n\t\t\tsum = 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\tfor (i=0 ; i<n ; i++) {\n\t\t\t\tdata[i]=sc.nextInt();\n\t\t\t\tsum += data[i];\n\t\t\t}\n\t\t\tave = (double)sum/(double)n;\n\t\t\tfor (i=0 ; i<n ; i++) {\n\t\t\t\tbsum += ((double)data[i]-ave)*((double)data[i]-ave);\n\t\t\t}\n\t\t\tsyg = Math.sqrt((double)bsum/(double)n);\n\t\t\tSystem.out.println(\"\"+syg);\n\t\t}",
"true",
"{\n\t\t\tbsum = 0;\n\t\t\tsum = 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\tfor (i=0 ; i<n ; i++) {\n\t\t\t\tdata[i]=sc.nextInt();\n\t\t\t\tsum += data[i];\n\t\t\t}\n\t\t\tave = (double)sum/(double)n;\n\t\t\tfor (i=0 ; i<n ; i++) {\n\t\t\t\tbsum += ((double)data[i]-ave)*((double)data[i]-ave);\n\t\t\t}\n\t\t\tsyg = Math.sqrt((double)bsum/(double)n);\n\t\t\tSystem.out.println(\"\"+syg);\n\t\t}",
"bsum = 0",
"bsum",
"0",
"sum = 0",
"sum",
"0",
"n=sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (n==0) {\n\t\t\t\tbreak;\n\t\t\t}",
"n==0",
"n",
"0",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"for (i=0 ; i<n ; i++) {\n\t\t\t\tdata[i]=sc.nextInt();\n\t\t\t\tsum += data[i];\n\t\t\t}",
"i=0 ;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tdata[i]=sc.nextInt();\n\t\t\t\tsum += data[i];\n\t\t\t}",
"{\n\t\t\t\tdata[i]=sc.nextInt();\n\t\t\t\tsum += data[i];\n\t\t\t}",
"data[i]=sc.nextInt()",
"data[i]",
"data",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sum += data[i]",
"sum",
"data[i]",
"data",
"i",
"ave = (double)sum/(double)n",
"ave",
"(double)sum/(double)n",
"(double)sum",
"(double)n",
"for (i=0 ; i<n ; i++) {\n\t\t\t\tbsum += ((double)data[i]-ave)*((double)data[i]-ave);\n\t\t\t}",
"i=0 ;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tbsum += ((double)data[i]-ave)*((double)data[i]-ave);\n\t\t\t}",
"{\n\t\t\t\tbsum += ((double)data[i]-ave)*((double)data[i]-ave);\n\t\t\t}",
"bsum += ((double)data[i]-ave)*((double)data[i]-ave)",
"bsum",
"((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",
"syg = Math.sqrt((double)bsum/(double)n)",
"syg",
"Math.sqrt((double)bsum/(double)n)",
"Math.sqrt",
"Math",
"(double)bsum/(double)n",
"(double)bsum",
"(double)n",
"System.out.println(\"\"+syg)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"+syg",
"\"\"",
"syg",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tint n,i;\n\t\tint sum=0;\n\t\tdouble ave,syg,bsum=0;\n\t\tint[] data;\n\t\tdata = new int[1000];\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(true) {\n\t\t\tbsum = 0;\n\t\t\tsum = 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\tfor (i=0 ; i<n ; i++) {\n\t\t\t\tdata[i]=sc.nextInt();\n\t\t\t\tsum += data[i];\n\t\t\t}\n\t\t\tave = (double)sum/(double)n;\n\t\t\tfor (i=0 ; i<n ; i++) {\n\t\t\t\tbsum += ((double)data[i]-ave)*((double)data[i]-ave);\n\t\t\t}\n\t\t\tsyg = Math.sqrt((double)bsum/(double)n);\n\t\t\tSystem.out.println(\"\"+syg);\n\t\t}\n\t\t\n\t\tsc.close();\n\t}\t\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tint n,i;\n\t\tint sum=0;\n\t\tdouble ave,syg,bsum=0;\n\t\tint[] data;\n\t\tdata = new int[1000];\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(true) {\n\t\t\tbsum = 0;\n\t\t\tsum = 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\tfor (i=0 ; i<n ; i++) {\n\t\t\t\tdata[i]=sc.nextInt();\n\t\t\t\tsum += data[i];\n\t\t\t}\n\t\t\tave = (double)sum/(double)n;\n\t\t\tfor (i=0 ; i<n ; i++) {\n\t\t\t\tbsum += ((double)data[i]-ave)*((double)data[i]-ave);\n\t\t\t}\n\t\t\tsyg = Math.sqrt((double)bsum/(double)n);\n\t\t\tSystem.out.println(\"\"+syg);\n\t\t}\n\t\t\n\t\tsc.close();\n\t}\t\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args) {
int n,i;
int sum=0;
double ave,syg,bsum=0;
int[] data;
data = new int[1000];
Scanner sc = new Scanner(System.in);
while(true) {
bsum = 0;
sum = 0;
n=sc.nextInt();
if (n==0) {
break;
}
for (i=0 ; i<n ; i++) {
data[i]=sc.nextInt();
sum += data[i];
}
ave = (double)sum/(double)n;
for (i=0 ; i<n ; i++) {
bsum += ((double)data[i]-ave)*((double)data[i]-ave);
}
syg = Math.sqrt((double)bsum/(double)n);
System.out.println(""+syg);
}
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,
0,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
2,
18,
13,
13,
13,
17,
0,
13,
4,
18,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
4,
18,
13,
17,
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
],
[
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
],
[
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
],
[
79,
80
],
[
78,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
78,
86
],
[
14,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
92,
93
],
[
92,
94
],
[
14,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
8,
101
],
[
101,
102
],
[
102,
103
],
[
8,
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\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tint n = scan.nextInt();\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm /= n;\n\t\t\tdouble a = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ta += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\ta = Math.sqrt(a / n);\n\n\t\t\tSystem.out.println(a);\n\n\t\t}\n\n\t\tscan.close();\n\t\tSystem.exit(0);\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tint n = scan.nextInt();\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm /= n;\n\t\t\tdouble a = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ta += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\ta = Math.sqrt(a / n);\n\n\t\t\tSystem.out.println(a);\n\n\t\t}\n\n\t\tscan.close();\n\t\tSystem.exit(0);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tint n = scan.nextInt();\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm /= n;\n\t\t\tdouble a = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ta += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\ta = Math.sqrt(a / n);\n\n\t\t\tSystem.out.println(a);\n\n\t\t}\n\n\t\tscan.close();\n\t\tSystem.exit(0);\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tint n = scan.nextInt();\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm /= n;\n\t\t\tdouble a = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ta += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\ta = Math.sqrt(a / n);\n\n\t\t\tSystem.out.println(a);\n\n\t\t}\n\n\t\tscan.close();\n\t\tSystem.exit(0);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"while (true) {\n\t\t\tint n = scan.nextInt();\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm /= n;\n\t\t\tdouble a = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ta += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\ta = Math.sqrt(a / n);\n\n\t\t\tSystem.out.println(a);\n\n\t\t}",
"true",
"{\n\t\t\tint n = scan.nextInt();\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm /= n;\n\t\t\tdouble a = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ta += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\ta = Math.sqrt(a / n);\n\n\t\t\tSystem.out.println(a);\n\n\t\t}",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if (n == 0)\n\t\t\t\tbreak;",
"n == 0",
"n",
"0",
"break;",
"int[] s = new int[n];",
"s",
"new int[n]",
"n",
"double m = 0;",
"m",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}",
"{\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}",
"s[i] = scan.nextInt()",
"s[i]",
"s",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"m += s[i]",
"m",
"s[i]",
"s",
"i",
"m /= n",
"m",
"n",
"double a = 0;",
"a",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\t\ta += Math.pow(s[i] - m, 2);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\ta += Math.pow(s[i] - m, 2);\n\t\t\t}",
"{\n\t\t\t\ta += Math.pow(s[i] - m, 2);\n\t\t\t}",
"a += Math.pow(s[i] - m, 2)",
"a",
"Math.pow(s[i] - m, 2)",
"Math.pow",
"Math",
"s[i] - m",
"s[i]",
"s",
"i",
"m",
"2",
"a = Math.sqrt(a / n)",
"a",
"Math.sqrt(a / n)",
"Math.sqrt",
"Math",
"a / n",
"a",
"n",
"System.out.println(a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a",
"scan.close()",
"scan.close",
"scan",
"System.exit(0)",
"System.exit",
"System",
"0",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tint n = scan.nextInt();\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm /= n;\n\t\t\tdouble a = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ta += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\ta = Math.sqrt(a / n);\n\n\t\t\tSystem.out.println(a);\n\n\t\t}\n\n\t\tscan.close();\n\t\tSystem.exit(0);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tint n = scan.nextInt();\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\tint[] s = new int[n];\n\t\t\tdouble m = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ts[i] = scan.nextInt();\n\t\t\t\tm += s[i];\n\t\t\t}\n\t\t\tm /= n;\n\t\t\tdouble a = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ta += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\ta = Math.sqrt(a / n);\n\n\t\t\tSystem.out.println(a);\n\n\t\t}\n\n\t\tscan.close();\n\t\tSystem.exit(0);\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
while (true) {
int n = scan.nextInt();
if (n == 0)
break;
int[] s = new int[n];
double m = 0;
for (int i = 0; i < n; i++) {
s[i] = scan.nextInt();
m += s[i];
}
m /= n;
double a = 0;
for (int i = 0; i < n; i++) {
a += Math.pow(s[i] - m, 2);
}
a = Math.sqrt(a / n);
System.out.println(a);
}
scan.close();
System.exit(0);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
11,
1,
30,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
3,
41,
13,
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,
0,
13,
18,
13,
13,
41,
13,
2,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
2,
18,
13,
13,
13,
17,
0,
13,
4,
18,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
108,
5
],
[
108,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
15,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
15,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
21,
25
],
[
25,
26
],
[
15,
27
],
[
27,
28
],
[
27,
29
],
[
15,
30
],
[
30,
31
],
[
30,
32
],
[
15,
34
],
[
34,
35
],
[
34,
36
],
[
15,
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
],
[
15,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
15,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
82,
90
],
[
15,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
96,
97
],
[
96,
98
],
[
15,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
6,
105
],
[
105,
106
],
[
0,
107
],
[
107,
108
],
[
107,
109
]
] | [
"import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tfor(;;) {\n\t\tint a=scan.nextInt();\n\t\tif(a==0) {\n\t\t\tbreak;\n\t\t}\n\t\tdouble ans=0;\n\t\tint b[]=new int[a];\n\t\tdouble sum=0;\n\t\tfor(int i=0;i<a;i++) {\n\t\t\tb[i]=scan.nextInt();\n\t\t\tsum+=b[i];\n\t\t}\n\t\tdouble hei=sum/a;\n\t\tfor(int i=0;i<a;i++) {\n\t\t\tans+=Math.pow(b[i]-hei,2);\n\t\t}\n\t\tans=Math.sqrt(ans/a);\n\t\tSystem.out.println(ans);\n\t}\n\t\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\tfor(;;) {\n\t\tint a=scan.nextInt();\n\t\tif(a==0) {\n\t\t\tbreak;\n\t\t}\n\t\tdouble ans=0;\n\t\tint b[]=new int[a];\n\t\tdouble sum=0;\n\t\tfor(int i=0;i<a;i++) {\n\t\t\tb[i]=scan.nextInt();\n\t\t\tsum+=b[i];\n\t\t}\n\t\tdouble hei=sum/a;\n\t\tfor(int i=0;i<a;i++) {\n\t\t\tans+=Math.pow(b[i]-hei,2);\n\t\t}\n\t\tans=Math.sqrt(ans/a);\n\t\tSystem.out.println(ans);\n\t}\n\t\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tfor(;;) {\n\t\tint a=scan.nextInt();\n\t\tif(a==0) {\n\t\t\tbreak;\n\t\t}\n\t\tdouble ans=0;\n\t\tint b[]=new int[a];\n\t\tdouble sum=0;\n\t\tfor(int i=0;i<a;i++) {\n\t\t\tb[i]=scan.nextInt();\n\t\t\tsum+=b[i];\n\t\t}\n\t\tdouble hei=sum/a;\n\t\tfor(int i=0;i<a;i++) {\n\t\t\tans+=Math.pow(b[i]-hei,2);\n\t\t}\n\t\tans=Math.sqrt(ans/a);\n\t\tSystem.out.println(ans);\n\t}\n\t\t}",
"main",
"{\n\t\tScanner scan=new Scanner(System.in);\n\t\tfor(;;) {\n\t\tint a=scan.nextInt();\n\t\tif(a==0) {\n\t\t\tbreak;\n\t\t}\n\t\tdouble ans=0;\n\t\tint b[]=new int[a];\n\t\tdouble sum=0;\n\t\tfor(int i=0;i<a;i++) {\n\t\t\tb[i]=scan.nextInt();\n\t\t\tsum+=b[i];\n\t\t}\n\t\tdouble hei=sum/a;\n\t\tfor(int i=0;i<a;i++) {\n\t\t\tans+=Math.pow(b[i]-hei,2);\n\t\t}\n\t\tans=Math.sqrt(ans/a);\n\t\tSystem.out.println(ans);\n\t}\n\t\t}",
"Scanner scan=new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"for(;;) {\n\t\tint a=scan.nextInt();\n\t\tif(a==0) {\n\t\t\tbreak;\n\t\t}\n\t\tdouble ans=0;\n\t\tint b[]=new int[a];\n\t\tdouble sum=0;\n\t\tfor(int i=0;i<a;i++) {\n\t\t\tb[i]=scan.nextInt();\n\t\t\tsum+=b[i];\n\t\t}\n\t\tdouble hei=sum/a;\n\t\tfor(int i=0;i<a;i++) {\n\t\t\tans+=Math.pow(b[i]-hei,2);\n\t\t}\n\t\tans=Math.sqrt(ans/a);\n\t\tSystem.out.println(ans);\n\t}",
";",
"{\n\t\tint a=scan.nextInt();\n\t\tif(a==0) {\n\t\t\tbreak;\n\t\t}\n\t\tdouble ans=0;\n\t\tint b[]=new int[a];\n\t\tdouble sum=0;\n\t\tfor(int i=0;i<a;i++) {\n\t\t\tb[i]=scan.nextInt();\n\t\t\tsum+=b[i];\n\t\t}\n\t\tdouble hei=sum/a;\n\t\tfor(int i=0;i<a;i++) {\n\t\t\tans+=Math.pow(b[i]-hei,2);\n\t\t}\n\t\tans=Math.sqrt(ans/a);\n\t\tSystem.out.println(ans);\n\t}",
"{\n\t\tint a=scan.nextInt();\n\t\tif(a==0) {\n\t\t\tbreak;\n\t\t}\n\t\tdouble ans=0;\n\t\tint b[]=new int[a];\n\t\tdouble sum=0;\n\t\tfor(int i=0;i<a;i++) {\n\t\t\tb[i]=scan.nextInt();\n\t\t\tsum+=b[i];\n\t\t}\n\t\tdouble hei=sum/a;\n\t\tfor(int i=0;i<a;i++) {\n\t\t\tans+=Math.pow(b[i]-hei,2);\n\t\t}\n\t\tans=Math.sqrt(ans/a);\n\t\tSystem.out.println(ans);\n\t}",
"int a=scan.nextInt();",
"a",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if(a==0) {\n\t\t\tbreak;\n\t\t}",
"a==0",
"a",
"0",
"{\n\t\t\tbreak;\n\t\t}",
"break;",
"double ans=0;",
"ans",
"0",
"int b[]=new int[a];",
"b",
"new int[a]",
"a",
"double sum=0;",
"sum",
"0",
"for(int i=0;i<a;i++) {\n\t\t\tb[i]=scan.nextInt();\n\t\t\tsum+=b[i];\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a",
"i",
"a",
"i++",
"i++",
"i",
"{\n\t\t\tb[i]=scan.nextInt();\n\t\t\tsum+=b[i];\n\t\t}",
"{\n\t\t\tb[i]=scan.nextInt();\n\t\t\tsum+=b[i];\n\t\t}",
"b[i]=scan.nextInt()",
"b[i]",
"b",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"sum+=b[i]",
"sum",
"b[i]",
"b",
"i",
"double hei=sum/a;",
"hei",
"sum/a",
"sum",
"a",
"for(int i=0;i<a;i++) {\n\t\t\tans+=Math.pow(b[i]-hei,2);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a",
"i",
"a",
"i++",
"i++",
"i",
"{\n\t\t\tans+=Math.pow(b[i]-hei,2);\n\t\t}",
"{\n\t\t\tans+=Math.pow(b[i]-hei,2);\n\t\t}",
"ans+=Math.pow(b[i]-hei,2)",
"ans",
"Math.pow(b[i]-hei,2)",
"Math.pow",
"Math",
"b[i]-hei",
"b[i]",
"b",
"i",
"hei",
"2",
"ans=Math.sqrt(ans/a)",
"ans",
"Math.sqrt(ans/a)",
"Math.sqrt",
"Math",
"ans/a",
"ans",
"a",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tfor(;;) {\n\t\tint a=scan.nextInt();\n\t\tif(a==0) {\n\t\t\tbreak;\n\t\t}\n\t\tdouble ans=0;\n\t\tint b[]=new int[a];\n\t\tdouble sum=0;\n\t\tfor(int i=0;i<a;i++) {\n\t\t\tb[i]=scan.nextInt();\n\t\t\tsum+=b[i];\n\t\t}\n\t\tdouble hei=sum/a;\n\t\tfor(int i=0;i<a;i++) {\n\t\t\tans+=Math.pow(b[i]-hei,2);\n\t\t}\n\t\tans=Math.sqrt(ans/a);\n\t\tSystem.out.println(ans);\n\t}\n\t\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tfor(;;) {\n\t\tint a=scan.nextInt();\n\t\tif(a==0) {\n\t\t\tbreak;\n\t\t}\n\t\tdouble ans=0;\n\t\tint b[]=new int[a];\n\t\tdouble sum=0;\n\t\tfor(int i=0;i<a;i++) {\n\t\t\tb[i]=scan.nextInt();\n\t\t\tsum+=b[i];\n\t\t}\n\t\tdouble hei=sum/a;\n\t\tfor(int i=0;i<a;i++) {\n\t\t\tans+=Math.pow(b[i]-hei,2);\n\t\t}\n\t\tans=Math.sqrt(ans/a);\n\t\tSystem.out.println(ans);\n\t}\n\t\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan=new Scanner(System.in);
for(;;) {
int a=scan.nextInt();
if(a==0) {
break;
}
double ans=0;
int b[]=new int[a];
double sum=0;
for(int i=0;i<a;i++) {
b[i]=scan.nextInt();
sum+=b[i];
}
double hei=sum/a;
for(int i=0;i<a;i++) {
ans+=Math.pow(b[i]-hei,2);
}
ans=Math.sqrt(ans/a);
System.out.println(ans);
}
}
}
|
[
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,
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,
13,
4,
18,
18,
13,
13,
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
],
[
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
],
[
16,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
125,
127
],
[
16,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
133,
134
],
[
134,
135
],
[
133,
136
],
[
6,
137
],
[
137,
138
],
[
0,
139
],
[
139,
140
],
[
139,
141
]
] | [
"import java.util.Scanner;\npublic class Main{\npublic static void main(String[] args){\ntry (Scanner sc = new Scanner(System.in)){\nwhile(true){\nint n = sc.nextInt();\nif(n == 0){\nbreak;\n}\nint[] score = new int[n];\nfor(int i = 0; i< score.length; i++){\nscore[i] = sc.nextInt();\n}\ndouble avg = 0, var = 0, tot = 0;\nint sum = 0;\nfor(int i = 0; i<score.length; i++){\nsum = sum + score[i];\n}\navg = (double) sum / n;\nfor(int i = 0; i<score.length; i++){\ntot = tot + (score[i] - avg) * (score[i] - avg);\n}\nvar = tot / n;\nSystem.out.println(Math.sqrt(var));\n}\n}\n}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\npublic static void main(String[] args){\ntry (Scanner sc = new Scanner(System.in)){\nwhile(true){\nint n = sc.nextInt();\nif(n == 0){\nbreak;\n}\nint[] score = new int[n];\nfor(int i = 0; i< score.length; i++){\nscore[i] = sc.nextInt();\n}\ndouble avg = 0, var = 0, tot = 0;\nint sum = 0;\nfor(int i = 0; i<score.length; i++){\nsum = sum + score[i];\n}\navg = (double) sum / n;\nfor(int i = 0; i<score.length; i++){\ntot = tot + (score[i] - avg) * (score[i] - avg);\n}\nvar = tot / n;\nSystem.out.println(Math.sqrt(var));\n}\n}\n}\n}",
"Main",
"public static void main(String[] args){\ntry (Scanner sc = new Scanner(System.in)){\nwhile(true){\nint n = sc.nextInt();\nif(n == 0){\nbreak;\n}\nint[] score = new int[n];\nfor(int i = 0; i< score.length; i++){\nscore[i] = sc.nextInt();\n}\ndouble avg = 0, var = 0, tot = 0;\nint sum = 0;\nfor(int i = 0; i<score.length; i++){\nsum = sum + score[i];\n}\navg = (double) sum / n;\nfor(int i = 0; i<score.length; i++){\ntot = tot + (score[i] - avg) * (score[i] - avg);\n}\nvar = tot / n;\nSystem.out.println(Math.sqrt(var));\n}\n}\n}",
"main",
"{\ntry (Scanner sc = new Scanner(System.in)){\nwhile(true){\nint n = sc.nextInt();\nif(n == 0){\nbreak;\n}\nint[] score = new int[n];\nfor(int i = 0; i< score.length; i++){\nscore[i] = sc.nextInt();\n}\ndouble avg = 0, var = 0, tot = 0;\nint sum = 0;\nfor(int i = 0; i<score.length; i++){\nsum = sum + score[i];\n}\navg = (double) sum / n;\nfor(int i = 0; i<score.length; i++){\ntot = tot + (score[i] - avg) * (score[i] - avg);\n}\nvar = tot / n;\nSystem.out.println(Math.sqrt(var));\n}\n}\n}",
"try (Scanner sc = new Scanner(System.in)){\nwhile(true){\nint n = sc.nextInt();\nif(n == 0){\nbreak;\n}\nint[] score = new int[n];\nfor(int i = 0; i< score.length; i++){\nscore[i] = sc.nextInt();\n}\ndouble avg = 0, var = 0, tot = 0;\nint sum = 0;\nfor(int i = 0; i<score.length; i++){\nsum = sum + score[i];\n}\navg = (double) sum / n;\nfor(int i = 0; i<score.length; i++){\ntot = tot + (score[i] - avg) * (score[i] - avg);\n}\nvar = tot / n;\nSystem.out.println(Math.sqrt(var));\n}\n}",
"{\nwhile(true){\nint n = sc.nextInt();\nif(n == 0){\nbreak;\n}\nint[] score = new int[n];\nfor(int i = 0; i< score.length; i++){\nscore[i] = sc.nextInt();\n}\ndouble avg = 0, var = 0, tot = 0;\nint sum = 0;\nfor(int i = 0; i<score.length; i++){\nsum = sum + score[i];\n}\navg = (double) sum / n;\nfor(int i = 0; i<score.length; i++){\ntot = tot + (score[i] - avg) * (score[i] - avg);\n}\nvar = tot / n;\nSystem.out.println(Math.sqrt(var));\n}\n}",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"while(true){\nint n = sc.nextInt();\nif(n == 0){\nbreak;\n}\nint[] score = new int[n];\nfor(int i = 0; i< score.length; i++){\nscore[i] = sc.nextInt();\n}\ndouble avg = 0, var = 0, tot = 0;\nint sum = 0;\nfor(int i = 0; i<score.length; i++){\nsum = sum + score[i];\n}\navg = (double) sum / n;\nfor(int i = 0; i<score.length; i++){\ntot = tot + (score[i] - avg) * (score[i] - avg);\n}\nvar = tot / n;\nSystem.out.println(Math.sqrt(var));\n}",
"true",
"{\nint n = sc.nextInt();\nif(n == 0){\nbreak;\n}\nint[] score = new int[n];\nfor(int i = 0; i< score.length; i++){\nscore[i] = sc.nextInt();\n}\ndouble avg = 0, var = 0, tot = 0;\nint sum = 0;\nfor(int i = 0; i<score.length; i++){\nsum = sum + score[i];\n}\navg = (double) sum / n;\nfor(int i = 0; i<score.length; i++){\ntot = tot + (score[i] - avg) * (score[i] - avg);\n}\nvar = tot / n;\nSystem.out.println(Math.sqrt(var));\n}",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(n == 0){\nbreak;\n}",
"n == 0",
"n",
"0",
"{\nbreak;\n}",
"break;",
"int[] score = new int[n];",
"score",
"new int[n]",
"n",
"for(int i = 0; i< score.length; i++){\nscore[i] = sc.nextInt();\n}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i< score.length",
"i",
"score.length",
"score",
"score.length",
"i++",
"i++",
"i",
"{\nscore[i] = sc.nextInt();\n}",
"{\nscore[i] = sc.nextInt();\n}",
"score[i] = sc.nextInt()",
"score[i]",
"score",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double avg = 0",
"avg",
"0",
"var = 0",
"var",
"0",
"tot = 0;",
"tot",
"0",
"int sum = 0;",
"sum",
"0",
"for(int i = 0; i<score.length; i++){\nsum = sum + score[i];\n}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<score.length",
"i",
"score.length",
"score",
"score.length",
"i++",
"i++",
"i",
"{\nsum = sum + score[i];\n}",
"{\nsum = sum + score[i];\n}",
"sum = sum + score[i]",
"sum",
"sum + score[i]",
"sum",
"score[i]",
"score",
"i",
"avg = (double) sum / n",
"avg",
"(double) sum / n",
"(double) sum",
"n",
"for(int i = 0; i<score.length; i++){\ntot = tot + (score[i] - avg) * (score[i] - avg);\n}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<score.length",
"i",
"score.length",
"score",
"score.length",
"i++",
"i++",
"i",
"{\ntot = tot + (score[i] - avg) * (score[i] - avg);\n}",
"{\ntot = tot + (score[i] - avg) * (score[i] - avg);\n}",
"tot = tot + (score[i] - avg) * (score[i] - avg)",
"tot",
"tot + (score[i] - avg) * (score[i] - avg)",
"tot",
"(score[i] - avg) * (score[i] - avg)",
"(score[i] - avg)",
"score[i]",
"score",
"i",
"avg",
"(score[i] - avg)",
"score[i]",
"score",
"i",
"avg",
"var = tot / n",
"var",
"tot / n",
"tot",
"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{\npublic static void main(String[] args){\ntry (Scanner sc = new Scanner(System.in)){\nwhile(true){\nint n = sc.nextInt();\nif(n == 0){\nbreak;\n}\nint[] score = new int[n];\nfor(int i = 0; i< score.length; i++){\nscore[i] = sc.nextInt();\n}\ndouble avg = 0, var = 0, tot = 0;\nint sum = 0;\nfor(int i = 0; i<score.length; i++){\nsum = sum + score[i];\n}\navg = (double) sum / n;\nfor(int i = 0; i<score.length; i++){\ntot = tot + (score[i] - avg) * (score[i] - avg);\n}\nvar = tot / n;\nSystem.out.println(Math.sqrt(var));\n}\n}\n}\n}",
"public class Main{\npublic static void main(String[] args){\ntry (Scanner sc = new Scanner(System.in)){\nwhile(true){\nint n = sc.nextInt();\nif(n == 0){\nbreak;\n}\nint[] score = new int[n];\nfor(int i = 0; i< score.length; i++){\nscore[i] = sc.nextInt();\n}\ndouble avg = 0, var = 0, tot = 0;\nint sum = 0;\nfor(int i = 0; i<score.length; i++){\nsum = sum + score[i];\n}\navg = (double) sum / n;\nfor(int i = 0; i<score.length; i++){\ntot = tot + (score[i] - avg) * (score[i] - avg);\n}\nvar = tot / n;\nSystem.out.println(Math.sqrt(var));\n}\n}\n}\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[] args){
try (Scanner sc = new Scanner(System.in)){
while(true){
int n = sc.nextInt();
if(n == 0){
break;
}
int[] score = new int[n];
for(int i = 0; i< score.length; i++){
score[i] = sc.nextInt();
}
double avg = 0, var = 0, tot = 0;
int sum = 0;
for(int i = 0; i<score.length; i++){
sum = sum + score[i];
}
avg = (double) sum / n;
for(int i = 0; i<score.length; i++){
tot = tot + (score[i] - avg) * (score[i] - avg);
}
var = tot / n;
System.out.println(Math.sqrt(var));
}
}
}
}
|
[
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,
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
],
[
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
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
81,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
80,
92
],
[
14,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
8,
102
],
[
102,
103
],
[
103,
104
],
[
6,
105
],
[
105,
106
],
[
0,
107
],
[
107,
108
],
[
107,
109
]
] | [
"import java.util.Scanner;\npublic class Main{\n\tpublic 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 = new int[n];\n int sum = 0;\n for(int i = 0; i < n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n double average = (double)sum / n;\n double variance = 0;\n for(int i = 0; i < n; i++){\n variance += (s[i] - average)*(s[i] - average)/n;\n }\n System.out.println((Math.sqrt(variance)));\n }\n sc.close();\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic 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 = new int[n];\n int sum = 0;\n for(int i = 0; i < n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n double average = (double)sum / n;\n double variance = 0;\n for(int i = 0; i < n; i++){\n variance += (s[i] - average)*(s[i] - average)/n;\n }\n System.out.println((Math.sqrt(variance)));\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 = new int[n];\n int sum = 0;\n for(int i = 0; i < n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n double average = (double)sum / n;\n double variance = 0;\n for(int i = 0; i < n; i++){\n variance += (s[i] - average)*(s[i] - average)/n;\n }\n System.out.println((Math.sqrt(variance)));\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 = new int[n];\n int sum = 0;\n for(int i = 0; i < n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n double average = (double)sum / n;\n double variance = 0;\n for(int i = 0; i < n; i++){\n variance += (s[i] - average)*(s[i] - average)/n;\n }\n System.out.println((Math.sqrt(variance)));\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 = new int[n];\n int sum = 0;\n for(int i = 0; i < n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n double average = (double)sum / n;\n double variance = 0;\n for(int i = 0; i < n; i++){\n variance += (s[i] - average)*(s[i] - average)/n;\n }\n System.out.println((Math.sqrt(variance)));\n }",
"true",
"{\n int n = sc.nextInt();\n if(n == 0) break;\n int[] s = new int[n];\n int sum = 0;\n for(int i = 0; i < n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n double average = (double)sum / n;\n double variance = 0;\n for(int i = 0; i < n; i++){\n variance += (s[i] - average)*(s[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) break;",
"n == 0",
"n",
"0",
"break;",
"int[] s = new int[n];",
"s",
"new int[n]",
"n",
"int sum = 0;",
"sum",
"0",
"for(int i = 0; i < n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n s[i] = sc.nextInt();\n sum += s[i];\n }",
"{\n s[i] = sc.nextInt();\n sum += s[i];\n }",
"s[i] = sc.nextInt()",
"s[i]",
"s",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sum += s[i]",
"sum",
"s[i]",
"s",
"i",
"double average = (double)sum / n;",
"average",
"(double)sum / n",
"(double)sum",
"n",
"double variance = 0;",
"variance",
"0",
"for(int i = 0; i < n; i++){\n variance += (s[i] - average)*(s[i] - average)/n;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n variance += (s[i] - average)*(s[i] - average)/n;\n }",
"{\n variance += (s[i] - average)*(s[i] - average)/n;\n }",
"variance += (s[i] - average)*(s[i] - average)/n",
"variance",
"(s[i] - average)*(s[i] - average)/n",
"(s[i] - average)*(s[i] - average)",
"(s[i] - average)",
"s[i]",
"s",
"i",
"average",
"(s[i] - average)",
"s[i]",
"s",
"i",
"average",
"n",
"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\tpublic 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 = new int[n];\n int sum = 0;\n for(int i = 0; i < n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n double average = (double)sum / n;\n double variance = 0;\n for(int i = 0; i < n; i++){\n variance += (s[i] - average)*(s[i] - average)/n;\n }\n System.out.println((Math.sqrt(variance)));\n }\n sc.close();\n }\n}",
"public class Main{\n\tpublic 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 = new int[n];\n int sum = 0;\n for(int i = 0; i < n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n double average = (double)sum / n;\n double variance = 0;\n for(int i = 0; i < n; i++){\n variance += (s[i] - average)*(s[i] - average)/n;\n }\n System.out.println((Math.sqrt(variance)));\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 = new int[n];
int sum = 0;
for(int i = 0; i < n; i++){
s[i] = sc.nextInt();
sum += s[i];
}
double average = (double)sum / n;
double variance = 0;
for(int i = 0; i < n; i++){
variance += (s[i] - average)*(s[i] - average)/n;
}
System.out.println((Math.sqrt(variance)));
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
3,
41,
13,
20,
13,
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,
4,
18,
13,
18,
13,
13,
17,
41,
13,
4,
18,
13,
2,
2,
13,
13,
4,
18,
13,
2,
13,
13,
17,
4,
18,
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
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
17,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
28,
38
],
[
38,
39
],
[
39,
40
],
[
28,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
27,
52
],
[
17,
53
],
[
53,
54
],
[
53,
55
],
[
17,
57
],
[
57,
58
],
[
57,
59
],
[
17,
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
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
84,
85
],
[
85,
86
],
[
79,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
89,
91
],
[
79,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
97,
98
],
[
97,
99
],
[
94,
100
],
[
17,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
113,
114
],
[
113,
115
],
[
110,
116
],
[
17,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
6,
121
],
[
121,
122
],
[
0,
123
],
[
123,
124
],
[
123,
125
]
] | [
"import java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n ArrayList<Double> S = new ArrayList<Double>();\n\n while (true) {\n int n = sc.nextInt();\n\n if (n == 0) {\n for (int i=0; i<S.size(); i++) {\n System.out.println(S.get(i));\n }\n break;\n }\n\n int[] A = new int[n];\n int[] B = new int[n];\n double sum1 = 0;\n double sum2 = 0;\n for (int i=0; i<n; i++) {\n A[i] = sc.nextInt();\n sum1 += A[i];\n sum2 += Math.pow(A[i], 2);\n }\n double s = Math.sqrt(sum2/n - Math.pow(sum1/n, 2));\n\n S.add(s);\n\n }\n\n\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n ArrayList<Double> S = new ArrayList<Double>();\n\n while (true) {\n int n = sc.nextInt();\n\n if (n == 0) {\n for (int i=0; i<S.size(); i++) {\n System.out.println(S.get(i));\n }\n break;\n }\n\n int[] A = new int[n];\n int[] B = new int[n];\n double sum1 = 0;\n double sum2 = 0;\n for (int i=0; i<n; i++) {\n A[i] = sc.nextInt();\n sum1 += A[i];\n sum2 += Math.pow(A[i], 2);\n }\n double s = Math.sqrt(sum2/n - Math.pow(sum1/n, 2));\n\n S.add(s);\n\n }\n\n\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n ArrayList<Double> S = new ArrayList<Double>();\n\n while (true) {\n int n = sc.nextInt();\n\n if (n == 0) {\n for (int i=0; i<S.size(); i++) {\n System.out.println(S.get(i));\n }\n break;\n }\n\n int[] A = new int[n];\n int[] B = new int[n];\n double sum1 = 0;\n double sum2 = 0;\n for (int i=0; i<n; i++) {\n A[i] = sc.nextInt();\n sum1 += A[i];\n sum2 += Math.pow(A[i], 2);\n }\n double s = Math.sqrt(sum2/n - Math.pow(sum1/n, 2));\n\n S.add(s);\n\n }\n\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n ArrayList<Double> S = new ArrayList<Double>();\n\n while (true) {\n int n = sc.nextInt();\n\n if (n == 0) {\n for (int i=0; i<S.size(); i++) {\n System.out.println(S.get(i));\n }\n break;\n }\n\n int[] A = new int[n];\n int[] B = new int[n];\n double sum1 = 0;\n double sum2 = 0;\n for (int i=0; i<n; i++) {\n A[i] = sc.nextInt();\n sum1 += A[i];\n sum2 += Math.pow(A[i], 2);\n }\n double s = Math.sqrt(sum2/n - Math.pow(sum1/n, 2));\n\n S.add(s);\n\n }\n\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"ArrayList<Double> S = new ArrayList<Double>();",
"S",
"new ArrayList<Double>()",
"while (true) {\n int n = sc.nextInt();\n\n if (n == 0) {\n for (int i=0; i<S.size(); i++) {\n System.out.println(S.get(i));\n }\n break;\n }\n\n int[] A = new int[n];\n int[] B = new int[n];\n double sum1 = 0;\n double sum2 = 0;\n for (int i=0; i<n; i++) {\n A[i] = sc.nextInt();\n sum1 += A[i];\n sum2 += Math.pow(A[i], 2);\n }\n double s = Math.sqrt(sum2/n - Math.pow(sum1/n, 2));\n\n S.add(s);\n\n }",
"true",
"{\n int n = sc.nextInt();\n\n if (n == 0) {\n for (int i=0; i<S.size(); i++) {\n System.out.println(S.get(i));\n }\n break;\n }\n\n int[] A = new int[n];\n int[] B = new int[n];\n double sum1 = 0;\n double sum2 = 0;\n for (int i=0; i<n; i++) {\n A[i] = sc.nextInt();\n sum1 += A[i];\n sum2 += Math.pow(A[i], 2);\n }\n double s = Math.sqrt(sum2/n - Math.pow(sum1/n, 2));\n\n S.add(s);\n\n }",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (n == 0) {\n for (int i=0; i<S.size(); i++) {\n System.out.println(S.get(i));\n }\n break;\n }",
"n == 0",
"n",
"0",
"{\n for (int i=0; i<S.size(); i++) {\n System.out.println(S.get(i));\n }\n break;\n }",
"for (int i=0; i<S.size(); i++) {\n System.out.println(S.get(i));\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<S.size()",
"i",
"S.size()",
"S.size",
"S",
"i++",
"i++",
"i",
"{\n System.out.println(S.get(i));\n }",
"{\n System.out.println(S.get(i));\n }",
"System.out.println(S.get(i))",
"System.out.println",
"System.out",
"System",
"System.out",
"S.get(i)",
"S.get",
"S",
"i",
"break;",
"int[] A = new int[n];",
"A",
"new int[n]",
"n",
"int[] B = new int[n];",
"B",
"new int[n]",
"n",
"double sum1 = 0;",
"sum1",
"0",
"double sum2 = 0;",
"sum2",
"0",
"for (int i=0; i<n; i++) {\n A[i] = sc.nextInt();\n sum1 += A[i];\n sum2 += Math.pow(A[i], 2);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n A[i] = sc.nextInt();\n sum1 += A[i];\n sum2 += Math.pow(A[i], 2);\n }",
"{\n A[i] = sc.nextInt();\n sum1 += A[i];\n sum2 += Math.pow(A[i], 2);\n }",
"A[i] = sc.nextInt()",
"A[i]",
"A",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sum1 += A[i]",
"sum1",
"A[i]",
"A",
"i",
"sum2 += Math.pow(A[i], 2)",
"sum2",
"Math.pow(A[i], 2)",
"Math.pow",
"Math",
"A[i]",
"A",
"i",
"2",
"double s = Math.sqrt(sum2/n - Math.pow(sum1/n, 2));",
"s",
"Math.sqrt(sum2/n - Math.pow(sum1/n, 2))",
"Math.sqrt",
"Math",
"sum2/n - Math.pow(sum1/n, 2)",
"sum2/n",
"sum2",
"n",
"Math.pow(sum1/n, 2)",
"Math.pow",
"Math",
"sum1/n",
"sum1",
"n",
"2",
"S.add(s)",
"S.add",
"S",
"s",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n ArrayList<Double> S = new ArrayList<Double>();\n\n while (true) {\n int n = sc.nextInt();\n\n if (n == 0) {\n for (int i=0; i<S.size(); i++) {\n System.out.println(S.get(i));\n }\n break;\n }\n\n int[] A = new int[n];\n int[] B = new int[n];\n double sum1 = 0;\n double sum2 = 0;\n for (int i=0; i<n; i++) {\n A[i] = sc.nextInt();\n sum1 += A[i];\n sum2 += Math.pow(A[i], 2);\n }\n double s = Math.sqrt(sum2/n - Math.pow(sum1/n, 2));\n\n S.add(s);\n\n }\n\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n ArrayList<Double> S = new ArrayList<Double>();\n\n while (true) {\n int n = sc.nextInt();\n\n if (n == 0) {\n for (int i=0; i<S.size(); i++) {\n System.out.println(S.get(i));\n }\n break;\n }\n\n int[] A = new int[n];\n int[] B = new int[n];\n double sum1 = 0;\n double sum2 = 0;\n for (int i=0; i<n; i++) {\n A[i] = sc.nextInt();\n sum1 += A[i];\n sum2 += Math.pow(A[i], 2);\n }\n double s = Math.sqrt(sum2/n - Math.pow(sum1/n, 2));\n\n S.add(s);\n\n }\n\n\n }\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
ArrayList<Double> S = new ArrayList<Double>();
while (true) {
int n = sc.nextInt();
if (n == 0) {
for (int i=0; i<S.size(); i++) {
System.out.println(S.get(i));
}
break;
}
int[] A = new int[n];
int[] B = new int[n];
double sum1 = 0;
double sum2 = 0;
for (int i=0; i<n; i++) {
A[i] = sc.nextInt();
sum1 += A[i];
sum2 += Math.pow(A[i], 2);
}
double s = Math.sqrt(sum2/n - Math.pow(sum1/n, 2));
S.add(s);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
42,
17,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
3,
0,
13,
20,
13,
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,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
13,
13,
13,
0,
13,
2,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
24,
35
],
[
35,
36
],
[
35,
37
],
[
24,
39
],
[
39,
40
],
[
39,
41
],
[
24,
42
],
[
42,
43
],
[
42,
44
],
[
24,
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
],
[
24,
70
],
[
70,
71
],
[
70,
72
],
[
24,
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
],
[
88,
92
],
[
85,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
95,
97
],
[
24,
98
],
[
98,
99
],
[
98,
100
],
[
24,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
6,
110
],
[
110,
111
]
] | [
"import java.util.Scanner;\nclass Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int n;\n int[] ary;\n double m, a2, sub;\n while(true){\n n = scanner.nextInt();\n if(n == 0)break;\n ary = new int[n];\n m = 0;\n a2 = 0;\n for(int i = 0; i < n; i++){\n ary[i] = scanner.nextInt();\n m += ary[i];\n }\n m /= n;\n for(int i = 0; i < n; i++){\n sub = ary[i] - m;\n a2 += sub*sub;\n }\n a2 /= n;\n System.out.println(Math.sqrt(a2));\n\n }\n\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int n;\n int[] ary;\n double m, a2, sub;\n while(true){\n n = scanner.nextInt();\n if(n == 0)break;\n ary = new int[n];\n m = 0;\n a2 = 0;\n for(int i = 0; i < n; i++){\n ary[i] = scanner.nextInt();\n m += ary[i];\n }\n m /= n;\n for(int i = 0; i < n; i++){\n sub = ary[i] - m;\n a2 += sub*sub;\n }\n a2 /= n;\n System.out.println(Math.sqrt(a2));\n\n }\n\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int n;\n int[] ary;\n double m, a2, sub;\n while(true){\n n = scanner.nextInt();\n if(n == 0)break;\n ary = new int[n];\n m = 0;\n a2 = 0;\n for(int i = 0; i < n; i++){\n ary[i] = scanner.nextInt();\n m += ary[i];\n }\n m /= n;\n for(int i = 0; i < n; i++){\n sub = ary[i] - m;\n a2 += sub*sub;\n }\n a2 /= n;\n System.out.println(Math.sqrt(a2));\n\n }\n\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n int n;\n int[] ary;\n double m, a2, sub;\n while(true){\n n = scanner.nextInt();\n if(n == 0)break;\n ary = new int[n];\n m = 0;\n a2 = 0;\n for(int i = 0; i < n; i++){\n ary[i] = scanner.nextInt();\n m += ary[i];\n }\n m /= n;\n for(int i = 0; i < n; i++){\n sub = ary[i] - m;\n a2 += sub*sub;\n }\n a2 /= n;\n System.out.println(Math.sqrt(a2));\n\n }\n\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int n;",
"n",
"int[] ary;",
"ary",
"double m",
"m",
"a2",
"a2",
"sub;",
"sub",
"while(true){\n n = scanner.nextInt();\n if(n == 0)break;\n ary = new int[n];\n m = 0;\n a2 = 0;\n for(int i = 0; i < n; i++){\n ary[i] = scanner.nextInt();\n m += ary[i];\n }\n m /= n;\n for(int i = 0; i < n; i++){\n sub = ary[i] - m;\n a2 += sub*sub;\n }\n a2 /= n;\n System.out.println(Math.sqrt(a2));\n\n }",
"true",
"{\n n = scanner.nextInt();\n if(n == 0)break;\n ary = new int[n];\n m = 0;\n a2 = 0;\n for(int i = 0; i < n; i++){\n ary[i] = scanner.nextInt();\n m += ary[i];\n }\n m /= n;\n for(int i = 0; i < n; i++){\n sub = ary[i] - m;\n a2 += sub*sub;\n }\n a2 /= n;\n System.out.println(Math.sqrt(a2));\n\n }",
"n = scanner.nextInt()",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"if(n == 0)break;",
"n == 0",
"n",
"0",
"break;",
"ary = new int[n]",
"ary",
"new int[n]",
"n",
"m = 0",
"m",
"0",
"a2 = 0",
"a2",
"0",
"for(int i = 0; i < n; i++){\n ary[i] = scanner.nextInt();\n m += ary[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n ary[i] = scanner.nextInt();\n m += ary[i];\n }",
"{\n ary[i] = scanner.nextInt();\n m += ary[i];\n }",
"ary[i] = scanner.nextInt()",
"ary[i]",
"ary",
"i",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"m += ary[i]",
"m",
"ary[i]",
"ary",
"i",
"m /= n",
"m",
"n",
"for(int i = 0; i < n; i++){\n sub = ary[i] - m;\n a2 += sub*sub;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n sub = ary[i] - m;\n a2 += sub*sub;\n }",
"{\n sub = ary[i] - m;\n a2 += sub*sub;\n }",
"sub = ary[i] - m",
"sub",
"ary[i] - m",
"ary[i]",
"ary",
"i",
"m",
"a2 += sub*sub",
"a2",
"sub*sub",
"sub",
"sub",
"a2 /= n",
"a2",
"n",
"System.out.println(Math.sqrt(a2))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.sqrt(a2)",
"Math.sqrt",
"Math",
"a2",
"String[] args",
"args"
] | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int n;
int[] ary;
double m, a2, sub;
while(true){
n = scanner.nextInt();
if(n == 0)break;
ary = new int[n];
m = 0;
a2 = 0;
for(int i = 0; i < n; i++){
ary[i] = scanner.nextInt();
m += ary[i];
}
m /= n;
for(int i = 0; i < n; i++){
sub = ary[i] - m;
a2 += sub*sub;
}
a2 /= n;
System.out.println(Math.sqrt(a2));
}
}
}
|
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
3,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
18,
13,
13,
0,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
2,
18,
13,
13,
13,
2,
18,
13,
13,
13,
0,
13,
4,
18,
13,
2,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
108,
2
],
[
108,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
11,
27
],
[
27,
28
],
[
27,
29
],
[
11,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
42,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
11,
55
],
[
55,
56
],
[
55,
57
],
[
11,
58
],
[
58,
59
],
[
58,
60
],
[
11,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
61,
72
],
[
73,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
76,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
11,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
92,
93
],
[
92,
94
],
[
11,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
100,
104
],
[
3,
105
],
[
105,
106
],
[
0,
107
],
[
107,
108
],
[
107,
109
]
] | [
"public class Main {\n public static void main(String[] args) {\n\n java.util.Scanner sc = new java.util.Scanner(System.in);\n\n while (true) {\n int n = sc.nextInt();\n if (n == 0) { break; }\n\n int[] s = new int[n];\n double m = 0;\n for (int i = 0; i < n; i ++) {\n s[i] = sc.nextInt();\n m += s[i];\n }\n m /= n;\n\n double a = 0;\n for (int i = 0; i < n; i ++) { a += (s[i] - m) * (s[i] - m); }\n a = Math.sqrt(a / n);\n System.out.println(String.format(\"%10.8f\", a));\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n\n java.util.Scanner sc = new java.util.Scanner(System.in);\n\n while (true) {\n int n = sc.nextInt();\n if (n == 0) { break; }\n\n int[] s = new int[n];\n double m = 0;\n for (int i = 0; i < n; i ++) {\n s[i] = sc.nextInt();\n m += s[i];\n }\n m /= n;\n\n double a = 0;\n for (int i = 0; i < n; i ++) { a += (s[i] - m) * (s[i] - m); }\n a = Math.sqrt(a / n);\n System.out.println(String.format(\"%10.8f\", a));\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n\n java.util.Scanner sc = new java.util.Scanner(System.in);\n\n while (true) {\n int n = sc.nextInt();\n if (n == 0) { break; }\n\n int[] s = new int[n];\n double m = 0;\n for (int i = 0; i < n; i ++) {\n s[i] = sc.nextInt();\n m += s[i];\n }\n m /= n;\n\n double a = 0;\n for (int i = 0; i < n; i ++) { a += (s[i] - m) * (s[i] - m); }\n a = Math.sqrt(a / n);\n System.out.println(String.format(\"%10.8f\", a));\n }\n }",
"main",
"{\n\n java.util.Scanner sc = new java.util.Scanner(System.in);\n\n while (true) {\n int n = sc.nextInt();\n if (n == 0) { break; }\n\n int[] s = new int[n];\n double m = 0;\n for (int i = 0; i < n; i ++) {\n s[i] = sc.nextInt();\n m += s[i];\n }\n m /= n;\n\n double a = 0;\n for (int i = 0; i < n; i ++) { a += (s[i] - m) * (s[i] - m); }\n a = Math.sqrt(a / n);\n System.out.println(String.format(\"%10.8f\", a));\n }\n }",
"java.util.Scanner sc = new java.util.Scanner(System.in);",
"sc",
"new java.util.Scanner(System.in)",
"while (true) {\n int n = sc.nextInt();\n if (n == 0) { break; }\n\n int[] s = new int[n];\n double m = 0;\n for (int i = 0; i < n; i ++) {\n s[i] = sc.nextInt();\n m += s[i];\n }\n m /= n;\n\n double a = 0;\n for (int i = 0; i < n; i ++) { a += (s[i] - m) * (s[i] - m); }\n a = Math.sqrt(a / n);\n System.out.println(String.format(\"%10.8f\", a));\n }",
"true",
"{\n int n = sc.nextInt();\n if (n == 0) { break; }\n\n int[] s = new int[n];\n double m = 0;\n for (int i = 0; i < n; i ++) {\n s[i] = sc.nextInt();\n m += s[i];\n }\n m /= n;\n\n double a = 0;\n for (int i = 0; i < n; i ++) { a += (s[i] - m) * (s[i] - m); }\n a = Math.sqrt(a / n);\n System.out.println(String.format(\"%10.8f\", a));\n }",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (n == 0) { break; }",
"n == 0",
"n",
"0",
"{ break; }",
"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] = 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",
"double a = 0;",
"a",
"0",
"for (int i = 0; i < n; i ++) { a += (s[i] - m) * (s[i] - m); }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i ++",
"i ++",
"i",
"{ a += (s[i] - m) * (s[i] - m); }",
"{ a += (s[i] - m) * (s[i] - m); }",
"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 = Math.sqrt(a / n)",
"a",
"Math.sqrt(a / n)",
"Math.sqrt",
"Math",
"a / n",
"a",
"n",
"System.out.println(String.format(\"%10.8f\", a))",
"System.out.println",
"System.out",
"System",
"System.out",
"String.format(\"%10.8f\", a)",
"String.format",
"String",
"\"%10.8f\"",
"a",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n\n java.util.Scanner sc = new java.util.Scanner(System.in);\n\n while (true) {\n int n = sc.nextInt();\n if (n == 0) { break; }\n\n int[] s = new int[n];\n double m = 0;\n for (int i = 0; i < n; i ++) {\n s[i] = sc.nextInt();\n m += s[i];\n }\n m /= n;\n\n double a = 0;\n for (int i = 0; i < n; i ++) { a += (s[i] - m) * (s[i] - m); }\n a = Math.sqrt(a / n);\n System.out.println(String.format(\"%10.8f\", a));\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n\n java.util.Scanner sc = new java.util.Scanner(System.in);\n\n while (true) {\n int n = sc.nextInt();\n if (n == 0) { break; }\n\n int[] s = new int[n];\n double m = 0;\n for (int i = 0; i < n; i ++) {\n s[i] = sc.nextInt();\n m += s[i];\n }\n m /= n;\n\n double a = 0;\n for (int i = 0; i < n; i ++) { a += (s[i] - m) * (s[i] - m); }\n a = Math.sqrt(a / n);\n System.out.println(String.format(\"%10.8f\", a));\n }\n }\n}",
"Main"
] | public class Main {
public static void main(String[] args) {
java.util.Scanner sc = new java.util.Scanner(System.in);
while (true) {
int n = sc.nextInt();
if (n == 0) { break; }
int[] s = new int[n];
double m = 0;
for (int i = 0; i < n; i ++) {
s[i] = sc.nextInt();
m += s[i];
}
m /= n;
double a = 0;
for (int i = 0; i < n; i ++) { a += (s[i] - m) * (s[i] - m); }
a = Math.sqrt(a / n);
System.out.println(String.format("%10.8f", a));
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
17,
30,
41,
13,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
3,
41,
13,
41,
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,
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,
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
],
[
120,
5
],
[
120,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
14,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
14,
30
],
[
30,
31
],
[
30,
32
],
[
14,
33
],
[
33,
34
],
[
33,
35
],
[
14,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
49,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
14,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
14,
67
],
[
67,
68
],
[
67,
69
],
[
14,
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
],
[
85,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
14,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
98,
100
],
[
14,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
14,
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;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true) {\n\t\tint n;\n\t\tn = sc.nextInt();\n\t\tif(n==0) {\n\t\t\tbreak;\n\t\t}\n\t\tdouble[] num;\n\t\tdouble sum = 0;\n\t\tnum = new double[n];\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tnum[i] = sc.nextInt();\n\t\t\tsum += num[i];\n\t\t}\n\n\t\tdouble ave = sum/n;\n\t\tdouble sum_2 = 0;\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tsum_2 += (num[i]-ave)*(num[i]-ave);\n\t\t}\n\t\tdouble bunsan = sum_2/n;\n\t\tdouble ans = Math.sqrt(bunsan);\n\t\tSystem.out.printf(\"%f\\n\",ans);\n\t}\n\t\tsc.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\t\twhile(true) {\n\t\tint n;\n\t\tn = sc.nextInt();\n\t\tif(n==0) {\n\t\t\tbreak;\n\t\t}\n\t\tdouble[] num;\n\t\tdouble sum = 0;\n\t\tnum = new double[n];\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tnum[i] = sc.nextInt();\n\t\t\tsum += num[i];\n\t\t}\n\n\t\tdouble ave = sum/n;\n\t\tdouble sum_2 = 0;\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tsum_2 += (num[i]-ave)*(num[i]-ave);\n\t\t}\n\t\tdouble bunsan = sum_2/n;\n\t\tdouble ans = Math.sqrt(bunsan);\n\t\tSystem.out.printf(\"%f\\n\",ans);\n\t}\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true) {\n\t\tint n;\n\t\tn = sc.nextInt();\n\t\tif(n==0) {\n\t\t\tbreak;\n\t\t}\n\t\tdouble[] num;\n\t\tdouble sum = 0;\n\t\tnum = new double[n];\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tnum[i] = sc.nextInt();\n\t\t\tsum += num[i];\n\t\t}\n\n\t\tdouble ave = sum/n;\n\t\tdouble sum_2 = 0;\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tsum_2 += (num[i]-ave)*(num[i]-ave);\n\t\t}\n\t\tdouble bunsan = sum_2/n;\n\t\tdouble ans = Math.sqrt(bunsan);\n\t\tSystem.out.printf(\"%f\\n\",ans);\n\t}\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true) {\n\t\tint n;\n\t\tn = sc.nextInt();\n\t\tif(n==0) {\n\t\t\tbreak;\n\t\t}\n\t\tdouble[] num;\n\t\tdouble sum = 0;\n\t\tnum = new double[n];\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tnum[i] = sc.nextInt();\n\t\t\tsum += num[i];\n\t\t}\n\n\t\tdouble ave = sum/n;\n\t\tdouble sum_2 = 0;\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tsum_2 += (num[i]-ave)*(num[i]-ave);\n\t\t}\n\t\tdouble bunsan = sum_2/n;\n\t\tdouble ans = Math.sqrt(bunsan);\n\t\tSystem.out.printf(\"%f\\n\",ans);\n\t}\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while(true) {\n\t\tint n;\n\t\tn = sc.nextInt();\n\t\tif(n==0) {\n\t\t\tbreak;\n\t\t}\n\t\tdouble[] num;\n\t\tdouble sum = 0;\n\t\tnum = new double[n];\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tnum[i] = sc.nextInt();\n\t\t\tsum += num[i];\n\t\t}\n\n\t\tdouble ave = sum/n;\n\t\tdouble sum_2 = 0;\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tsum_2 += (num[i]-ave)*(num[i]-ave);\n\t\t}\n\t\tdouble bunsan = sum_2/n;\n\t\tdouble ans = Math.sqrt(bunsan);\n\t\tSystem.out.printf(\"%f\\n\",ans);\n\t}",
"true",
"{\n\t\tint n;\n\t\tn = sc.nextInt();\n\t\tif(n==0) {\n\t\t\tbreak;\n\t\t}\n\t\tdouble[] num;\n\t\tdouble sum = 0;\n\t\tnum = new double[n];\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tnum[i] = sc.nextInt();\n\t\t\tsum += num[i];\n\t\t}\n\n\t\tdouble ave = sum/n;\n\t\tdouble sum_2 = 0;\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tsum_2 += (num[i]-ave)*(num[i]-ave);\n\t\t}\n\t\tdouble bunsan = sum_2/n;\n\t\tdouble ans = Math.sqrt(bunsan);\n\t\tSystem.out.printf(\"%f\\n\",ans);\n\t}",
"int n;",
"n",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(n==0) {\n\t\t\tbreak;\n\t\t}",
"n==0",
"n",
"0",
"{\n\t\t\tbreak;\n\t\t}",
"break;",
"double[] num;",
"num",
"double sum = 0;",
"sum",
"0",
"num = new double[n]",
"num",
"new double[n]",
"n",
"for(int i = 0;i<n;i++) {\n\t\t\tnum[i] = sc.nextInt();\n\t\t\tsum += num[i];\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tnum[i] = sc.nextInt();\n\t\t\tsum += num[i];\n\t\t}",
"{\n\t\t\tnum[i] = sc.nextInt();\n\t\t\tsum += num[i];\n\t\t}",
"num[i] = sc.nextInt()",
"num[i]",
"num",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sum += num[i]",
"sum",
"num[i]",
"num",
"i",
"double ave = sum/n;",
"ave",
"sum/n",
"sum",
"n",
"double sum_2 = 0;",
"sum_2",
"0",
"for(int i = 0;i<n;i++) {\n\t\t\tsum_2 += (num[i]-ave)*(num[i]-ave);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tsum_2 += (num[i]-ave)*(num[i]-ave);\n\t\t}",
"{\n\t\t\tsum_2 += (num[i]-ave)*(num[i]-ave);\n\t\t}",
"sum_2 += (num[i]-ave)*(num[i]-ave)",
"sum_2",
"(num[i]-ave)*(num[i]-ave)",
"(num[i]-ave)",
"num[i]",
"num",
"i",
"ave",
"(num[i]-ave)",
"num[i]",
"num",
"i",
"ave",
"double bunsan = sum_2/n;",
"bunsan",
"sum_2/n",
"sum_2",
"n",
"double ans = Math.sqrt(bunsan);",
"ans",
"Math.sqrt(bunsan)",
"Math.sqrt",
"Math",
"bunsan",
"System.out.printf(\"%f\\n\",ans)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%f\\n\"",
"ans",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true) {\n\t\tint n;\n\t\tn = sc.nextInt();\n\t\tif(n==0) {\n\t\t\tbreak;\n\t\t}\n\t\tdouble[] num;\n\t\tdouble sum = 0;\n\t\tnum = new double[n];\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tnum[i] = sc.nextInt();\n\t\t\tsum += num[i];\n\t\t}\n\n\t\tdouble ave = sum/n;\n\t\tdouble sum_2 = 0;\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tsum_2 += (num[i]-ave)*(num[i]-ave);\n\t\t}\n\t\tdouble bunsan = sum_2/n;\n\t\tdouble ans = Math.sqrt(bunsan);\n\t\tSystem.out.printf(\"%f\\n\",ans);\n\t}\n\t\tsc.close();\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true) {\n\t\tint n;\n\t\tn = sc.nextInt();\n\t\tif(n==0) {\n\t\t\tbreak;\n\t\t}\n\t\tdouble[] num;\n\t\tdouble sum = 0;\n\t\tnum = new double[n];\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tnum[i] = sc.nextInt();\n\t\t\tsum += num[i];\n\t\t}\n\n\t\tdouble ave = sum/n;\n\t\tdouble sum_2 = 0;\n\t\tfor(int i = 0;i<n;i++) {\n\t\t\tsum_2 += (num[i]-ave)*(num[i]-ave);\n\t\t}\n\t\tdouble bunsan = sum_2/n;\n\t\tdouble ans = Math.sqrt(bunsan);\n\t\tSystem.out.printf(\"%f\\n\",ans);\n\t}\n\t\tsc.close();\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while(true) {
int n;
n = sc.nextInt();
if(n==0) {
break;
}
double[] num;
double sum = 0;
num = new double[n];
for(int i = 0;i<n;i++) {
num[i] = sc.nextInt();
sum += num[i];
}
double ave = sum/n;
double sum_2 = 0;
for(int i = 0;i<n;i++) {
sum_2 += (num[i]-ave)*(num[i]-ave);
}
double bunsan = sum_2/n;
double ans = Math.sqrt(bunsan);
System.out.printf("%f\n",ans);
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
20,
14,
2,
13,
17,
3,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
0,
13,
13,
0,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
2,
4,
18,
13,
13,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
13,
2,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
104,
5
],
[
104,
6
],
[
6,
7
],
[
104,
8
],
[
8,
9
],
[
8,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
16,
22
],
[
22,
23
],
[
22,
24
],
[
16,
25
],
[
25,
26
],
[
25,
27
],
[
16,
28
],
[
28,
29
],
[
28,
30
],
[
16,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
16,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
48,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
48,
58
],
[
58,
59
],
[
58,
60
],
[
16,
61
],
[
61,
62
],
[
61,
63
],
[
16,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
64,
72
],
[
72,
73
],
[
73,
74
],
[
64,
75
],
[
76,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
82,
87
],
[
79,
88
],
[
16,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
89,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
98,
99
],
[
98,
100
],
[
8,
101
],
[
101,
102
],
[
0,
103
],
[
103,
104
],
[
103,
105
]
] | [
"\nimport java.util.*;\n\npublic class Main {\n\t \n\tstatic String str;\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\twhile(true) {\n\t\t\tint n=cin.nextInt();double m=0, alph=0;\n\t\t\tList<Integer> data=new ArrayList<>();\n\t\t\t\n\t\t\tif(n==0)break;\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\tint s=cin.nextInt();\n\t\t\t\tdata.add(s);\n\t\t\t\tm+=s;\n\t\t\t}\n\t\t\t\n\t\t\tm/=n;\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\talph+=Math.pow(data.get(i)-m, 2);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.printf(\"%.8f\\n\",Math.sqrt(alph/n));\n\t\t}\n\t\t\n\t}\n\t\n\t\n\t\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\t \n\tstatic String str;\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\twhile(true) {\n\t\t\tint n=cin.nextInt();double m=0, alph=0;\n\t\t\tList<Integer> data=new ArrayList<>();\n\t\t\t\n\t\t\tif(n==0)break;\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\tint s=cin.nextInt();\n\t\t\t\tdata.add(s);\n\t\t\t\tm+=s;\n\t\t\t}\n\t\t\t\n\t\t\tm/=n;\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\talph+=Math.pow(data.get(i)-m, 2);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.printf(\"%.8f\\n\",Math.sqrt(alph/n));\n\t\t}\n\t\t\n\t}\n\t\n\t\n\t\n}",
"Main",
"static String str;",
"str",
"public static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\twhile(true) {\n\t\t\tint n=cin.nextInt();double m=0, alph=0;\n\t\t\tList<Integer> data=new ArrayList<>();\n\t\t\t\n\t\t\tif(n==0)break;\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\tint s=cin.nextInt();\n\t\t\t\tdata.add(s);\n\t\t\t\tm+=s;\n\t\t\t}\n\t\t\t\n\t\t\tm/=n;\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\talph+=Math.pow(data.get(i)-m, 2);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.printf(\"%.8f\\n\",Math.sqrt(alph/n));\n\t\t}\n\t\t\n\t}",
"main",
"{\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\twhile(true) {\n\t\t\tint n=cin.nextInt();double m=0, alph=0;\n\t\t\tList<Integer> data=new ArrayList<>();\n\t\t\t\n\t\t\tif(n==0)break;\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\tint s=cin.nextInt();\n\t\t\t\tdata.add(s);\n\t\t\t\tm+=s;\n\t\t\t}\n\t\t\t\n\t\t\tm/=n;\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\talph+=Math.pow(data.get(i)-m, 2);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.printf(\"%.8f\\n\",Math.sqrt(alph/n));\n\t\t}\n\t\t\n\t}",
"Scanner cin=new Scanner(System.in);",
"cin",
"new Scanner(System.in)",
"while(true) {\n\t\t\tint n=cin.nextInt();double m=0, alph=0;\n\t\t\tList<Integer> data=new ArrayList<>();\n\t\t\t\n\t\t\tif(n==0)break;\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\tint s=cin.nextInt();\n\t\t\t\tdata.add(s);\n\t\t\t\tm+=s;\n\t\t\t}\n\t\t\t\n\t\t\tm/=n;\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\talph+=Math.pow(data.get(i)-m, 2);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.printf(\"%.8f\\n\",Math.sqrt(alph/n));\n\t\t}",
"true",
"{\n\t\t\tint n=cin.nextInt();double m=0, alph=0;\n\t\t\tList<Integer> data=new ArrayList<>();\n\t\t\t\n\t\t\tif(n==0)break;\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\tint s=cin.nextInt();\n\t\t\t\tdata.add(s);\n\t\t\t\tm+=s;\n\t\t\t}\n\t\t\t\n\t\t\tm/=n;\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\talph+=Math.pow(data.get(i)-m, 2);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.printf(\"%.8f\\n\",Math.sqrt(alph/n));\n\t\t}",
"int n=cin.nextInt();",
"n",
"cin.nextInt()",
"cin.nextInt",
"cin",
"double m=0",
"m",
"0",
"alph=0;",
"alph",
"0",
"List<Integer> data=new ArrayList<>();",
"data",
"new ArrayList<>()",
"if(n==0)break;",
"n==0",
"n",
"0",
"break;",
"for(int i=0;i<n;i++) {\n\t\t\t\tint s=cin.nextInt();\n\t\t\t\tdata.add(s);\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\tint s=cin.nextInt();\n\t\t\t\tdata.add(s);\n\t\t\t\tm+=s;\n\t\t\t}",
"{\n\t\t\t\tint s=cin.nextInt();\n\t\t\t\tdata.add(s);\n\t\t\t\tm+=s;\n\t\t\t}",
"int s=cin.nextInt();",
"s",
"cin.nextInt()",
"cin.nextInt",
"cin",
"data.add(s)",
"data.add",
"data",
"s",
"m+=s",
"m",
"s",
"m/=n",
"m",
"n",
"for(int i=0;i<n;i++) {\n\t\t\t\talph+=Math.pow(data.get(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\talph+=Math.pow(data.get(i)-m, 2);\n\t\t\t}",
"{\n\t\t\t\talph+=Math.pow(data.get(i)-m, 2);\n\t\t\t}",
"alph+=Math.pow(data.get(i)-m, 2)",
"alph",
"Math.pow(data.get(i)-m, 2)",
"Math.pow",
"Math",
"data.get(i)-m",
"data.get(i)",
"data.get",
"data",
"i",
"m",
"2",
"System.out.printf(\"%.8f\\n\",Math.sqrt(alph/n))",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%.8f\\n\"",
"Math.sqrt(alph/n)",
"Math.sqrt",
"Math",
"alph/n",
"alph",
"n",
"String[] args",
"args",
"public class Main {\n\t \n\tstatic String str;\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\twhile(true) {\n\t\t\tint n=cin.nextInt();double m=0, alph=0;\n\t\t\tList<Integer> data=new ArrayList<>();\n\t\t\t\n\t\t\tif(n==0)break;\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\tint s=cin.nextInt();\n\t\t\t\tdata.add(s);\n\t\t\t\tm+=s;\n\t\t\t}\n\t\t\t\n\t\t\tm/=n;\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\talph+=Math.pow(data.get(i)-m, 2);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.printf(\"%.8f\\n\",Math.sqrt(alph/n));\n\t\t}\n\t\t\n\t}\n\t\n\t\n\t\n}",
"public class Main {\n\t \n\tstatic String str;\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\twhile(true) {\n\t\t\tint n=cin.nextInt();double m=0, alph=0;\n\t\t\tList<Integer> data=new ArrayList<>();\n\t\t\t\n\t\t\tif(n==0)break;\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\tint s=cin.nextInt();\n\t\t\t\tdata.add(s);\n\t\t\t\tm+=s;\n\t\t\t}\n\t\t\t\n\t\t\tm/=n;\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\talph+=Math.pow(data.get(i)-m, 2);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.printf(\"%.8f\\n\",Math.sqrt(alph/n));\n\t\t}\n\t\t\n\t}\n\t\n\t\n\t\n}",
"Main"
] |
import java.util.*;
public class Main {
static String str;
public static void main(String[] args) {
Scanner cin=new Scanner(System.in);
while(true) {
int n=cin.nextInt();double m=0, alph=0;
List<Integer> data=new ArrayList<>();
if(n==0)break;
for(int i=0;i<n;i++) {
int s=cin.nextInt();
data.add(s);
m+=s;
}
m/=n;
for(int i=0;i<n;i++) {
alph+=Math.pow(data.get(i)-m, 2);
}
System.out.printf("%.8f\n",Math.sqrt(alph/n));
}
}
}
|
[
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,
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,
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
],
[
105,
5
],
[
105,
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
],
[
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
],
[
16,
59
],
[
59,
60
],
[
59,
61
],
[
16,
62
],
[
62,
63
],
[
62,
64
],
[
16,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
65,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
79,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
16,
90
],
[
90,
91
],
[
90,
92
],
[
16,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
6,
102
],
[
102,
103
],
[
0,
104
],
[
104,
105
],
[
104,
106
]
] | [
"import java.util.Scanner;\npublic class Main {\n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n int n;\n\n while(true){\n n=scan.nextInt();\n if(n==0) break;\n int[] score=new int[n];\n double ave=0;\n for(int i=0;i<n;i++){\n score[i]=scan.nextInt();\n ave+=score[i];\n }\n ave/=(double)n;\n double dis=0;\n for(int i=0;i<n;i++) dis+=(score[i]-ave)*(score[i]-ave);\n dis/=(double)n;\n System.out.println(Math.sqrt(dis));\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n int n;\n\n while(true){\n n=scan.nextInt();\n if(n==0) break;\n int[] score=new int[n];\n double ave=0;\n for(int i=0;i<n;i++){\n score[i]=scan.nextInt();\n ave+=score[i];\n }\n ave/=(double)n;\n double dis=0;\n for(int i=0;i<n;i++) dis+=(score[i]-ave)*(score[i]-ave);\n dis/=(double)n;\n System.out.println(Math.sqrt(dis));\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n int n;\n\n while(true){\n n=scan.nextInt();\n if(n==0) break;\n int[] score=new int[n];\n double ave=0;\n for(int i=0;i<n;i++){\n score[i]=scan.nextInt();\n ave+=score[i];\n }\n ave/=(double)n;\n double dis=0;\n for(int i=0;i<n;i++) dis+=(score[i]-ave)*(score[i]-ave);\n dis/=(double)n;\n System.out.println(Math.sqrt(dis));\n }\n }",
"main",
"{\n Scanner scan=new Scanner(System.in);\n int n;\n\n while(true){\n n=scan.nextInt();\n if(n==0) break;\n int[] score=new int[n];\n double ave=0;\n for(int i=0;i<n;i++){\n score[i]=scan.nextInt();\n ave+=score[i];\n }\n ave/=(double)n;\n double dis=0;\n for(int i=0;i<n;i++) dis+=(score[i]-ave)*(score[i]-ave);\n dis/=(double)n;\n System.out.println(Math.sqrt(dis));\n }\n }",
"Scanner scan=new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n;",
"n",
"while(true){\n n=scan.nextInt();\n if(n==0) break;\n int[] score=new int[n];\n double ave=0;\n for(int i=0;i<n;i++){\n score[i]=scan.nextInt();\n ave+=score[i];\n }\n ave/=(double)n;\n double dis=0;\n for(int i=0;i<n;i++) dis+=(score[i]-ave)*(score[i]-ave);\n dis/=(double)n;\n System.out.println(Math.sqrt(dis));\n }",
"true",
"{\n n=scan.nextInt();\n if(n==0) break;\n int[] score=new int[n];\n double ave=0;\n for(int i=0;i<n;i++){\n score[i]=scan.nextInt();\n ave+=score[i];\n }\n ave/=(double)n;\n double dis=0;\n for(int i=0;i<n;i++) dis+=(score[i]-ave)*(score[i]-ave);\n dis/=(double)n;\n System.out.println(Math.sqrt(dis));\n }",
"n=scan.nextInt()",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if(n==0) break;",
"n==0",
"n",
"0",
"break;",
"int[] score=new int[n];",
"score",
"new int[n]",
"n",
"double ave=0;",
"ave",
"0",
"for(int i=0;i<n;i++){\n score[i]=scan.nextInt();\n ave+=score[i];\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n score[i]=scan.nextInt();\n ave+=score[i];\n }",
"{\n score[i]=scan.nextInt();\n ave+=score[i];\n }",
"score[i]=scan.nextInt()",
"score[i]",
"score",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"ave+=score[i]",
"ave",
"score[i]",
"score",
"i",
"ave/=(double)n",
"ave",
"(double)n",
"double dis=0;",
"dis",
"0",
"for(int i=0;i<n;i++) dis+=(score[i]-ave)*(score[i]-ave);",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"dis+=(score[i]-ave)*(score[i]-ave);",
"dis+=(score[i]-ave)*(score[i]-ave)",
"dis",
"(score[i]-ave)*(score[i]-ave)",
"(score[i]-ave)",
"score[i]",
"score",
"i",
"ave",
"(score[i]-ave)",
"score[i]",
"score",
"i",
"ave",
"dis/=(double)n",
"dis",
"(double)n",
"System.out.println(Math.sqrt(dis))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.sqrt(dis)",
"Math.sqrt",
"Math",
"dis",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n int n;\n\n while(true){\n n=scan.nextInt();\n if(n==0) break;\n int[] score=new int[n];\n double ave=0;\n for(int i=0;i<n;i++){\n score[i]=scan.nextInt();\n ave+=score[i];\n }\n ave/=(double)n;\n double dis=0;\n for(int i=0;i<n;i++) dis+=(score[i]-ave)*(score[i]-ave);\n dis/=(double)n;\n System.out.println(Math.sqrt(dis));\n }\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n int n;\n\n while(true){\n n=scan.nextInt();\n if(n==0) break;\n int[] score=new int[n];\n double ave=0;\n for(int i=0;i<n;i++){\n score[i]=scan.nextInt();\n ave+=score[i];\n }\n ave/=(double)n;\n double dis=0;\n for(int i=0;i<n;i++) dis+=(score[i]-ave)*(score[i]-ave);\n dis/=(double)n;\n System.out.println(Math.sqrt(dis));\n }\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int n;
while(true){
n=scan.nextInt();
if(n==0) break;
int[] score=new int[n];
double ave=0;
for(int i=0;i<n;i++){
score[i]=scan.nextInt();
ave+=score[i];
}
ave/=(double)n;
double dis=0;
for(int i=0;i<n;i++) dis+=(score[i]-ave)*(score[i]-ave);
dis/=(double)n;
System.out.println(Math.sqrt(dis));
}
}
}
|
[
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,
4,
18,
13,
2,
18,
13,
13,
13,
17,
41,
13,
4,
18,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
107,
5
],
[
107,
6
],
[
6,
7
],
[
6,
8
],
[
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
],
[
81,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
81,
89
],
[
14,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
95,
96
],
[
95,
97
],
[
14,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
6,
104
],
[
104,
105
],
[
0,
106
],
[
106,
107
],
[
106,
108
]
] | [
"import java.util.*;\n\npublic class Main {\n\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 sum = 0;\n int[] stu = new int[n];\n for(int i = 0; i < n; i++) {\n stu[i] = sc.nextInt();\n sum += stu[i];\n }\n double ave = sum / (double) n;\n double dveSum = 0.0;\n for(int i = 0; i < n; i++) {\n dveSum += Math.pow(stu[i] - ave, 2);\n }\n double dve = Math.sqrt(dveSum / (double) n);\n System.out.println(dve);\n }\n }\n}\n",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(true) {\n int n = sc.nextInt();\n if (n == 0) {\n break;\n }\n int sum = 0;\n int[] stu = new int[n];\n for(int i = 0; i < n; i++) {\n stu[i] = sc.nextInt();\n sum += stu[i];\n }\n double ave = sum / (double) n;\n double dveSum = 0.0;\n for(int i = 0; i < n; i++) {\n dveSum += Math.pow(stu[i] - ave, 2);\n }\n double dve = Math.sqrt(dveSum / (double) n);\n System.out.println(dve);\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 sum = 0;\n int[] stu = new int[n];\n for(int i = 0; i < n; i++) {\n stu[i] = sc.nextInt();\n sum += stu[i];\n }\n double ave = sum / (double) n;\n double dveSum = 0.0;\n for(int i = 0; i < n; i++) {\n dveSum += Math.pow(stu[i] - ave, 2);\n }\n double dve = Math.sqrt(dveSum / (double) n);\n System.out.println(dve);\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 sum = 0;\n int[] stu = new int[n];\n for(int i = 0; i < n; i++) {\n stu[i] = sc.nextInt();\n sum += stu[i];\n }\n double ave = sum / (double) n;\n double dveSum = 0.0;\n for(int i = 0; i < n; i++) {\n dveSum += Math.pow(stu[i] - ave, 2);\n }\n double dve = Math.sqrt(dveSum / (double) n);\n System.out.println(dve);\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 sum = 0;\n int[] stu = new int[n];\n for(int i = 0; i < n; i++) {\n stu[i] = sc.nextInt();\n sum += stu[i];\n }\n double ave = sum / (double) n;\n double dveSum = 0.0;\n for(int i = 0; i < n; i++) {\n dveSum += Math.pow(stu[i] - ave, 2);\n }\n double dve = Math.sqrt(dveSum / (double) n);\n System.out.println(dve);\n }",
"true",
"{\n int n = sc.nextInt();\n if (n == 0) {\n break;\n }\n int sum = 0;\n int[] stu = new int[n];\n for(int i = 0; i < n; i++) {\n stu[i] = sc.nextInt();\n sum += stu[i];\n }\n double ave = sum / (double) n;\n double dveSum = 0.0;\n for(int i = 0; i < n; i++) {\n dveSum += Math.pow(stu[i] - ave, 2);\n }\n double dve = Math.sqrt(dveSum / (double) n);\n System.out.println(dve);\n }",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (n == 0) {\n break;\n }",
"n == 0",
"n",
"0",
"{\n break;\n }",
"break;",
"int sum = 0;",
"sum",
"0",
"int[] stu = new int[n];",
"stu",
"new int[n]",
"n",
"for(int i = 0; i < n; i++) {\n stu[i] = sc.nextInt();\n sum += stu[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n stu[i] = sc.nextInt();\n sum += stu[i];\n }",
"{\n stu[i] = sc.nextInt();\n sum += stu[i];\n }",
"stu[i] = sc.nextInt()",
"stu[i]",
"stu",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sum += stu[i]",
"sum",
"stu[i]",
"stu",
"i",
"double ave = sum / (double) n;",
"ave",
"sum / (double) n",
"sum",
"(double) n",
"double dveSum = 0.0;",
"dveSum",
"0.0",
"for(int i = 0; i < n; i++) {\n dveSum += Math.pow(stu[i] - ave, 2);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n dveSum += Math.pow(stu[i] - ave, 2);\n }",
"{\n dveSum += Math.pow(stu[i] - ave, 2);\n }",
"dveSum += Math.pow(stu[i] - ave, 2)",
"dveSum",
"Math.pow(stu[i] - ave, 2)",
"Math.pow",
"Math",
"stu[i] - ave",
"stu[i]",
"stu",
"i",
"ave",
"2",
"double dve = Math.sqrt(dveSum / (double) n);",
"dve",
"Math.sqrt(dveSum / (double) n)",
"Math.sqrt",
"Math",
"dveSum / (double) n",
"dveSum",
"(double) n",
"System.out.println(dve)",
"System.out.println",
"System.out",
"System",
"System.out",
"dve",
"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 n = sc.nextInt();\n if (n == 0) {\n break;\n }\n int sum = 0;\n int[] stu = new int[n];\n for(int i = 0; i < n; i++) {\n stu[i] = sc.nextInt();\n sum += stu[i];\n }\n double ave = sum / (double) n;\n double dveSum = 0.0;\n for(int i = 0; i < n; i++) {\n dveSum += Math.pow(stu[i] - ave, 2);\n }\n double dve = Math.sqrt(dveSum / (double) n);\n System.out.println(dve);\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 n = sc.nextInt();\n if (n == 0) {\n break;\n }\n int sum = 0;\n int[] stu = new int[n];\n for(int i = 0; i < n; i++) {\n stu[i] = sc.nextInt();\n sum += stu[i];\n }\n double ave = sum / (double) n;\n double dveSum = 0.0;\n for(int i = 0; i < n; i++) {\n dveSum += Math.pow(stu[i] - ave, 2);\n }\n double dve = Math.sqrt(dveSum / (double) n);\n System.out.println(dve);\n }\n }\n}",
"Main"
] | import java.util.*;
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 sum = 0;
int[] stu = new int[n];
for(int i = 0; i < n; i++) {
stu[i] = sc.nextInt();
sum += stu[i];
}
double ave = sum / (double) n;
double dveSum = 0.0;
for(int i = 0; i < n; i++) {
dveSum += Math.pow(stu[i] - ave, 2);
}
double dve = Math.sqrt(dveSum / (double) n);
System.out.println(dve);
}
}
}
|
[
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,
41,
13,
2,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
2,
18,
13,
13,
13,
17,
0,
13,
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
],
[
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
],
[
14,
25
],
[
25,
26
],
[
25,
27
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
14,
32
],
[
32,
33
],
[
32,
34
],
[
14,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
47,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
14,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
14,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
65,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
80,
88
],
[
14,
89
],
[
89,
90
],
[
89,
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
],
[
6,
106
],
[
106,
107
],
[
0,
108
],
[
108,
109
],
[
108,
110
]
] | [
"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 []array=new int [n];\n double sum=0,S=0;\n for(int i=0;i<n;i++){\n array[i]=sc.nextInt();\n sum+=array[i];\n }\n double ave=(double)sum/n;\n for(int i=0;i<n;i++){\n S+=(double)Math.pow(array[i]-ave,2);\n }\n S=(double)S/n;\n S=(double)Math.sqrt(S);\n System.out.println(S);\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 []array=new int [n];\n double sum=0,S=0;\n for(int i=0;i<n;i++){\n array[i]=sc.nextInt();\n sum+=array[i];\n }\n double ave=(double)sum/n;\n for(int i=0;i<n;i++){\n S+=(double)Math.pow(array[i]-ave,2);\n }\n S=(double)S/n;\n S=(double)Math.sqrt(S);\n System.out.println(S);\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 []array=new int [n];\n double sum=0,S=0;\n for(int i=0;i<n;i++){\n array[i]=sc.nextInt();\n sum+=array[i];\n }\n double ave=(double)sum/n;\n for(int i=0;i<n;i++){\n S+=(double)Math.pow(array[i]-ave,2);\n }\n S=(double)S/n;\n S=(double)Math.sqrt(S);\n System.out.println(S);\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 []array=new int [n];\n double sum=0,S=0;\n for(int i=0;i<n;i++){\n array[i]=sc.nextInt();\n sum+=array[i];\n }\n double ave=(double)sum/n;\n for(int i=0;i<n;i++){\n S+=(double)Math.pow(array[i]-ave,2);\n }\n S=(double)S/n;\n S=(double)Math.sqrt(S);\n System.out.println(S);\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 []array=new int [n];\n double sum=0,S=0;\n for(int i=0;i<n;i++){\n array[i]=sc.nextInt();\n sum+=array[i];\n }\n double ave=(double)sum/n;\n for(int i=0;i<n;i++){\n S+=(double)Math.pow(array[i]-ave,2);\n }\n S=(double)S/n;\n S=(double)Math.sqrt(S);\n System.out.println(S);\n }",
"true",
"{\n int n = sc.nextInt();\n if(n==0)break;\n int []array=new int [n];\n double sum=0,S=0;\n for(int i=0;i<n;i++){\n array[i]=sc.nextInt();\n sum+=array[i];\n }\n double ave=(double)sum/n;\n for(int i=0;i<n;i++){\n S+=(double)Math.pow(array[i]-ave,2);\n }\n S=(double)S/n;\n S=(double)Math.sqrt(S);\n System.out.println(S);\n }",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(n==0)break;",
"n==0",
"n",
"0",
"break;",
"int []array=new int [n];",
"array",
"new int [n]",
"n",
"double sum=0",
"sum",
"0",
"S=0;",
"S",
"0",
"for(int i=0;i<n;i++){\n array[i]=sc.nextInt();\n sum+=array[i];\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n array[i]=sc.nextInt();\n sum+=array[i];\n }",
"{\n array[i]=sc.nextInt();\n sum+=array[i];\n }",
"array[i]=sc.nextInt()",
"array[i]",
"array",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sum+=array[i]",
"sum",
"array[i]",
"array",
"i",
"double ave=(double)sum/n;",
"ave",
"(double)sum/n",
"(double)sum",
"n",
"for(int i=0;i<n;i++){\n S+=(double)Math.pow(array[i]-ave,2);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n S+=(double)Math.pow(array[i]-ave,2);\n }",
"{\n S+=(double)Math.pow(array[i]-ave,2);\n }",
"S+=(double)Math.pow(array[i]-ave,2)",
"S",
"(double)Math.pow(array[i]-ave,2)",
"Math.pow",
"Math",
"array[i]-ave",
"array[i]",
"array",
"i",
"ave",
"2",
"S=(double)S/n",
"S",
"(double)S/n",
"(double)S",
"n",
"S=(double)Math.sqrt(S)",
"S",
"(double)Math.sqrt(S)",
"Math.sqrt",
"Math",
"S",
"System.out.println(S)",
"System.out.println",
"System.out",
"System",
"System.out",
"S",
"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 []array=new int [n];\n double sum=0,S=0;\n for(int i=0;i<n;i++){\n array[i]=sc.nextInt();\n sum+=array[i];\n }\n double ave=(double)sum/n;\n for(int i=0;i<n;i++){\n S+=(double)Math.pow(array[i]-ave,2);\n }\n S=(double)S/n;\n S=(double)Math.sqrt(S);\n System.out.println(S);\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 []array=new int [n];\n double sum=0,S=0;\n for(int i=0;i<n;i++){\n array[i]=sc.nextInt();\n sum+=array[i];\n }\n double ave=(double)sum/n;\n for(int i=0;i<n;i++){\n S+=(double)Math.pow(array[i]-ave,2);\n }\n S=(double)S/n;\n S=(double)Math.sqrt(S);\n System.out.println(S);\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 []array=new int [n];
double sum=0,S=0;
for(int i=0;i<n;i++){
array[i]=sc.nextInt();
sum+=array[i];
}
double ave=(double)sum/n;
for(int i=0;i<n;i++){
S+=(double)Math.pow(array[i]-ave,2);
}
S=(double)S/n;
S=(double)Math.sqrt(S);
System.out.println(S);
}
}
}
|
[
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,
2,
4,
18,
13,
2,
18,
13,
13,
13,
17,
13,
4,
18,
18,
13,
13,
4,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
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
],
[
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
],
[
103,
104
],
[
102,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
102,
110
],
[
101,
111
],
[
20,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
117,
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\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\t\n//\t\tString str = br.readLine();\n\n\t\twhile(true){\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\t\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint[] input = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor(int i = 0; i < n ; i++){\n\t\t\t\tinput[i] = Integer.parseInt(tmpArray[i]);\n\t\t\t\tsum += input[i];\n\t\t\t}\n\t\t\tdouble ave = (double)sum / n;\n\t\t\t\n\t\t\tdouble var = 0;\n\t\t\tfor(int i = 0; i < n ; i++){\n\t\t\t\tvar += Math.pow((input[i] - ave) , 2)/n;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(Math.pow(var, 0.5));\n\t\t}\n//\t\tSystem.out.println(p1.distance(p2));\n\t\t\n\n//\t\tSystem.out.println(count);\n\n//\n//\t\t\tif(Character.isLowerCase(c)){\n//\t\t\t\tSystem.out.print(Character.toUpperCase(c));\n//\t\t\t}\n//\n//\t\t\telse if(Character.isUpperCase(c)){\n//\t\t\t\tSystem.out.print(Character.toLowerCase(c));\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tSystem.out.print(c);\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println();\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint l = Integer.parseInt(tmpArray[2]);\n//\n//\t\tlong[][] a = new long[n][m];\n//\t\tlong[][] b = new long[m][l];\n//\t\tlong[][] c = new long[n][l];\n//\n//\t\tfor(int i = 0; i < n; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < m; j++){\n//\t\t\t\ta[i][j] = Long.parseLong(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < m; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tb[i][j] = Integer.parseInt(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tfor(int k = 0; k < m; k++){\n//\t\t\t\t\tc[i][j] += a[i][k]*b[k][j];\n//\t\t\t\t}\n//\n//\t\t\t\tif(j != 0 ){\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(c[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\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\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\t\n//\t\tString str = br.readLine();\n\n\t\twhile(true){\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\t\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint[] input = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor(int i = 0; i < n ; i++){\n\t\t\t\tinput[i] = Integer.parseInt(tmpArray[i]);\n\t\t\t\tsum += input[i];\n\t\t\t}\n\t\t\tdouble ave = (double)sum / n;\n\t\t\t\n\t\t\tdouble var = 0;\n\t\t\tfor(int i = 0; i < n ; i++){\n\t\t\t\tvar += Math.pow((input[i] - ave) , 2)/n;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(Math.pow(var, 0.5));\n\t\t}\n//\t\tSystem.out.println(p1.distance(p2));\n\t\t\n\n//\t\tSystem.out.println(count);\n\n//\n//\t\t\tif(Character.isLowerCase(c)){\n//\t\t\t\tSystem.out.print(Character.toUpperCase(c));\n//\t\t\t}\n//\n//\t\t\telse if(Character.isUpperCase(c)){\n//\t\t\t\tSystem.out.print(Character.toLowerCase(c));\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tSystem.out.print(c);\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println();\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint l = Integer.parseInt(tmpArray[2]);\n//\n//\t\tlong[][] a = new long[n][m];\n//\t\tlong[][] b = new long[m][l];\n//\t\tlong[][] c = new long[n][l];\n//\n//\t\tfor(int i = 0; i < n; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < m; j++){\n//\t\t\t\ta[i][j] = Long.parseLong(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < m; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tb[i][j] = Integer.parseInt(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tfor(int k = 0; k < m; k++){\n//\t\t\t\t\tc[i][j] += a[i][k]*b[k][j];\n//\t\t\t\t}\n//\n//\t\t\t\tif(j != 0 ){\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(c[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\t\n//\t\tString str = br.readLine();\n\n\t\twhile(true){\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\t\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint[] input = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor(int i = 0; i < n ; i++){\n\t\t\t\tinput[i] = Integer.parseInt(tmpArray[i]);\n\t\t\t\tsum += input[i];\n\t\t\t}\n\t\t\tdouble ave = (double)sum / n;\n\t\t\t\n\t\t\tdouble var = 0;\n\t\t\tfor(int i = 0; i < n ; i++){\n\t\t\t\tvar += Math.pow((input[i] - ave) , 2)/n;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(Math.pow(var, 0.5));\n\t\t}\n//\t\tSystem.out.println(p1.distance(p2));\n\t\t\n\n//\t\tSystem.out.println(count);\n\n//\n//\t\t\tif(Character.isLowerCase(c)){\n//\t\t\t\tSystem.out.print(Character.toUpperCase(c));\n//\t\t\t}\n//\n//\t\t\telse if(Character.isUpperCase(c)){\n//\t\t\t\tSystem.out.print(Character.toLowerCase(c));\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tSystem.out.print(c);\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println();\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint l = Integer.parseInt(tmpArray[2]);\n//\n//\t\tlong[][] a = new long[n][m];\n//\t\tlong[][] b = new long[m][l];\n//\t\tlong[][] c = new long[n][l];\n//\n//\t\tfor(int i = 0; i < n; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < m; j++){\n//\t\t\t\ta[i][j] = Long.parseLong(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < m; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tb[i][j] = Integer.parseInt(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tfor(int k = 0; k < m; k++){\n//\t\t\t\t\tc[i][j] += a[i][k]*b[k][j];\n//\t\t\t\t}\n//\n//\t\t\t\tif(j != 0 ){\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(c[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\t\n//\t\tString str = br.readLine();\n\n\t\twhile(true){\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\t\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint[] input = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor(int i = 0; i < n ; i++){\n\t\t\t\tinput[i] = Integer.parseInt(tmpArray[i]);\n\t\t\t\tsum += input[i];\n\t\t\t}\n\t\t\tdouble ave = (double)sum / n;\n\t\t\t\n\t\t\tdouble var = 0;\n\t\t\tfor(int i = 0; i < n ; i++){\n\t\t\t\tvar += Math.pow((input[i] - ave) , 2)/n;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(Math.pow(var, 0.5));\n\t\t}\n//\t\tSystem.out.println(p1.distance(p2));\n\t\t\n\n//\t\tSystem.out.println(count);\n\n//\n//\t\t\tif(Character.isLowerCase(c)){\n//\t\t\t\tSystem.out.print(Character.toUpperCase(c));\n//\t\t\t}\n//\n//\t\t\telse if(Character.isUpperCase(c)){\n//\t\t\t\tSystem.out.print(Character.toLowerCase(c));\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tSystem.out.print(c);\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println();\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint l = Integer.parseInt(tmpArray[2]);\n//\n//\t\tlong[][] a = new long[n][m];\n//\t\tlong[][] b = new long[m][l];\n//\t\tlong[][] c = new long[n][l];\n//\n//\t\tfor(int i = 0; i < n; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < m; j++){\n//\t\t\t\ta[i][j] = Long.parseLong(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < m; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tb[i][j] = Integer.parseInt(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tfor(int k = 0; k < m; k++){\n//\t\t\t\t\tc[i][j] += a[i][k]*b[k][j];\n//\t\t\t\t}\n//\n//\t\t\t\tif(j != 0 ){\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(c[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\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\t\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint[] input = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor(int i = 0; i < n ; i++){\n\t\t\t\tinput[i] = Integer.parseInt(tmpArray[i]);\n\t\t\t\tsum += input[i];\n\t\t\t}\n\t\t\tdouble ave = (double)sum / n;\n\t\t\t\n\t\t\tdouble var = 0;\n\t\t\tfor(int i = 0; i < n ; i++){\n\t\t\t\tvar += Math.pow((input[i] - ave) , 2)/n;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(Math.pow(var, 0.5));\n\t\t}",
"true",
"{\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\t\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint[] input = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor(int i = 0; i < n ; i++){\n\t\t\t\tinput[i] = Integer.parseInt(tmpArray[i]);\n\t\t\t\tsum += input[i];\n\t\t\t}\n\t\t\tdouble ave = (double)sum / n;\n\t\t\t\n\t\t\tdouble var = 0;\n\t\t\tfor(int i = 0; i < n ; i++){\n\t\t\t\tvar += Math.pow((input[i] - ave) , 2)/n;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(Math.pow(var, 0.5));\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){\n\t\t\t\tbreak;\n\t\t\t}",
"n == 0",
"n",
"0",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"String[] tmpArray = br.readLine().split(\" \");",
"tmpArray",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int[] input = new int[n];",
"input",
"new int[n]",
"n",
"int sum = 0;",
"sum",
"0",
"for(int i = 0; i < n ; i++){\n\t\t\t\tinput[i] = Integer.parseInt(tmpArray[i]);\n\t\t\t\tsum += input[i];\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tinput[i] = Integer.parseInt(tmpArray[i]);\n\t\t\t\tsum += input[i];\n\t\t\t}",
"{\n\t\t\t\tinput[i] = Integer.parseInt(tmpArray[i]);\n\t\t\t\tsum += input[i];\n\t\t\t}",
"input[i] = Integer.parseInt(tmpArray[i])",
"input[i]",
"input",
"i",
"Integer.parseInt(tmpArray[i])",
"Integer.parseInt",
"Integer",
"tmpArray[i]",
"tmpArray",
"i",
"sum += input[i]",
"sum",
"input[i]",
"input",
"i",
"double ave = (double)sum / n;",
"ave",
"(double)sum / n",
"(double)sum",
"n",
"double var = 0;",
"var",
"0",
"for(int i = 0; i < n ; i++){\n\t\t\t\tvar += Math.pow((input[i] - ave) , 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\tvar += Math.pow((input[i] - ave) , 2)/n;\n\t\t\t}",
"{\n\t\t\t\tvar += Math.pow((input[i] - ave) , 2)/n;\n\t\t\t}",
"var += Math.pow((input[i] - ave) , 2)/n",
"var",
"Math.pow((input[i] - ave) , 2)/n",
"Math.pow((input[i] - ave) , 2)",
"Math.pow",
"Math",
"(input[i] - ave)",
"input[i]",
"input",
"i",
"ave",
"2",
"n",
"System.out.println(Math.pow(var, 0.5))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.pow(var, 0.5)",
"Math.pow",
"Math",
"var",
"0.5",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\t\n//\t\tString str = br.readLine();\n\n\t\twhile(true){\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\t\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint[] input = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor(int i = 0; i < n ; i++){\n\t\t\t\tinput[i] = Integer.parseInt(tmpArray[i]);\n\t\t\t\tsum += input[i];\n\t\t\t}\n\t\t\tdouble ave = (double)sum / n;\n\t\t\t\n\t\t\tdouble var = 0;\n\t\t\tfor(int i = 0; i < n ; i++){\n\t\t\t\tvar += Math.pow((input[i] - ave) , 2)/n;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(Math.pow(var, 0.5));\n\t\t}\n//\t\tSystem.out.println(p1.distance(p2));\n\t\t\n\n//\t\tSystem.out.println(count);\n\n//\n//\t\t\tif(Character.isLowerCase(c)){\n//\t\t\t\tSystem.out.print(Character.toUpperCase(c));\n//\t\t\t}\n//\n//\t\t\telse if(Character.isUpperCase(c)){\n//\t\t\t\tSystem.out.print(Character.toLowerCase(c));\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tSystem.out.print(c);\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println();\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint l = Integer.parseInt(tmpArray[2]);\n//\n//\t\tlong[][] a = new long[n][m];\n//\t\tlong[][] b = new long[m][l];\n//\t\tlong[][] c = new long[n][l];\n//\n//\t\tfor(int i = 0; i < n; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < m; j++){\n//\t\t\t\ta[i][j] = Long.parseLong(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < m; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tb[i][j] = Integer.parseInt(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tfor(int k = 0; k < m; k++){\n//\t\t\t\t\tc[i][j] += a[i][k]*b[k][j];\n//\t\t\t\t}\n//\n//\t\t\t\tif(j != 0 ){\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(c[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\t\n//\t\tString str = br.readLine();\n\n\t\twhile(true){\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\t\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint[] input = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor(int i = 0; i < n ; i++){\n\t\t\t\tinput[i] = Integer.parseInt(tmpArray[i]);\n\t\t\t\tsum += input[i];\n\t\t\t}\n\t\t\tdouble ave = (double)sum / n;\n\t\t\t\n\t\t\tdouble var = 0;\n\t\t\tfor(int i = 0; i < n ; i++){\n\t\t\t\tvar += Math.pow((input[i] - ave) , 2)/n;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(Math.pow(var, 0.5));\n\t\t}\n//\t\tSystem.out.println(p1.distance(p2));\n\t\t\n\n//\t\tSystem.out.println(count);\n\n//\n//\t\t\tif(Character.isLowerCase(c)){\n//\t\t\t\tSystem.out.print(Character.toUpperCase(c));\n//\t\t\t}\n//\n//\t\t\telse if(Character.isUpperCase(c)){\n//\t\t\t\tSystem.out.print(Character.toLowerCase(c));\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tSystem.out.print(c);\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println();\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint l = Integer.parseInt(tmpArray[2]);\n//\n//\t\tlong[][] a = new long[n][m];\n//\t\tlong[][] b = new long[m][l];\n//\t\tlong[][] c = new long[n][l];\n//\n//\t\tfor(int i = 0; i < n; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < m; j++){\n//\t\t\t\ta[i][j] = Long.parseLong(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < m; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tb[i][j] = Integer.parseInt(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tfor(int k = 0; k < m; k++){\n//\t\t\t\t\tc[i][j] += a[i][k]*b[k][j];\n//\t\t\t\t}\n//\n//\t\t\t\tif(j != 0 ){\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(c[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\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 {
// TODO ?????????????????????????????????????????????
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
// String str = br.readLine();
while(true){
int n = Integer.parseInt(br.readLine());
if(n == 0){
break;
}
String[] tmpArray = br.readLine().split(" ");
int[] input = new int[n];
int sum = 0;
for(int i = 0; i < n ; i++){
input[i] = Integer.parseInt(tmpArray[i]);
sum += input[i];
}
double ave = (double)sum / n;
double var = 0;
for(int i = 0; i < n ; i++){
var += Math.pow((input[i] - ave) , 2)/n;
}
System.out.println(Math.pow(var, 0.5));
}
// System.out.println(p1.distance(p2));
// System.out.println(count);
//
// if(Character.isLowerCase(c)){
// System.out.print(Character.toUpperCase(c));
// }
//
// else if(Character.isUpperCase(c)){
// System.out.print(Character.toLowerCase(c));
// }
// else {
// System.out.print(c);
// }
// }
// System.out.println();
// String[] tmpArray = br.readLine().split(" ");
// int n = Integer.parseInt(tmpArray[0]);
// int m = Integer.parseInt(tmpArray[1]);
// int l = Integer.parseInt(tmpArray[2]);
//
// long[][] a = new long[n][m];
// long[][] b = new long[m][l];
// long[][] c = new long[n][l];
//
// for(int i = 0; i < n; i ++){
// tmpArray = br.readLine().split(" ");
// for(int j = 0; j < m; j++){
// a[i][j] = Long.parseLong(tmpArray[j]);
// }
// }
//
// for(int i = 0; i < m; i ++){
// tmpArray = br.readLine().split(" ");
// for(int j = 0; j < l; j++){
// b[i][j] = Integer.parseInt(tmpArray[j]);
// }
// }
//
// for(int i = 0; i < n; i++){
// for(int j = 0; j < l; j++){
// for(int k = 0; k < m; k++){
// c[i][j] += a[i][k]*b[k][j];
// }
//
// if(j != 0 ){
// System.out.print(" ");
// }
// System.out.print(c[i][j]);
// }
// 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,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
14,
2,
13,
17,
30,
4,
18,
13,
3,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
18,
13,
13,
0,
13,
2,
13,
13,
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,
0,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
123,
5
],
[
123,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
20,
22
],
[
14,
24
],
[
24,
25
],
[
24,
26
],
[
14,
27
],
[
27,
28
],
[
27,
29
],
[
14,
30
],
[
30,
31
],
[
30,
32
],
[
14,
33
],
[
33,
34
],
[
33,
35
],
[
14,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
40,
44
],
[
36,
45
],
[
45,
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
],
[
45,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
45,
76
],
[
76,
77
],
[
76,
78
],
[
45,
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
],
[
94,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
94,
102
],
[
45,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
105,
107
],
[
14,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
14,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
6,
120
],
[
120,
121
],
[
0,
122
],
[
122,
123
],
[
122,
124
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true){\n\n\t\t\t//?????°?????????\n\t\t\tint n = scan.nextInt();\n\t\t\t//????????¢???????´?????????????\n\t\t\tdouble[] score = new double[n];\n\t\t\t//????¨????????????????????????°\n\t\t\tdouble total = 0.0;\n\t\t\t//?????????????????????????????°\n\t\t\tdouble average = 0.0;\n\t\t\t//?????£????????????????????°\n\t\t\tdouble var = 0.0;\n\t\t\t//?¨?????????????????????????????????°\n\t\t\tdouble result = 0.0;\n\n\t\t\t//???????????¶\n\t\t\tif(n==0){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}else{\n\n\t\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\t\tscore[i] = scan.nextDouble();\n\t\t\t\t\ttotal += score[i];\n\t\t\t\t}\n\t\t\t\t//?????????\n\t\t\t\taverage = total / n;\n\t\t\t\t//?????£????¨????\n\t\t\t\tdouble temp = 0.0;\n\t\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\t\ttemp += Math.pow(score[j] - average ,2);\n\t\t\t\t}\n\t\t\t\tvar = temp/n;\n\t\t\t}\n\n\t\t\t//?¨?????????????????±?????????¬???\n\t\t\t//?????£????????????????±???????\n\t\t\tresult = Math.sqrt(var);\n\t\t\tSystem.out.println(result);\n\t\t}\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true){\n\n\t\t\t//?????°?????????\n\t\t\tint n = scan.nextInt();\n\t\t\t//????????¢???????´?????????????\n\t\t\tdouble[] score = new double[n];\n\t\t\t//????¨????????????????????????°\n\t\t\tdouble total = 0.0;\n\t\t\t//?????????????????????????????°\n\t\t\tdouble average = 0.0;\n\t\t\t//?????£????????????????????°\n\t\t\tdouble var = 0.0;\n\t\t\t//?¨?????????????????????????????????°\n\t\t\tdouble result = 0.0;\n\n\t\t\t//???????????¶\n\t\t\tif(n==0){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}else{\n\n\t\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\t\tscore[i] = scan.nextDouble();\n\t\t\t\t\ttotal += score[i];\n\t\t\t\t}\n\t\t\t\t//?????????\n\t\t\t\taverage = total / n;\n\t\t\t\t//?????£????¨????\n\t\t\t\tdouble temp = 0.0;\n\t\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\t\ttemp += Math.pow(score[j] - average ,2);\n\t\t\t\t}\n\t\t\t\tvar = temp/n;\n\t\t\t}\n\n\t\t\t//?¨?????????????????±?????????¬???\n\t\t\t//?????£????????????????±???????\n\t\t\tresult = Math.sqrt(var);\n\t\t\tSystem.out.println(result);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true){\n\n\t\t\t//?????°?????????\n\t\t\tint n = scan.nextInt();\n\t\t\t//????????¢???????´?????????????\n\t\t\tdouble[] score = new double[n];\n\t\t\t//????¨????????????????????????°\n\t\t\tdouble total = 0.0;\n\t\t\t//?????????????????????????????°\n\t\t\tdouble average = 0.0;\n\t\t\t//?????£????????????????????°\n\t\t\tdouble var = 0.0;\n\t\t\t//?¨?????????????????????????????????°\n\t\t\tdouble result = 0.0;\n\n\t\t\t//???????????¶\n\t\t\tif(n==0){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}else{\n\n\t\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\t\tscore[i] = scan.nextDouble();\n\t\t\t\t\ttotal += score[i];\n\t\t\t\t}\n\t\t\t\t//?????????\n\t\t\t\taverage = total / n;\n\t\t\t\t//?????£????¨????\n\t\t\t\tdouble temp = 0.0;\n\t\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\t\ttemp += Math.pow(score[j] - average ,2);\n\t\t\t\t}\n\t\t\t\tvar = temp/n;\n\t\t\t}\n\n\t\t\t//?¨?????????????????±?????????¬???\n\t\t\t//?????£????????????????±???????\n\t\t\tresult = Math.sqrt(var);\n\t\t\tSystem.out.println(result);\n\t\t}\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true){\n\n\t\t\t//?????°?????????\n\t\t\tint n = scan.nextInt();\n\t\t\t//????????¢???????´?????????????\n\t\t\tdouble[] score = new double[n];\n\t\t\t//????¨????????????????????????°\n\t\t\tdouble total = 0.0;\n\t\t\t//?????????????????????????????°\n\t\t\tdouble average = 0.0;\n\t\t\t//?????£????????????????????°\n\t\t\tdouble var = 0.0;\n\t\t\t//?¨?????????????????????????????????°\n\t\t\tdouble result = 0.0;\n\n\t\t\t//???????????¶\n\t\t\tif(n==0){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}else{\n\n\t\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\t\tscore[i] = scan.nextDouble();\n\t\t\t\t\ttotal += score[i];\n\t\t\t\t}\n\t\t\t\t//?????????\n\t\t\t\taverage = total / n;\n\t\t\t\t//?????£????¨????\n\t\t\t\tdouble temp = 0.0;\n\t\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\t\ttemp += Math.pow(score[j] - average ,2);\n\t\t\t\t}\n\t\t\t\tvar = temp/n;\n\t\t\t}\n\n\t\t\t//?¨?????????????????±?????????¬???\n\t\t\t//?????£????????????????±???????\n\t\t\tresult = Math.sqrt(var);\n\t\t\tSystem.out.println(result);\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"while(true){\n\n\t\t\t//?????°?????????\n\t\t\tint n = scan.nextInt();\n\t\t\t//????????¢???????´?????????????\n\t\t\tdouble[] score = new double[n];\n\t\t\t//????¨????????????????????????°\n\t\t\tdouble total = 0.0;\n\t\t\t//?????????????????????????????°\n\t\t\tdouble average = 0.0;\n\t\t\t//?????£????????????????????°\n\t\t\tdouble var = 0.0;\n\t\t\t//?¨?????????????????????????????????°\n\t\t\tdouble result = 0.0;\n\n\t\t\t//???????????¶\n\t\t\tif(n==0){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}else{\n\n\t\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\t\tscore[i] = scan.nextDouble();\n\t\t\t\t\ttotal += score[i];\n\t\t\t\t}\n\t\t\t\t//?????????\n\t\t\t\taverage = total / n;\n\t\t\t\t//?????£????¨????\n\t\t\t\tdouble temp = 0.0;\n\t\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\t\ttemp += Math.pow(score[j] - average ,2);\n\t\t\t\t}\n\t\t\t\tvar = temp/n;\n\t\t\t}\n\n\t\t\t//?¨?????????????????±?????????¬???\n\t\t\t//?????£????????????????±???????\n\t\t\tresult = Math.sqrt(var);\n\t\t\tSystem.out.println(result);\n\t\t}",
"true",
"{\n\n\t\t\t//?????°?????????\n\t\t\tint n = scan.nextInt();\n\t\t\t//????????¢???????´?????????????\n\t\t\tdouble[] score = new double[n];\n\t\t\t//????¨????????????????????????°\n\t\t\tdouble total = 0.0;\n\t\t\t//?????????????????????????????°\n\t\t\tdouble average = 0.0;\n\t\t\t//?????£????????????????????°\n\t\t\tdouble var = 0.0;\n\t\t\t//?¨?????????????????????????????????°\n\t\t\tdouble result = 0.0;\n\n\t\t\t//???????????¶\n\t\t\tif(n==0){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}else{\n\n\t\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\t\tscore[i] = scan.nextDouble();\n\t\t\t\t\ttotal += score[i];\n\t\t\t\t}\n\t\t\t\t//?????????\n\t\t\t\taverage = total / n;\n\t\t\t\t//?????£????¨????\n\t\t\t\tdouble temp = 0.0;\n\t\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\t\ttemp += Math.pow(score[j] - average ,2);\n\t\t\t\t}\n\t\t\t\tvar = temp/n;\n\t\t\t}\n\n\t\t\t//?¨?????????????????±?????????¬???\n\t\t\t//?????£????????????????±???????\n\t\t\tresult = Math.sqrt(var);\n\t\t\tSystem.out.println(result);\n\t\t}",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"double[] score = new double[n];",
"score",
"new double[n]",
"n",
"double total = 0.0;",
"total",
"0.0",
"double average = 0.0;",
"average",
"0.0",
"double var = 0.0;",
"var",
"0.0",
"double result = 0.0;",
"result",
"0.0",
"if(n==0){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}else{\n\n\t\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\t\tscore[i] = scan.nextDouble();\n\t\t\t\t\ttotal += score[i];\n\t\t\t\t}\n\t\t\t\t//?????????\n\t\t\t\taverage = total / n;\n\t\t\t\t//?????£????¨????\n\t\t\t\tdouble temp = 0.0;\n\t\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\t\ttemp += Math.pow(score[j] - average ,2);\n\t\t\t\t}\n\t\t\t\tvar = temp/n;\n\t\t\t}",
"n==0",
"n",
"0",
"{\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}",
"scan.close()",
"scan.close",
"scan",
"break;",
"{\n\n\t\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\t\tscore[i] = scan.nextDouble();\n\t\t\t\t\ttotal += score[i];\n\t\t\t\t}\n\t\t\t\t//?????????\n\t\t\t\taverage = total / n;\n\t\t\t\t//?????£????¨????\n\t\t\t\tdouble temp = 0.0;\n\t\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\t\ttemp += Math.pow(score[j] - average ,2);\n\t\t\t\t}\n\t\t\t\tvar = temp/n;\n\t\t\t}",
"for(int i = 0; i < n; i++){\n\t\t\t\t\tscore[i] = scan.nextDouble();\n\t\t\t\t\ttotal += 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] = scan.nextDouble();\n\t\t\t\t\ttotal += score[i];\n\t\t\t\t}",
"{\n\t\t\t\t\tscore[i] = scan.nextDouble();\n\t\t\t\t\ttotal += score[i];\n\t\t\t\t}",
"score[i] = scan.nextDouble()",
"score[i]",
"score",
"i",
"scan.nextDouble()",
"scan.nextDouble",
"scan",
"total += score[i]",
"total",
"score[i]",
"score",
"i",
"average = total / n",
"average",
"total / n",
"total",
"n",
"double temp = 0.0;",
"temp",
"0.0",
"for(int j = 0; j < n; j++){\n\t\t\t\t\ttemp += Math.pow(score[j] - average ,2);\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < n",
"j",
"n",
"j++",
"j++",
"j",
"{\n\t\t\t\t\ttemp += Math.pow(score[j] - average ,2);\n\t\t\t\t}",
"{\n\t\t\t\t\ttemp += Math.pow(score[j] - average ,2);\n\t\t\t\t}",
"temp += Math.pow(score[j] - average ,2)",
"temp",
"Math.pow(score[j] - average ,2)",
"Math.pow",
"Math",
"score[j] - average",
"score[j]",
"score",
"j",
"average",
"2",
"var = temp/n",
"var",
"temp/n",
"temp",
"n",
"result = Math.sqrt(var)",
"result",
"Math.sqrt(var)",
"Math.sqrt",
"Math",
"var",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true){\n\n\t\t\t//?????°?????????\n\t\t\tint n = scan.nextInt();\n\t\t\t//????????¢???????´?????????????\n\t\t\tdouble[] score = new double[n];\n\t\t\t//????¨????????????????????????°\n\t\t\tdouble total = 0.0;\n\t\t\t//?????????????????????????????°\n\t\t\tdouble average = 0.0;\n\t\t\t//?????£????????????????????°\n\t\t\tdouble var = 0.0;\n\t\t\t//?¨?????????????????????????????????°\n\t\t\tdouble result = 0.0;\n\n\t\t\t//???????????¶\n\t\t\tif(n==0){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}else{\n\n\t\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\t\tscore[i] = scan.nextDouble();\n\t\t\t\t\ttotal += score[i];\n\t\t\t\t}\n\t\t\t\t//?????????\n\t\t\t\taverage = total / n;\n\t\t\t\t//?????£????¨????\n\t\t\t\tdouble temp = 0.0;\n\t\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\t\ttemp += Math.pow(score[j] - average ,2);\n\t\t\t\t}\n\t\t\t\tvar = temp/n;\n\t\t\t}\n\n\t\t\t//?¨?????????????????±?????????¬???\n\t\t\t//?????£????????????????±???????\n\t\t\tresult = Math.sqrt(var);\n\t\t\tSystem.out.println(result);\n\t\t}\n\t}\n\n}",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true){\n\n\t\t\t//?????°?????????\n\t\t\tint n = scan.nextInt();\n\t\t\t//????????¢???????´?????????????\n\t\t\tdouble[] score = new double[n];\n\t\t\t//????¨????????????????????????°\n\t\t\tdouble total = 0.0;\n\t\t\t//?????????????????????????????°\n\t\t\tdouble average = 0.0;\n\t\t\t//?????£????????????????????°\n\t\t\tdouble var = 0.0;\n\t\t\t//?¨?????????????????????????????????°\n\t\t\tdouble result = 0.0;\n\n\t\t\t//???????????¶\n\t\t\tif(n==0){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}else{\n\n\t\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\t\tscore[i] = scan.nextDouble();\n\t\t\t\t\ttotal += score[i];\n\t\t\t\t}\n\t\t\t\t//?????????\n\t\t\t\taverage = total / n;\n\t\t\t\t//?????£????¨????\n\t\t\t\tdouble temp = 0.0;\n\t\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\t\ttemp += Math.pow(score[j] - average ,2);\n\t\t\t\t}\n\t\t\t\tvar = temp/n;\n\t\t\t}\n\n\t\t\t//?¨?????????????????±?????????¬???\n\t\t\t//?????£????????????????±???????\n\t\t\tresult = Math.sqrt(var);\n\t\t\tSystem.out.println(result);\n\t\t}\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner scan = new Scanner(System.in);
while(true){
//?????°?????????
int n = scan.nextInt();
//????????¢???????´?????????????
double[] score = new double[n];
//????¨????????????????????????°
double total = 0.0;
//?????????????????????????????°
double average = 0.0;
//?????£????????????????????°
double var = 0.0;
//?¨?????????????????????????????????°
double result = 0.0;
//???????????¶
if(n==0){
scan.close();
break;
}else{
for(int i = 0; i < n; i++){
score[i] = scan.nextDouble();
total += score[i];
}
//?????????
average = total / n;
//?????£????¨????
double temp = 0.0;
for(int j = 0; j < n; j++){
temp += Math.pow(score[j] - average ,2);
}
var = temp/n;
}
//?¨?????????????????±?????????¬???
//?????£????????????????±???????
result = Math.sqrt(var);
System.out.println(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,
42,
17,
30,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
13,
17,
3,
41,
13,
20,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
28,
13,
4,
18,
4,
18,
13,
17,
30,
30,
0,
13,
0,
18,
13,
40,
13,
4,
18,
13,
13,
0,
13,
13,
28,
13,
13,
30,
30,
0,
13,
4,
18,
13,
2,
13,
13,
17,
4,
18,
13,
17,
4,
18,
13,
2,
13,
13,
4,
18,
13,
12,
13,
30,
4,
18,
20,
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
],
[
113,
14
],
[
113,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
32,
33
],
[
33,
34
],
[
26,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
26,
40
],
[
40,
41
],
[
40,
42
],
[
26,
44
],
[
44,
45
],
[
44,
46
],
[
26,
47
],
[
47,
48
],
[
47,
49
],
[
26,
50
],
[
50,
51
],
[
50,
52
],
[
26,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
55,
60
],
[
53,
61
],
[
62,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
65,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
26,
74
],
[
74,
75
],
[
74,
76
],
[
26,
77
],
[
77,
78
],
[
77,
79
],
[
77,
80
],
[
81,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
87,
88
],
[
87,
89
],
[
84,
90
],
[
26,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
91,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
98,
99
],
[
98,
100
],
[
17,
101
],
[
101,
102
],
[
102,
103
],
[
113,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
104,
110
],
[
110,
111
],
[
0,
112
],
[
112,
113
],
[
112,
114
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\n \npublic class Main {\n\tpublic void exec() throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(System.out);\n while(true) {\n \tint n = Integer.parseInt(br.readLine());\n \tif(n==0) break;\n \tint[] sary = new int[n];\n \tdouble avg=0, var=0;\n \tint i=0;\n \tfor(String s: br.readLine().split(\" \")) {\n \t\tavg += sary[i++] = Integer.parseInt(s);\n \t}\n \tavg /= n;\n \tfor(int s: sary) {\n \t\tvar += Math.pow(s - avg,2);\n \t}\n \tout.printf(\"%.4f\\n\",Math.sqrt(var/n));\n }\n out.flush();\n }\n \n public static void main(String[] args) throws IOException {\n new Main().exec();\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.io.PrintWriter;",
"PrintWriter",
"java.io",
"public class Main {\n\tpublic void exec() throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(System.out);\n while(true) {\n \tint n = Integer.parseInt(br.readLine());\n \tif(n==0) break;\n \tint[] sary = new int[n];\n \tdouble avg=0, var=0;\n \tint i=0;\n \tfor(String s: br.readLine().split(\" \")) {\n \t\tavg += sary[i++] = Integer.parseInt(s);\n \t}\n \tavg /= n;\n \tfor(int s: sary) {\n \t\tvar += Math.pow(s - avg,2);\n \t}\n \tout.printf(\"%.4f\\n\",Math.sqrt(var/n));\n }\n out.flush();\n }\n \n public static void main(String[] args) throws IOException {\n new Main().exec();\n }\n}",
"Main",
"public void exec() throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(System.out);\n while(true) {\n \tint n = Integer.parseInt(br.readLine());\n \tif(n==0) break;\n \tint[] sary = new int[n];\n \tdouble avg=0, var=0;\n \tint i=0;\n \tfor(String s: br.readLine().split(\" \")) {\n \t\tavg += sary[i++] = Integer.parseInt(s);\n \t}\n \tavg /= n;\n \tfor(int s: sary) {\n \t\tvar += Math.pow(s - avg,2);\n \t}\n \tout.printf(\"%.4f\\n\",Math.sqrt(var/n));\n }\n out.flush();\n }",
"exec",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(System.out);\n while(true) {\n \tint n = Integer.parseInt(br.readLine());\n \tif(n==0) break;\n \tint[] sary = new int[n];\n \tdouble avg=0, var=0;\n \tint i=0;\n \tfor(String s: br.readLine().split(\" \")) {\n \t\tavg += sary[i++] = Integer.parseInt(s);\n \t}\n \tavg /= n;\n \tfor(int s: sary) {\n \t\tvar += Math.pow(s - avg,2);\n \t}\n \tout.printf(\"%.4f\\n\",Math.sqrt(var/n));\n }\n out.flush();\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"while(true) {\n \tint n = Integer.parseInt(br.readLine());\n \tif(n==0) break;\n \tint[] sary = new int[n];\n \tdouble avg=0, var=0;\n \tint i=0;\n \tfor(String s: br.readLine().split(\" \")) {\n \t\tavg += sary[i++] = Integer.parseInt(s);\n \t}\n \tavg /= n;\n \tfor(int s: sary) {\n \t\tvar += Math.pow(s - avg,2);\n \t}\n \tout.printf(\"%.4f\\n\",Math.sqrt(var/n));\n }",
"true",
"{\n \tint n = Integer.parseInt(br.readLine());\n \tif(n==0) break;\n \tint[] sary = new int[n];\n \tdouble avg=0, var=0;\n \tint i=0;\n \tfor(String s: br.readLine().split(\" \")) {\n \t\tavg += sary[i++] = Integer.parseInt(s);\n \t}\n \tavg /= n;\n \tfor(int s: sary) {\n \t\tvar += Math.pow(s - avg,2);\n \t}\n \tout.printf(\"%.4f\\n\",Math.sqrt(var/n));\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;",
"int[] sary = new int[n];",
"sary",
"new int[n]",
"n",
"double avg=0",
"avg",
"0",
"var=0;",
"var",
"0",
"int i=0;",
"i",
"0",
"for(String s: br.readLine().split(\" \")) {\n \t\tavg += sary[i++] = Integer.parseInt(s);\n \t}",
"String s",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"{\n \t\tavg += sary[i++] = Integer.parseInt(s);\n \t}",
"{\n \t\tavg += sary[i++] = Integer.parseInt(s);\n \t}",
"avg += sary[i++] = Integer.parseInt(s)",
"avg",
"sary[i++] = Integer.parseInt(s)",
"sary[i++]",
"sary",
"i++",
"i",
"Integer.parseInt(s)",
"Integer.parseInt",
"Integer",
"s",
"avg /= n",
"avg",
"n",
"for(int s: sary) {\n \t\tvar += Math.pow(s - avg,2);\n \t}",
"int s",
"sary",
"{\n \t\tvar += Math.pow(s - avg,2);\n \t}",
"{\n \t\tvar += Math.pow(s - avg,2);\n \t}",
"var += Math.pow(s - avg,2)",
"var",
"Math.pow(s - avg,2)",
"Math.pow",
"Math",
"s - avg",
"s",
"avg",
"2",
"out.printf(\"%.4f\\n\",Math.sqrt(var/n))",
"out.printf",
"out",
"\"%.4f\\n\"",
"Math.sqrt(var/n)",
"Math.sqrt",
"Math",
"var/n",
"var",
"n",
"out.flush()",
"out.flush",
"out",
"public static void main(String[] args) throws IOException {\n new Main().exec();\n }",
"main",
"{\n new Main().exec();\n }",
"new Main().exec()",
"new Main().exec",
"new Main()",
"String[] args",
"args",
"public class Main {\n\tpublic void exec() throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(System.out);\n while(true) {\n \tint n = Integer.parseInt(br.readLine());\n \tif(n==0) break;\n \tint[] sary = new int[n];\n \tdouble avg=0, var=0;\n \tint i=0;\n \tfor(String s: br.readLine().split(\" \")) {\n \t\tavg += sary[i++] = Integer.parseInt(s);\n \t}\n \tavg /= n;\n \tfor(int s: sary) {\n \t\tvar += Math.pow(s - avg,2);\n \t}\n \tout.printf(\"%.4f\\n\",Math.sqrt(var/n));\n }\n out.flush();\n }\n \n public static void main(String[] args) throws IOException {\n new Main().exec();\n }\n}",
"public class Main {\n\tpublic void exec() throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(System.out);\n while(true) {\n \tint n = Integer.parseInt(br.readLine());\n \tif(n==0) break;\n \tint[] sary = new int[n];\n \tdouble avg=0, var=0;\n \tint i=0;\n \tfor(String s: br.readLine().split(\" \")) {\n \t\tavg += sary[i++] = Integer.parseInt(s);\n \t}\n \tavg /= n;\n \tfor(int s: sary) {\n \t\tvar += Math.pow(s - avg,2);\n \t}\n \tout.printf(\"%.4f\\n\",Math.sqrt(var/n));\n }\n out.flush();\n }\n \n public static void main(String[] args) throws IOException {\n new Main().exec();\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
public class Main {
public void exec() throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
PrintWriter out = new PrintWriter(System.out);
while(true) {
int n = Integer.parseInt(br.readLine());
if(n==0) break;
int[] sary = new int[n];
double avg=0, var=0;
int i=0;
for(String s: br.readLine().split(" ")) {
avg += sary[i++] = Integer.parseInt(s);
}
avg /= n;
for(int s: sary) {
var += Math.pow(s - avg,2);
}
out.printf("%.4f\n",Math.sqrt(var/n));
}
out.flush();
}
public static void main(String[] args) throws IOException {
new Main().exec();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
41,
13,
17,
41,
13,
17,
38,
30,
41,
13,
20,
42,
17,
30,
0,
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,
0,
13,
2,
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,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
13,
0,
13,
17,
0,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
139,
5
],
[
139,
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
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
21,
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
],
[
37,
38
],
[
27,
39
],
[
39,
40
],
[
39,
41
],
[
27,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
43,
53
],
[
53,
54
],
[
54,
55
],
[
43,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
63,
64
],
[
57,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
69,
71
],
[
27,
72
],
[
72,
73
],
[
72,
74
],
[
27,
75
],
[
75,
76
],
[
75,
77
],
[
27,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
80,
82
],
[
27,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
90,
92
],
[
83,
93
],
[
93,
94
],
[
94,
95
],
[
83,
96
],
[
97,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
100,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
97,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
113,
115
],
[
97,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
118,
120
],
[
27,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
27,
130
],
[
130,
131
],
[
130,
132
],
[
27,
133
],
[
133,
134
],
[
133,
135
],
[
6,
136
],
[
136,
137
],
[
0,
138
],
[
138,
139
],
[
138,
140
]
] | [
"import java.util.Scanner;\npublic class Main {\n\n public static void main(String[] args) {\n double sum = 0;\n int n;\n double s = 0;\n double sum1 = 0;\n try (Scanner sc = new Scanner(System.in)) {\n while (true) {\n 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 sum = sum + (double)scores[i];\n }\n\n double average = 0, variance = 0;\n average = sum / (double)n;\n\n for (int j = 0; j < scores.length; j++) {\n sum1 = ((double)scores[j] - average) * ((double)scores[j] - average);\n s = s + sum1;\n variance = s / n;\n }\n\n System.out.println(Math.sqrt(variance));\n sum=0;\n s=0;\n }\n }\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n double sum = 0;\n int n;\n double s = 0;\n double sum1 = 0;\n try (Scanner sc = new Scanner(System.in)) {\n while (true) {\n 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 sum = sum + (double)scores[i];\n }\n\n double average = 0, variance = 0;\n average = sum / (double)n;\n\n for (int j = 0; j < scores.length; j++) {\n sum1 = ((double)scores[j] - average) * ((double)scores[j] - average);\n s = s + sum1;\n variance = s / n;\n }\n\n System.out.println(Math.sqrt(variance));\n sum=0;\n s=0;\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n double sum = 0;\n int n;\n double s = 0;\n double sum1 = 0;\n try (Scanner sc = new Scanner(System.in)) {\n while (true) {\n 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 sum = sum + (double)scores[i];\n }\n\n double average = 0, variance = 0;\n average = sum / (double)n;\n\n for (int j = 0; j < scores.length; j++) {\n sum1 = ((double)scores[j] - average) * ((double)scores[j] - average);\n s = s + sum1;\n variance = s / n;\n }\n\n System.out.println(Math.sqrt(variance));\n sum=0;\n s=0;\n }\n }\n }",
"main",
"{\n double sum = 0;\n int n;\n double s = 0;\n double sum1 = 0;\n try (Scanner sc = new Scanner(System.in)) {\n while (true) {\n 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 sum = sum + (double)scores[i];\n }\n\n double average = 0, variance = 0;\n average = sum / (double)n;\n\n for (int j = 0; j < scores.length; j++) {\n sum1 = ((double)scores[j] - average) * ((double)scores[j] - average);\n s = s + sum1;\n variance = s / n;\n }\n\n System.out.println(Math.sqrt(variance));\n sum=0;\n s=0;\n }\n }\n }",
"double sum = 0;",
"sum",
"0",
"int n;",
"n",
"double s = 0;",
"s",
"0",
"double sum1 = 0;",
"sum1",
"0",
"try (Scanner sc = new Scanner(System.in)) {\n while (true) {\n 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 sum = sum + (double)scores[i];\n }\n\n double average = 0, variance = 0;\n average = sum / (double)n;\n\n for (int j = 0; j < scores.length; j++) {\n sum1 = ((double)scores[j] - average) * ((double)scores[j] - average);\n s = s + sum1;\n variance = s / n;\n }\n\n System.out.println(Math.sqrt(variance));\n sum=0;\n s=0;\n }\n }",
"{\n while (true) {\n 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 sum = sum + (double)scores[i];\n }\n\n double average = 0, variance = 0;\n average = sum / (double)n;\n\n for (int j = 0; j < scores.length; j++) {\n sum1 = ((double)scores[j] - average) * ((double)scores[j] - average);\n s = s + sum1;\n variance = s / n;\n }\n\n System.out.println(Math.sqrt(variance));\n sum=0;\n s=0;\n }\n }",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"while (true) {\n 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 sum = sum + (double)scores[i];\n }\n\n double average = 0, variance = 0;\n average = sum / (double)n;\n\n for (int j = 0; j < scores.length; j++) {\n sum1 = ((double)scores[j] - average) * ((double)scores[j] - average);\n s = s + sum1;\n variance = s / n;\n }\n\n System.out.println(Math.sqrt(variance));\n sum=0;\n s=0;\n }",
"true",
"{\n 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 sum = sum + (double)scores[i];\n }\n\n double average = 0, variance = 0;\n average = sum / (double)n;\n\n for (int j = 0; j < scores.length; j++) {\n sum1 = ((double)scores[j] - average) * ((double)scores[j] - average);\n s = s + sum1;\n variance = s / n;\n }\n\n System.out.println(Math.sqrt(variance));\n sum=0;\n s=0;\n }",
"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 sum = sum + (double)scores[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < scores.length",
"i",
"scores.length",
"scores",
"scores.length",
"i++",
"i++",
"i",
"{\n scores[i] = sc.nextInt();\n sum = sum + (double)scores[i];\n }",
"{\n scores[i] = sc.nextInt();\n sum = sum + (double)scores[i];\n }",
"scores[i] = sc.nextInt()",
"scores[i]",
"scores",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sum = sum + (double)scores[i]",
"sum",
"sum + (double)scores[i]",
"sum",
"(double)scores[i]",
"scores",
"i",
"double average = 0",
"average",
"0",
"variance = 0;",
"variance",
"0",
"average = sum / (double)n",
"average",
"sum / (double)n",
"sum",
"(double)n",
"for (int j = 0; j < scores.length; j++) {\n sum1 = ((double)scores[j] - average) * ((double)scores[j] - average);\n s = s + sum1;\n variance = s / n;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < scores.length",
"j",
"scores.length",
"scores",
"scores.length",
"j++",
"j++",
"j",
"{\n sum1 = ((double)scores[j] - average) * ((double)scores[j] - average);\n s = s + sum1;\n variance = s / n;\n }",
"{\n sum1 = ((double)scores[j] - average) * ((double)scores[j] - average);\n s = s + sum1;\n variance = s / n;\n }",
"sum1 = ((double)scores[j] - average) * ((double)scores[j] - average)",
"sum1",
"((double)scores[j] - average) * ((double)scores[j] - average)",
"((double)scores[j] - average)",
"(double)scores[j]",
"scores",
"j",
"average",
"((double)scores[j] - average)",
"(double)scores[j]",
"scores",
"j",
"average",
"s = s + sum1",
"s",
"s + sum1",
"s",
"sum1",
"variance = s / n",
"variance",
"s / n",
"s",
"n",
"System.out.println(Math.sqrt(variance))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.sqrt(variance)",
"Math.sqrt",
"Math",
"variance",
"sum=0",
"sum",
"0",
"s=0",
"s",
"0",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n double sum = 0;\n int n;\n double s = 0;\n double sum1 = 0;\n try (Scanner sc = new Scanner(System.in)) {\n while (true) {\n 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 sum = sum + (double)scores[i];\n }\n\n double average = 0, variance = 0;\n average = sum / (double)n;\n\n for (int j = 0; j < scores.length; j++) {\n sum1 = ((double)scores[j] - average) * ((double)scores[j] - average);\n s = s + sum1;\n variance = s / n;\n }\n\n System.out.println(Math.sqrt(variance));\n sum=0;\n s=0;\n }\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n double sum = 0;\n int n;\n double s = 0;\n double sum1 = 0;\n try (Scanner sc = new Scanner(System.in)) {\n while (true) {\n 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 sum = sum + (double)scores[i];\n }\n\n double average = 0, variance = 0;\n average = sum / (double)n;\n\n for (int j = 0; j < scores.length; j++) {\n sum1 = ((double)scores[j] - average) * ((double)scores[j] - average);\n s = s + sum1;\n variance = s / n;\n }\n\n System.out.println(Math.sqrt(variance));\n sum=0;\n s=0;\n }\n }\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
double sum = 0;
int n;
double s = 0;
double sum1 = 0;
try (Scanner sc = new Scanner(System.in)) {
while (true) {
n = sc.nextInt();
if (n == 0) {
break;
}
int[] scores = new int[n];
for (int i = 0; i < scores.length; i++) {
scores[i] = sc.nextInt();
sum = sum + (double)scores[i];
}
double average = 0, variance = 0;
average = sum / (double)n;
for (int j = 0; j < scores.length; j++) {
sum1 = ((double)scores[j] - average) * ((double)scores[j] - average);
s = s + sum1;
variance = s / n;
}
System.out.println(Math.sqrt(variance));
sum=0;
s=0;
}
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
12,
13,
30,
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,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
28,
13,
13,
30,
0,
13,
13,
0,
13,
13,
41,
13,
17,
28,
13,
13,
30,
0,
13,
2,
2,
13,
13,
2,
13,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
2,
13,
13,
4,
18,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
15,
17
],
[
13,
18
],
[
18,
19
],
[
18,
20
],
[
13,
21
],
[
21,
22
],
[
21,
23
],
[
13,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
35,
36
],
[
36,
37
],
[
29,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
29,
43
],
[
43,
44
],
[
43,
45
],
[
29,
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
],
[
70,
71
],
[
29,
72
],
[
72,
73
],
[
72,
74
],
[
29,
75
],
[
75,
76
],
[
75,
77
],
[
75,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
29,
82
],
[
82,
83
],
[
82,
84
],
[
29,
85
],
[
85,
86
],
[
85,
87
],
[
29,
88
],
[
88,
89
],
[
88,
90
],
[
88,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
98,
100
],
[
29,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
110,
111
],
[
110,
112
],
[
26,
113
],
[
113,
114
],
[
114,
115
],
[
24,
116
],
[
116,
117
]
] | [
"import java.io.IOException;\nimport java.io.PrintWriter;\nimport java.text.DecimalFormat;\nimport java.util.Scanner;\n\nclass Main{\n private static final Scanner sc = new Scanner(System.in);\n private static final DecimalFormat fmt = new DecimalFormat(\"0.########\");\n private static final PrintWriter out = new PrintWriter(System.out);\n public static void main(String[] Args) throws IOException{\n while(true){\n final int n = Integer.parseInt(sc.next());\n if(n==0) break;\n final int s[] = new int[n];\n for(int i = 0; i<s.length; i++){\n s[i] = Integer.parseInt(sc.next());\n }\n double m = 0;\n for(final int e:s)\n m += e;\n m /= n;\n double a = 0;\n for(final int e:s)\n a += (e-m)* (e-m);\n\n out.println(fmt.format(Math.sqrt(a/n)));\n }\n out.flush();\n }\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.text.DecimalFormat;",
"DecimalFormat",
"java.text",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n private static final Scanner sc = new Scanner(System.in);\n private static final DecimalFormat fmt = new DecimalFormat(\"0.########\");\n private static final PrintWriter out = new PrintWriter(System.out);\n public static void main(String[] Args) throws IOException{\n while(true){\n final int n = Integer.parseInt(sc.next());\n if(n==0) break;\n final int s[] = new int[n];\n for(int i = 0; i<s.length; i++){\n s[i] = Integer.parseInt(sc.next());\n }\n double m = 0;\n for(final int e:s)\n m += e;\n m /= n;\n double a = 0;\n for(final int e:s)\n a += (e-m)* (e-m);\n\n out.println(fmt.format(Math.sqrt(a/n)));\n }\n out.flush();\n }\n}",
"Main",
"private static final Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"private static final DecimalFormat fmt = new DecimalFormat(\"0.########\");",
"fmt",
"new DecimalFormat(\"0.########\")",
"private static final PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"public static void main(String[] Args) throws IOException{\n while(true){\n final int n = Integer.parseInt(sc.next());\n if(n==0) break;\n final int s[] = new int[n];\n for(int i = 0; i<s.length; i++){\n s[i] = Integer.parseInt(sc.next());\n }\n double m = 0;\n for(final int e:s)\n m += e;\n m /= n;\n double a = 0;\n for(final int e:s)\n a += (e-m)* (e-m);\n\n out.println(fmt.format(Math.sqrt(a/n)));\n }\n out.flush();\n }",
"main",
"{\n while(true){\n final int n = Integer.parseInt(sc.next());\n if(n==0) break;\n final int s[] = new int[n];\n for(int i = 0; i<s.length; i++){\n s[i] = Integer.parseInt(sc.next());\n }\n double m = 0;\n for(final int e:s)\n m += e;\n m /= n;\n double a = 0;\n for(final int e:s)\n a += (e-m)* (e-m);\n\n out.println(fmt.format(Math.sqrt(a/n)));\n }\n out.flush();\n }",
"while(true){\n final int n = Integer.parseInt(sc.next());\n if(n==0) break;\n final int s[] = new int[n];\n for(int i = 0; i<s.length; i++){\n s[i] = Integer.parseInt(sc.next());\n }\n double m = 0;\n for(final int e:s)\n m += e;\n m /= n;\n double a = 0;\n for(final int e:s)\n a += (e-m)* (e-m);\n\n out.println(fmt.format(Math.sqrt(a/n)));\n }",
"true",
"{\n final int n = Integer.parseInt(sc.next());\n if(n==0) break;\n final int s[] = new int[n];\n for(int i = 0; i<s.length; i++){\n s[i] = Integer.parseInt(sc.next());\n }\n double m = 0;\n for(final int e:s)\n m += e;\n m /= n;\n double a = 0;\n for(final int e:s)\n a += (e-m)* (e-m);\n\n out.println(fmt.format(Math.sqrt(a/n)));\n }",
"final 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;",
"final int s[] = new int[n];",
"s",
"new int[n]",
"n",
"for(int i = 0; i<s.length; i++){\n s[i] = Integer.parseInt(sc.next());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<s.length",
"i",
"s.length",
"s",
"s.length",
"i++",
"i++",
"i",
"{\n s[i] = Integer.parseInt(sc.next());\n }",
"{\n s[i] = Integer.parseInt(sc.next());\n }",
"s[i] = Integer.parseInt(sc.next())",
"s[i]",
"s",
"i",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"double m = 0;",
"m",
"0",
"for(final int e:s)\n m += e;",
"final int e",
"s",
"m += e;",
"m += e",
"m",
"e",
"m /= n",
"m",
"n",
"double a = 0;",
"a",
"0",
"for(final int e:s)\n a += (e-m)* (e-m);",
"final int e",
"s",
"a += (e-m)* (e-m);",
"a += (e-m)* (e-m)",
"a",
"(e-m)* (e-m)",
"(e-m)",
"e",
"m",
"(e-m)",
"e",
"m",
"out.println(fmt.format(Math.sqrt(a/n)))",
"out.println",
"out",
"fmt.format(Math.sqrt(a/n))",
"fmt.format",
"fmt",
"Math.sqrt(a/n)",
"Math.sqrt",
"Math",
"a/n",
"a",
"n",
"out.flush()",
"out.flush",
"out",
"String[] Args",
"Args"
] | import java.io.IOException;
import java.io.PrintWriter;
import java.text.DecimalFormat;
import java.util.Scanner;
class Main{
private static final Scanner sc = new Scanner(System.in);
private static final DecimalFormat fmt = new DecimalFormat("0.########");
private static final PrintWriter out = new PrintWriter(System.out);
public static void main(String[] Args) throws IOException{
while(true){
final int n = Integer.parseInt(sc.next());
if(n==0) break;
final int s[] = new int[n];
for(int i = 0; i<s.length; i++){
s[i] = Integer.parseInt(sc.next());
}
double m = 0;
for(final int e:s)
m += e;
m /= n;
double a = 0;
for(final int e:s)
a += (e-m)* (e-m);
out.println(fmt.format(Math.sqrt(a/n)));
}
out.flush();
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
20,
41,
13,
17,
11,
1,
30,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
3,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
18,
13,
13,
41,
13,
2,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
2,
18,
13,
13,
13,
17,
0,
13,
4,
18,
13,
2,
13,
13,
4,
18,
13,
13,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
124,
5
],
[
124,
6
],
[
6,
7
],
[
6,
8
],
[
124,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
21,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
21,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
21,
33
],
[
33,
34
],
[
33,
35
],
[
21,
37
],
[
37,
38
],
[
37,
39
],
[
21,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
40,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
58,
59
],
[
52,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
21,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
21,
70
],
[
70,
71
],
[
70,
72
],
[
21,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
73,
81
],
[
81,
82
],
[
82,
83
],
[
73,
84
],
[
85,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
88,
96
],
[
21,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
102,
103
],
[
102,
104
],
[
21,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
11,
109
],
[
109,
110
],
[
109,
111
],
[
109,
112
],
[
113,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
114,
120
],
[
9,
121
],
[
121,
122
],
[
0,
123
],
[
123,
124
],
[
123,
125
]
] | [
"import java.util.*;\n\npublic class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tList<Double> list = new ArrayList<Double>();\n\t\tdouble al = 0;\n\t\tfor(;;){\n\t\t\tdouble n = scan.nextDouble();\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tDouble[] s = new Double[(int) n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ts[i] = scan.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\t\t\tdouble a1 = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ta1 += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\tal = Math.sqrt(a1 / n);\n\t\t\tlist.add(al);\n\t\t}\n\n\t\tfor(double d : list){\n\t\t\tSystem.out.printf(\"%f\\n\", d);\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tList<Double> list = new ArrayList<Double>();\n\t\tdouble al = 0;\n\t\tfor(;;){\n\t\t\tdouble n = scan.nextDouble();\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tDouble[] s = new Double[(int) n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ts[i] = scan.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\t\t\tdouble a1 = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ta1 += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\tal = Math.sqrt(a1 / n);\n\t\t\tlist.add(al);\n\t\t}\n\n\t\tfor(double d : list){\n\t\t\tSystem.out.printf(\"%f\\n\", d);\n\t\t}\n\t}\n}",
"Main",
"private static final Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"public static void main(String[] args){\n\t\tList<Double> list = new ArrayList<Double>();\n\t\tdouble al = 0;\n\t\tfor(;;){\n\t\t\tdouble n = scan.nextDouble();\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tDouble[] s = new Double[(int) n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ts[i] = scan.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\t\t\tdouble a1 = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ta1 += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\tal = Math.sqrt(a1 / n);\n\t\t\tlist.add(al);\n\t\t}\n\n\t\tfor(double d : list){\n\t\t\tSystem.out.printf(\"%f\\n\", d);\n\t\t}\n\t}",
"main",
"{\n\t\tList<Double> list = new ArrayList<Double>();\n\t\tdouble al = 0;\n\t\tfor(;;){\n\t\t\tdouble n = scan.nextDouble();\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tDouble[] s = new Double[(int) n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ts[i] = scan.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\t\t\tdouble a1 = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ta1 += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\tal = Math.sqrt(a1 / n);\n\t\t\tlist.add(al);\n\t\t}\n\n\t\tfor(double d : list){\n\t\t\tSystem.out.printf(\"%f\\n\", d);\n\t\t}\n\t}",
"List<Double> list = new ArrayList<Double>();",
"list",
"new ArrayList<Double>()",
"double al = 0;",
"al",
"0",
"for(;;){\n\t\t\tdouble n = scan.nextDouble();\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tDouble[] s = new Double[(int) n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ts[i] = scan.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\t\t\tdouble a1 = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ta1 += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\tal = Math.sqrt(a1 / n);\n\t\t\tlist.add(al);\n\t\t}",
";",
"{\n\t\t\tdouble n = scan.nextDouble();\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tDouble[] s = new Double[(int) n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ts[i] = scan.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\t\t\tdouble a1 = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ta1 += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\tal = Math.sqrt(a1 / n);\n\t\t\tlist.add(al);\n\t\t}",
"{\n\t\t\tdouble n = scan.nextDouble();\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tDouble[] s = new Double[(int) n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ts[i] = scan.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\t\t\tdouble a1 = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ta1 += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\tal = Math.sqrt(a1 / n);\n\t\t\tlist.add(al);\n\t\t}",
"double n = scan.nextDouble();",
"n",
"scan.nextDouble()",
"scan.nextDouble",
"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;",
"Double[] s = new Double[(int) n];",
"s",
"new Double[(int) n]",
"(int) n",
"double sum = 0;",
"sum",
"0",
"for(int i = 0; i < n; i++){\n\t\t\t\ts[i] = scan.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\ts[i] = scan.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}",
"{\n\t\t\t\ts[i] = scan.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}",
"s[i] = scan.nextDouble()",
"s[i]",
"s",
"i",
"scan.nextDouble()",
"scan.nextDouble",
"scan",
"sum += s[i]",
"sum",
"s[i]",
"s",
"i",
"double m = sum / n;",
"m",
"sum / n",
"sum",
"n",
"double a1 = 0;",
"a1",
"0",
"for(int i = 0; i < n; i++){\n\t\t\t\ta1 += 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\ta1 += Math.pow(s[i] - m, 2);\n\t\t\t}",
"{\n\t\t\t\ta1 += Math.pow(s[i] - m, 2);\n\t\t\t}",
"a1 += Math.pow(s[i] - m, 2)",
"a1",
"Math.pow(s[i] - m, 2)",
"Math.pow",
"Math",
"s[i] - m",
"s[i]",
"s",
"i",
"m",
"2",
"al = Math.sqrt(a1 / n)",
"al",
"Math.sqrt(a1 / n)",
"Math.sqrt",
"Math",
"a1 / n",
"a1",
"n",
"list.add(al)",
"list.add",
"list",
"al",
"for(double d : list){\n\t\t\tSystem.out.printf(\"%f\\n\", d);\n\t\t}",
"double d",
"list",
"{\n\t\t\tSystem.out.printf(\"%f\\n\", d);\n\t\t}",
"{\n\t\t\tSystem.out.printf(\"%f\\n\", d);\n\t\t}",
"System.out.printf(\"%f\\n\", d)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%f\\n\"",
"d",
"String[] args",
"args",
"public class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tList<Double> list = new ArrayList<Double>();\n\t\tdouble al = 0;\n\t\tfor(;;){\n\t\t\tdouble n = scan.nextDouble();\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tDouble[] s = new Double[(int) n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ts[i] = scan.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\t\t\tdouble a1 = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ta1 += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\tal = Math.sqrt(a1 / n);\n\t\t\tlist.add(al);\n\t\t}\n\n\t\tfor(double d : list){\n\t\t\tSystem.out.printf(\"%f\\n\", d);\n\t\t}\n\t}\n}",
"public class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tList<Double> list = new ArrayList<Double>();\n\t\tdouble al = 0;\n\t\tfor(;;){\n\t\t\tdouble n = scan.nextDouble();\n\t\t\tif(n == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tDouble[] s = new Double[(int) n];\n\t\t\tdouble sum = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ts[i] = scan.nextDouble();\n\t\t\t\tsum += s[i];\n\t\t\t}\n\t\t\tdouble m = sum / n;\n\t\t\tdouble a1 = 0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ta1 += Math.pow(s[i] - m, 2);\n\t\t\t}\n\t\t\tal = Math.sqrt(a1 / n);\n\t\t\tlist.add(al);\n\t\t}\n\n\t\tfor(double d : list){\n\t\t\tSystem.out.printf(\"%f\\n\", d);\n\t\t}\n\t}\n}",
"Main"
] | import java.util.*;
public class Main{
private static final Scanner scan = new Scanner(System.in);
public static void main(String[] args){
List<Double> list = new ArrayList<Double>();
double al = 0;
for(;;){
double n = scan.nextDouble();
if(n == 0){
break;
}
Double[] s = new Double[(int) n];
double sum = 0;
for(int i = 0; i < n; i++){
s[i] = scan.nextDouble();
sum += s[i];
}
double m = sum / n;
double a1 = 0;
for(int i = 0; i < n; i++){
a1 += Math.pow(s[i] - m, 2);
}
al = Math.sqrt(a1 / n);
list.add(al);
}
for(double d : list){
System.out.printf("%f\n", d);
}
}
} |
[
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,
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,
4,
18,
13,
0,
13,
18,
13,
13,
0,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
2,
18,
13,
13,
13,
17,
0,
13,
13,
0,
13,
4,
18,
13,
13,
17,
4,
18,
18,
13,
13,
4,
18,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
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
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
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
],
[
53,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
14,
64
],
[
64,
65
],
[
64,
66
],
[
14,
67
],
[
67,
68
],
[
67,
69
],
[
14,
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
],
[
14,
94
],
[
94,
95
],
[
94,
96
],
[
14,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
99,
103
],
[
14,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
109,
113
],
[
6,
114
],
[
114,
115
],
[
0,
116
],
[
116,
117
],
[
116,
118
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint n = Integer.parseInt(std.next());\n\t\t\tif(n==0){break;}\n\n\t\t\tdouble score[] = new double[n];\n\t\t\tdouble ave = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tscore[i] = Double.parseDouble(std.next());\n\t\t\t\tave += score[i];\n\t\t\t}\n\t\t\tave /= n;\n\t\t\tdouble sd = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tsd += Math.pow((score[i]-ave),2);\n\t\t\t}\n\t\t\tsd /= n;\n\t\t\tsd = Math.pow(sd, 0.5);\n\n\t\t\tSystem.out.println(String.format(\"%.5f\", sd));\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 std = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint n = Integer.parseInt(std.next());\n\t\t\tif(n==0){break;}\n\n\t\t\tdouble score[] = new double[n];\n\t\t\tdouble ave = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tscore[i] = Double.parseDouble(std.next());\n\t\t\t\tave += score[i];\n\t\t\t}\n\t\t\tave /= n;\n\t\t\tdouble sd = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tsd += Math.pow((score[i]-ave),2);\n\t\t\t}\n\t\t\tsd /= n;\n\t\t\tsd = Math.pow(sd, 0.5);\n\n\t\t\tSystem.out.println(String.format(\"%.5f\", sd));\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint n = Integer.parseInt(std.next());\n\t\t\tif(n==0){break;}\n\n\t\t\tdouble score[] = new double[n];\n\t\t\tdouble ave = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tscore[i] = Double.parseDouble(std.next());\n\t\t\t\tave += score[i];\n\t\t\t}\n\t\t\tave /= n;\n\t\t\tdouble sd = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tsd += Math.pow((score[i]-ave),2);\n\t\t\t}\n\t\t\tsd /= n;\n\t\t\tsd = Math.pow(sd, 0.5);\n\n\t\t\tSystem.out.println(String.format(\"%.5f\", sd));\n\t\t}\n\t}",
"main",
"{\n\t\tScanner std = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint n = Integer.parseInt(std.next());\n\t\t\tif(n==0){break;}\n\n\t\t\tdouble score[] = new double[n];\n\t\t\tdouble ave = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tscore[i] = Double.parseDouble(std.next());\n\t\t\t\tave += score[i];\n\t\t\t}\n\t\t\tave /= n;\n\t\t\tdouble sd = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tsd += Math.pow((score[i]-ave),2);\n\t\t\t}\n\t\t\tsd /= n;\n\t\t\tsd = Math.pow(sd, 0.5);\n\n\t\t\tSystem.out.println(String.format(\"%.5f\", sd));\n\t\t}\n\t}",
"Scanner std = new Scanner(System.in);",
"std",
"new Scanner(System.in)",
"while(true){\n\t\t\tint n = Integer.parseInt(std.next());\n\t\t\tif(n==0){break;}\n\n\t\t\tdouble score[] = new double[n];\n\t\t\tdouble ave = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tscore[i] = Double.parseDouble(std.next());\n\t\t\t\tave += score[i];\n\t\t\t}\n\t\t\tave /= n;\n\t\t\tdouble sd = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tsd += Math.pow((score[i]-ave),2);\n\t\t\t}\n\t\t\tsd /= n;\n\t\t\tsd = Math.pow(sd, 0.5);\n\n\t\t\tSystem.out.println(String.format(\"%.5f\", sd));\n\t\t}",
"true",
"{\n\t\t\tint n = Integer.parseInt(std.next());\n\t\t\tif(n==0){break;}\n\n\t\t\tdouble score[] = new double[n];\n\t\t\tdouble ave = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tscore[i] = Double.parseDouble(std.next());\n\t\t\t\tave += score[i];\n\t\t\t}\n\t\t\tave /= n;\n\t\t\tdouble sd = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tsd += Math.pow((score[i]-ave),2);\n\t\t\t}\n\t\t\tsd /= n;\n\t\t\tsd = Math.pow(sd, 0.5);\n\n\t\t\tSystem.out.println(String.format(\"%.5f\", sd));\n\t\t}",
"int n = Integer.parseInt(std.next());",
"n",
"Integer.parseInt(std.next())",
"Integer.parseInt",
"Integer",
"std.next()",
"std.next",
"std",
"if(n==0){break;}",
"n==0",
"n",
"0",
"{break;}",
"break;",
"double score[] = new double[n];",
"score",
"new double[n]",
"n",
"double ave = 0;",
"ave",
"0",
"for(int i=0; i<n; i++){\n\t\t\t\tscore[i] = Double.parseDouble(std.next());\n\t\t\t\tave += score[i];\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tscore[i] = Double.parseDouble(std.next());\n\t\t\t\tave += score[i];\n\t\t\t}",
"{\n\t\t\t\tscore[i] = Double.parseDouble(std.next());\n\t\t\t\tave += score[i];\n\t\t\t}",
"score[i] = Double.parseDouble(std.next())",
"score[i]",
"score",
"i",
"Double.parseDouble(std.next())",
"Double.parseDouble",
"Double",
"std.next()",
"std.next",
"std",
"ave += score[i]",
"ave",
"score[i]",
"score",
"i",
"ave /= n",
"ave",
"n",
"double sd = 0;",
"sd",
"0",
"for(int i=0; i<n; i++){\n\t\t\t\tsd += Math.pow((score[i]-ave),2);\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tsd += Math.pow((score[i]-ave),2);\n\t\t\t}",
"{\n\t\t\t\tsd += Math.pow((score[i]-ave),2);\n\t\t\t}",
"sd += Math.pow((score[i]-ave),2)",
"sd",
"Math.pow((score[i]-ave),2)",
"Math.pow",
"Math",
"(score[i]-ave)",
"score[i]",
"score",
"i",
"ave",
"2",
"sd /= n",
"sd",
"n",
"sd = Math.pow(sd, 0.5)",
"sd",
"Math.pow(sd, 0.5)",
"Math.pow",
"Math",
"sd",
"0.5",
"System.out.println(String.format(\"%.5f\", sd))",
"System.out.println",
"System.out",
"System",
"System.out",
"String.format(\"%.5f\", sd)",
"String.format",
"String",
"\"%.5f\"",
"sd",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint n = Integer.parseInt(std.next());\n\t\t\tif(n==0){break;}\n\n\t\t\tdouble score[] = new double[n];\n\t\t\tdouble ave = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tscore[i] = Double.parseDouble(std.next());\n\t\t\t\tave += score[i];\n\t\t\t}\n\t\t\tave /= n;\n\t\t\tdouble sd = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tsd += Math.pow((score[i]-ave),2);\n\t\t\t}\n\t\t\tsd /= n;\n\t\t\tsd = Math.pow(sd, 0.5);\n\n\t\t\tSystem.out.println(String.format(\"%.5f\", sd));\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint n = Integer.parseInt(std.next());\n\t\t\tif(n==0){break;}\n\n\t\t\tdouble score[] = new double[n];\n\t\t\tdouble ave = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tscore[i] = Double.parseDouble(std.next());\n\t\t\t\tave += score[i];\n\t\t\t}\n\t\t\tave /= n;\n\t\t\tdouble sd = 0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tsd += Math.pow((score[i]-ave),2);\n\t\t\t}\n\t\t\tsd /= n;\n\t\t\tsd = Math.pow(sd, 0.5);\n\n\t\t\tSystem.out.println(String.format(\"%.5f\", sd));\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner std = new Scanner(System.in);
while(true){
int n = Integer.parseInt(std.next());
if(n==0){break;}
double score[] = new double[n];
double ave = 0;
for(int i=0; i<n; i++){
score[i] = Double.parseDouble(std.next());
ave += score[i];
}
ave /= n;
double sd = 0;
for(int i=0; i<n; i++){
sd += Math.pow((score[i]-ave),2);
}
sd /= n;
sd = Math.pow(sd, 0.5);
System.out.println(String.format("%.5f", sd));
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
42,
2,
13,
17,
30,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
18,
13,
13,
18,
13,
13,
0,
13,
2,
18,
13,
13,
13,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
13,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
17,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
18,
13,
13,
0,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
129,
5
],
[
129,
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
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
27,
28
],
[
27,
29
],
[
23,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
23,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
23,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
23,
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
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
81,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
94,
95
],
[
94,
96
],
[
91,
97
],
[
81,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
102,
104
],
[
23,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
23,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
116,
117
],
[
115,
118
],
[
118,
119
],
[
118,
120
],
[
23,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
6,
126
],
[
126,
127
],
[
0,
128
],
[
128,
129
],
[
128,
130
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint count = scan.nextInt();\n\t\tdouble average;\n\t\t\n\t\twhile(count != 0)\n\t\t{\n\t\t\tdouble[] score = new double[count + 1];\n\t\t\t\n\t\t\tfor(int i = 0;i < count;i++)\n\t\t\t{\n\t\t\t\tscore[i] = scan.nextDouble();\n\t\t\t\tscore[count] += score[i];\n\t\t\t}\n\t\t\taverage = score[count] / count;\n\t\t\tscore[count] = 0;\n\t\t\tfor(int i = 0;i < count;i++)\n\t\t\t{\n\t\t\t\tscore[i] -= average;\n\t\t\t\tscore[i] = Math.pow(score[i], 2);\n\t\t\t\tscore[count] += score[i];\n\t\t\t}\n\t\t\tscore[count] /= count;\n\t\t\tSystem.out.println(Math.sqrt(score[count]));\n\t\t\tcount = scan.nextInt();\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{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint count = scan.nextInt();\n\t\tdouble average;\n\t\t\n\t\twhile(count != 0)\n\t\t{\n\t\t\tdouble[] score = new double[count + 1];\n\t\t\t\n\t\t\tfor(int i = 0;i < count;i++)\n\t\t\t{\n\t\t\t\tscore[i] = scan.nextDouble();\n\t\t\t\tscore[count] += score[i];\n\t\t\t}\n\t\t\taverage = score[count] / count;\n\t\t\tscore[count] = 0;\n\t\t\tfor(int i = 0;i < count;i++)\n\t\t\t{\n\t\t\t\tscore[i] -= average;\n\t\t\t\tscore[i] = Math.pow(score[i], 2);\n\t\t\t\tscore[count] += score[i];\n\t\t\t}\n\t\t\tscore[count] /= count;\n\t\t\tSystem.out.println(Math.sqrt(score[count]));\n\t\t\tcount = scan.nextInt();\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint count = scan.nextInt();\n\t\tdouble average;\n\t\t\n\t\twhile(count != 0)\n\t\t{\n\t\t\tdouble[] score = new double[count + 1];\n\t\t\t\n\t\t\tfor(int i = 0;i < count;i++)\n\t\t\t{\n\t\t\t\tscore[i] = scan.nextDouble();\n\t\t\t\tscore[count] += score[i];\n\t\t\t}\n\t\t\taverage = score[count] / count;\n\t\t\tscore[count] = 0;\n\t\t\tfor(int i = 0;i < count;i++)\n\t\t\t{\n\t\t\t\tscore[i] -= average;\n\t\t\t\tscore[i] = Math.pow(score[i], 2);\n\t\t\t\tscore[count] += score[i];\n\t\t\t}\n\t\t\tscore[count] /= count;\n\t\t\tSystem.out.println(Math.sqrt(score[count]));\n\t\t\tcount = scan.nextInt();\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint count = scan.nextInt();\n\t\tdouble average;\n\t\t\n\t\twhile(count != 0)\n\t\t{\n\t\t\tdouble[] score = new double[count + 1];\n\t\t\t\n\t\t\tfor(int i = 0;i < count;i++)\n\t\t\t{\n\t\t\t\tscore[i] = scan.nextDouble();\n\t\t\t\tscore[count] += score[i];\n\t\t\t}\n\t\t\taverage = score[count] / count;\n\t\t\tscore[count] = 0;\n\t\t\tfor(int i = 0;i < count;i++)\n\t\t\t{\n\t\t\t\tscore[i] -= average;\n\t\t\t\tscore[i] = Math.pow(score[i], 2);\n\t\t\t\tscore[count] += score[i];\n\t\t\t}\n\t\t\tscore[count] /= count;\n\t\t\tSystem.out.println(Math.sqrt(score[count]));\n\t\t\tcount = scan.nextInt();\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int count = scan.nextInt();",
"count",
"scan.nextInt()",
"scan.nextInt",
"scan",
"double average;",
"average",
"while(count != 0)\n\t\t{\n\t\t\tdouble[] score = new double[count + 1];\n\t\t\t\n\t\t\tfor(int i = 0;i < count;i++)\n\t\t\t{\n\t\t\t\tscore[i] = scan.nextDouble();\n\t\t\t\tscore[count] += score[i];\n\t\t\t}\n\t\t\taverage = score[count] / count;\n\t\t\tscore[count] = 0;\n\t\t\tfor(int i = 0;i < count;i++)\n\t\t\t{\n\t\t\t\tscore[i] -= average;\n\t\t\t\tscore[i] = Math.pow(score[i], 2);\n\t\t\t\tscore[count] += score[i];\n\t\t\t}\n\t\t\tscore[count] /= count;\n\t\t\tSystem.out.println(Math.sqrt(score[count]));\n\t\t\tcount = scan.nextInt();\n\t\t}",
"count != 0",
"count",
"0",
"{\n\t\t\tdouble[] score = new double[count + 1];\n\t\t\t\n\t\t\tfor(int i = 0;i < count;i++)\n\t\t\t{\n\t\t\t\tscore[i] = scan.nextDouble();\n\t\t\t\tscore[count] += score[i];\n\t\t\t}\n\t\t\taverage = score[count] / count;\n\t\t\tscore[count] = 0;\n\t\t\tfor(int i = 0;i < count;i++)\n\t\t\t{\n\t\t\t\tscore[i] -= average;\n\t\t\t\tscore[i] = Math.pow(score[i], 2);\n\t\t\t\tscore[count] += score[i];\n\t\t\t}\n\t\t\tscore[count] /= count;\n\t\t\tSystem.out.println(Math.sqrt(score[count]));\n\t\t\tcount = scan.nextInt();\n\t\t}",
"double[] score = new double[count + 1];",
"score",
"new double[count + 1]",
"count + 1",
"count",
"1",
"for(int i = 0;i < count;i++)\n\t\t\t{\n\t\t\t\tscore[i] = scan.nextDouble();\n\t\t\t\tscore[count] += score[i];\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < count",
"i",
"count",
"i++",
"i++",
"i",
"{\n\t\t\t\tscore[i] = scan.nextDouble();\n\t\t\t\tscore[count] += score[i];\n\t\t\t}",
"{\n\t\t\t\tscore[i] = scan.nextDouble();\n\t\t\t\tscore[count] += score[i];\n\t\t\t}",
"score[i] = scan.nextDouble()",
"score[i]",
"score",
"i",
"scan.nextDouble()",
"scan.nextDouble",
"scan",
"score[count] += score[i]",
"score[count]",
"score",
"count",
"score[i]",
"score",
"i",
"average = score[count] / count",
"average",
"score[count] / count",
"score[count]",
"score",
"count",
"count",
"score[count] = 0",
"score[count]",
"score",
"count",
"0",
"for(int i = 0;i < count;i++)\n\t\t\t{\n\t\t\t\tscore[i] -= average;\n\t\t\t\tscore[i] = Math.pow(score[i], 2);\n\t\t\t\tscore[count] += score[i];\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < count",
"i",
"count",
"i++",
"i++",
"i",
"{\n\t\t\t\tscore[i] -= average;\n\t\t\t\tscore[i] = Math.pow(score[i], 2);\n\t\t\t\tscore[count] += score[i];\n\t\t\t}",
"{\n\t\t\t\tscore[i] -= average;\n\t\t\t\tscore[i] = Math.pow(score[i], 2);\n\t\t\t\tscore[count] += score[i];\n\t\t\t}",
"score[i] -= average",
"score[i]",
"score",
"i",
"average",
"score[i] = Math.pow(score[i], 2)",
"score[i]",
"score",
"i",
"Math.pow(score[i], 2)",
"Math.pow",
"Math",
"score[i]",
"score",
"i",
"2",
"score[count] += score[i]",
"score[count]",
"score",
"count",
"score[i]",
"score",
"i",
"score[count] /= count",
"score[count]",
"score",
"count",
"count",
"System.out.println(Math.sqrt(score[count]))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.sqrt(score[count])",
"Math.sqrt",
"Math",
"score[count]",
"score",
"count",
"count = scan.nextInt()",
"count",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint count = scan.nextInt();\n\t\tdouble average;\n\t\t\n\t\twhile(count != 0)\n\t\t{\n\t\t\tdouble[] score = new double[count + 1];\n\t\t\t\n\t\t\tfor(int i = 0;i < count;i++)\n\t\t\t{\n\t\t\t\tscore[i] = scan.nextDouble();\n\t\t\t\tscore[count] += score[i];\n\t\t\t}\n\t\t\taverage = score[count] / count;\n\t\t\tscore[count] = 0;\n\t\t\tfor(int i = 0;i < count;i++)\n\t\t\t{\n\t\t\t\tscore[i] -= average;\n\t\t\t\tscore[i] = Math.pow(score[i], 2);\n\t\t\t\tscore[count] += score[i];\n\t\t\t}\n\t\t\tscore[count] /= count;\n\t\t\tSystem.out.println(Math.sqrt(score[count]));\n\t\t\tcount = scan.nextInt();\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint count = scan.nextInt();\n\t\tdouble average;\n\t\t\n\t\twhile(count != 0)\n\t\t{\n\t\t\tdouble[] score = new double[count + 1];\n\t\t\t\n\t\t\tfor(int i = 0;i < count;i++)\n\t\t\t{\n\t\t\t\tscore[i] = scan.nextDouble();\n\t\t\t\tscore[count] += score[i];\n\t\t\t}\n\t\t\taverage = score[count] / count;\n\t\t\tscore[count] = 0;\n\t\t\tfor(int i = 0;i < count;i++)\n\t\t\t{\n\t\t\t\tscore[i] -= average;\n\t\t\t\tscore[i] = Math.pow(score[i], 2);\n\t\t\t\tscore[count] += score[i];\n\t\t\t}\n\t\t\tscore[count] /= count;\n\t\t\tSystem.out.println(Math.sqrt(score[count]));\n\t\t\tcount = scan.nextInt();\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);
int count = scan.nextInt();
double average;
while(count != 0)
{
double[] score = new double[count + 1];
for(int i = 0;i < count;i++)
{
score[i] = scan.nextDouble();
score[count] += score[i];
}
average = score[count] / count;
score[count] = 0;
for(int i = 0;i < count;i++)
{
score[i] -= average;
score[i] = Math.pow(score[i], 2);
score[count] += score[i];
}
score[count] /= count;
System.out.println(Math.sqrt(score[count]));
count = scan.nextInt();
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
20,
42,
2,
0,
13,
4,
18,
13,
4,
18,
13,
17,
30,
0,
13,
4,
18,
4,
18,
13,
17,
41,
13,
20,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
0,
13,
18,
13,
13,
0,
13,
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,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
140,
11
],
[
140,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
14,
22
],
[
22,
23
],
[
22,
24
],
[
14,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
32,
33
],
[
33,
34
],
[
26,
35
],
[
25,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
39,
44
],
[
36,
45
],
[
45,
46
],
[
45,
47
],
[
36,
49
],
[
49,
50
],
[
49,
51
],
[
36,
52
],
[
52,
53
],
[
52,
54
],
[
36,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
75,
77
],
[
67,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
80,
82
],
[
36,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
85,
87
],
[
36,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
88,
96
],
[
96,
97
],
[
97,
98
],
[
88,
99
],
[
100,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
103,
111
],
[
36,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
114,
116
],
[
36,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
122,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
117,
130
],
[
14,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
12,
137
],
[
137,
138
],
[
0,
139
],
[
139,
140
],
[
139,
141
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n;\n String str[];\n StringBuilder sb = new StringBuilder();\n while((n = Integer.parseInt(br.readLine()))!=0){\n str = br.readLine().split(\" \");\n int score[] = new int[n];\n double m = 0,alpha = 0;\n for(int i=0;i<n;i++){\n score[i] = Integer.parseInt(str[i]);\n m += score[i];\n }\n m = m / n;\n for(int i=0;i<n;i++){\n alpha += Math.pow(score[i]-m, 2);\n }\n alpha = alpha / n;\n sb.append(String.format(\"%.8f\", Math.sqrt(alpha))).append(\"\\n\");\n }\n System.out.print(sb);\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n;\n String str[];\n StringBuilder sb = new StringBuilder();\n while((n = Integer.parseInt(br.readLine()))!=0){\n str = br.readLine().split(\" \");\n int score[] = new int[n];\n double m = 0,alpha = 0;\n for(int i=0;i<n;i++){\n score[i] = Integer.parseInt(str[i]);\n m += score[i];\n }\n m = m / n;\n for(int i=0;i<n;i++){\n alpha += Math.pow(score[i]-m, 2);\n }\n alpha = alpha / n;\n sb.append(String.format(\"%.8f\", Math.sqrt(alpha))).append(\"\\n\");\n }\n System.out.print(sb);\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n;\n String str[];\n StringBuilder sb = new StringBuilder();\n while((n = Integer.parseInt(br.readLine()))!=0){\n str = br.readLine().split(\" \");\n int score[] = new int[n];\n double m = 0,alpha = 0;\n for(int i=0;i<n;i++){\n score[i] = Integer.parseInt(str[i]);\n m += score[i];\n }\n m = m / n;\n for(int i=0;i<n;i++){\n alpha += Math.pow(score[i]-m, 2);\n }\n alpha = alpha / n;\n sb.append(String.format(\"%.8f\", Math.sqrt(alpha))).append(\"\\n\");\n }\n System.out.print(sb);\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n;\n String str[];\n StringBuilder sb = new StringBuilder();\n while((n = Integer.parseInt(br.readLine()))!=0){\n str = br.readLine().split(\" \");\n int score[] = new int[n];\n double m = 0,alpha = 0;\n for(int i=0;i<n;i++){\n score[i] = Integer.parseInt(str[i]);\n m += score[i];\n }\n m = m / n;\n for(int i=0;i<n;i++){\n alpha += Math.pow(score[i]-m, 2);\n }\n alpha = alpha / n;\n sb.append(String.format(\"%.8f\", Math.sqrt(alpha))).append(\"\\n\");\n }\n System.out.print(sb);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n;",
"n",
"String str[];",
"str",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"while((n = Integer.parseInt(br.readLine()))!=0){\n str = br.readLine().split(\" \");\n int score[] = new int[n];\n double m = 0,alpha = 0;\n for(int i=0;i<n;i++){\n score[i] = Integer.parseInt(str[i]);\n m += score[i];\n }\n m = m / n;\n for(int i=0;i<n;i++){\n alpha += Math.pow(score[i]-m, 2);\n }\n alpha = alpha / n;\n sb.append(String.format(\"%.8f\", Math.sqrt(alpha))).append(\"\\n\");\n }",
"(n = Integer.parseInt(br.readLine()))!=0",
"(n = Integer.parseInt(br.readLine()))",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"0",
"{\n str = br.readLine().split(\" \");\n int score[] = new int[n];\n double m = 0,alpha = 0;\n for(int i=0;i<n;i++){\n score[i] = Integer.parseInt(str[i]);\n m += score[i];\n }\n m = m / n;\n for(int i=0;i<n;i++){\n alpha += Math.pow(score[i]-m, 2);\n }\n alpha = alpha / n;\n sb.append(String.format(\"%.8f\", Math.sqrt(alpha))).append(\"\\n\");\n }",
"str = br.readLine().split(\" \")",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int score[] = new int[n];",
"score",
"new int[n]",
"n",
"double m = 0",
"m",
"0",
"alpha = 0;",
"alpha",
"0",
"for(int i=0;i<n;i++){\n score[i] = Integer.parseInt(str[i]);\n m += score[i];\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n score[i] = Integer.parseInt(str[i]);\n m += score[i];\n }",
"{\n score[i] = Integer.parseInt(str[i]);\n m += score[i];\n }",
"score[i] = Integer.parseInt(str[i])",
"score[i]",
"score",
"i",
"Integer.parseInt(str[i])",
"Integer.parseInt",
"Integer",
"str[i]",
"str",
"i",
"m += score[i]",
"m",
"score[i]",
"score",
"i",
"m = m / n",
"m",
"m / n",
"m",
"n",
"for(int i=0;i<n;i++){\n alpha += Math.pow(score[i]-m, 2);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n alpha += Math.pow(score[i]-m, 2);\n }",
"{\n alpha += Math.pow(score[i]-m, 2);\n }",
"alpha += Math.pow(score[i]-m, 2)",
"alpha",
"Math.pow(score[i]-m, 2)",
"Math.pow",
"Math",
"score[i]-m",
"score[i]",
"score",
"i",
"m",
"2",
"alpha = alpha / n",
"alpha",
"alpha / n",
"alpha",
"n",
"sb.append(String.format(\"%.8f\", Math.sqrt(alpha))).append(\"\\n\")",
"sb.append(String.format(\"%.8f\", Math.sqrt(alpha))).append",
"sb.append(String.format(\"%.8f\", Math.sqrt(alpha)))",
"sb.append",
"sb",
"String.format(\"%.8f\", Math.sqrt(alpha))",
"String.format",
"String",
"\"%.8f\"",
"Math.sqrt(alpha)",
"Math.sqrt",
"Math",
"alpha",
"\"\\n\"",
"System.out.print(sb)",
"System.out.print",
"System.out",
"System",
"System.out",
"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 int n;\n String str[];\n StringBuilder sb = new StringBuilder();\n while((n = Integer.parseInt(br.readLine()))!=0){\n str = br.readLine().split(\" \");\n int score[] = new int[n];\n double m = 0,alpha = 0;\n for(int i=0;i<n;i++){\n score[i] = Integer.parseInt(str[i]);\n m += score[i];\n }\n m = m / n;\n for(int i=0;i<n;i++){\n alpha += Math.pow(score[i]-m, 2);\n }\n alpha = alpha / n;\n sb.append(String.format(\"%.8f\", Math.sqrt(alpha))).append(\"\\n\");\n }\n System.out.print(sb);\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n;\n String str[];\n StringBuilder sb = new StringBuilder();\n while((n = Integer.parseInt(br.readLine()))!=0){\n str = br.readLine().split(\" \");\n int score[] = new int[n];\n double m = 0,alpha = 0;\n for(int i=0;i<n;i++){\n score[i] = Integer.parseInt(str[i]);\n m += score[i];\n }\n m = m / n;\n for(int i=0;i<n;i++){\n alpha += Math.pow(score[i]-m, 2);\n }\n alpha = alpha / n;\n sb.append(String.format(\"%.8f\", Math.sqrt(alpha))).append(\"\\n\");\n }\n System.out.print(sb);\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n;
String str[];
StringBuilder sb = new StringBuilder();
while((n = Integer.parseInt(br.readLine()))!=0){
str = br.readLine().split(" ");
int score[] = new int[n];
double m = 0,alpha = 0;
for(int i=0;i<n;i++){
score[i] = Integer.parseInt(str[i]);
m += score[i];
}
m = m / n;
for(int i=0;i<n;i++){
alpha += Math.pow(score[i]-m, 2);
}
alpha = alpha / n;
sb.append(String.format("%.8f", Math.sqrt(alpha))).append("\n");
}
System.out.print(sb);
}
} |
[
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,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
18,
13,
13,
41,
13,
2,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
2,
18,
13,
13,
13,
2,
18,
13,
13,
13,
0,
13,
4,
18,
13,
2,
13,
13,
4,
18,
18,
13,
13,
17,
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
],
[
17,
28
],
[
28,
29
],
[
28,
30
],
[
17,
32
],
[
32,
33
],
[
32,
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
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
47,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
17,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
17,
65
],
[
65,
66
],
[
65,
67
],
[
17,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
68,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
83,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
17,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
99,
100
],
[
99,
101
],
[
17,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
102,
108
],
[
9,
109
],
[
109,
110
],
[
0,
111
],
[
111,
112
],
[
111,
113
]
] | [
"import java.util.*;\nimport java.math.*;\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 double[] s = new double[n];\n double sum = 0.0;\n for(int i = 0; i < n; i++) {\n s[i] = sc.nextDouble();\n sum += s[i];\n }\n double ave = sum / (double)n;\n double ans = 0.0;\n for(int i = 0; i < n; i++) {\n ans += (s[i] - ave) * (s[i] - ave);\n }\n ans = Math.sqrt(ans/(double)n);\n System.out.printf(\"%.8f\\n\", ans);\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.math.*;",
"math.*",
"java",
"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 double[] s = new double[n];\n double sum = 0.0;\n for(int i = 0; i < n; i++) {\n s[i] = sc.nextDouble();\n sum += s[i];\n }\n double ave = sum / (double)n;\n double ans = 0.0;\n for(int i = 0; i < n; i++) {\n ans += (s[i] - ave) * (s[i] - ave);\n }\n ans = Math.sqrt(ans/(double)n);\n System.out.printf(\"%.8f\\n\", 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 if(n == 0) break;\n double[] s = new double[n];\n double sum = 0.0;\n for(int i = 0; i < n; i++) {\n s[i] = sc.nextDouble();\n sum += s[i];\n }\n double ave = sum / (double)n;\n double ans = 0.0;\n for(int i = 0; i < n; i++) {\n ans += (s[i] - ave) * (s[i] - ave);\n }\n ans = Math.sqrt(ans/(double)n);\n System.out.printf(\"%.8f\\n\", ans);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n while(true) {\n int n = sc.nextInt();\n if(n == 0) break;\n double[] s = new double[n];\n double sum = 0.0;\n for(int i = 0; i < n; i++) {\n s[i] = sc.nextDouble();\n sum += s[i];\n }\n double ave = sum / (double)n;\n double ans = 0.0;\n for(int i = 0; i < n; i++) {\n ans += (s[i] - ave) * (s[i] - ave);\n }\n ans = Math.sqrt(ans/(double)n);\n System.out.printf(\"%.8f\\n\", ans);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while(true) {\n int n = sc.nextInt();\n if(n == 0) break;\n double[] s = new double[n];\n double sum = 0.0;\n for(int i = 0; i < n; i++) {\n s[i] = sc.nextDouble();\n sum += s[i];\n }\n double ave = sum / (double)n;\n double ans = 0.0;\n for(int i = 0; i < n; i++) {\n ans += (s[i] - ave) * (s[i] - ave);\n }\n ans = Math.sqrt(ans/(double)n);\n System.out.printf(\"%.8f\\n\", ans);\n }",
"true",
"{\n int n = sc.nextInt();\n if(n == 0) break;\n double[] s = new double[n];\n double sum = 0.0;\n for(int i = 0; i < n; i++) {\n s[i] = sc.nextDouble();\n sum += s[i];\n }\n double ave = sum / (double)n;\n double ans = 0.0;\n for(int i = 0; i < n; i++) {\n ans += (s[i] - ave) * (s[i] - ave);\n }\n ans = Math.sqrt(ans/(double)n);\n System.out.printf(\"%.8f\\n\", ans);\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 sum = 0.0;",
"sum",
"0.0",
"for(int i = 0; i < n; i++) {\n s[i] = sc.nextDouble();\n sum += s[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"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 ave = sum / (double)n;",
"ave",
"sum / (double)n",
"sum",
"(double)n",
"double ans = 0.0;",
"ans",
"0.0",
"for(int i = 0; i < n; i++) {\n ans += (s[i] - ave) * (s[i] - ave);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n ans += (s[i] - ave) * (s[i] - ave);\n }",
"{\n ans += (s[i] - ave) * (s[i] - ave);\n }",
"ans += (s[i] - ave) * (s[i] - ave)",
"ans",
"(s[i] - ave) * (s[i] - ave)",
"(s[i] - ave)",
"s[i]",
"s",
"i",
"ave",
"(s[i] - ave)",
"s[i]",
"s",
"i",
"ave",
"ans = Math.sqrt(ans/(double)n)",
"ans",
"Math.sqrt(ans/(double)n)",
"Math.sqrt",
"Math",
"ans/(double)n",
"ans",
"(double)n",
"System.out.printf(\"%.8f\\n\", ans)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%.8f\\n\"",
"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 if(n == 0) break;\n double[] s = new double[n];\n double sum = 0.0;\n for(int i = 0; i < n; i++) {\n s[i] = sc.nextDouble();\n sum += s[i];\n }\n double ave = sum / (double)n;\n double ans = 0.0;\n for(int i = 0; i < n; i++) {\n ans += (s[i] - ave) * (s[i] - ave);\n }\n ans = Math.sqrt(ans/(double)n);\n System.out.printf(\"%.8f\\n\", 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 if(n == 0) break;\n double[] s = new double[n];\n double sum = 0.0;\n for(int i = 0; i < n; i++) {\n s[i] = sc.nextDouble();\n sum += s[i];\n }\n double ave = sum / (double)n;\n double ans = 0.0;\n for(int i = 0; i < n; i++) {\n ans += (s[i] - ave) * (s[i] - ave);\n }\n ans = Math.sqrt(ans/(double)n);\n System.out.printf(\"%.8f\\n\", ans);\n }\n }\n}",
"Main"
] | import java.util.*;
import java.math.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while(true) {
int n = sc.nextInt();
if(n == 0) break;
double[] s = new double[n];
double sum = 0.0;
for(int i = 0; i < n; i++) {
s[i] = sc.nextDouble();
sum += s[i];
}
double ave = sum / (double)n;
double ans = 0.0;
for(int i = 0; i < n; i++) {
ans += (s[i] - ave) * (s[i] - ave);
}
ans = Math.sqrt(ans/(double)n);
System.out.printf("%.8f\n", ans);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
13,
41,
13,
17,
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,
0,
13,
2,
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,
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
],
[
122,
5
],
[
122,
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,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
29,
30
],
[
16,
31
],
[
31,
32
],
[
31,
33
],
[
16,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
35,
45
],
[
45,
46
],
[
46,
47
],
[
35,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
49,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
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
],
[
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
],
[
107,
109
],
[
16,
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 try(Scanner sc = new Scanner(System.in)){\n while(true){\n int n = sc.nextInt();\n int a=0;\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 a=a+scores[i];\n }\n double average = 0.0;\n double variance = 0.0;\n average = (double)a/n;\n for(int i=0;i<scores.length;i++) {\n variance = variance + (scores[i] - average) * (scores[i] - average);\n }\n variance=variance/n;\n System.out.println(Math.sqrt(variance));\n }\n }\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n try(Scanner sc = new Scanner(System.in)){\n while(true){\n int n = sc.nextInt();\n int a=0;\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 a=a+scores[i];\n }\n double average = 0.0;\n double variance = 0.0;\n average = (double)a/n;\n for(int i=0;i<scores.length;i++) {\n variance = variance + (scores[i] - average) * (scores[i] - average);\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 int a=0;\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 a=a+scores[i];\n }\n double average = 0.0;\n double variance = 0.0;\n average = (double)a/n;\n for(int i=0;i<scores.length;i++) {\n variance = variance + (scores[i] - average) * (scores[i] - average);\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 int a=0;\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 a=a+scores[i];\n }\n double average = 0.0;\n double variance = 0.0;\n average = (double)a/n;\n for(int i=0;i<scores.length;i++) {\n variance = variance + (scores[i] - average) * (scores[i] - average);\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 int a=0;\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 a=a+scores[i];\n }\n double average = 0.0;\n double variance = 0.0;\n average = (double)a/n;\n for(int i=0;i<scores.length;i++) {\n variance = variance + (scores[i] - average) * (scores[i] - average);\n }\n variance=variance/n;\n System.out.println(Math.sqrt(variance));\n }\n }",
"{\n while(true){\n int n = sc.nextInt();\n int a=0;\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 a=a+scores[i];\n }\n double average = 0.0;\n double variance = 0.0;\n average = (double)a/n;\n for(int i=0;i<scores.length;i++) {\n variance = variance + (scores[i] - average) * (scores[i] - average);\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 int a=0;\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 a=a+scores[i];\n }\n double average = 0.0;\n double variance = 0.0;\n average = (double)a/n;\n for(int i=0;i<scores.length;i++) {\n variance = variance + (scores[i] - average) * (scores[i] - average);\n }\n variance=variance/n;\n System.out.println(Math.sqrt(variance));\n }",
"true",
"{\n int n = sc.nextInt();\n int a=0;\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 a=a+scores[i];\n }\n double average = 0.0;\n double variance = 0.0;\n average = (double)a/n;\n for(int i=0;i<scores.length;i++) {\n variance = variance + (scores[i] - average) * (scores[i] - average);\n }\n variance=variance/n;\n System.out.println(Math.sqrt(variance));\n }",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a=0;",
"a",
"0",
"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 a=a+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 a=a+scores[i];\n }",
"{\n scores[i] = sc.nextInt();\n a=a+scores[i];\n }",
"scores[i] = sc.nextInt()",
"scores[i]",
"scores",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"a=a+scores[i]",
"a",
"a+scores[i]",
"a",
"scores[i]",
"scores",
"i",
"double average = 0.0;",
"average",
"0.0",
"double variance = 0.0;",
"variance",
"0.0",
"average = (double)a/n",
"average",
"(double)a/n",
"(double)a",
"n",
"for(int i=0;i<scores.length;i++) {\n variance = 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 = variance + (scores[i] - average) * (scores[i] - average);\n }",
"{\n variance = variance + (scores[i] - average) * (scores[i] - average);\n }",
"variance = variance + (scores[i] - average) * (scores[i] - average)",
"variance",
"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=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 int a=0;\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 a=a+scores[i];\n }\n double average = 0.0;\n double variance = 0.0;\n average = (double)a/n;\n for(int i=0;i<scores.length;i++) {\n variance = variance + (scores[i] - average) * (scores[i] - average);\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 int a=0;\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 a=a+scores[i];\n }\n double average = 0.0;\n double variance = 0.0;\n average = (double)a/n;\n for(int i=0;i<scores.length;i++) {\n variance = variance + (scores[i] - average) * (scores[i] - average);\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();
int a=0;
if(n==0){ break; }
int[] scores = new int[n];
for(int i=0; i<scores.length;i++){
scores[i] = sc.nextInt();
a=a+scores[i];
}
double average = 0.0;
double variance = 0.0;
average = (double)a/n;
for(int i=0;i<scores.length;i++) {
variance = variance + (scores[i] - average) * (scores[i] - average);
}
variance=variance/n;
System.out.println(Math.sqrt(variance));
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
42,
17,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
3,
30,
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,
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
],
[
113,
5
],
[
113,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
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
],
[
30,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
39,
41
],
[
35,
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
],
[
35,
67
],
[
67,
68
],
[
67,
69
],
[
35,
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
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
86,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
85,
97
],
[
35,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
8,
107
],
[
107,
108
],
[
108,
109
],
[
6,
110
],
[
110,
111
],
[
0,
112
],
[
112,
113
],
[
112,
114
]
] | [
"import java.util.Scanner;\npublic class Main\n{\n\tpublic static void main(String args[])\n\t{\n\t\tScanner input = new Scanner(System.in);\n\t\tint n;\n\t\tdouble[] b = new double[1111];\n\t\tdouble av;\n\t\tdouble sum;\n\t\twhile(true)\n\t\t{\n\t\t\tn = input.nextInt();\n\t\t\tif(n == 0)\n\t\t\t\tbreak;\n\t\t\telse \n\t\t\t{\n\t\t\t\tsum = 0;\n\t\t\t\tav = 0;\n\t\t\t\tfor(int i = 0; i < n; i++)\n\t\t\t\t{\n\t\t\t\t\tb[i]=input.nextDouble();\n\t\t\t\t\tav += b[i];\n\t\t\t\t}\n\t\t\t\tav /=n;\n\t\t\t\tfor(int i = 0; i < n; i++)\n\t\t\t\t{\n\t\t\t\t\tsum += (b[i] - av)*(b[i] - av)/n;\n\t\t\t\t}\n\t\t\t\tSystem.out.println( Math.sqrt(sum));\n\t\t\t}\n\t\t}\n\t\tinput.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main\n{\n\tpublic static void main(String args[])\n\t{\n\t\tScanner input = new Scanner(System.in);\n\t\tint n;\n\t\tdouble[] b = new double[1111];\n\t\tdouble av;\n\t\tdouble sum;\n\t\twhile(true)\n\t\t{\n\t\t\tn = input.nextInt();\n\t\t\tif(n == 0)\n\t\t\t\tbreak;\n\t\t\telse \n\t\t\t{\n\t\t\t\tsum = 0;\n\t\t\t\tav = 0;\n\t\t\t\tfor(int i = 0; i < n; i++)\n\t\t\t\t{\n\t\t\t\t\tb[i]=input.nextDouble();\n\t\t\t\t\tav += b[i];\n\t\t\t\t}\n\t\t\t\tav /=n;\n\t\t\t\tfor(int i = 0; i < n; i++)\n\t\t\t\t{\n\t\t\t\t\tsum += (b[i] - av)*(b[i] - av)/n;\n\t\t\t\t}\n\t\t\t\tSystem.out.println( Math.sqrt(sum));\n\t\t\t}\n\t\t}\n\t\tinput.close();\n\t}\n}",
"Main",
"public static void main(String args[])\n\t{\n\t\tScanner input = new Scanner(System.in);\n\t\tint n;\n\t\tdouble[] b = new double[1111];\n\t\tdouble av;\n\t\tdouble sum;\n\t\twhile(true)\n\t\t{\n\t\t\tn = input.nextInt();\n\t\t\tif(n == 0)\n\t\t\t\tbreak;\n\t\t\telse \n\t\t\t{\n\t\t\t\tsum = 0;\n\t\t\t\tav = 0;\n\t\t\t\tfor(int i = 0; i < n; i++)\n\t\t\t\t{\n\t\t\t\t\tb[i]=input.nextDouble();\n\t\t\t\t\tav += b[i];\n\t\t\t\t}\n\t\t\t\tav /=n;\n\t\t\t\tfor(int i = 0; i < n; i++)\n\t\t\t\t{\n\t\t\t\t\tsum += (b[i] - av)*(b[i] - av)/n;\n\t\t\t\t}\n\t\t\t\tSystem.out.println( Math.sqrt(sum));\n\t\t\t}\n\t\t}\n\t\tinput.close();\n\t}",
"main",
"{\n\t\tScanner input = new Scanner(System.in);\n\t\tint n;\n\t\tdouble[] b = new double[1111];\n\t\tdouble av;\n\t\tdouble sum;\n\t\twhile(true)\n\t\t{\n\t\t\tn = input.nextInt();\n\t\t\tif(n == 0)\n\t\t\t\tbreak;\n\t\t\telse \n\t\t\t{\n\t\t\t\tsum = 0;\n\t\t\t\tav = 0;\n\t\t\t\tfor(int i = 0; i < n; i++)\n\t\t\t\t{\n\t\t\t\t\tb[i]=input.nextDouble();\n\t\t\t\t\tav += b[i];\n\t\t\t\t}\n\t\t\t\tav /=n;\n\t\t\t\tfor(int i = 0; i < n; i++)\n\t\t\t\t{\n\t\t\t\t\tsum += (b[i] - av)*(b[i] - av)/n;\n\t\t\t\t}\n\t\t\t\tSystem.out.println( Math.sqrt(sum));\n\t\t\t}\n\t\t}\n\t\tinput.close();\n\t}",
"Scanner input = new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"int n;",
"n",
"double[] b = new double[1111];",
"b",
"new double[1111]",
"1111",
"double av;",
"av",
"double sum;",
"sum",
"while(true)\n\t\t{\n\t\t\tn = input.nextInt();\n\t\t\tif(n == 0)\n\t\t\t\tbreak;\n\t\t\telse \n\t\t\t{\n\t\t\t\tsum = 0;\n\t\t\t\tav = 0;\n\t\t\t\tfor(int i = 0; i < n; i++)\n\t\t\t\t{\n\t\t\t\t\tb[i]=input.nextDouble();\n\t\t\t\t\tav += b[i];\n\t\t\t\t}\n\t\t\t\tav /=n;\n\t\t\t\tfor(int i = 0; i < n; i++)\n\t\t\t\t{\n\t\t\t\t\tsum += (b[i] - av)*(b[i] - av)/n;\n\t\t\t\t}\n\t\t\t\tSystem.out.println( Math.sqrt(sum));\n\t\t\t}\n\t\t}",
"true",
"{\n\t\t\tn = input.nextInt();\n\t\t\tif(n == 0)\n\t\t\t\tbreak;\n\t\t\telse \n\t\t\t{\n\t\t\t\tsum = 0;\n\t\t\t\tav = 0;\n\t\t\t\tfor(int i = 0; i < n; i++)\n\t\t\t\t{\n\t\t\t\t\tb[i]=input.nextDouble();\n\t\t\t\t\tav += b[i];\n\t\t\t\t}\n\t\t\t\tav /=n;\n\t\t\t\tfor(int i = 0; i < n; i++)\n\t\t\t\t{\n\t\t\t\t\tsum += (b[i] - av)*(b[i] - av)/n;\n\t\t\t\t}\n\t\t\t\tSystem.out.println( Math.sqrt(sum));\n\t\t\t}\n\t\t}",
"n = input.nextInt()",
"n",
"input.nextInt()",
"input.nextInt",
"input",
"if(n == 0)\n\t\t\t\tbreak;\n\t\t\telse \n\t\t\t{\n\t\t\t\tsum = 0;\n\t\t\t\tav = 0;\n\t\t\t\tfor(int i = 0; i < n; i++)\n\t\t\t\t{\n\t\t\t\t\tb[i]=input.nextDouble();\n\t\t\t\t\tav += b[i];\n\t\t\t\t}\n\t\t\t\tav /=n;\n\t\t\t\tfor(int i = 0; i < n; i++)\n\t\t\t\t{\n\t\t\t\t\tsum += (b[i] - av)*(b[i] - av)/n;\n\t\t\t\t}\n\t\t\t\tSystem.out.println( Math.sqrt(sum));\n\t\t\t}",
"n == 0",
"n",
"0",
"break;",
"{\n\t\t\t\tsum = 0;\n\t\t\t\tav = 0;\n\t\t\t\tfor(int i = 0; i < n; i++)\n\t\t\t\t{\n\t\t\t\t\tb[i]=input.nextDouble();\n\t\t\t\t\tav += b[i];\n\t\t\t\t}\n\t\t\t\tav /=n;\n\t\t\t\tfor(int i = 0; i < n; i++)\n\t\t\t\t{\n\t\t\t\t\tsum += (b[i] - av)*(b[i] - av)/n;\n\t\t\t\t}\n\t\t\t\tSystem.out.println( Math.sqrt(sum));\n\t\t\t}",
"sum = 0",
"sum",
"0",
"av = 0",
"av",
"0",
"for(int i = 0; i < n; i++)\n\t\t\t\t{\n\t\t\t\t\tb[i]=input.nextDouble();\n\t\t\t\t\tav += b[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\tb[i]=input.nextDouble();\n\t\t\t\t\tav += b[i];\n\t\t\t\t}",
"{\n\t\t\t\t\tb[i]=input.nextDouble();\n\t\t\t\t\tav += b[i];\n\t\t\t\t}",
"b[i]=input.nextDouble()",
"b[i]",
"b",
"i",
"input.nextDouble()",
"input.nextDouble",
"input",
"av += b[i]",
"av",
"b[i]",
"b",
"i",
"av /=n",
"av",
"n",
"for(int i = 0; i < n; i++)\n\t\t\t\t{\n\t\t\t\t\tsum += (b[i] - av)*(b[i] - av)/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\tsum += (b[i] - av)*(b[i] - av)/n;\n\t\t\t\t}",
"{\n\t\t\t\t\tsum += (b[i] - av)*(b[i] - av)/n;\n\t\t\t\t}",
"sum += (b[i] - av)*(b[i] - av)/n",
"sum",
"(b[i] - av)*(b[i] - av)/n",
"(b[i] - av)*(b[i] - av)",
"(b[i] - av)",
"b[i]",
"b",
"i",
"av",
"(b[i] - av)",
"b[i]",
"b",
"i",
"av",
"n",
"System.out.println( Math.sqrt(sum))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.sqrt(sum)",
"Math.sqrt",
"Math",
"sum",
"input.close()",
"input.close",
"input",
"String args[]",
"args",
"public class Main\n{\n\tpublic static void main(String args[])\n\t{\n\t\tScanner input = new Scanner(System.in);\n\t\tint n;\n\t\tdouble[] b = new double[1111];\n\t\tdouble av;\n\t\tdouble sum;\n\t\twhile(true)\n\t\t{\n\t\t\tn = input.nextInt();\n\t\t\tif(n == 0)\n\t\t\t\tbreak;\n\t\t\telse \n\t\t\t{\n\t\t\t\tsum = 0;\n\t\t\t\tav = 0;\n\t\t\t\tfor(int i = 0; i < n; i++)\n\t\t\t\t{\n\t\t\t\t\tb[i]=input.nextDouble();\n\t\t\t\t\tav += b[i];\n\t\t\t\t}\n\t\t\t\tav /=n;\n\t\t\t\tfor(int i = 0; i < n; i++)\n\t\t\t\t{\n\t\t\t\t\tsum += (b[i] - av)*(b[i] - av)/n;\n\t\t\t\t}\n\t\t\t\tSystem.out.println( Math.sqrt(sum));\n\t\t\t}\n\t\t}\n\t\tinput.close();\n\t}\n}",
"public class Main\n{\n\tpublic static void main(String args[])\n\t{\n\t\tScanner input = new Scanner(System.in);\n\t\tint n;\n\t\tdouble[] b = new double[1111];\n\t\tdouble av;\n\t\tdouble sum;\n\t\twhile(true)\n\t\t{\n\t\t\tn = input.nextInt();\n\t\t\tif(n == 0)\n\t\t\t\tbreak;\n\t\t\telse \n\t\t\t{\n\t\t\t\tsum = 0;\n\t\t\t\tav = 0;\n\t\t\t\tfor(int i = 0; i < n; i++)\n\t\t\t\t{\n\t\t\t\t\tb[i]=input.nextDouble();\n\t\t\t\t\tav += b[i];\n\t\t\t\t}\n\t\t\t\tav /=n;\n\t\t\t\tfor(int i = 0; i < n; i++)\n\t\t\t\t{\n\t\t\t\t\tsum += (b[i] - av)*(b[i] - av)/n;\n\t\t\t\t}\n\t\t\t\tSystem.out.println( Math.sqrt(sum));\n\t\t\t}\n\t\t}\n\t\tinput.close();\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main
{
public static void main(String args[])
{
Scanner input = new Scanner(System.in);
int n;
double[] b = new double[1111];
double av;
double sum;
while(true)
{
n = input.nextInt();
if(n == 0)
break;
else
{
sum = 0;
av = 0;
for(int i = 0; i < n; i++)
{
b[i]=input.nextDouble();
av += b[i];
}
av /=n;
for(int i = 0; i < n; i++)
{
sum += (b[i] - av)*(b[i] - av)/n;
}
System.out.println( Math.sqrt(sum));
}
}
input.close();
}
} |
[
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,
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,
2,
13,
18,
13,
13,
0,
13,
2,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
2,
2,
18,
13,
13,
13,
2,
18,
13,
13,
13,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
13,
13,
0,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
128,
5
],
[
128,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
21,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
43,
44
],
[
44,
45
],
[
21,
46
],
[
46,
47
],
[
46,
48
],
[
21,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
66,
68
],
[
21,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
21,
74
],
[
74,
75
],
[
74,
76
],
[
21,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
94,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
21,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
107,
109
],
[
21,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
110,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
21,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
6,
125
],
[
125,
126
],
[
0,
127
],
[
127,
128
],
[
127,
129
]
] | [
"import java.util.Scanner;\npublic class Main{\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int a = scan.nextInt();\n while (a !=0) {\n double[] b = new double[a];\n for (int x = 0; x < a; x++) {\n b[x] = scan.nextInt();\n }\n double average = 0;\n for (int x = 0; x < a; x++) {\n average = average +b[x];\n }\n average = average / a;\n double var = 0;\n for (int x = 0; x < a; x++) {\n var = var + ((b[x] - average) *(b[x] - average));\n }\n var = var /a;\n System.out.printf(\"%.8f\\n\",Math.sqrt(var));\n a = scan.nextInt();\n }\n\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int a = scan.nextInt();\n while (a !=0) {\n double[] b = new double[a];\n for (int x = 0; x < a; x++) {\n b[x] = scan.nextInt();\n }\n double average = 0;\n for (int x = 0; x < a; x++) {\n average = average +b[x];\n }\n average = average / a;\n double var = 0;\n for (int x = 0; x < a; x++) {\n var = var + ((b[x] - average) *(b[x] - average));\n }\n var = var /a;\n System.out.printf(\"%.8f\\n\",Math.sqrt(var));\n a = scan.nextInt();\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int a = scan.nextInt();\n while (a !=0) {\n double[] b = new double[a];\n for (int x = 0; x < a; x++) {\n b[x] = scan.nextInt();\n }\n double average = 0;\n for (int x = 0; x < a; x++) {\n average = average +b[x];\n }\n average = average / a;\n double var = 0;\n for (int x = 0; x < a; x++) {\n var = var + ((b[x] - average) *(b[x] - average));\n }\n var = var /a;\n System.out.printf(\"%.8f\\n\",Math.sqrt(var));\n a = scan.nextInt();\n }\n\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int a = scan.nextInt();\n while (a !=0) {\n double[] b = new double[a];\n for (int x = 0; x < a; x++) {\n b[x] = scan.nextInt();\n }\n double average = 0;\n for (int x = 0; x < a; x++) {\n average = average +b[x];\n }\n average = average / a;\n double var = 0;\n for (int x = 0; x < a; x++) {\n var = var + ((b[x] - average) *(b[x] - average));\n }\n var = var /a;\n System.out.printf(\"%.8f\\n\",Math.sqrt(var));\n a = scan.nextInt();\n }\n\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int a = scan.nextInt();",
"a",
"scan.nextInt()",
"scan.nextInt",
"scan",
"while (a !=0) {\n double[] b = new double[a];\n for (int x = 0; x < a; x++) {\n b[x] = scan.nextInt();\n }\n double average = 0;\n for (int x = 0; x < a; x++) {\n average = average +b[x];\n }\n average = average / a;\n double var = 0;\n for (int x = 0; x < a; x++) {\n var = var + ((b[x] - average) *(b[x] - average));\n }\n var = var /a;\n System.out.printf(\"%.8f\\n\",Math.sqrt(var));\n a = scan.nextInt();\n }",
"a !=0",
"a",
"0",
"{\n double[] b = new double[a];\n for (int x = 0; x < a; x++) {\n b[x] = scan.nextInt();\n }\n double average = 0;\n for (int x = 0; x < a; x++) {\n average = average +b[x];\n }\n average = average / a;\n double var = 0;\n for (int x = 0; x < a; x++) {\n var = var + ((b[x] - average) *(b[x] - average));\n }\n var = var /a;\n System.out.printf(\"%.8f\\n\",Math.sqrt(var));\n a = scan.nextInt();\n }",
"double[] b = new double[a];",
"b",
"new double[a]",
"a",
"for (int x = 0; x < a; x++) {\n b[x] = scan.nextInt();\n }",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x < a",
"x",
"a",
"x++",
"x++",
"x",
"{\n b[x] = scan.nextInt();\n }",
"{\n b[x] = scan.nextInt();\n }",
"b[x] = scan.nextInt()",
"b[x]",
"b",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"double average = 0;",
"average",
"0",
"for (int x = 0; x < a; x++) {\n average = average +b[x];\n }",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x < a",
"x",
"a",
"x++",
"x++",
"x",
"{\n average = average +b[x];\n }",
"{\n average = average +b[x];\n }",
"average = average +b[x]",
"average",
"average +b[x]",
"average",
"b[x]",
"b",
"x",
"average = average / a",
"average",
"average / a",
"average",
"a",
"double var = 0;",
"var",
"0",
"for (int x = 0; x < a; x++) {\n var = var + ((b[x] - average) *(b[x] - average));\n }",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x < a",
"x",
"a",
"x++",
"x++",
"x",
"{\n var = var + ((b[x] - average) *(b[x] - average));\n }",
"{\n var = var + ((b[x] - average) *(b[x] - average));\n }",
"var = var + ((b[x] - average) *(b[x] - average))",
"var",
"var + ((b[x] - average) *(b[x] - average))",
"var",
"((b[x] - average) *(b[x] - average))",
"(b[x] - average)",
"b[x]",
"b",
"x",
"average",
"(b[x] - average)",
"b[x]",
"b",
"x",
"average",
"var = var /a",
"var",
"var /a",
"var",
"a",
"System.out.printf(\"%.8f\\n\",Math.sqrt(var))",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%.8f\\n\"",
"Math.sqrt(var)",
"Math.sqrt",
"Math",
"var",
"a = scan.nextInt()",
"a",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int a = scan.nextInt();\n while (a !=0) {\n double[] b = new double[a];\n for (int x = 0; x < a; x++) {\n b[x] = scan.nextInt();\n }\n double average = 0;\n for (int x = 0; x < a; x++) {\n average = average +b[x];\n }\n average = average / a;\n double var = 0;\n for (int x = 0; x < a; x++) {\n var = var + ((b[x] - average) *(b[x] - average));\n }\n var = var /a;\n System.out.printf(\"%.8f\\n\",Math.sqrt(var));\n a = scan.nextInt();\n }\n\n }\n}",
"public class Main{\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int a = scan.nextInt();\n while (a !=0) {\n double[] b = new double[a];\n for (int x = 0; x < a; x++) {\n b[x] = scan.nextInt();\n }\n double average = 0;\n for (int x = 0; x < a; x++) {\n average = average +b[x];\n }\n average = average / a;\n double var = 0;\n for (int x = 0; x < a; x++) {\n var = var + ((b[x] - average) *(b[x] - average));\n }\n var = var /a;\n System.out.printf(\"%.8f\\n\",Math.sqrt(var));\n a = scan.nextInt();\n }\n\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
while (a !=0) {
double[] b = new double[a];
for (int x = 0; x < a; x++) {
b[x] = scan.nextInt();
}
double average = 0;
for (int x = 0; x < a; x++) {
average = average +b[x];
}
average = average / a;
double var = 0;
for (int x = 0; x < a; x++) {
var = var + ((b[x] - average) *(b[x] - average));
}
var = var /a;
System.out.printf("%.8f\n",Math.sqrt(var));
a = scan.nextInt();
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
41,
13,
42,
17,
30,
41,
13,
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,
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,
0,
13,
2,
13,
13,
0,
18,
13,
13,
4,
18,
13,
13,
40,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
149,
5
],
[
149,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
26,
39
],
[
39,
40
],
[
39,
41
],
[
26,
42
],
[
42,
43
],
[
42,
44
],
[
26,
45
],
[
45,
46
],
[
45,
47
],
[
26,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
67,
68
],
[
61,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
26,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
76,
78
],
[
26,
79
],
[
79,
80
],
[
79,
81
],
[
26,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
87,
88
],
[
87,
89
],
[
82,
90
],
[
90,
91
],
[
91,
92
],
[
82,
93
],
[
94,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
97,
105
],
[
26,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
108,
110
],
[
26,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
115,
116
],
[
116,
117
],
[
115,
118
],
[
26,
119
],
[
119,
120
],
[
8,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
126,
127
],
[
126,
128
],
[
121,
129
],
[
129,
130
],
[
130,
131
],
[
121,
132
],
[
133,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
134,
140
],
[
140,
141
],
[
140,
142
],
[
8,
143
],
[
143,
144
],
[
144,
145
],
[
6,
146
],
[
146,
147
],
[
0,
148
],
[
148,
149
],
[
148,
150
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n double[] std = new double[100];\n int cnt=0;\n double sum=0;\n double mean;\n while(true){\n int n;\n n = sc.nextInt();\n if(n == 0)\n break;\n sum=0;\n mean=0;\n double[] s = new double[n];\n for(int i=0; i<n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n mean = sum/n;\n sum = 0;\n for(int i=0; i<n; i++){\n sum += Math.pow((s[i] - mean), 2); \n }\n mean = sum/n;\n std[cnt] = Math.sqrt(mean);\n cnt++;\n }\n\n for(int i=0; i<cnt; i++){\n System.out.printf(\"%.8f\\n\", std[i]);\n }\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\n double[] std = new double[100];\n int cnt=0;\n double sum=0;\n double mean;\n while(true){\n int n;\n n = sc.nextInt();\n if(n == 0)\n break;\n sum=0;\n mean=0;\n double[] s = new double[n];\n for(int i=0; i<n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n mean = sum/n;\n sum = 0;\n for(int i=0; i<n; i++){\n sum += Math.pow((s[i] - mean), 2); \n }\n mean = sum/n;\n std[cnt] = Math.sqrt(mean);\n cnt++;\n }\n\n for(int i=0; i<cnt; i++){\n System.out.printf(\"%.8f\\n\", std[i]);\n }\n\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n double[] std = new double[100];\n int cnt=0;\n double sum=0;\n double mean;\n while(true){\n int n;\n n = sc.nextInt();\n if(n == 0)\n break;\n sum=0;\n mean=0;\n double[] s = new double[n];\n for(int i=0; i<n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n mean = sum/n;\n sum = 0;\n for(int i=0; i<n; i++){\n sum += Math.pow((s[i] - mean), 2); \n }\n mean = sum/n;\n std[cnt] = Math.sqrt(mean);\n cnt++;\n }\n\n for(int i=0; i<cnt; i++){\n System.out.printf(\"%.8f\\n\", std[i]);\n }\n\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n double[] std = new double[100];\n int cnt=0;\n double sum=0;\n double mean;\n while(true){\n int n;\n n = sc.nextInt();\n if(n == 0)\n break;\n sum=0;\n mean=0;\n double[] s = new double[n];\n for(int i=0; i<n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n mean = sum/n;\n sum = 0;\n for(int i=0; i<n; i++){\n sum += Math.pow((s[i] - mean), 2); \n }\n mean = sum/n;\n std[cnt] = Math.sqrt(mean);\n cnt++;\n }\n\n for(int i=0; i<cnt; i++){\n System.out.printf(\"%.8f\\n\", std[i]);\n }\n\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"double[] std = new double[100];",
"std",
"new double[100]",
"100",
"int cnt=0;",
"cnt",
"0",
"double sum=0;",
"sum",
"0",
"double mean;",
"mean",
"while(true){\n int n;\n n = sc.nextInt();\n if(n == 0)\n break;\n sum=0;\n mean=0;\n double[] s = new double[n];\n for(int i=0; i<n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n mean = sum/n;\n sum = 0;\n for(int i=0; i<n; i++){\n sum += Math.pow((s[i] - mean), 2); \n }\n mean = sum/n;\n std[cnt] = Math.sqrt(mean);\n cnt++;\n }",
"true",
"{\n int n;\n n = sc.nextInt();\n if(n == 0)\n break;\n sum=0;\n mean=0;\n double[] s = new double[n];\n for(int i=0; i<n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n mean = sum/n;\n sum = 0;\n for(int i=0; i<n; i++){\n sum += Math.pow((s[i] - mean), 2); \n }\n mean = sum/n;\n std[cnt] = Math.sqrt(mean);\n cnt++;\n }",
"int n;",
"n",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(n == 0)\n break;",
"n == 0",
"n",
"0",
"break;",
"sum=0",
"sum",
"0",
"mean=0",
"mean",
"0",
"double[] s = new double[n];",
"s",
"new double[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",
"mean = sum/n",
"mean",
"sum/n",
"sum",
"n",
"sum = 0",
"sum",
"0",
"for(int i=0; i<n; i++){\n sum += Math.pow((s[i] - mean), 2); \n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n sum += Math.pow((s[i] - mean), 2); \n }",
"{\n sum += Math.pow((s[i] - mean), 2); \n }",
"sum += Math.pow((s[i] - mean), 2)",
"sum",
"Math.pow((s[i] - mean), 2)",
"Math.pow",
"Math",
"(s[i] - mean)",
"s[i]",
"s",
"i",
"mean",
"2",
"mean = sum/n",
"mean",
"sum/n",
"sum",
"n",
"std[cnt] = Math.sqrt(mean)",
"std[cnt]",
"std",
"cnt",
"Math.sqrt(mean)",
"Math.sqrt",
"Math",
"mean",
"cnt++",
"cnt",
"for(int i=0; i<cnt; i++){\n System.out.printf(\"%.8f\\n\", std[i]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<cnt",
"i",
"cnt",
"i++",
"i++",
"i",
"{\n System.out.printf(\"%.8f\\n\", std[i]);\n }",
"{\n System.out.printf(\"%.8f\\n\", std[i]);\n }",
"System.out.printf(\"%.8f\\n\", std[i])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%.8f\\n\"",
"std[i]",
"std",
"i",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n double[] std = new double[100];\n int cnt=0;\n double sum=0;\n double mean;\n while(true){\n int n;\n n = sc.nextInt();\n if(n == 0)\n break;\n sum=0;\n mean=0;\n double[] s = new double[n];\n for(int i=0; i<n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n mean = sum/n;\n sum = 0;\n for(int i=0; i<n; i++){\n sum += Math.pow((s[i] - mean), 2); \n }\n mean = sum/n;\n std[cnt] = Math.sqrt(mean);\n cnt++;\n }\n\n for(int i=0; i<cnt; i++){\n System.out.printf(\"%.8f\\n\", std[i]);\n }\n\n sc.close();\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n double[] std = new double[100];\n int cnt=0;\n double sum=0;\n double mean;\n while(true){\n int n;\n n = sc.nextInt();\n if(n == 0)\n break;\n sum=0;\n mean=0;\n double[] s = new double[n];\n for(int i=0; i<n; i++){\n s[i] = sc.nextInt();\n sum += s[i];\n }\n mean = sum/n;\n sum = 0;\n for(int i=0; i<n; i++){\n sum += Math.pow((s[i] - mean), 2); \n }\n mean = sum/n;\n std[cnt] = Math.sqrt(mean);\n cnt++;\n }\n\n for(int i=0; i<cnt; i++){\n System.out.printf(\"%.8f\\n\", std[i]);\n }\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);
double[] std = new double[100];
int cnt=0;
double sum=0;
double mean;
while(true){
int n;
n = sc.nextInt();
if(n == 0)
break;
sum=0;
mean=0;
double[] s = new double[n];
for(int i=0; i<n; i++){
s[i] = sc.nextInt();
sum += s[i];
}
mean = sum/n;
sum = 0;
for(int i=0; i<n; i++){
sum += Math.pow((s[i] - mean), 2);
}
mean = sum/n;
std[cnt] = Math.sqrt(mean);
cnt++;
}
for(int i=0; i<cnt; i++){
System.out.printf("%.8f\n", std[i]);
}
sc.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
29,
4,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
14,
2,
13,
17,
29,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
0,
13,
17,
30,
30,
0,
13,
4,
18,
13,
4,
18,
4,
18,
4,
18,
13,
13,
13,
4,
18,
13,
13,
13,
18,
13,
13,
29,
13,
23,
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,
4,
18,
20,
20,
17,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
4,
13,
4,
18,
20,
4,
13,
13,
29,
4,
18,
13,
20,
17,
18,
13,
13,
23,
13,
12,
13,
30,
29,
4,
13,
4,
13,
13,
17,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
20,
42,
17,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
3,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
239,
11
],
[
239,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
16,
19
],
[
12,
20
],
[
20,
21
],
[
239,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
24,
34
],
[
34,
35
],
[
34,
36
],
[
24,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
37,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
58,
64
],
[
56,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
56,
69
],
[
56,
70
],
[
70,
71
],
[
70,
72
],
[
24,
73
],
[
73,
74
],
[
22,
75
],
[
75,
76
],
[
22,
77
],
[
77,
78
],
[
239,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
92,
94
],
[
85,
95
],
[
95,
96
],
[
96,
97
],
[
85,
98
],
[
99,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
102,
104
],
[
81,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
106,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
79,
114
],
[
114,
115
],
[
239,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
121,
123
],
[
118,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
131,
133
],
[
124,
134
],
[
134,
135
],
[
135,
136
],
[
124,
137
],
[
138,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
141,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
146,
149
],
[
149,
150
],
[
149,
151
],
[
118,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
153,
156
],
[
153,
157
],
[
153,
158
],
[
158,
159
],
[
158,
160
],
[
116,
161
],
[
161,
162
],
[
239,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
163,
173
],
[
173,
174
],
[
239,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
177,
181
],
[
181,
182
],
[
181,
183
],
[
177,
184
],
[
184,
185
],
[
184,
186
],
[
177,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
193,
194
],
[
189,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
195,
199
],
[
189,
200
],
[
200,
201
],
[
200,
202
],
[
189,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
204,
209
],
[
209,
210
],
[
209,
211
],
[
204,
212
],
[
212,
213
],
[
213,
214
],
[
204,
215
],
[
216,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
217,
221
],
[
221,
222
],
[
222,
223
],
[
189,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
224,
229
],
[
229,
230
],
[
230,
231
],
[
229,
232
],
[
177,
233
],
[
233,
234
],
[
234,
235
],
[
175,
236
],
[
236,
237
],
[
0,
238
],
[
238,
239
],
[
238,
240
]
] | [
"import java.math.BigDecimal;\nimport java.math.MathContext;\nimport java.util.Scanner;\n\npublic class Main {\n\n public BigDecimal pow(BigDecimal value) {\n return value.multiply(value);\n }\n\n public static BigDecimal sqrt(BigDecimal a, int scale){\n BigDecimal x = new BigDecimal(\n Math.sqrt(a.doubleValue()), MathContext.DECIMAL64);\n if(scale < 17) return x;\n\n BigDecimal b2 = new BigDecimal(2);\n for(int tempScale = 16; tempScale < scale; tempScale *= 2){\n x = x.subtract(\n x.multiply(x).subtract(a).divide(\n x.multiply(b2), scale, BigDecimal.ROUND_HALF_EVEN));\n }\n return x;\n }\n\n public BigDecimal average(int[] values) {\n int sum = 0;\n for (int i=0; i<values.length; i++) {\n sum += values[i];\n }\n return new BigDecimal(sum).divide(new BigDecimal(values.length), 5, BigDecimal.ROUND_HALF_UP);\n }\n\n public BigDecimal var(int[] values) {\n BigDecimal sum = BigDecimal.ZERO;\n for (int i=0; i<values.length; i++) {\n sum = sum.add(pow(new BigDecimal(values[i]).subtract(average(values))));\n }\n\n return sum.divide(new BigDecimal(values.length), 5, BigDecimal.ROUND_HALF_UP);\n }\n\n public BigDecimal std(int values[]) {\n return sqrt(var(values), 2);\n }\n\n public static void main(String[] args) {\n\n \tScanner sc = new Scanner(System.in);\n\n int count = 0;\n\t\t\n Main m = new Main();\n while(true) {\n \tcount = sc.nextInt();\n \tif(count == 0) break;\n int[] values = new int[count];\n \tfor(int i=0; i<count; i++) {\n \t\tvalues[i] = sc.nextInt();\n \t}\n \tSystem.out.println(m.std(values));\n }\n\n sc.close();\n }\n}",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"import java.math.MathContext;",
"MathContext",
"java.math",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public BigDecimal pow(BigDecimal value) {\n return value.multiply(value);\n }\n\n public static BigDecimal sqrt(BigDecimal a, int scale){\n BigDecimal x = new BigDecimal(\n Math.sqrt(a.doubleValue()), MathContext.DECIMAL64);\n if(scale < 17) return x;\n\n BigDecimal b2 = new BigDecimal(2);\n for(int tempScale = 16; tempScale < scale; tempScale *= 2){\n x = x.subtract(\n x.multiply(x).subtract(a).divide(\n x.multiply(b2), scale, BigDecimal.ROUND_HALF_EVEN));\n }\n return x;\n }\n\n public BigDecimal average(int[] values) {\n int sum = 0;\n for (int i=0; i<values.length; i++) {\n sum += values[i];\n }\n return new BigDecimal(sum).divide(new BigDecimal(values.length), 5, BigDecimal.ROUND_HALF_UP);\n }\n\n public BigDecimal var(int[] values) {\n BigDecimal sum = BigDecimal.ZERO;\n for (int i=0; i<values.length; i++) {\n sum = sum.add(pow(new BigDecimal(values[i]).subtract(average(values))));\n }\n\n return sum.divide(new BigDecimal(values.length), 5, BigDecimal.ROUND_HALF_UP);\n }\n\n public BigDecimal std(int values[]) {\n return sqrt(var(values), 2);\n }\n\n public static void main(String[] args) {\n\n \tScanner sc = new Scanner(System.in);\n\n int count = 0;\n\t\t\n Main m = new Main();\n while(true) {\n \tcount = sc.nextInt();\n \tif(count == 0) break;\n int[] values = new int[count];\n \tfor(int i=0; i<count; i++) {\n \t\tvalues[i] = sc.nextInt();\n \t}\n \tSystem.out.println(m.std(values));\n }\n\n sc.close();\n }\n}",
"Main",
"public BigDecimal pow(BigDecimal value) {\n return value.multiply(value);\n }",
"pow",
"{\n return value.multiply(value);\n }",
"return value.multiply(value);",
"value.multiply(value)",
"value.multiply",
"value",
"value",
"BigDecimal value",
"value",
"public static BigDecimal sqrt(BigDecimal a, int scale){\n BigDecimal x = new BigDecimal(\n Math.sqrt(a.doubleValue()), MathContext.DECIMAL64);\n if(scale < 17) return x;\n\n BigDecimal b2 = new BigDecimal(2);\n for(int tempScale = 16; tempScale < scale; tempScale *= 2){\n x = x.subtract(\n x.multiply(x).subtract(a).divide(\n x.multiply(b2), scale, BigDecimal.ROUND_HALF_EVEN));\n }\n return x;\n }",
"sqrt",
"{\n BigDecimal x = new BigDecimal(\n Math.sqrt(a.doubleValue()), MathContext.DECIMAL64);\n if(scale < 17) return x;\n\n BigDecimal b2 = new BigDecimal(2);\n for(int tempScale = 16; tempScale < scale; tempScale *= 2){\n x = x.subtract(\n x.multiply(x).subtract(a).divide(\n x.multiply(b2), scale, BigDecimal.ROUND_HALF_EVEN));\n }\n return x;\n }",
"BigDecimal x = new BigDecimal(\n Math.sqrt(a.doubleValue()), MathContext.DECIMAL64);",
"x",
"new BigDecimal(\n Math.sqrt(a.doubleValue()), MathContext.DECIMAL64)",
"if(scale < 17) return x;",
"scale < 17",
"scale",
"17",
"return x;",
"x",
"BigDecimal b2 = new BigDecimal(2);",
"b2",
"new BigDecimal(2)",
"for(int tempScale = 16; tempScale < scale; tempScale *= 2){\n x = x.subtract(\n x.multiply(x).subtract(a).divide(\n x.multiply(b2), scale, BigDecimal.ROUND_HALF_EVEN));\n }",
"int tempScale = 16;",
"int tempScale = 16;",
"tempScale",
"16",
"tempScale < scale",
"tempScale",
"scale",
"tempScale *= 2",
"tempScale *= 2",
"tempScale",
"2",
"{\n x = x.subtract(\n x.multiply(x).subtract(a).divide(\n x.multiply(b2), scale, BigDecimal.ROUND_HALF_EVEN));\n }",
"{\n x = x.subtract(\n x.multiply(x).subtract(a).divide(\n x.multiply(b2), scale, BigDecimal.ROUND_HALF_EVEN));\n }",
"x = x.subtract(\n x.multiply(x).subtract(a).divide(\n x.multiply(b2), scale, BigDecimal.ROUND_HALF_EVEN))",
"x",
"x.subtract(\n x.multiply(x).subtract(a).divide(\n x.multiply(b2), scale, BigDecimal.ROUND_HALF_EVEN))",
"x.subtract",
"x",
"x.multiply(x).subtract(a).divide(\n x.multiply(b2), scale, BigDecimal.ROUND_HALF_EVEN)",
"x.multiply(x).subtract(a).divide",
"x.multiply(x).subtract(a)",
"x.multiply(x).subtract",
"x.multiply(x)",
"x.multiply",
"x",
"x",
"a",
"x.multiply(b2)",
"x.multiply",
"x",
"b2",
"scale",
"BigDecimal.ROUND_HALF_EVEN",
"BigDecimal",
"BigDecimal.ROUND_HALF_EVEN",
"return x;",
"x",
"BigDecimal a",
"a",
"int scale",
"scale",
"public BigDecimal average(int[] values) {\n int sum = 0;\n for (int i=0; i<values.length; i++) {\n sum += values[i];\n }\n return new BigDecimal(sum).divide(new BigDecimal(values.length), 5, BigDecimal.ROUND_HALF_UP);\n }",
"average",
"{\n int sum = 0;\n for (int i=0; i<values.length; i++) {\n sum += values[i];\n }\n return new BigDecimal(sum).divide(new BigDecimal(values.length), 5, BigDecimal.ROUND_HALF_UP);\n }",
"int sum = 0;",
"sum",
"0",
"for (int i=0; i<values.length; i++) {\n sum += values[i];\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<values.length",
"i",
"values.length",
"values",
"values.length",
"i++",
"i++",
"i",
"{\n sum += values[i];\n }",
"{\n sum += values[i];\n }",
"sum += values[i]",
"sum",
"values[i]",
"values",
"i",
"return new BigDecimal(sum).divide(new BigDecimal(values.length), 5, BigDecimal.ROUND_HALF_UP);",
"new BigDecimal(sum).divide(new BigDecimal(values.length), 5, BigDecimal.ROUND_HALF_UP)",
"new BigDecimal(sum).divide",
"new BigDecimal(sum)",
"new BigDecimal(values.length)",
"5",
"BigDecimal.ROUND_HALF_UP",
"BigDecimal",
"BigDecimal.ROUND_HALF_UP",
"int[] values",
"values",
"public BigDecimal var(int[] values) {\n BigDecimal sum = BigDecimal.ZERO;\n for (int i=0; i<values.length; i++) {\n sum = sum.add(pow(new BigDecimal(values[i]).subtract(average(values))));\n }\n\n return sum.divide(new BigDecimal(values.length), 5, BigDecimal.ROUND_HALF_UP);\n }",
"var",
"{\n BigDecimal sum = BigDecimal.ZERO;\n for (int i=0; i<values.length; i++) {\n sum = sum.add(pow(new BigDecimal(values[i]).subtract(average(values))));\n }\n\n return sum.divide(new BigDecimal(values.length), 5, BigDecimal.ROUND_HALF_UP);\n }",
"BigDecimal sum = BigDecimal.ZERO;",
"sum",
"BigDecimal.ZERO",
"BigDecimal",
"BigDecimal.ZERO",
"for (int i=0; i<values.length; i++) {\n sum = sum.add(pow(new BigDecimal(values[i]).subtract(average(values))));\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<values.length",
"i",
"values.length",
"values",
"values.length",
"i++",
"i++",
"i",
"{\n sum = sum.add(pow(new BigDecimal(values[i]).subtract(average(values))));\n }",
"{\n sum = sum.add(pow(new BigDecimal(values[i]).subtract(average(values))));\n }",
"sum = sum.add(pow(new BigDecimal(values[i]).subtract(average(values))))",
"sum",
"sum.add(pow(new BigDecimal(values[i]).subtract(average(values))))",
"sum.add",
"sum",
"pow(new BigDecimal(values[i]).subtract(average(values)))",
"pow",
"new BigDecimal(values[i]).subtract(average(values))",
"new BigDecimal(values[i]).subtract",
"new BigDecimal(values[i])",
"average(values)",
"average",
"values",
"return sum.divide(new BigDecimal(values.length), 5, BigDecimal.ROUND_HALF_UP);",
"sum.divide(new BigDecimal(values.length), 5, BigDecimal.ROUND_HALF_UP)",
"sum.divide",
"sum",
"new BigDecimal(values.length)",
"5",
"BigDecimal.ROUND_HALF_UP",
"BigDecimal",
"BigDecimal.ROUND_HALF_UP",
"int[] values",
"values",
"public BigDecimal std(int values[]) {\n return sqrt(var(values), 2);\n }",
"std",
"{\n return sqrt(var(values), 2);\n }",
"return sqrt(var(values), 2);",
"sqrt(var(values), 2)",
"sqrt",
"var(values)",
"var",
"values",
"2",
"int values[]",
"values",
"public static void main(String[] args) {\n\n \tScanner sc = new Scanner(System.in);\n\n int count = 0;\n\t\t\n Main m = new Main();\n while(true) {\n \tcount = sc.nextInt();\n \tif(count == 0) break;\n int[] values = new int[count];\n \tfor(int i=0; i<count; i++) {\n \t\tvalues[i] = sc.nextInt();\n \t}\n \tSystem.out.println(m.std(values));\n }\n\n sc.close();\n }",
"main",
"{\n\n \tScanner sc = new Scanner(System.in);\n\n int count = 0;\n\t\t\n Main m = new Main();\n while(true) {\n \tcount = sc.nextInt();\n \tif(count == 0) break;\n int[] values = new int[count];\n \tfor(int i=0; i<count; i++) {\n \t\tvalues[i] = sc.nextInt();\n \t}\n \tSystem.out.println(m.std(values));\n }\n\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int count = 0;",
"count",
"0",
"Main m = new Main();",
"m",
"new Main()",
"while(true) {\n \tcount = sc.nextInt();\n \tif(count == 0) break;\n int[] values = new int[count];\n \tfor(int i=0; i<count; i++) {\n \t\tvalues[i] = sc.nextInt();\n \t}\n \tSystem.out.println(m.std(values));\n }",
"true",
"{\n \tcount = sc.nextInt();\n \tif(count == 0) break;\n int[] values = new int[count];\n \tfor(int i=0; i<count; i++) {\n \t\tvalues[i] = sc.nextInt();\n \t}\n \tSystem.out.println(m.std(values));\n }",
"count = sc.nextInt()",
"count",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(count == 0) break;",
"count == 0",
"count",
"0",
"break;",
"int[] values = new int[count];",
"values",
"new int[count]",
"count",
"for(int i=0; i<count; i++) {\n \t\tvalues[i] = sc.nextInt();\n \t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<count",
"i",
"count",
"i++",
"i++",
"i",
"{\n \t\tvalues[i] = sc.nextInt();\n \t}",
"{\n \t\tvalues[i] = sc.nextInt();\n \t}",
"values[i] = sc.nextInt()",
"values[i]",
"values",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.println(m.std(values))",
"System.out.println",
"System.out",
"System",
"System.out",
"m.std(values)",
"m.std",
"m",
"values",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n public BigDecimal pow(BigDecimal value) {\n return value.multiply(value);\n }\n\n public static BigDecimal sqrt(BigDecimal a, int scale){\n BigDecimal x = new BigDecimal(\n Math.sqrt(a.doubleValue()), MathContext.DECIMAL64);\n if(scale < 17) return x;\n\n BigDecimal b2 = new BigDecimal(2);\n for(int tempScale = 16; tempScale < scale; tempScale *= 2){\n x = x.subtract(\n x.multiply(x).subtract(a).divide(\n x.multiply(b2), scale, BigDecimal.ROUND_HALF_EVEN));\n }\n return x;\n }\n\n public BigDecimal average(int[] values) {\n int sum = 0;\n for (int i=0; i<values.length; i++) {\n sum += values[i];\n }\n return new BigDecimal(sum).divide(new BigDecimal(values.length), 5, BigDecimal.ROUND_HALF_UP);\n }\n\n public BigDecimal var(int[] values) {\n BigDecimal sum = BigDecimal.ZERO;\n for (int i=0; i<values.length; i++) {\n sum = sum.add(pow(new BigDecimal(values[i]).subtract(average(values))));\n }\n\n return sum.divide(new BigDecimal(values.length), 5, BigDecimal.ROUND_HALF_UP);\n }\n\n public BigDecimal std(int values[]) {\n return sqrt(var(values), 2);\n }\n\n public static void main(String[] args) {\n\n \tScanner sc = new Scanner(System.in);\n\n int count = 0;\n\t\t\n Main m = new Main();\n while(true) {\n \tcount = sc.nextInt();\n \tif(count == 0) break;\n int[] values = new int[count];\n \tfor(int i=0; i<count; i++) {\n \t\tvalues[i] = sc.nextInt();\n \t}\n \tSystem.out.println(m.std(values));\n }\n\n sc.close();\n }\n}",
"public class Main {\n\n public BigDecimal pow(BigDecimal value) {\n return value.multiply(value);\n }\n\n public static BigDecimal sqrt(BigDecimal a, int scale){\n BigDecimal x = new BigDecimal(\n Math.sqrt(a.doubleValue()), MathContext.DECIMAL64);\n if(scale < 17) return x;\n\n BigDecimal b2 = new BigDecimal(2);\n for(int tempScale = 16; tempScale < scale; tempScale *= 2){\n x = x.subtract(\n x.multiply(x).subtract(a).divide(\n x.multiply(b2), scale, BigDecimal.ROUND_HALF_EVEN));\n }\n return x;\n }\n\n public BigDecimal average(int[] values) {\n int sum = 0;\n for (int i=0; i<values.length; i++) {\n sum += values[i];\n }\n return new BigDecimal(sum).divide(new BigDecimal(values.length), 5, BigDecimal.ROUND_HALF_UP);\n }\n\n public BigDecimal var(int[] values) {\n BigDecimal sum = BigDecimal.ZERO;\n for (int i=0; i<values.length; i++) {\n sum = sum.add(pow(new BigDecimal(values[i]).subtract(average(values))));\n }\n\n return sum.divide(new BigDecimal(values.length), 5, BigDecimal.ROUND_HALF_UP);\n }\n\n public BigDecimal std(int values[]) {\n return sqrt(var(values), 2);\n }\n\n public static void main(String[] args) {\n\n \tScanner sc = new Scanner(System.in);\n\n int count = 0;\n\t\t\n Main m = new Main();\n while(true) {\n \tcount = sc.nextInt();\n \tif(count == 0) break;\n int[] values = new int[count];\n \tfor(int i=0; i<count; i++) {\n \t\tvalues[i] = sc.nextInt();\n \t}\n \tSystem.out.println(m.std(values));\n }\n\n sc.close();\n }\n}",
"Main"
] | import java.math.BigDecimal;
import java.math.MathContext;
import java.util.Scanner;
public class Main {
public BigDecimal pow(BigDecimal value) {
return value.multiply(value);
}
public static BigDecimal sqrt(BigDecimal a, int scale){
BigDecimal x = new BigDecimal(
Math.sqrt(a.doubleValue()), MathContext.DECIMAL64);
if(scale < 17) return x;
BigDecimal b2 = new BigDecimal(2);
for(int tempScale = 16; tempScale < scale; tempScale *= 2){
x = x.subtract(
x.multiply(x).subtract(a).divide(
x.multiply(b2), scale, BigDecimal.ROUND_HALF_EVEN));
}
return x;
}
public BigDecimal average(int[] values) {
int sum = 0;
for (int i=0; i<values.length; i++) {
sum += values[i];
}
return new BigDecimal(sum).divide(new BigDecimal(values.length), 5, BigDecimal.ROUND_HALF_UP);
}
public BigDecimal var(int[] values) {
BigDecimal sum = BigDecimal.ZERO;
for (int i=0; i<values.length; i++) {
sum = sum.add(pow(new BigDecimal(values[i]).subtract(average(values))));
}
return sum.divide(new BigDecimal(values.length), 5, BigDecimal.ROUND_HALF_UP);
}
public BigDecimal std(int values[]) {
return sqrt(var(values), 2);
}
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int count = 0;
Main m = new Main();
while(true) {
count = sc.nextInt();
if(count == 0) break;
int[] values = new int[count];
for(int i=0; i<count; i++) {
values[i] = sc.nextInt();
}
System.out.println(m.std(values));
}
sc.close();
}
}
|
[
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,
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,
0,
13,
4,
18,
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
],
[
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
],
[
21,
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
],
[
21,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
21,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
64,
72
],
[
72,
73
],
[
73,
74
],
[
64,
75
],
[
76,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
79,
87
],
[
21,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
93,
94
],
[
93,
95
],
[
21,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
21,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
6,
107
],
[
107,
108
],
[
0,
109
],
[
109,
110
],
[
109,
111
]
] | [
"import java.util.Scanner;\n\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\twhile(n != 0) { \n\t\t\tint[] num = new int[n];\n\t\t\tdouble average = 0;\n\t\t\tdouble dispersion = 0;\n\t\t\tdouble A;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tnum[i] = scan.nextInt();\n\t\t\t\taverage += num[i];\n\t\t\t}\n\t\t\taverage = average / n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdispersion += Math.pow((num[i] - average), 2);\n\t\t\t}\n\t\t\tA = Math.sqrt(dispersion / n);\n\t\t\tSystem.out.println(A);\n\t\t\tn = scan.nextInt();\n\t\t}\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\twhile(n != 0) { \n\t\t\tint[] num = new int[n];\n\t\t\tdouble average = 0;\n\t\t\tdouble dispersion = 0;\n\t\t\tdouble A;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tnum[i] = scan.nextInt();\n\t\t\t\taverage += num[i];\n\t\t\t}\n\t\t\taverage = average / n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdispersion += Math.pow((num[i] - average), 2);\n\t\t\t}\n\t\t\tA = Math.sqrt(dispersion / n);\n\t\t\tSystem.out.println(A);\n\t\t\tn = scan.nextInt();\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\twhile(n != 0) { \n\t\t\tint[] num = new int[n];\n\t\t\tdouble average = 0;\n\t\t\tdouble dispersion = 0;\n\t\t\tdouble A;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tnum[i] = scan.nextInt();\n\t\t\t\taverage += num[i];\n\t\t\t}\n\t\t\taverage = average / n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdispersion += Math.pow((num[i] - average), 2);\n\t\t\t}\n\t\t\tA = Math.sqrt(dispersion / n);\n\t\t\tSystem.out.println(A);\n\t\t\tn = scan.nextInt();\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\twhile(n != 0) { \n\t\t\tint[] num = new int[n];\n\t\t\tdouble average = 0;\n\t\t\tdouble dispersion = 0;\n\t\t\tdouble A;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tnum[i] = scan.nextInt();\n\t\t\t\taverage += num[i];\n\t\t\t}\n\t\t\taverage = average / n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdispersion += Math.pow((num[i] - average), 2);\n\t\t\t}\n\t\t\tA = Math.sqrt(dispersion / n);\n\t\t\tSystem.out.println(A);\n\t\t\tn = scan.nextInt();\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"while(n != 0) { \n\t\t\tint[] num = new int[n];\n\t\t\tdouble average = 0;\n\t\t\tdouble dispersion = 0;\n\t\t\tdouble A;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tnum[i] = scan.nextInt();\n\t\t\t\taverage += num[i];\n\t\t\t}\n\t\t\taverage = average / n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdispersion += Math.pow((num[i] - average), 2);\n\t\t\t}\n\t\t\tA = Math.sqrt(dispersion / n);\n\t\t\tSystem.out.println(A);\n\t\t\tn = scan.nextInt();\n\t\t}",
"n != 0",
"n",
"0",
"{ \n\t\t\tint[] num = new int[n];\n\t\t\tdouble average = 0;\n\t\t\tdouble dispersion = 0;\n\t\t\tdouble A;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tnum[i] = scan.nextInt();\n\t\t\t\taverage += num[i];\n\t\t\t}\n\t\t\taverage = average / n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdispersion += Math.pow((num[i] - average), 2);\n\t\t\t}\n\t\t\tA = Math.sqrt(dispersion / n);\n\t\t\tSystem.out.println(A);\n\t\t\tn = scan.nextInt();\n\t\t}",
"int[] num = new int[n];",
"num",
"new int[n]",
"n",
"double average = 0;",
"average",
"0",
"double dispersion = 0;",
"dispersion",
"0",
"double A;",
"A",
"for (int i = 0; i < n; i++) {\n\t\t\t\tnum[i] = scan.nextInt();\n\t\t\t\taverage += num[i];\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tnum[i] = scan.nextInt();\n\t\t\t\taverage += num[i];\n\t\t\t}",
"{\n\t\t\t\tnum[i] = scan.nextInt();\n\t\t\t\taverage += num[i];\n\t\t\t}",
"num[i] = scan.nextInt()",
"num[i]",
"num",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"average += num[i]",
"average",
"num[i]",
"num",
"i",
"average = average / n",
"average",
"average / n",
"average",
"n",
"for (int i = 0; i < n; i++) {\n\t\t\t\tdispersion += Math.pow((num[i] - average), 2);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tdispersion += Math.pow((num[i] - average), 2);\n\t\t\t}",
"{\n\t\t\t\tdispersion += Math.pow((num[i] - average), 2);\n\t\t\t}",
"dispersion += Math.pow((num[i] - average), 2)",
"dispersion",
"Math.pow((num[i] - average), 2)",
"Math.pow",
"Math",
"(num[i] - average)",
"num[i]",
"num",
"i",
"average",
"2",
"A = Math.sqrt(dispersion / n)",
"A",
"Math.sqrt(dispersion / n)",
"Math.sqrt",
"Math",
"dispersion / n",
"dispersion",
"n",
"System.out.println(A)",
"System.out.println",
"System.out",
"System",
"System.out",
"A",
"n = scan.nextInt()",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\twhile(n != 0) { \n\t\t\tint[] num = new int[n];\n\t\t\tdouble average = 0;\n\t\t\tdouble dispersion = 0;\n\t\t\tdouble A;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tnum[i] = scan.nextInt();\n\t\t\t\taverage += num[i];\n\t\t\t}\n\t\t\taverage = average / n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdispersion += Math.pow((num[i] - average), 2);\n\t\t\t}\n\t\t\tA = Math.sqrt(dispersion / n);\n\t\t\tSystem.out.println(A);\n\t\t\tn = scan.nextInt();\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\tint n = scan.nextInt();\n\t\twhile(n != 0) { \n\t\t\tint[] num = new int[n];\n\t\t\tdouble average = 0;\n\t\t\tdouble dispersion = 0;\n\t\t\tdouble A;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tnum[i] = scan.nextInt();\n\t\t\t\taverage += num[i];\n\t\t\t}\n\t\t\taverage = average / n;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdispersion += Math.pow((num[i] - average), 2);\n\t\t\t}\n\t\t\tA = Math.sqrt(dispersion / n);\n\t\t\tSystem.out.println(A);\n\t\t\tn = scan.nextInt();\n\t\t}\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
while(n != 0) {
int[] num = new int[n];
double average = 0;
double dispersion = 0;
double A;
for (int i = 0; i < n; i++) {
num[i] = scan.nextInt();
average += num[i];
}
average = average / n;
for (int i = 0; i < n; i++) {
dispersion += Math.pow((num[i] - average), 2);
}
A = Math.sqrt(dispersion / n);
System.out.println(A);
n = scan.nextInt();
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
3,
41,
13,
17,
41,
13,
17,
41,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
18,
13,
13,
0,
13,
2,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
4,
18,
13,
2,
18,
13,
13,
13,
17,
13,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
105,
5
],
[
105,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
14,
25
],
[
25,
26
],
[
25,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
14,
31
],
[
31,
32
],
[
14,
33
],
[
33,
34
],
[
33,
35
],
[
14,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
49,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
14,
62
],
[
62,
63
],
[
62,
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
],
[
83,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
83,
91
],
[
82,
92
],
[
14,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
6,
102
],
[
102,
103
],
[
0,
104
],
[
104,
105
],
[
104,
106
]
] | [
"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 if (n == 0) break;\n\n double sum = 0, sumX = 0, m;\n double[] s = new double[n];\n\n for (int i = 0; i < n; i++) {\n s[i] = scan.nextDouble();\n sum += s[i];\n }\n\n m = sum / n;\n\n for (int i = 0; i < n; i++) {\n sumX += Math.pow((s[i] - m), 2) / n;\n }\n System.out.println(Math.sqrt(sumX));\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 if (n == 0) break;\n\n double sum = 0, sumX = 0, m;\n double[] s = new double[n];\n\n for (int i = 0; i < n; i++) {\n s[i] = scan.nextDouble();\n sum += s[i];\n }\n\n m = sum / n;\n\n for (int i = 0; i < n; i++) {\n sumX += Math.pow((s[i] - m), 2) / n;\n }\n System.out.println(Math.sqrt(sumX));\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n while (true) {\n int n = scan.nextInt();\n if (n == 0) break;\n\n double sum = 0, sumX = 0, m;\n double[] s = new double[n];\n\n for (int i = 0; i < n; i++) {\n s[i] = scan.nextDouble();\n sum += s[i];\n }\n\n m = sum / n;\n\n for (int i = 0; i < n; i++) {\n sumX += Math.pow((s[i] - m), 2) / n;\n }\n System.out.println(Math.sqrt(sumX));\n }\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n\n while (true) {\n int n = scan.nextInt();\n if (n == 0) break;\n\n double sum = 0, sumX = 0, m;\n double[] s = new double[n];\n\n for (int i = 0; i < n; i++) {\n s[i] = scan.nextDouble();\n sum += s[i];\n }\n\n m = sum / n;\n\n for (int i = 0; i < n; i++) {\n sumX += Math.pow((s[i] - m), 2) / n;\n }\n System.out.println(Math.sqrt(sumX));\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\n double sum = 0, sumX = 0, m;\n double[] s = new double[n];\n\n for (int i = 0; i < n; i++) {\n s[i] = scan.nextDouble();\n sum += s[i];\n }\n\n m = sum / n;\n\n for (int i = 0; i < n; i++) {\n sumX += Math.pow((s[i] - m), 2) / n;\n }\n System.out.println(Math.sqrt(sumX));\n }",
"true",
"{\n int n = scan.nextInt();\n if (n == 0) break;\n\n double sum = 0, sumX = 0, m;\n double[] s = new double[n];\n\n for (int i = 0; i < n; i++) {\n s[i] = scan.nextDouble();\n sum += s[i];\n }\n\n m = sum / n;\n\n for (int i = 0; i < n; i++) {\n sumX += Math.pow((s[i] - m), 2) / n;\n }\n System.out.println(Math.sqrt(sumX));\n }",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if (n == 0) break;",
"n == 0",
"n",
"0",
"break;",
"double sum = 0",
"sum",
"0",
"sumX = 0",
"sumX",
"0",
"m;",
"m",
"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 = sum / n",
"m",
"sum / n",
"sum",
"n",
"for (int i = 0; i < n; i++) {\n sumX += Math.pow((s[i] - m), 2) / n;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n sumX += Math.pow((s[i] - m), 2) / n;\n }",
"{\n sumX += Math.pow((s[i] - m), 2) / n;\n }",
"sumX += Math.pow((s[i] - m), 2) / n",
"sumX",
"Math.pow((s[i] - m), 2) / n",
"Math.pow((s[i] - m), 2)",
"Math.pow",
"Math",
"(s[i] - m)",
"s[i]",
"s",
"i",
"m",
"2",
"n",
"System.out.println(Math.sqrt(sumX))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.sqrt(sumX)",
"Math.sqrt",
"Math",
"sumX",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n while (true) {\n int n = scan.nextInt();\n if (n == 0) break;\n\n double sum = 0, sumX = 0, m;\n double[] s = new double[n];\n\n for (int i = 0; i < n; i++) {\n s[i] = scan.nextDouble();\n sum += s[i];\n }\n\n m = sum / n;\n\n for (int i = 0; i < n; i++) {\n sumX += Math.pow((s[i] - m), 2) / n;\n }\n System.out.println(Math.sqrt(sumX));\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n while (true) {\n int n = scan.nextInt();\n if (n == 0) break;\n\n double sum = 0, sumX = 0, m;\n double[] s = new double[n];\n\n for (int i = 0; i < n; i++) {\n s[i] = scan.nextDouble();\n sum += s[i];\n }\n\n m = sum / n;\n\n for (int i = 0; i < n; i++) {\n sumX += Math.pow((s[i] - m), 2) / n;\n }\n System.out.println(Math.sqrt(sumX));\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();
if (n == 0) break;
double sum = 0, sumX = 0, m;
double[] s = new double[n];
for (int i = 0; i < n; i++) {
s[i] = scan.nextDouble();
sum += s[i];
}
m = sum / n;
for (int i = 0; i < n; i++) {
sumX += Math.pow((s[i] - m), 2) / n;
}
System.out.println(Math.sqrt(sumX));
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
20,
17,
41,
13,
17,
42,
17,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
3,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
18,
13,
13,
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,
2,
18,
13,
13,
13,
2,
18,
13,
13,
13,
13,
0,
18,
13,
13,
4,
18,
13,
13,
40,
13,
11,
1,
41,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
142,
8
],
[
142,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
11,
21
],
[
21,
22
],
[
21,
23
],
[
11,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
26,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
26,
37
],
[
37,
38
],
[
37,
39
],
[
26,
41
],
[
41,
42
],
[
41,
43
],
[
26,
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
],
[
26,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
26,
74
],
[
74,
75
],
[
74,
76
],
[
26,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
95,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
94,
106
],
[
26,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
26,
115
],
[
115,
116
],
[
11,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
122,
123
],
[
122,
124
],
[
117,
125
],
[
125,
126
],
[
126,
127
],
[
117,
128
],
[
129,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
130,
135
],
[
130,
136
],
[
136,
137
],
[
136,
138
],
[
9,
139
],
[
139,
140
],
[
0,
141
],
[
141,
142
],
[
141,
143
]
] | [
"import java.util.Scanner;\nimport java.lang.Math;\n\n\npublic class Main {\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n int n;\n double[] ans = new double[1000];\n int k=0;\n while(true){\n n = scan.nextInt();\n if(n==0)break;\n int[] a = new int[n];\n int sum=0;\n for(int i=0;i<n;i++){\n a[i]=scan.nextInt();\n sum+=a[i];\n }\n double ave = (double)sum/n;\n double var=0;\n for(int i=0;i<n;i++){\n var =var+((a[i]-ave)*(a[i]-ave)/n);\n }\n ans[k] = Math.sqrt(var);\n k++;\n }\n for(int i=0;i<k;i++){\n System.out.printf(\"%.5f\\n\",ans[i]);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.lang.Math;",
"Math",
"java.lang",
"public class Main {\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n int n;\n double[] ans = new double[1000];\n int k=0;\n while(true){\n n = scan.nextInt();\n if(n==0)break;\n int[] a = new int[n];\n int sum=0;\n for(int i=0;i<n;i++){\n a[i]=scan.nextInt();\n sum+=a[i];\n }\n double ave = (double)sum/n;\n double var=0;\n for(int i=0;i<n;i++){\n var =var+((a[i]-ave)*(a[i]-ave)/n);\n }\n ans[k] = Math.sqrt(var);\n k++;\n }\n for(int i=0;i<k;i++){\n System.out.printf(\"%.5f\\n\",ans[i]);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n int n;\n double[] ans = new double[1000];\n int k=0;\n while(true){\n n = scan.nextInt();\n if(n==0)break;\n int[] a = new int[n];\n int sum=0;\n for(int i=0;i<n;i++){\n a[i]=scan.nextInt();\n sum+=a[i];\n }\n double ave = (double)sum/n;\n double var=0;\n for(int i=0;i<n;i++){\n var =var+((a[i]-ave)*(a[i]-ave)/n);\n }\n ans[k] = Math.sqrt(var);\n k++;\n }\n for(int i=0;i<k;i++){\n System.out.printf(\"%.5f\\n\",ans[i]);\n }\n }",
"main",
"{\n\n Scanner scan = new Scanner(System.in);\n int n;\n double[] ans = new double[1000];\n int k=0;\n while(true){\n n = scan.nextInt();\n if(n==0)break;\n int[] a = new int[n];\n int sum=0;\n for(int i=0;i<n;i++){\n a[i]=scan.nextInt();\n sum+=a[i];\n }\n double ave = (double)sum/n;\n double var=0;\n for(int i=0;i<n;i++){\n var =var+((a[i]-ave)*(a[i]-ave)/n);\n }\n ans[k] = Math.sqrt(var);\n k++;\n }\n for(int i=0;i<k;i++){\n System.out.printf(\"%.5f\\n\",ans[i]);\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n;",
"n",
"double[] ans = new double[1000];",
"ans",
"new double[1000]",
"1000",
"int k=0;",
"k",
"0",
"while(true){\n n = scan.nextInt();\n if(n==0)break;\n int[] a = new int[n];\n int sum=0;\n for(int i=0;i<n;i++){\n a[i]=scan.nextInt();\n sum+=a[i];\n }\n double ave = (double)sum/n;\n double var=0;\n for(int i=0;i<n;i++){\n var =var+((a[i]-ave)*(a[i]-ave)/n);\n }\n ans[k] = Math.sqrt(var);\n k++;\n }",
"true",
"{\n n = scan.nextInt();\n if(n==0)break;\n int[] a = new int[n];\n int sum=0;\n for(int i=0;i<n;i++){\n a[i]=scan.nextInt();\n sum+=a[i];\n }\n double ave = (double)sum/n;\n double var=0;\n for(int i=0;i<n;i++){\n var =var+((a[i]-ave)*(a[i]-ave)/n);\n }\n ans[k] = Math.sqrt(var);\n k++;\n }",
"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",
"int sum=0;",
"sum",
"0",
"for(int i=0;i<n;i++){\n a[i]=scan.nextInt();\n sum+=a[i];\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a[i]=scan.nextInt();\n sum+=a[i];\n }",
"{\n a[i]=scan.nextInt();\n sum+=a[i];\n }",
"a[i]=scan.nextInt()",
"a[i]",
"a",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"sum+=a[i]",
"sum",
"a[i]",
"a",
"i",
"double ave = (double)sum/n;",
"ave",
"(double)sum/n",
"(double)sum",
"n",
"double var=0;",
"var",
"0",
"for(int i=0;i<n;i++){\n var =var+((a[i]-ave)*(a[i]-ave)/n);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n var =var+((a[i]-ave)*(a[i]-ave)/n);\n }",
"{\n var =var+((a[i]-ave)*(a[i]-ave)/n);\n }",
"var =var+((a[i]-ave)*(a[i]-ave)/n)",
"var",
"var+((a[i]-ave)*(a[i]-ave)/n)",
"var",
"((a[i]-ave)*(a[i]-ave)/n)",
"(a[i]-ave)*(a[i]-ave)",
"(a[i]-ave)",
"a[i]",
"a",
"i",
"ave",
"(a[i]-ave)",
"a[i]",
"a",
"i",
"ave",
"n",
"ans[k] = Math.sqrt(var)",
"ans[k]",
"ans",
"k",
"Math.sqrt(var)",
"Math.sqrt",
"Math",
"var",
"k++",
"k",
"for(int i=0;i<k;i++){\n System.out.printf(\"%.5f\\n\",ans[i]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<k",
"i",
"k",
"i++",
"i++",
"i",
"{\n System.out.printf(\"%.5f\\n\",ans[i]);\n }",
"{\n System.out.printf(\"%.5f\\n\",ans[i]);\n }",
"System.out.printf(\"%.5f\\n\",ans[i])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%.5f\\n\"",
"ans[i]",
"ans",
"i",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n int n;\n double[] ans = new double[1000];\n int k=0;\n while(true){\n n = scan.nextInt();\n if(n==0)break;\n int[] a = new int[n];\n int sum=0;\n for(int i=0;i<n;i++){\n a[i]=scan.nextInt();\n sum+=a[i];\n }\n double ave = (double)sum/n;\n double var=0;\n for(int i=0;i<n;i++){\n var =var+((a[i]-ave)*(a[i]-ave)/n);\n }\n ans[k] = Math.sqrt(var);\n k++;\n }\n for(int i=0;i<k;i++){\n System.out.printf(\"%.5f\\n\",ans[i]);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n int n;\n double[] ans = new double[1000];\n int k=0;\n while(true){\n n = scan.nextInt();\n if(n==0)break;\n int[] a = new int[n];\n int sum=0;\n for(int i=0;i<n;i++){\n a[i]=scan.nextInt();\n sum+=a[i];\n }\n double ave = (double)sum/n;\n double var=0;\n for(int i=0;i<n;i++){\n var =var+((a[i]-ave)*(a[i]-ave)/n);\n }\n ans[k] = Math.sqrt(var);\n k++;\n }\n for(int i=0;i<k;i++){\n System.out.printf(\"%.5f\\n\",ans[i]);\n }\n }\n}",
"Main"
] | import java.util.Scanner;
import java.lang.Math;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n;
double[] ans = new double[1000];
int k=0;
while(true){
n = scan.nextInt();
if(n==0)break;
int[] a = new int[n];
int sum=0;
for(int i=0;i<n;i++){
a[i]=scan.nextInt();
sum+=a[i];
}
double ave = (double)sum/n;
double var=0;
for(int i=0;i<n;i++){
var =var+((a[i]-ave)*(a[i]-ave)/n);
}
ans[k] = Math.sqrt(var);
k++;
}
for(int i=0;i<k;i++){
System.out.printf("%.5f\n",ans[i]);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
3,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
18,
13,
13,
41,
13,
2,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
2,
18,
13,
13,
13,
17,
41,
13,
2,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
17,
4,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
114,
5
],
[
114,
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
],
[
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
],
[
100,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
8,
108
],
[
108,
109
],
[
109,
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\n while(true) {\n int n = sc.nextInt();\n if(n == 0) {\n break;\n }\n\n double[] score = new double[n];\n\n double sum = 0.0;\n for(int i=0; i<n; i++) {\n score[i] = sc.nextDouble();\n sum += score[i];\n }\n\n double avg = sum / n;\n\n double nSum = 0.0;\n for(int i=0; i<n; i++) {\n nSum += Math.pow(score[i]-avg, 2);\n }\n\n double tmp = nSum / n;\n System.out.println(String.format(\"%.9f\",Math.sqrt(tmp)));\n }\n sc.close();\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while(true) {\n int n = sc.nextInt();\n if(n == 0) {\n break;\n }\n\n double[] score = new double[n];\n\n double sum = 0.0;\n for(int i=0; i<n; i++) {\n score[i] = sc.nextDouble();\n sum += score[i];\n }\n\n double avg = sum / n;\n\n double nSum = 0.0;\n for(int i=0; i<n; i++) {\n nSum += Math.pow(score[i]-avg, 2);\n }\n\n double tmp = nSum / n;\n System.out.println(String.format(\"%.9f\",Math.sqrt(tmp)));\n }\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while(true) {\n int n = sc.nextInt();\n if(n == 0) {\n break;\n }\n\n double[] score = new double[n];\n\n double sum = 0.0;\n for(int i=0; i<n; i++) {\n score[i] = sc.nextDouble();\n sum += score[i];\n }\n\n double avg = sum / n;\n\n double nSum = 0.0;\n for(int i=0; i<n; i++) {\n nSum += Math.pow(score[i]-avg, 2);\n }\n\n double tmp = nSum / n;\n System.out.println(String.format(\"%.9f\",Math.sqrt(tmp)));\n }\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n while(true) {\n int n = sc.nextInt();\n if(n == 0) {\n break;\n }\n\n double[] score = new double[n];\n\n double sum = 0.0;\n for(int i=0; i<n; i++) {\n score[i] = sc.nextDouble();\n sum += score[i];\n }\n\n double avg = sum / n;\n\n double nSum = 0.0;\n for(int i=0; i<n; i++) {\n nSum += Math.pow(score[i]-avg, 2);\n }\n\n double tmp = nSum / n;\n System.out.println(String.format(\"%.9f\",Math.sqrt(tmp)));\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\n double[] score = new double[n];\n\n double sum = 0.0;\n for(int i=0; i<n; i++) {\n score[i] = sc.nextDouble();\n sum += score[i];\n }\n\n double avg = sum / n;\n\n double nSum = 0.0;\n for(int i=0; i<n; i++) {\n nSum += Math.pow(score[i]-avg, 2);\n }\n\n double tmp = nSum / n;\n System.out.println(String.format(\"%.9f\",Math.sqrt(tmp)));\n }",
"true",
"{\n int n = sc.nextInt();\n if(n == 0) {\n break;\n }\n\n double[] score = new double[n];\n\n double sum = 0.0;\n for(int i=0; i<n; i++) {\n score[i] = sc.nextDouble();\n sum += score[i];\n }\n\n double avg = sum / n;\n\n double nSum = 0.0;\n for(int i=0; i<n; i++) {\n nSum += Math.pow(score[i]-avg, 2);\n }\n\n double tmp = nSum / n;\n System.out.println(String.format(\"%.9f\",Math.sqrt(tmp)));\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[] score = new double[n];",
"score",
"new double[n]",
"n",
"double sum = 0.0;",
"sum",
"0.0",
"for(int i=0; i<n; i++) {\n score[i] = sc.nextDouble();\n sum += score[i];\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n score[i] = sc.nextDouble();\n sum += score[i];\n }",
"{\n score[i] = sc.nextDouble();\n sum += score[i];\n }",
"score[i] = sc.nextDouble()",
"score[i]",
"score",
"i",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"sum += score[i]",
"sum",
"score[i]",
"score",
"i",
"double avg = sum / n;",
"avg",
"sum / n",
"sum",
"n",
"double nSum = 0.0;",
"nSum",
"0.0",
"for(int i=0; i<n; i++) {\n nSum += Math.pow(score[i]-avg, 2);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n nSum += Math.pow(score[i]-avg, 2);\n }",
"{\n nSum += Math.pow(score[i]-avg, 2);\n }",
"nSum += Math.pow(score[i]-avg, 2)",
"nSum",
"Math.pow(score[i]-avg, 2)",
"Math.pow",
"Math",
"score[i]-avg",
"score[i]",
"score",
"i",
"avg",
"2",
"double tmp = nSum / n;",
"tmp",
"nSum / n",
"nSum",
"n",
"System.out.println(String.format(\"%.9f\",Math.sqrt(tmp)))",
"System.out.println",
"System.out",
"System",
"System.out",
"String.format(\"%.9f\",Math.sqrt(tmp))",
"String.format",
"String",
"\"%.9f\"",
"Math.sqrt(tmp)",
"Math.sqrt",
"Math",
"tmp",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while(true) {\n int n = sc.nextInt();\n if(n == 0) {\n break;\n }\n\n double[] score = new double[n];\n\n double sum = 0.0;\n for(int i=0; i<n; i++) {\n score[i] = sc.nextDouble();\n sum += score[i];\n }\n\n double avg = sum / n;\n\n double nSum = 0.0;\n for(int i=0; i<n; i++) {\n nSum += Math.pow(score[i]-avg, 2);\n }\n\n double tmp = nSum / n;\n System.out.println(String.format(\"%.9f\",Math.sqrt(tmp)));\n }\n sc.close();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while(true) {\n int n = sc.nextInt();\n if(n == 0) {\n break;\n }\n\n double[] score = new double[n];\n\n double sum = 0.0;\n for(int i=0; i<n; i++) {\n score[i] = sc.nextDouble();\n sum += score[i];\n }\n\n double avg = sum / n;\n\n double nSum = 0.0;\n for(int i=0; i<n; i++) {\n nSum += Math.pow(score[i]-avg, 2);\n }\n\n double tmp = nSum / n;\n System.out.println(String.format(\"%.9f\",Math.sqrt(tmp)));\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;
}
double[] score = new double[n];
double sum = 0.0;
for(int i=0; i<n; i++) {
score[i] = sc.nextDouble();
sum += score[i];
}
double avg = sum / n;
double nSum = 0.0;
for(int i=0; i<n; i++) {
nSum += Math.pow(score[i]-avg, 2);
}
double tmp = nSum / n;
System.out.println(String.format("%.9f",Math.sqrt(tmp)));
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
3,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
41,
13,
17,
28,
13,
13,
30,
30,
0,
13,
13,
0,
13,
2,
13,
13,
0,
13,
17,
28,
13,
13,
30,
30,
0,
13,
4,
18,
13,
2,
13,
13,
17,
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
],
[
102,
5
],
[
102,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
14,
50
],
[
50,
51
],
[
14,
52
],
[
52,
53
],
[
52,
54
],
[
14,
55
],
[
55,
56
],
[
55,
57
],
[
55,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
14,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
14,
68
],
[
68,
69
],
[
68,
70
],
[
14,
71
],
[
71,
72
],
[
71,
73
],
[
71,
74
],
[
75,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
81,
82
],
[
81,
83
],
[
78,
84
],
[
14,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
93,
94
],
[
93,
95
],
[
8,
96
],
[
96,
97
],
[
97,
98
],
[
6,
99
],
[
99,
100
],
[
0,
101
],
[
101,
102
],
[
101,
103
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n while(true){\n int num = scanner.nextInt();\n if (num == 0){\n break;\n }\n\n int[] score = new int[num];\n\n for(int i = 0; i < num; i++){\n score[i] = scanner.nextInt();\n }\n\n double ave;\n double sum = 0;\n for(int s : score){\n sum += s;\n }\n ave = sum / num;\n sum = 0;\n\n for(int s : score){\n sum += Math.pow(s-ave, 2);\n }\n\n System.out.println(Math.sqrt( sum / num));\n }\n\n scanner.close();\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\n while(true){\n int num = scanner.nextInt();\n if (num == 0){\n break;\n }\n\n int[] score = new int[num];\n\n for(int i = 0; i < num; i++){\n score[i] = scanner.nextInt();\n }\n\n double ave;\n double sum = 0;\n for(int s : score){\n sum += s;\n }\n ave = sum / num;\n sum = 0;\n\n for(int s : score){\n sum += Math.pow(s-ave, 2);\n }\n\n System.out.println(Math.sqrt( sum / num));\n }\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 num = scanner.nextInt();\n if (num == 0){\n break;\n }\n\n int[] score = new int[num];\n\n for(int i = 0; i < num; i++){\n score[i] = scanner.nextInt();\n }\n\n double ave;\n double sum = 0;\n for(int s : score){\n sum += s;\n }\n ave = sum / num;\n sum = 0;\n\n for(int s : score){\n sum += Math.pow(s-ave, 2);\n }\n\n System.out.println(Math.sqrt( sum / num));\n }\n\n scanner.close();\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n\n while(true){\n int num = scanner.nextInt();\n if (num == 0){\n break;\n }\n\n int[] score = new int[num];\n\n for(int i = 0; i < num; i++){\n score[i] = scanner.nextInt();\n }\n\n double ave;\n double sum = 0;\n for(int s : score){\n sum += s;\n }\n ave = sum / num;\n sum = 0;\n\n for(int s : score){\n sum += Math.pow(s-ave, 2);\n }\n\n System.out.println(Math.sqrt( sum / num));\n }\n\n scanner.close();\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"while(true){\n int num = scanner.nextInt();\n if (num == 0){\n break;\n }\n\n int[] score = new int[num];\n\n for(int i = 0; i < num; i++){\n score[i] = scanner.nextInt();\n }\n\n double ave;\n double sum = 0;\n for(int s : score){\n sum += s;\n }\n ave = sum / num;\n sum = 0;\n\n for(int s : score){\n sum += Math.pow(s-ave, 2);\n }\n\n System.out.println(Math.sqrt( sum / num));\n }",
"true",
"{\n int num = scanner.nextInt();\n if (num == 0){\n break;\n }\n\n int[] score = new int[num];\n\n for(int i = 0; i < num; i++){\n score[i] = scanner.nextInt();\n }\n\n double ave;\n double sum = 0;\n for(int s : score){\n sum += s;\n }\n ave = sum / num;\n sum = 0;\n\n for(int s : score){\n sum += Math.pow(s-ave, 2);\n }\n\n System.out.println(Math.sqrt( sum / num));\n }",
"int num = scanner.nextInt();",
"num",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"if (num == 0){\n break;\n }",
"num == 0",
"num",
"0",
"{\n break;\n }",
"break;",
"int[] score = new int[num];",
"score",
"new int[num]",
"num",
"for(int i = 0; i < num; i++){\n score[i] = scanner.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n score[i] = scanner.nextInt();\n }",
"{\n score[i] = scanner.nextInt();\n }",
"score[i] = scanner.nextInt()",
"score[i]",
"score",
"i",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"double ave;",
"ave",
"double sum = 0;",
"sum",
"0",
"for(int s : score){\n sum += s;\n }",
"int s",
"score",
"{\n sum += s;\n }",
"{\n sum += s;\n }",
"sum += s",
"sum",
"s",
"ave = sum / num",
"ave",
"sum / num",
"sum",
"num",
"sum = 0",
"sum",
"0",
"for(int s : score){\n sum += Math.pow(s-ave, 2);\n }",
"int s",
"score",
"{\n sum += Math.pow(s-ave, 2);\n }",
"{\n sum += Math.pow(s-ave, 2);\n }",
"sum += Math.pow(s-ave, 2)",
"sum",
"Math.pow(s-ave, 2)",
"Math.pow",
"Math",
"s-ave",
"s",
"ave",
"2",
"System.out.println(Math.sqrt( sum / num))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.sqrt( sum / num)",
"Math.sqrt",
"Math",
"sum / num",
"sum",
"num",
"scanner.close()",
"scanner.close",
"scanner",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n while(true){\n int num = scanner.nextInt();\n if (num == 0){\n break;\n }\n\n int[] score = new int[num];\n\n for(int i = 0; i < num; i++){\n score[i] = scanner.nextInt();\n }\n\n double ave;\n double sum = 0;\n for(int s : score){\n sum += s;\n }\n ave = sum / num;\n sum = 0;\n\n for(int s : score){\n sum += Math.pow(s-ave, 2);\n }\n\n System.out.println(Math.sqrt( sum / num));\n }\n\n scanner.close();\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n while(true){\n int num = scanner.nextInt();\n if (num == 0){\n break;\n }\n\n int[] score = new int[num];\n\n for(int i = 0; i < num; i++){\n score[i] = scanner.nextInt();\n }\n\n double ave;\n double sum = 0;\n for(int s : score){\n sum += s;\n }\n ave = sum / num;\n sum = 0;\n\n for(int s : score){\n sum += Math.pow(s-ave, 2);\n }\n\n System.out.println(Math.sqrt( sum / num));\n }\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 num = scanner.nextInt();
if (num == 0){
break;
}
int[] score = new int[num];
for(int i = 0; i < num; i++){
score[i] = scanner.nextInt();
}
double ave;
double sum = 0;
for(int s : score){
sum += s;
}
ave = sum / num;
sum = 0;
for(int s : score){
sum += Math.pow(s-ave, 2);
}
System.out.println(Math.sqrt( sum / num));
}
scanner.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
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,
0,
13,
2,
2,
18,
13,
13,
13,
2,
18,
13,
13,
13,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
13,
0,
13,
17,
0,
13,
17,
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
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
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
],
[
29,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
29,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
64,
72
],
[
72,
73
],
[
73,
74
],
[
64,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
78,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
29,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
91,
93
],
[
29,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
29,
103
],
[
103,
104
],
[
103,
105
],
[
29,
106
],
[
106,
107
],
[
106,
108
],
[
29,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
6,
114
],
[
114,
115
]
] | [
"import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt(),sum=0;\n double ave,tmpsum=0;\n while(n!=0){\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 ave = (double)sum/n;\n for(int i=0;i<n;i++) tmpsum += (s[i]-ave)*(s[i]-ave);\n ave = tmpsum/n;\n System.out.println(Math.sqrt(ave));\n sum = 0;\n tmpsum = 0;\n n = sc.nextInt();\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt(),sum=0;\n double ave,tmpsum=0;\n while(n!=0){\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 ave = (double)sum/n;\n for(int i=0;i<n;i++) tmpsum += (s[i]-ave)*(s[i]-ave);\n ave = tmpsum/n;\n System.out.println(Math.sqrt(ave));\n sum = 0;\n tmpsum = 0;\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(),sum=0;\n double ave,tmpsum=0;\n while(n!=0){\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 ave = (double)sum/n;\n for(int i=0;i<n;i++) tmpsum += (s[i]-ave)*(s[i]-ave);\n ave = tmpsum/n;\n System.out.println(Math.sqrt(ave));\n sum = 0;\n tmpsum = 0;\n n = sc.nextInt();\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt(),sum=0;\n double ave,tmpsum=0;\n while(n!=0){\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 ave = (double)sum/n;\n for(int i=0;i<n;i++) tmpsum += (s[i]-ave)*(s[i]-ave);\n ave = tmpsum/n;\n System.out.println(Math.sqrt(ave));\n sum = 0;\n tmpsum = 0;\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",
"sum=0;",
"sum",
"0",
"double ave",
"ave",
"tmpsum=0;",
"tmpsum",
"0",
"while(n!=0){\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 ave = (double)sum/n;\n for(int i=0;i<n;i++) tmpsum += (s[i]-ave)*(s[i]-ave);\n ave = tmpsum/n;\n System.out.println(Math.sqrt(ave));\n sum = 0;\n tmpsum = 0;\n n = sc.nextInt();\n }",
"n!=0",
"n",
"0",
"{\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 ave = (double)sum/n;\n for(int i=0;i<n;i++) tmpsum += (s[i]-ave)*(s[i]-ave);\n ave = tmpsum/n;\n System.out.println(Math.sqrt(ave));\n sum = 0;\n tmpsum = 0;\n n = sc.nextInt();\n }",
"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",
"ave = (double)sum/n",
"ave",
"(double)sum/n",
"(double)sum",
"n",
"for(int i=0;i<n;i++) tmpsum += (s[i]-ave)*(s[i]-ave);",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"tmpsum += (s[i]-ave)*(s[i]-ave);",
"tmpsum += (s[i]-ave)*(s[i]-ave)",
"tmpsum",
"(s[i]-ave)*(s[i]-ave)",
"(s[i]-ave)",
"s[i]",
"s",
"i",
"ave",
"(s[i]-ave)",
"s[i]",
"s",
"i",
"ave",
"ave = tmpsum/n",
"ave",
"tmpsum/n",
"tmpsum",
"n",
"System.out.println(Math.sqrt(ave))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.sqrt(ave)",
"Math.sqrt",
"Math",
"ave",
"sum = 0",
"sum",
"0",
"tmpsum = 0",
"tmpsum",
"0",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String[] args",
"args"
] | import java.util.Scanner;
class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt(),sum=0;
double ave,tmpsum=0;
while(n!=0){
int [] s = new int[n];
for(int i=0;i<n;i++) {
s[i] = sc.nextInt();
sum += s[i];
}
ave = (double)sum/n;
for(int i=0;i<n;i++) tmpsum += (s[i]-ave)*(s[i]-ave);
ave = tmpsum/n;
System.out.println(Math.sqrt(ave));
sum = 0;
tmpsum = 0;
n = sc.nextInt();
}
}
}
|
[
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,
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,
4,
18,
13,
13,
4,
18,
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,
4,
18,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
127,
5
],
[
127,
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
],
[
34,
36
],
[
14,
37
],
[
37,
38
],
[
37,
39
],
[
14,
40
],
[
40,
41
],
[
40,
42
],
[
14,
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
],
[
14,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
70,
75
],
[
75,
76
],
[
76,
77
],
[
75,
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
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
94,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
14,
105
],
[
105,
106
],
[
105,
107
],
[
14,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
14,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
119,
123
],
[
6,
124
],
[
124,
125
],
[
0,
126
],
[
126,
127
],
[
126,
128
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n\n Scanner scn = new Scanner(System.in);\n\n while(true){\n int count = scn.nextInt();\n\n if(count == 0) break;\n\n int [] array;\n array = new int[count];\n\n int sum = 0;\n Double ave = 0.0;\n Double ans = 0.0;\n Double answer = 0.0;\n\n\n for(int i = 0; i < count; i++){\n array[i] = scn.nextInt();\n sum += array[i];\n }\n\n ave = Double.valueOf(sum) / Double.valueOf(count);\n\n for(int i = 0; i < count; i++){\n ans += (array[i] - ave) * (array[i] - ave);\n }\n ans /= count;\n answer = Math.sqrt(ans);\n\n System.out.println(String.format(\"%.8f\", answer));\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 scn = new Scanner(System.in);\n\n while(true){\n int count = scn.nextInt();\n\n if(count == 0) break;\n\n int [] array;\n array = new int[count];\n\n int sum = 0;\n Double ave = 0.0;\n Double ans = 0.0;\n Double answer = 0.0;\n\n\n for(int i = 0; i < count; i++){\n array[i] = scn.nextInt();\n sum += array[i];\n }\n\n ave = Double.valueOf(sum) / Double.valueOf(count);\n\n for(int i = 0; i < count; i++){\n ans += (array[i] - ave) * (array[i] - ave);\n }\n ans /= count;\n answer = Math.sqrt(ans);\n\n System.out.println(String.format(\"%.8f\", answer));\n\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n\n Scanner scn = new Scanner(System.in);\n\n while(true){\n int count = scn.nextInt();\n\n if(count == 0) break;\n\n int [] array;\n array = new int[count];\n\n int sum = 0;\n Double ave = 0.0;\n Double ans = 0.0;\n Double answer = 0.0;\n\n\n for(int i = 0; i < count; i++){\n array[i] = scn.nextInt();\n sum += array[i];\n }\n\n ave = Double.valueOf(sum) / Double.valueOf(count);\n\n for(int i = 0; i < count; i++){\n ans += (array[i] - ave) * (array[i] - ave);\n }\n ans /= count;\n answer = Math.sqrt(ans);\n\n System.out.println(String.format(\"%.8f\", answer));\n\n }\n }",
"main",
"{\n\n Scanner scn = new Scanner(System.in);\n\n while(true){\n int count = scn.nextInt();\n\n if(count == 0) break;\n\n int [] array;\n array = new int[count];\n\n int sum = 0;\n Double ave = 0.0;\n Double ans = 0.0;\n Double answer = 0.0;\n\n\n for(int i = 0; i < count; i++){\n array[i] = scn.nextInt();\n sum += array[i];\n }\n\n ave = Double.valueOf(sum) / Double.valueOf(count);\n\n for(int i = 0; i < count; i++){\n ans += (array[i] - ave) * (array[i] - ave);\n }\n ans /= count;\n answer = Math.sqrt(ans);\n\n System.out.println(String.format(\"%.8f\", answer));\n\n }\n }",
"Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"while(true){\n int count = scn.nextInt();\n\n if(count == 0) break;\n\n int [] array;\n array = new int[count];\n\n int sum = 0;\n Double ave = 0.0;\n Double ans = 0.0;\n Double answer = 0.0;\n\n\n for(int i = 0; i < count; i++){\n array[i] = scn.nextInt();\n sum += array[i];\n }\n\n ave = Double.valueOf(sum) / Double.valueOf(count);\n\n for(int i = 0; i < count; i++){\n ans += (array[i] - ave) * (array[i] - ave);\n }\n ans /= count;\n answer = Math.sqrt(ans);\n\n System.out.println(String.format(\"%.8f\", answer));\n\n }",
"true",
"{\n int count = scn.nextInt();\n\n if(count == 0) break;\n\n int [] array;\n array = new int[count];\n\n int sum = 0;\n Double ave = 0.0;\n Double ans = 0.0;\n Double answer = 0.0;\n\n\n for(int i = 0; i < count; i++){\n array[i] = scn.nextInt();\n sum += array[i];\n }\n\n ave = Double.valueOf(sum) / Double.valueOf(count);\n\n for(int i = 0; i < count; i++){\n ans += (array[i] - ave) * (array[i] - ave);\n }\n ans /= count;\n answer = Math.sqrt(ans);\n\n System.out.println(String.format(\"%.8f\", answer));\n\n }",
"int count = scn.nextInt();",
"count",
"scn.nextInt()",
"scn.nextInt",
"scn",
"if(count == 0) break;",
"count == 0",
"count",
"0",
"break;",
"int [] array;",
"array",
"array = new int[count]",
"array",
"new int[count]",
"count",
"int sum = 0;",
"sum",
"0",
"Double ave = 0.0;",
"ave",
"0.0",
"Double ans = 0.0;",
"ans",
"0.0",
"Double answer = 0.0;",
"answer",
"0.0",
"for(int i = 0; i < count; i++){\n array[i] = scn.nextInt();\n sum += array[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < count",
"i",
"count",
"i++",
"i++",
"i",
"{\n array[i] = scn.nextInt();\n sum += array[i];\n }",
"{\n array[i] = scn.nextInt();\n sum += array[i];\n }",
"array[i] = scn.nextInt()",
"array[i]",
"array",
"i",
"scn.nextInt()",
"scn.nextInt",
"scn",
"sum += array[i]",
"sum",
"array[i]",
"array",
"i",
"ave = Double.valueOf(sum) / Double.valueOf(count)",
"ave",
"Double.valueOf(sum) / Double.valueOf(count)",
"Double.valueOf(sum)",
"Double.valueOf",
"Double",
"sum",
"Double.valueOf(count)",
"Double.valueOf",
"Double",
"count",
"for(int i = 0; i < count; i++){\n ans += (array[i] - ave) * (array[i] - ave);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < count",
"i",
"count",
"i++",
"i++",
"i",
"{\n ans += (array[i] - ave) * (array[i] - ave);\n }",
"{\n ans += (array[i] - ave) * (array[i] - ave);\n }",
"ans += (array[i] - ave) * (array[i] - ave)",
"ans",
"(array[i] - ave) * (array[i] - ave)",
"(array[i] - ave)",
"array[i]",
"array",
"i",
"ave",
"(array[i] - ave)",
"array[i]",
"array",
"i",
"ave",
"ans /= count",
"ans",
"count",
"answer = Math.sqrt(ans)",
"answer",
"Math.sqrt(ans)",
"Math.sqrt",
"Math",
"ans",
"System.out.println(String.format(\"%.8f\", answer))",
"System.out.println",
"System.out",
"System",
"System.out",
"String.format(\"%.8f\", answer)",
"String.format",
"String",
"\"%.8f\"",
"answer",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n\n Scanner scn = new Scanner(System.in);\n\n while(true){\n int count = scn.nextInt();\n\n if(count == 0) break;\n\n int [] array;\n array = new int[count];\n\n int sum = 0;\n Double ave = 0.0;\n Double ans = 0.0;\n Double answer = 0.0;\n\n\n for(int i = 0; i < count; i++){\n array[i] = scn.nextInt();\n sum += array[i];\n }\n\n ave = Double.valueOf(sum) / Double.valueOf(count);\n\n for(int i = 0; i < count; i++){\n ans += (array[i] - ave) * (array[i] - ave);\n }\n ans /= count;\n answer = Math.sqrt(ans);\n\n System.out.println(String.format(\"%.8f\", answer));\n\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n\n Scanner scn = new Scanner(System.in);\n\n while(true){\n int count = scn.nextInt();\n\n if(count == 0) break;\n\n int [] array;\n array = new int[count];\n\n int sum = 0;\n Double ave = 0.0;\n Double ans = 0.0;\n Double answer = 0.0;\n\n\n for(int i = 0; i < count; i++){\n array[i] = scn.nextInt();\n sum += array[i];\n }\n\n ave = Double.valueOf(sum) / Double.valueOf(count);\n\n for(int i = 0; i < count; i++){\n ans += (array[i] - ave) * (array[i] - ave);\n }\n ans /= count;\n answer = Math.sqrt(ans);\n\n System.out.println(String.format(\"%.8f\", answer));\n\n }\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
while(true){
int count = scn.nextInt();
if(count == 0) break;
int [] array;
array = new int[count];
int sum = 0;
Double ave = 0.0;
Double ans = 0.0;
Double answer = 0.0;
for(int i = 0; i < count; i++){
array[i] = scn.nextInt();
sum += array[i];
}
ave = Double.valueOf(sum) / Double.valueOf(count);
for(int i = 0; i < count; i++){
ans += (array[i] - ave) * (array[i] - ave);
}
ans /= count;
answer = Math.sqrt(ans);
System.out.println(String.format("%.8f", answer));
}
}
}
|
[
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,
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,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
2,
18,
13,
13,
13,
2,
18,
13,
13,
13,
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
],
[
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
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
61,
71
],
[
71,
72
],
[
72,
73
],
[
61,
74
],
[
75,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
14,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
14,
86
],
[
86,
87
],
[
86,
88
],
[
14,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
96,
98
],
[
89,
99
],
[
99,
100
],
[
100,
101
],
[
89,
102
],
[
103,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
106,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
14,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
119,
121
],
[
14,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
127,
128
],
[
128,
129
],
[
127,
130
],
[
6,
131
],
[
131,
132
],
[
0,
133
],
[
133,
134
],
[
133,
135
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = sc.nextInt();\n\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] scores = new int[n];\n\t\t\tfor (int i = 0; i < scores.length; i++) {\n\t\t\t\tscores[i] = sc.nextInt();\n\n\t\t\t}\n\n\t\t\tdouble average = 0, variance = 0, sum = 0;\n\n\t\t\tfor (int i = 0; i < scores.length; i++) {\n\t\t\t\tsum += scores[i];\n\n\t\t\t}\n\n\t\t\taverage = sum / n;\n\n\t\t\tsum = 0;\n\n\t\t\tfor (int i = 0; i < scores.length; i++) {\n\t\t\t\tsum += (scores[i] - average) * (scores[i] - average);\n\n\t\t\t}\n\n\t\t\tvariance = sum / n;\n\n\t\t\tSystem.out.println(Math.sqrt(variance));\n\n\t\t}\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = sc.nextInt();\n\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] scores = new int[n];\n\t\t\tfor (int i = 0; i < scores.length; i++) {\n\t\t\t\tscores[i] = sc.nextInt();\n\n\t\t\t}\n\n\t\t\tdouble average = 0, variance = 0, sum = 0;\n\n\t\t\tfor (int i = 0; i < scores.length; i++) {\n\t\t\t\tsum += scores[i];\n\n\t\t\t}\n\n\t\t\taverage = sum / n;\n\n\t\t\tsum = 0;\n\n\t\t\tfor (int i = 0; i < scores.length; i++) {\n\t\t\t\tsum += (scores[i] - average) * (scores[i] - average);\n\n\t\t\t}\n\n\t\t\tvariance = sum / n;\n\n\t\t\tSystem.out.println(Math.sqrt(variance));\n\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = sc.nextInt();\n\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] scores = new int[n];\n\t\t\tfor (int i = 0; i < scores.length; i++) {\n\t\t\t\tscores[i] = sc.nextInt();\n\n\t\t\t}\n\n\t\t\tdouble average = 0, variance = 0, sum = 0;\n\n\t\t\tfor (int i = 0; i < scores.length; i++) {\n\t\t\t\tsum += scores[i];\n\n\t\t\t}\n\n\t\t\taverage = sum / n;\n\n\t\t\tsum = 0;\n\n\t\t\tfor (int i = 0; i < scores.length; i++) {\n\t\t\t\tsum += (scores[i] - average) * (scores[i] - average);\n\n\t\t\t}\n\n\t\t\tvariance = sum / n;\n\n\t\t\tSystem.out.println(Math.sqrt(variance));\n\n\t\t}\n\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = sc.nextInt();\n\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] scores = new int[n];\n\t\t\tfor (int i = 0; i < scores.length; i++) {\n\t\t\t\tscores[i] = sc.nextInt();\n\n\t\t\t}\n\n\t\t\tdouble average = 0, variance = 0, sum = 0;\n\n\t\t\tfor (int i = 0; i < scores.length; i++) {\n\t\t\t\tsum += scores[i];\n\n\t\t\t}\n\n\t\t\taverage = sum / n;\n\n\t\t\tsum = 0;\n\n\t\t\tfor (int i = 0; i < scores.length; i++) {\n\t\t\t\tsum += (scores[i] - average) * (scores[i] - average);\n\n\t\t\t}\n\n\t\t\tvariance = sum / n;\n\n\t\t\tSystem.out.println(Math.sqrt(variance));\n\n\t\t}\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while (true) {\n\t\t\tint n = sc.nextInt();\n\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] scores = new int[n];\n\t\t\tfor (int i = 0; i < scores.length; i++) {\n\t\t\t\tscores[i] = sc.nextInt();\n\n\t\t\t}\n\n\t\t\tdouble average = 0, variance = 0, sum = 0;\n\n\t\t\tfor (int i = 0; i < scores.length; i++) {\n\t\t\t\tsum += scores[i];\n\n\t\t\t}\n\n\t\t\taverage = sum / n;\n\n\t\t\tsum = 0;\n\n\t\t\tfor (int i = 0; i < scores.length; i++) {\n\t\t\t\tsum += (scores[i] - average) * (scores[i] - average);\n\n\t\t\t}\n\n\t\t\tvariance = sum / n;\n\n\t\t\tSystem.out.println(Math.sqrt(variance));\n\n\t\t}",
"true",
"{\n\t\t\tint n = sc.nextInt();\n\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] scores = new int[n];\n\t\t\tfor (int i = 0; i < scores.length; i++) {\n\t\t\t\tscores[i] = sc.nextInt();\n\n\t\t\t}\n\n\t\t\tdouble average = 0, variance = 0, sum = 0;\n\n\t\t\tfor (int i = 0; i < scores.length; i++) {\n\t\t\t\tsum += scores[i];\n\n\t\t\t}\n\n\t\t\taverage = sum / n;\n\n\t\t\tsum = 0;\n\n\t\t\tfor (int i = 0; i < scores.length; i++) {\n\t\t\t\tsum += (scores[i] - average) * (scores[i] - average);\n\n\t\t\t}\n\n\t\t\tvariance = sum / n;\n\n\t\t\tSystem.out.println(Math.sqrt(variance));\n\n\t\t}",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}",
"n == 0",
"n",
"0",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"int[] scores = new int[n];",
"scores",
"new int[n]",
"n",
"for (int i = 0; i < scores.length; i++) {\n\t\t\t\tscores[i] = sc.nextInt();\n\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < scores.length",
"i",
"scores.length",
"scores",
"scores.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tscores[i] = sc.nextInt();\n\n\t\t\t}",
"{\n\t\t\t\tscores[i] = sc.nextInt();\n\n\t\t\t}",
"scores[i] = sc.nextInt()",
"scores[i]",
"scores",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double average = 0",
"average",
"0",
"variance = 0",
"variance",
"0",
"sum = 0;",
"sum",
"0",
"for (int i = 0; i < scores.length; i++) {\n\t\t\t\tsum += scores[i];\n\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < scores.length",
"i",
"scores.length",
"scores",
"scores.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tsum += scores[i];\n\n\t\t\t}",
"{\n\t\t\t\tsum += scores[i];\n\n\t\t\t}",
"sum += scores[i]",
"sum",
"scores[i]",
"scores",
"i",
"average = sum / n",
"average",
"sum / n",
"sum",
"n",
"sum = 0",
"sum",
"0",
"for (int i = 0; i < scores.length; i++) {\n\t\t\t\tsum += (scores[i] - average) * (scores[i] - average);\n\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < scores.length",
"i",
"scores.length",
"scores",
"scores.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tsum += (scores[i] - average) * (scores[i] - average);\n\n\t\t\t}",
"{\n\t\t\t\tsum += (scores[i] - average) * (scores[i] - average);\n\n\t\t\t}",
"sum += (scores[i] - average) * (scores[i] - average)",
"sum",
"(scores[i] - average) * (scores[i] - average)",
"(scores[i] - average)",
"scores[i]",
"scores",
"i",
"average",
"(scores[i] - average)",
"scores[i]",
"scores",
"i",
"average",
"variance = sum / n",
"variance",
"sum / n",
"sum",
"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\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = sc.nextInt();\n\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] scores = new int[n];\n\t\t\tfor (int i = 0; i < scores.length; i++) {\n\t\t\t\tscores[i] = sc.nextInt();\n\n\t\t\t}\n\n\t\t\tdouble average = 0, variance = 0, sum = 0;\n\n\t\t\tfor (int i = 0; i < scores.length; i++) {\n\t\t\t\tsum += scores[i];\n\n\t\t\t}\n\n\t\t\taverage = sum / n;\n\n\t\t\tsum = 0;\n\n\t\t\tfor (int i = 0; i < scores.length; i++) {\n\t\t\t\tsum += (scores[i] - average) * (scores[i] - average);\n\n\t\t\t}\n\n\t\t\tvariance = sum / n;\n\n\t\t\tSystem.out.println(Math.sqrt(variance));\n\n\t\t}\n\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = sc.nextInt();\n\n\t\t\tif (n == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint[] scores = new int[n];\n\t\t\tfor (int i = 0; i < scores.length; i++) {\n\t\t\t\tscores[i] = sc.nextInt();\n\n\t\t\t}\n\n\t\t\tdouble average = 0, variance = 0, sum = 0;\n\n\t\t\tfor (int i = 0; i < scores.length; i++) {\n\t\t\t\tsum += scores[i];\n\n\t\t\t}\n\n\t\t\taverage = sum / n;\n\n\t\t\tsum = 0;\n\n\t\t\tfor (int i = 0; i < scores.length; i++) {\n\t\t\t\tsum += (scores[i] - average) * (scores[i] - average);\n\n\t\t\t}\n\n\t\t\tvariance = sum / n;\n\n\t\t\tSystem.out.println(Math.sqrt(variance));\n\n\t\t}\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) {
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, sum = 0;
for (int i = 0; i < scores.length; i++) {
sum += scores[i];
}
average = sum / n;
sum = 0;
for (int i = 0; i < scores.length; i++) {
sum += (scores[i] - average) * (scores[i] - average);
}
variance = sum / 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,
4,
18,
13,
42,
2,
13,
17,
30,
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,
0,
13,
2,
2,
18,
13,
13,
13,
2,
18,
13,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
2,
13,
13,
0,
13,
4,
18,
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
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
21,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
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
],
[
41,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
25,
54
],
[
54,
55
],
[
54,
56
],
[
25,
57
],
[
57,
58
],
[
57,
59
],
[
25,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
60,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
74,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
25,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
93,
94
],
[
93,
95
],
[
25,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
6,
101
],
[
101,
102
],
[
0,
103
],
[
103,
104
],
[
103,
105
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args ) {\n Scanner scanner = new Scanner(System.in);\n int[] a = new int[1000];\n\n int n = scanner.nextInt();\n while(n != 0) {\n double ave = 0;\n for (int i = 0; i < n; i++) {\n a[i] = scanner.nextInt();\n ave += a[i];\n }\n ave /= n;\n double S = 0;\n for (int i = 0; i < n; i++)\n S += (a[i] - ave) * (a[i] - ave);\n System.out.println(Math.sqrt(S / n));\n n = scanner.nextInt();\n }\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[] a = new int[1000];\n\n int n = scanner.nextInt();\n while(n != 0) {\n double ave = 0;\n for (int i = 0; i < n; i++) {\n a[i] = scanner.nextInt();\n ave += a[i];\n }\n ave /= n;\n double S = 0;\n for (int i = 0; i < n; i++)\n S += (a[i] - ave) * (a[i] - ave);\n System.out.println(Math.sqrt(S / n));\n n = scanner.nextInt();\n }\n }\n}",
"Main",
"public static void main(String[] args ) {\n Scanner scanner = new Scanner(System.in);\n int[] a = new int[1000];\n\n int n = scanner.nextInt();\n while(n != 0) {\n double ave = 0;\n for (int i = 0; i < n; i++) {\n a[i] = scanner.nextInt();\n ave += a[i];\n }\n ave /= n;\n double S = 0;\n for (int i = 0; i < n; i++)\n S += (a[i] - ave) * (a[i] - ave);\n System.out.println(Math.sqrt(S / n));\n n = scanner.nextInt();\n }\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n int[] a = new int[1000];\n\n int n = scanner.nextInt();\n while(n != 0) {\n double ave = 0;\n for (int i = 0; i < n; i++) {\n a[i] = scanner.nextInt();\n ave += a[i];\n }\n ave /= n;\n double S = 0;\n for (int i = 0; i < n; i++)\n S += (a[i] - ave) * (a[i] - ave);\n System.out.println(Math.sqrt(S / n));\n n = scanner.nextInt();\n }\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int[] a = new int[1000];",
"a",
"new int[1000]",
"1000",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"while(n != 0) {\n double ave = 0;\n for (int i = 0; i < n; i++) {\n a[i] = scanner.nextInt();\n ave += a[i];\n }\n ave /= n;\n double S = 0;\n for (int i = 0; i < n; i++)\n S += (a[i] - ave) * (a[i] - ave);\n System.out.println(Math.sqrt(S / n));\n n = scanner.nextInt();\n }",
"n != 0",
"n",
"0",
"{\n double ave = 0;\n for (int i = 0; i < n; i++) {\n a[i] = scanner.nextInt();\n ave += a[i];\n }\n ave /= n;\n double S = 0;\n for (int i = 0; i < n; i++)\n S += (a[i] - ave) * (a[i] - ave);\n System.out.println(Math.sqrt(S / n));\n n = scanner.nextInt();\n }",
"double ave = 0;",
"ave",
"0",
"for (int i = 0; i < n; i++) {\n a[i] = scanner.nextInt();\n ave += a[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a[i] = scanner.nextInt();\n ave += a[i];\n }",
"{\n a[i] = scanner.nextInt();\n ave += a[i];\n }",
"a[i] = scanner.nextInt()",
"a[i]",
"a",
"i",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"ave += a[i]",
"ave",
"a[i]",
"a",
"i",
"ave /= n",
"ave",
"n",
"double S = 0;",
"S",
"0",
"for (int i = 0; i < n; i++)\n S += (a[i] - ave) * (a[i] - ave);",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"S += (a[i] - ave) * (a[i] - ave);",
"S += (a[i] - ave) * (a[i] - ave)",
"S",
"(a[i] - ave) * (a[i] - ave)",
"(a[i] - ave)",
"a[i]",
"a",
"i",
"ave",
"(a[i] - ave)",
"a[i]",
"a",
"i",
"ave",
"System.out.println(Math.sqrt(S / n))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.sqrt(S / n)",
"Math.sqrt",
"Math",
"S / n",
"S",
"n",
"n = scanner.nextInt()",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args ) {\n Scanner scanner = new Scanner(System.in);\n int[] a = new int[1000];\n\n int n = scanner.nextInt();\n while(n != 0) {\n double ave = 0;\n for (int i = 0; i < n; i++) {\n a[i] = scanner.nextInt();\n ave += a[i];\n }\n ave /= n;\n double S = 0;\n for (int i = 0; i < n; i++)\n S += (a[i] - ave) * (a[i] - ave);\n System.out.println(Math.sqrt(S / n));\n n = scanner.nextInt();\n }\n }\n}",
"public class Main {\n public static void main(String[] args ) {\n Scanner scanner = new Scanner(System.in);\n int[] a = new int[1000];\n\n int n = scanner.nextInt();\n while(n != 0) {\n double ave = 0;\n for (int i = 0; i < n; i++) {\n a[i] = scanner.nextInt();\n ave += a[i];\n }\n ave /= n;\n double S = 0;\n for (int i = 0; i < n; i++)\n S += (a[i] - ave) * (a[i] - ave);\n System.out.println(Math.sqrt(S / n));\n n = scanner.nextInt();\n }\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args ) {
Scanner scanner = new Scanner(System.in);
int[] a = new int[1000];
int n = scanner.nextInt();
while(n != 0) {
double ave = 0;
for (int i = 0; i < n; i++) {
a[i] = scanner.nextInt();
ave += a[i];
}
ave /= n;
double S = 0;
for (int i = 0; i < n; i++)
S += (a[i] - ave) * (a[i] - ave);
System.out.println(Math.sqrt(S / n));
n = scanner.nextInt();
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
3,
41,
13,
0,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
18,
13,
13,
0,
13,
2,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
2,
18,
13,
13,
13,
2,
18,
13,
13,
13,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
133,
5
],
[
133,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
15,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
19,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
29,
30
],
[
19,
31
],
[
31,
32
],
[
19,
33
],
[
33,
34
],
[
33,
35
],
[
19,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
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
],
[
19,
57
],
[
57,
58
],
[
57,
59
],
[
19,
60
],
[
60,
61
],
[
60,
62
],
[
19,
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
],
[
19,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
19,
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
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
101,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
19,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
114,
116
],
[
19,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
117,
123
],
[
123,
124
],
[
124,
125
],
[
123,
126
],
[
8,
127
],
[
127,
128
],
[
128,
129
],
[
6,
130
],
[
130,
131
],
[
0,
132
],
[
132,
133
],
[
132,
134
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n=1;\n\n while(n!=0){\n n = sc.nextInt();\n if(n==0) {\n break;\n }\n int [] s;\n s = new int [n];\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n }\n double var=0,ave=0;\n for(int i=0;i<n;i++){\n ave += s[i];\n }\n ave = (double)ave/n;\n\n for(int i=0;i<n;i++){\n var += ((double)s[i]-ave)*((double)s[i]-ave);\n }\n var = var/n;\n System.out.printf(\"%.8f\\n\",Math.sqrt(var));\n }\n sc.close();\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n=1;\n\n while(n!=0){\n n = sc.nextInt();\n if(n==0) {\n break;\n }\n int [] s;\n s = new int [n];\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n }\n double var=0,ave=0;\n for(int i=0;i<n;i++){\n ave += s[i];\n }\n ave = (double)ave/n;\n\n for(int i=0;i<n;i++){\n var += ((double)s[i]-ave)*((double)s[i]-ave);\n }\n var = var/n;\n System.out.printf(\"%.8f\\n\",Math.sqrt(var));\n }\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n=1;\n\n while(n!=0){\n n = sc.nextInt();\n if(n==0) {\n break;\n }\n int [] s;\n s = new int [n];\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n }\n double var=0,ave=0;\n for(int i=0;i<n;i++){\n ave += s[i];\n }\n ave = (double)ave/n;\n\n for(int i=0;i<n;i++){\n var += ((double)s[i]-ave)*((double)s[i]-ave);\n }\n var = var/n;\n System.out.printf(\"%.8f\\n\",Math.sqrt(var));\n }\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n=1;\n\n while(n!=0){\n n = sc.nextInt();\n if(n==0) {\n break;\n }\n int [] s;\n s = new int [n];\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n }\n double var=0,ave=0;\n for(int i=0;i<n;i++){\n ave += s[i];\n }\n ave = (double)ave/n;\n\n for(int i=0;i<n;i++){\n var += ((double)s[i]-ave)*((double)s[i]-ave);\n }\n var = var/n;\n System.out.printf(\"%.8f\\n\",Math.sqrt(var));\n }\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=1;",
"n",
"1",
"while(n!=0){\n n = sc.nextInt();\n if(n==0) {\n break;\n }\n int [] s;\n s = new int [n];\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n }\n double var=0,ave=0;\n for(int i=0;i<n;i++){\n ave += s[i];\n }\n ave = (double)ave/n;\n\n for(int i=0;i<n;i++){\n var += ((double)s[i]-ave)*((double)s[i]-ave);\n }\n var = var/n;\n System.out.printf(\"%.8f\\n\",Math.sqrt(var));\n }",
"n!=0",
"n",
"0",
"{\n n = sc.nextInt();\n if(n==0) {\n break;\n }\n int [] s;\n s = new int [n];\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n }\n double var=0,ave=0;\n for(int i=0;i<n;i++){\n ave += s[i];\n }\n ave = (double)ave/n;\n\n for(int i=0;i<n;i++){\n var += ((double)s[i]-ave)*((double)s[i]-ave);\n }\n var = var/n;\n System.out.printf(\"%.8f\\n\",Math.sqrt(var));\n }",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(n==0) {\n break;\n }",
"n==0",
"n",
"0",
"{\n break;\n }",
"break;",
"int [] s;",
"s",
"s = new int [n]",
"s",
"new int [n]",
"n",
"for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n s[i] = sc.nextInt();\n }",
"{\n s[i] = sc.nextInt();\n }",
"s[i] = sc.nextInt()",
"s[i]",
"s",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double var=0",
"var",
"0",
"ave=0;",
"ave",
"0",
"for(int i=0;i<n;i++){\n ave += s[i];\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n ave += s[i];\n }",
"{\n ave += s[i];\n }",
"ave += s[i]",
"ave",
"s[i]",
"s",
"i",
"ave = (double)ave/n",
"ave",
"(double)ave/n",
"(double)ave",
"n",
"for(int i=0;i<n;i++){\n var += ((double)s[i]-ave)*((double)s[i]-ave);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n var += ((double)s[i]-ave)*((double)s[i]-ave);\n }",
"{\n var += ((double)s[i]-ave)*((double)s[i]-ave);\n }",
"var += ((double)s[i]-ave)*((double)s[i]-ave)",
"var",
"((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",
"ave",
"var = var/n",
"var",
"var/n",
"var",
"n",
"System.out.printf(\"%.8f\\n\",Math.sqrt(var))",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%.8f\\n\"",
"Math.sqrt(var)",
"Math.sqrt",
"Math",
"var",
"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=1;\n\n while(n!=0){\n n = sc.nextInt();\n if(n==0) {\n break;\n }\n int [] s;\n s = new int [n];\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n }\n double var=0,ave=0;\n for(int i=0;i<n;i++){\n ave += s[i];\n }\n ave = (double)ave/n;\n\n for(int i=0;i<n;i++){\n var += ((double)s[i]-ave)*((double)s[i]-ave);\n }\n var = var/n;\n System.out.printf(\"%.8f\\n\",Math.sqrt(var));\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=1;\n\n while(n!=0){\n n = sc.nextInt();\n if(n==0) {\n break;\n }\n int [] s;\n s = new int [n];\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n }\n double var=0,ave=0;\n for(int i=0;i<n;i++){\n ave += s[i];\n }\n ave = (double)ave/n;\n\n for(int i=0;i<n;i++){\n var += ((double)s[i]-ave)*((double)s[i]-ave);\n }\n var = var/n;\n System.out.printf(\"%.8f\\n\",Math.sqrt(var));\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=1;
while(n!=0){
n = sc.nextInt();
if(n==0) {
break;
}
int [] s;
s = new int [n];
for(int i=0;i<n;i++){
s[i] = sc.nextInt();
}
double var=0,ave=0;
for(int i=0;i<n;i++){
ave += s[i];
}
ave = (double)ave/n;
for(int i=0;i<n;i++){
var += ((double)s[i]-ave)*((double)s[i]-ave);
}
var = var/n;
System.out.printf("%.8f\n",Math.sqrt(var));
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
3,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
18,
13,
13,
17,
4,
18,
13,
4,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
29,
2,
4,
13,
13,
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,
30,
0,
13,
2,
2,
18,
13,
13,
4,
13,
13,
2,
18,
13,
13,
4,
13,
13,
29,
2,
13,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
159,
5
],
[
159,
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
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
61,
63
],
[
8,
64
],
[
64,
65
],
[
65,
66
],
[
6,
67
],
[
67,
68
],
[
159,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
75,
85
],
[
85,
86
],
[
86,
87
],
[
75,
88
],
[
89,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
92,
94
],
[
71,
95
],
[
95,
96
],
[
69,
97
],
[
97,
98
],
[
159,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
107,
109
],
[
99,
110
],
[
110,
111
],
[
159,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
125,
127
],
[
118,
128
],
[
128,
129
],
[
129,
130
],
[
118,
131
],
[
132,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
140,
141
],
[
140,
142
],
[
135,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
147,
148
],
[
147,
149
],
[
114,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
153,
155
],
[
112,
156
],
[
156,
157
],
[
0,
158
],
[
158,
159
],
[
158,
160
]
] | [
"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) {\n break;\n }\n double[] s = new double[n];\n for (int i = 0; i < s.length; i++) {\n s[i] = sc.nextDouble();\n }\n System.out.printf(\"%.8f\\n\",Math.sqrt(variance(s)));\n }\n sc.close();\n }\n\n public static double sum(double[] s) {\n double sum = 0.0;\n for (int i = 0; i < s.length; i++) {\n sum += s[i];\n }\n return sum;\n }\n\n public static double average(double[] s) {\n return sum(s) / (double)s.length;\n }\n\n public static double variance(double[] s) {\n double sum = 0;\n for (int i = 0; i < s.length; i++) {\n sum += (s[i] - average(s)) * (s[i] - average(s));\n }\n return sum / (double)s.length;\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 double[] s = new double[n];\n for (int i = 0; i < s.length; i++) {\n s[i] = sc.nextDouble();\n }\n System.out.printf(\"%.8f\\n\",Math.sqrt(variance(s)));\n }\n sc.close();\n }\n\n public static double sum(double[] s) {\n double sum = 0.0;\n for (int i = 0; i < s.length; i++) {\n sum += s[i];\n }\n return sum;\n }\n\n public static double average(double[] s) {\n return sum(s) / (double)s.length;\n }\n\n public static double variance(double[] s) {\n double sum = 0;\n for (int i = 0; i < s.length; i++) {\n sum += (s[i] - average(s)) * (s[i] - average(s));\n }\n return sum / (double)s.length;\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 double[] s = new double[n];\n for (int i = 0; i < s.length; i++) {\n s[i] = sc.nextDouble();\n }\n System.out.printf(\"%.8f\\n\",Math.sqrt(variance(s)));\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 for (int i = 0; i < s.length; i++) {\n s[i] = sc.nextDouble();\n }\n System.out.printf(\"%.8f\\n\",Math.sqrt(variance(s)));\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 for (int i = 0; i < s.length; i++) {\n s[i] = sc.nextDouble();\n }\n System.out.printf(\"%.8f\\n\",Math.sqrt(variance(s)));\n }",
"true",
"{\n int n = sc.nextInt();\n if (n == 0) {\n break;\n }\n double[] s = new double[n];\n for (int i = 0; i < s.length; i++) {\n s[i] = sc.nextDouble();\n }\n System.out.printf(\"%.8f\\n\",Math.sqrt(variance(s)));\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",
"for (int i = 0; i < s.length; i++) {\n s[i] = sc.nextDouble();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < s.length",
"i",
"s.length",
"s",
"s.length",
"i++",
"i++",
"i",
"{\n s[i] = sc.nextDouble();\n }",
"{\n s[i] = sc.nextDouble();\n }",
"s[i] = sc.nextDouble()",
"s[i]",
"s",
"i",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"System.out.printf(\"%.8f\\n\",Math.sqrt(variance(s)))",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%.8f\\n\"",
"Math.sqrt(variance(s))",
"Math.sqrt",
"Math",
"variance(s)",
"variance",
"s",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public static double sum(double[] s) {\n double sum = 0.0;\n for (int i = 0; i < s.length; i++) {\n sum += s[i];\n }\n return sum;\n }",
"sum",
"{\n double sum = 0.0;\n for (int i = 0; i < s.length; i++) {\n sum += s[i];\n }\n return sum;\n }",
"double sum = 0.0;",
"sum",
"0.0",
"for (int i = 0; i < s.length; i++) {\n sum += s[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < s.length",
"i",
"s.length",
"s",
"s.length",
"i++",
"i++",
"i",
"{\n sum += s[i];\n }",
"{\n sum += s[i];\n }",
"sum += s[i]",
"sum",
"s[i]",
"s",
"i",
"return sum;",
"sum",
"double[] s",
"s",
"public static double average(double[] s) {\n return sum(s) / (double)s.length;\n }",
"average",
"{\n return sum(s) / (double)s.length;\n }",
"return sum(s) / (double)s.length;",
"sum(s) / (double)s.length",
"sum(s)",
"sum",
"s",
"(double)s.length",
"s",
"s.length",
"double[] s",
"s",
"public static double variance(double[] s) {\n double sum = 0;\n for (int i = 0; i < s.length; i++) {\n sum += (s[i] - average(s)) * (s[i] - average(s));\n }\n return sum / (double)s.length;\n }",
"variance",
"{\n double sum = 0;\n for (int i = 0; i < s.length; i++) {\n sum += (s[i] - average(s)) * (s[i] - average(s));\n }\n return sum / (double)s.length;\n }",
"double sum = 0;",
"sum",
"0",
"for (int i = 0; i < s.length; i++) {\n sum += (s[i] - average(s)) * (s[i] - average(s));\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < s.length",
"i",
"s.length",
"s",
"s.length",
"i++",
"i++",
"i",
"{\n sum += (s[i] - average(s)) * (s[i] - average(s));\n }",
"{\n sum += (s[i] - average(s)) * (s[i] - average(s));\n }",
"sum += (s[i] - average(s)) * (s[i] - average(s))",
"sum",
"(s[i] - average(s)) * (s[i] - average(s))",
"(s[i] - average(s))",
"s[i]",
"s",
"i",
"average(s)",
"average",
"s",
"(s[i] - average(s))",
"s[i]",
"s",
"i",
"average(s)",
"average",
"s",
"return sum / (double)s.length;",
"sum / (double)s.length",
"sum",
"(double)s.length",
"s",
"s.length",
"double[] s",
"s",
"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 double[] s = new double[n];\n for (int i = 0; i < s.length; i++) {\n s[i] = sc.nextDouble();\n }\n System.out.printf(\"%.8f\\n\",Math.sqrt(variance(s)));\n }\n sc.close();\n }\n\n public static double sum(double[] s) {\n double sum = 0.0;\n for (int i = 0; i < s.length; i++) {\n sum += s[i];\n }\n return sum;\n }\n\n public static double average(double[] s) {\n return sum(s) / (double)s.length;\n }\n\n public static double variance(double[] s) {\n double sum = 0;\n for (int i = 0; i < s.length; i++) {\n sum += (s[i] - average(s)) * (s[i] - average(s));\n }\n return sum / (double)s.length;\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 double[] s = new double[n];\n for (int i = 0; i < s.length; i++) {\n s[i] = sc.nextDouble();\n }\n System.out.printf(\"%.8f\\n\",Math.sqrt(variance(s)));\n }\n sc.close();\n }\n\n public static double sum(double[] s) {\n double sum = 0.0;\n for (int i = 0; i < s.length; i++) {\n sum += s[i];\n }\n return sum;\n }\n\n public static double average(double[] s) {\n return sum(s) / (double)s.length;\n }\n\n public static double variance(double[] s) {\n double sum = 0;\n for (int i = 0; i < s.length; i++) {\n sum += (s[i] - average(s)) * (s[i] - average(s));\n }\n return sum / (double)s.length;\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (true) {
int n = sc.nextInt();
if (n == 0) {
break;
}
double[] s = new double[n];
for (int i = 0; i < s.length; i++) {
s[i] = sc.nextDouble();
}
System.out.printf("%.8f\n",Math.sqrt(variance(s)));
}
sc.close();
}
public static double sum(double[] s) {
double sum = 0.0;
for (int i = 0; i < s.length; i++) {
sum += s[i];
}
return sum;
}
public static double average(double[] s) {
return sum(s) / (double)s.length;
}
public static double variance(double[] s) {
double sum = 0;
for (int i = 0; i < s.length; i++) {
sum += (s[i] - average(s)) * (s[i] - average(s));
}
return sum / (double)s.length;
}
}
|
[
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,
0,
13,
20,
13,
14,
2,
13,
17,
30,
3,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
18,
13,
13,
41,
13,
2,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
2,
18,
13,
13,
13,
17,
41,
13,
4,
18,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
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
],
[
14,
22
],
[
22,
23
],
[
22,
24
],
[
14,
25
],
[
25,
26
],
[
25,
27
],
[
14,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
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
],
[
83,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
83,
91
],
[
14,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
97,
98
],
[
97,
99
],
[
14,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
8,
106
],
[
106,
107
],
[
107,
108
],
[
6,
109
],
[
109,
110
],
[
0,
111
],
[
111,
112
],
[
111,
113
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n\n while (true) {\n int n=sc.nextInt();\n int[] num;\n int sum=0;\n num=new int[n];\n\n if (n==0) {\n break;\n }\n\n for(int i=0;i<n;i++){\n num[i]=sc.nextInt();\n sum+=num[i];\n }\n double ave=(double)sum/n;\n\n double div=0.0;\n for(int i=0;i<n;i++){\n div+=Math.pow((num[i]-ave),2);\n\n }\n double a=Math.sqrt(div/n);\n System.out.println(a);\n }\n\n sc.close();\n \n }\n \n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n\n while (true) {\n int n=sc.nextInt();\n int[] num;\n int sum=0;\n num=new int[n];\n\n if (n==0) {\n break;\n }\n\n for(int i=0;i<n;i++){\n num[i]=sc.nextInt();\n sum+=num[i];\n }\n double ave=(double)sum/n;\n\n double div=0.0;\n for(int i=0;i<n;i++){\n div+=Math.pow((num[i]-ave),2);\n\n }\n double a=Math.sqrt(div/n);\n System.out.println(a);\n }\n\n sc.close();\n \n }\n \n}",
"Main",
"public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n\n while (true) {\n int n=sc.nextInt();\n int[] num;\n int sum=0;\n num=new int[n];\n\n if (n==0) {\n break;\n }\n\n for(int i=0;i<n;i++){\n num[i]=sc.nextInt();\n sum+=num[i];\n }\n double ave=(double)sum/n;\n\n double div=0.0;\n for(int i=0;i<n;i++){\n div+=Math.pow((num[i]-ave),2);\n\n }\n double a=Math.sqrt(div/n);\n System.out.println(a);\n }\n\n sc.close();\n \n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n\n while (true) {\n int n=sc.nextInt();\n int[] num;\n int sum=0;\n num=new int[n];\n\n if (n==0) {\n break;\n }\n\n for(int i=0;i<n;i++){\n num[i]=sc.nextInt();\n sum+=num[i];\n }\n double ave=(double)sum/n;\n\n double div=0.0;\n for(int i=0;i<n;i++){\n div+=Math.pow((num[i]-ave),2);\n\n }\n double a=Math.sqrt(div/n);\n System.out.println(a);\n }\n\n sc.close();\n \n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while (true) {\n int n=sc.nextInt();\n int[] num;\n int sum=0;\n num=new int[n];\n\n if (n==0) {\n break;\n }\n\n for(int i=0;i<n;i++){\n num[i]=sc.nextInt();\n sum+=num[i];\n }\n double ave=(double)sum/n;\n\n double div=0.0;\n for(int i=0;i<n;i++){\n div+=Math.pow((num[i]-ave),2);\n\n }\n double a=Math.sqrt(div/n);\n System.out.println(a);\n }",
"true",
"{\n int n=sc.nextInt();\n int[] num;\n int sum=0;\n num=new int[n];\n\n if (n==0) {\n break;\n }\n\n for(int i=0;i<n;i++){\n num[i]=sc.nextInt();\n sum+=num[i];\n }\n double ave=(double)sum/n;\n\n double div=0.0;\n for(int i=0;i<n;i++){\n div+=Math.pow((num[i]-ave),2);\n\n }\n double a=Math.sqrt(div/n);\n System.out.println(a);\n }",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] num;",
"num",
"int sum=0;",
"sum",
"0",
"num=new int[n]",
"num",
"new int[n]",
"n",
"if (n==0) {\n break;\n }",
"n==0",
"n",
"0",
"{\n break;\n }",
"break;",
"for(int i=0;i<n;i++){\n num[i]=sc.nextInt();\n sum+=num[i];\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n num[i]=sc.nextInt();\n sum+=num[i];\n }",
"{\n num[i]=sc.nextInt();\n sum+=num[i];\n }",
"num[i]=sc.nextInt()",
"num[i]",
"num",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sum+=num[i]",
"sum",
"num[i]",
"num",
"i",
"double ave=(double)sum/n;",
"ave",
"(double)sum/n",
"(double)sum",
"n",
"double div=0.0;",
"div",
"0.0",
"for(int i=0;i<n;i++){\n div+=Math.pow((num[i]-ave),2);\n\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n div+=Math.pow((num[i]-ave),2);\n\n }",
"{\n div+=Math.pow((num[i]-ave),2);\n\n }",
"div+=Math.pow((num[i]-ave),2)",
"div",
"Math.pow((num[i]-ave),2)",
"Math.pow",
"Math",
"(num[i]-ave)",
"num[i]",
"num",
"i",
"ave",
"2",
"double a=Math.sqrt(div/n);",
"a",
"Math.sqrt(div/n)",
"Math.sqrt",
"Math",
"div/n",
"div",
"n",
"System.out.println(a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main{\n\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[] num;\n int sum=0;\n num=new int[n];\n\n if (n==0) {\n break;\n }\n\n for(int i=0;i<n;i++){\n num[i]=sc.nextInt();\n sum+=num[i];\n }\n double ave=(double)sum/n;\n\n double div=0.0;\n for(int i=0;i<n;i++){\n div+=Math.pow((num[i]-ave),2);\n\n }\n double a=Math.sqrt(div/n);\n System.out.println(a);\n }\n\n sc.close();\n \n }\n \n}",
"public class Main{\n\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[] num;\n int sum=0;\n num=new int[n];\n\n if (n==0) {\n break;\n }\n\n for(int i=0;i<n;i++){\n num[i]=sc.nextInt();\n sum+=num[i];\n }\n double ave=(double)sum/n;\n\n double div=0.0;\n for(int i=0;i<n;i++){\n div+=Math.pow((num[i]-ave),2);\n\n }\n double a=Math.sqrt(div/n);\n System.out.println(a);\n }\n\n sc.close();\n \n }\n \n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
while (true) {
int n=sc.nextInt();
int[] num;
int sum=0;
num=new int[n];
if (n==0) {
break;
}
for(int i=0;i<n;i++){
num[i]=sc.nextInt();
sum+=num[i];
}
double ave=(double)sum/n;
double div=0.0;
for(int i=0;i<n;i++){
div+=Math.pow((num[i]-ave),2);
}
double a=Math.sqrt(div/n);
System.out.println(a);
}
sc.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,
41,
13,
20,
38,
5,
13,
30,
4,
18,
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,
41,
13,
41,
13,
17,
41,
13,
11,
1,
0,
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,
0,
13,
2,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
18,
13,
13,
0,
13,
2,
13,
4,
18,
13,
2,
13,
13,
17,
4,
18,
13,
4,
18,
13,
2,
13,
13,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
4,
18,
13,
17,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
20,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
27,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
47,
48
],
[
40,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
40,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
57,
62
],
[
40,
63
],
[
63,
64
],
[
40,
65
],
[
65,
66
],
[
40,
67
],
[
67,
68
],
[
67,
69
],
[
40,
70
],
[
70,
71
],
[
40,
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
],
[
90,
92
],
[
84,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
95,
97
],
[
40,
98
],
[
98,
99
],
[
98,
100
],
[
40,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
103,
105
],
[
40,
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
],
[
122,
123
],
[
121,
124
],
[
124,
125
],
[
124,
126
],
[
118,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
132,
133
],
[
131,
134
],
[
134,
135
],
[
134,
136
],
[
131,
137
],
[
40,
138
],
[
138,
139
],
[
139,
140
],
[
138,
141
],
[
141,
142
],
[
142,
143
],
[
141,
144
],
[
144,
145
],
[
144,
146
],
[
34,
147
],
[
147,
148
],
[
147,
149
],
[
147,
150
],
[
151,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
152,
157
],
[
157,
158
],
[
158,
159
],
[
157,
160
],
[
157,
161
],
[
18,
162
],
[
162,
163
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.List;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\ttry {\n\t\t\tList<Double> ret = new ArrayList<Double>();\n\t\t\tdo {\n\t\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\t\tif (n == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tString[] s = br.readLine().split(\" \");\n\t\t\t\tint i, num, sum = 0;\n\t\t\t\tdouble ave;\n\t\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\t\tnum = Integer.parseInt(s[i]);\n\t\t\t\t\tsum = sum + num;\n\t\t\t\t}\n\t\t\t\tdouble hoge = 0.0;\n\t\t\t\tave = (double) sum / n;\n\t\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\t\tnum = Integer.parseInt(s[i]);\n\t\t\t\t\thoge = hoge + Math.pow((num - ave), 2);\n\t\t\t\t}\n\t\t\t\tret.add(Math.sqrt(hoge / n));\n\t\t\t} while (true);\n\t\t\tfor (double d : ret) {\n\t\t\t\tSystem.out.println(String.format(\"%.8f\", d));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.List;",
"List",
"java.util",
"class Main {\n\tpublic static void main(String[] args) {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\ttry {\n\t\t\tList<Double> ret = new ArrayList<Double>();\n\t\t\tdo {\n\t\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\t\tif (n == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tString[] s = br.readLine().split(\" \");\n\t\t\t\tint i, num, sum = 0;\n\t\t\t\tdouble ave;\n\t\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\t\tnum = Integer.parseInt(s[i]);\n\t\t\t\t\tsum = sum + num;\n\t\t\t\t}\n\t\t\t\tdouble hoge = 0.0;\n\t\t\t\tave = (double) sum / n;\n\t\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\t\tnum = Integer.parseInt(s[i]);\n\t\t\t\t\thoge = hoge + Math.pow((num - ave), 2);\n\t\t\t\t}\n\t\t\t\tret.add(Math.sqrt(hoge / n));\n\t\t\t} while (true);\n\t\t\tfor (double d : ret) {\n\t\t\t\tSystem.out.println(String.format(\"%.8f\", d));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\ttry {\n\t\t\tList<Double> ret = new ArrayList<Double>();\n\t\t\tdo {\n\t\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\t\tif (n == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tString[] s = br.readLine().split(\" \");\n\t\t\t\tint i, num, sum = 0;\n\t\t\t\tdouble ave;\n\t\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\t\tnum = Integer.parseInt(s[i]);\n\t\t\t\t\tsum = sum + num;\n\t\t\t\t}\n\t\t\t\tdouble hoge = 0.0;\n\t\t\t\tave = (double) sum / n;\n\t\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\t\tnum = Integer.parseInt(s[i]);\n\t\t\t\t\thoge = hoge + Math.pow((num - ave), 2);\n\t\t\t\t}\n\t\t\t\tret.add(Math.sqrt(hoge / n));\n\t\t\t} while (true);\n\t\t\tfor (double d : ret) {\n\t\t\t\tSystem.out.println(String.format(\"%.8f\", d));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"main",
"{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\ttry {\n\t\t\tList<Double> ret = new ArrayList<Double>();\n\t\t\tdo {\n\t\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\t\tif (n == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tString[] s = br.readLine().split(\" \");\n\t\t\t\tint i, num, sum = 0;\n\t\t\t\tdouble ave;\n\t\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\t\tnum = Integer.parseInt(s[i]);\n\t\t\t\t\tsum = sum + num;\n\t\t\t\t}\n\t\t\t\tdouble hoge = 0.0;\n\t\t\t\tave = (double) sum / n;\n\t\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\t\tnum = Integer.parseInt(s[i]);\n\t\t\t\t\thoge = hoge + Math.pow((num - ave), 2);\n\t\t\t\t}\n\t\t\t\tret.add(Math.sqrt(hoge / n));\n\t\t\t} while (true);\n\t\t\tfor (double d : ret) {\n\t\t\t\tSystem.out.println(String.format(\"%.8f\", d));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"InputStreamReader isr = new InputStreamReader(System.in);",
"isr",
"new InputStreamReader(System.in)",
"BufferedReader br = new BufferedReader(isr);",
"br",
"new BufferedReader(isr)",
"try {\n\t\t\tList<Double> ret = new ArrayList<Double>();\n\t\t\tdo {\n\t\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\t\tif (n == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tString[] s = br.readLine().split(\" \");\n\t\t\t\tint i, num, sum = 0;\n\t\t\t\tdouble ave;\n\t\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\t\tnum = Integer.parseInt(s[i]);\n\t\t\t\t\tsum = sum + num;\n\t\t\t\t}\n\t\t\t\tdouble hoge = 0.0;\n\t\t\t\tave = (double) sum / n;\n\t\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\t\tnum = Integer.parseInt(s[i]);\n\t\t\t\t\thoge = hoge + Math.pow((num - ave), 2);\n\t\t\t\t}\n\t\t\t\tret.add(Math.sqrt(hoge / n));\n\t\t\t} while (true);\n\t\t\tfor (double d : ret) {\n\t\t\t\tSystem.out.println(String.format(\"%.8f\", d));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"IOException e",
"{\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\tList<Double> ret = new ArrayList<Double>();\n\t\t\tdo {\n\t\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\t\tif (n == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tString[] s = br.readLine().split(\" \");\n\t\t\t\tint i, num, sum = 0;\n\t\t\t\tdouble ave;\n\t\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\t\tnum = Integer.parseInt(s[i]);\n\t\t\t\t\tsum = sum + num;\n\t\t\t\t}\n\t\t\t\tdouble hoge = 0.0;\n\t\t\t\tave = (double) sum / n;\n\t\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\t\tnum = Integer.parseInt(s[i]);\n\t\t\t\t\thoge = hoge + Math.pow((num - ave), 2);\n\t\t\t\t}\n\t\t\t\tret.add(Math.sqrt(hoge / n));\n\t\t\t} while (true);\n\t\t\tfor (double d : ret) {\n\t\t\t\tSystem.out.println(String.format(\"%.8f\", d));\n\t\t\t}\n\t\t}",
"List<Double> ret = new ArrayList<Double>();",
"ret",
"new ArrayList<Double>()",
"do {\n\t\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\t\tif (n == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tString[] s = br.readLine().split(\" \");\n\t\t\t\tint i, num, sum = 0;\n\t\t\t\tdouble ave;\n\t\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\t\tnum = Integer.parseInt(s[i]);\n\t\t\t\t\tsum = sum + num;\n\t\t\t\t}\n\t\t\t\tdouble hoge = 0.0;\n\t\t\t\tave = (double) sum / n;\n\t\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\t\tnum = Integer.parseInt(s[i]);\n\t\t\t\t\thoge = hoge + Math.pow((num - ave), 2);\n\t\t\t\t}\n\t\t\t\tret.add(Math.sqrt(hoge / n));\n\t\t\t} while (true);",
"true",
"{\n\t\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\t\tif (n == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tString[] s = br.readLine().split(\" \");\n\t\t\t\tint i, num, sum = 0;\n\t\t\t\tdouble ave;\n\t\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\t\tnum = Integer.parseInt(s[i]);\n\t\t\t\t\tsum = sum + num;\n\t\t\t\t}\n\t\t\t\tdouble hoge = 0.0;\n\t\t\t\tave = (double) sum / n;\n\t\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\t\tnum = Integer.parseInt(s[i]);\n\t\t\t\t\thoge = hoge + Math.pow((num - ave), 2);\n\t\t\t\t}\n\t\t\t\tret.add(Math.sqrt(hoge / n));\n\t\t\t}",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"if (n == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"n == 0",
"n",
"0",
"{\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"break;",
"String[] s = br.readLine().split(\" \");",
"s",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int i",
"i",
"num",
"num",
"sum = 0;",
"sum",
"0",
"double ave;",
"ave",
"for (i = 0; i < n; i++) {\n\t\t\t\t\tnum = Integer.parseInt(s[i]);\n\t\t\t\t\tsum = sum + num;\n\t\t\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\t\tnum = Integer.parseInt(s[i]);\n\t\t\t\t\tsum = sum + num;\n\t\t\t\t}",
"{\n\t\t\t\t\tnum = Integer.parseInt(s[i]);\n\t\t\t\t\tsum = sum + num;\n\t\t\t\t}",
"num = Integer.parseInt(s[i])",
"num",
"Integer.parseInt(s[i])",
"Integer.parseInt",
"Integer",
"s[i]",
"s",
"i",
"sum = sum + num",
"sum",
"sum + num",
"sum",
"num",
"double hoge = 0.0;",
"hoge",
"0.0",
"ave = (double) sum / n",
"ave",
"(double) sum / n",
"(double) sum",
"n",
"for (i = 0; i < n; i++) {\n\t\t\t\t\tnum = Integer.parseInt(s[i]);\n\t\t\t\t\thoge = hoge + Math.pow((num - ave), 2);\n\t\t\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\t\tnum = Integer.parseInt(s[i]);\n\t\t\t\t\thoge = hoge + Math.pow((num - ave), 2);\n\t\t\t\t}",
"{\n\t\t\t\t\tnum = Integer.parseInt(s[i]);\n\t\t\t\t\thoge = hoge + Math.pow((num - ave), 2);\n\t\t\t\t}",
"num = Integer.parseInt(s[i])",
"num",
"Integer.parseInt(s[i])",
"Integer.parseInt",
"Integer",
"s[i]",
"s",
"i",
"hoge = hoge + Math.pow((num - ave), 2)",
"hoge",
"hoge + Math.pow((num - ave), 2)",
"hoge",
"Math.pow((num - ave), 2)",
"Math.pow",
"Math",
"(num - ave)",
"num",
"ave",
"2",
"ret.add(Math.sqrt(hoge / n))",
"ret.add",
"ret",
"Math.sqrt(hoge / n)",
"Math.sqrt",
"Math",
"hoge / n",
"hoge",
"n",
"for (double d : ret) {\n\t\t\t\tSystem.out.println(String.format(\"%.8f\", d));\n\t\t\t}",
"double d",
"ret",
"{\n\t\t\t\tSystem.out.println(String.format(\"%.8f\", d));\n\t\t\t}",
"{\n\t\t\t\tSystem.out.println(String.format(\"%.8f\", d));\n\t\t\t}",
"System.out.println(String.format(\"%.8f\", d))",
"System.out.println",
"System.out",
"System",
"System.out",
"String.format(\"%.8f\", d)",
"String.format",
"String",
"\"%.8f\"",
"d",
"String[] args",
"args"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
class Main {
public static void main(String[] args) {
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
try {
List<Double> ret = new ArrayList<Double>();
do {
int n = Integer.parseInt(br.readLine());
if (n == 0) {
break;
}
String[] s = br.readLine().split(" ");
int i, num, sum = 0;
double ave;
for (i = 0; i < n; i++) {
num = Integer.parseInt(s[i]);
sum = sum + num;
}
double hoge = 0.0;
ave = (double) sum / n;
for (i = 0; i < n; i++) {
num = Integer.parseInt(s[i]);
hoge = hoge + Math.pow((num - ave), 2);
}
ret.add(Math.sqrt(hoge / n));
} while (true);
for (double d : ret) {
System.out.println(String.format("%.8f", d));
}
} catch (IOException e) {
e.printStackTrace();
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
20,
17,
42,
17,
30,
41,
13,
17,
41,
13,
17,
41,
13,
0,
13,
4,
18,
13,
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,
18,
13,
13,
0,
13,
2,
18,
13,
13,
18,
13,
13,
0,
13,
13,
0,
13,
13,
0,
13,
2,
13,
2,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
102,
5
],
[
102,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
20,
27
],
[
27,
28
],
[
20,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
20,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
20,
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
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
20,
73
],
[
73,
74
],
[
73,
75
],
[
20,
76
],
[
76,
77
],
[
76,
78
],
[
20,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
20,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
86,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
8,
96
],
[
96,
97
],
[
97,
98
],
[
6,
99
],
[
99,
100
],
[
0,
101
],
[
101,
102
],
[
101,
103
]
] | [
"import java.util.Scanner;\n\npublic class Main{\npublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n;\n int[] s = new int[1000];\n \n while(true){\n double m=0,l=0,a2;\n n = sc.nextInt();\n if(n==0) break;\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n m += s[i];\n l += s[i]*s[i];\n }\n m /=n;\n l /=n;\n a2 = l-m*m;\n System.out.printf(\"%f\\n\",Math.sqrt(a2));\n}\n sc.close();\n}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\npublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n;\n int[] s = new int[1000];\n \n while(true){\n double m=0,l=0,a2;\n n = sc.nextInt();\n if(n==0) break;\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n m += s[i];\n l += s[i]*s[i];\n }\n m /=n;\n l /=n;\n a2 = l-m*m;\n System.out.printf(\"%f\\n\",Math.sqrt(a2));\n}\n sc.close();\n}\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n;\n int[] s = new int[1000];\n \n while(true){\n double m=0,l=0,a2;\n n = sc.nextInt();\n if(n==0) break;\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n m += s[i];\n l += s[i]*s[i];\n }\n m /=n;\n l /=n;\n a2 = l-m*m;\n System.out.printf(\"%f\\n\",Math.sqrt(a2));\n}\n sc.close();\n}",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n;\n int[] s = new int[1000];\n \n while(true){\n double m=0,l=0,a2;\n n = sc.nextInt();\n if(n==0) break;\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n m += s[i];\n l += s[i]*s[i];\n }\n m /=n;\n l /=n;\n a2 = l-m*m;\n System.out.printf(\"%f\\n\",Math.sqrt(a2));\n}\n sc.close();\n}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n;",
"n",
"int[] s = new int[1000];",
"s",
"new int[1000]",
"1000",
"while(true){\n double m=0,l=0,a2;\n n = sc.nextInt();\n if(n==0) break;\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n m += s[i];\n l += s[i]*s[i];\n }\n m /=n;\n l /=n;\n a2 = l-m*m;\n System.out.printf(\"%f\\n\",Math.sqrt(a2));\n}",
"true",
"{\n double m=0,l=0,a2;\n n = sc.nextInt();\n if(n==0) break;\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n m += s[i];\n l += s[i]*s[i];\n }\n m /=n;\n l /=n;\n a2 = l-m*m;\n System.out.printf(\"%f\\n\",Math.sqrt(a2));\n}",
"double m=0",
"m",
"0",
"l=0",
"l",
"0",
"a2;",
"a2",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(n==0) break;",
"n==0",
"n",
"0",
"break;",
"for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n m += s[i];\n l += s[i]*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 l += s[i]*s[i];\n }",
"{\n s[i] = sc.nextInt();\n m += s[i];\n l += s[i]*s[i];\n }",
"s[i] = sc.nextInt()",
"s[i]",
"s",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"m += s[i]",
"m",
"s[i]",
"s",
"i",
"l += s[i]*s[i]",
"l",
"s[i]*s[i]",
"s[i]",
"s",
"i",
"s[i]",
"s",
"i",
"m /=n",
"m",
"n",
"l /=n",
"l",
"n",
"a2 = l-m*m",
"a2",
"l-m*m",
"l",
"m*m",
"m",
"m",
"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",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main{\npublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n;\n int[] s = new int[1000];\n \n while(true){\n double m=0,l=0,a2;\n n = sc.nextInt();\n if(n==0) break;\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n m += s[i];\n l += s[i]*s[i];\n }\n m /=n;\n l /=n;\n a2 = l-m*m;\n System.out.printf(\"%f\\n\",Math.sqrt(a2));\n}\n sc.close();\n}\n}",
"public class Main{\npublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n;\n int[] s = new int[1000];\n \n while(true){\n double m=0,l=0,a2;\n n = sc.nextInt();\n if(n==0) break;\n for(int i=0;i<n;i++){\n s[i] = sc.nextInt();\n m += s[i];\n l += s[i]*s[i];\n }\n m /=n;\n l /=n;\n a2 = l-m*m;\n System.out.printf(\"%f\\n\",Math.sqrt(a2));\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;
int[] s = new int[1000];
while(true){
double m=0,l=0,a2;
n = sc.nextInt();
if(n==0) break;
for(int i=0;i<n;i++){
s[i] = sc.nextInt();
m += s[i];
l += s[i]*s[i];
}
m /=n;
l /=n;
a2 = l-m*m;
System.out.printf("%f\n",Math.sqrt(a2));
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
42,
2,
13,
17,
30,
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,
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,
0,
13,
4,
18,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
35,
37
],
[
31,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
38,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
56,
57
],
[
50,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
60,
62
],
[
31,
63
],
[
63,
64
],
[
63,
65
],
[
31,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
66,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
81,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
31,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
97,
98
],
[
97,
99
],
[
31,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
31,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
6,
111
],
[
111,
112
],
[
0,
113
],
[
113,
114
],
[
113,
115
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String [] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint score[] = new int[1000];\n\t\tdouble avg = 0.0;\n\t\tdouble a = 0.0;\n\t\twhile(n != 0){\n\t\t\tavg = 0.0;\n\t\t\ta = 0.0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t\tavg += (double)score[i];\n\t\t\t}\n\t\t\tavg /= (double)n;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ta += (score[i] - avg) * (score[i] - avg);\n\t\t\t}\n\t\t\ta = Math.sqrt(a/(double)n);\n\t\t\tSystem.out.println(a);\n\t\t\tn = sc.nextInt();\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String [] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint score[] = new int[1000];\n\t\tdouble avg = 0.0;\n\t\tdouble a = 0.0;\n\t\twhile(n != 0){\n\t\t\tavg = 0.0;\n\t\t\ta = 0.0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t\tavg += (double)score[i];\n\t\t\t}\n\t\t\tavg /= (double)n;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ta += (score[i] - avg) * (score[i] - avg);\n\t\t\t}\n\t\t\ta = Math.sqrt(a/(double)n);\n\t\t\tSystem.out.println(a);\n\t\t\tn = sc.nextInt();\n\t\t}\n\t}\n}",
"Main",
"public static void main(String [] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint score[] = new int[1000];\n\t\tdouble avg = 0.0;\n\t\tdouble a = 0.0;\n\t\twhile(n != 0){\n\t\t\tavg = 0.0;\n\t\t\ta = 0.0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t\tavg += (double)score[i];\n\t\t\t}\n\t\t\tavg /= (double)n;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ta += (score[i] - avg) * (score[i] - avg);\n\t\t\t}\n\t\t\ta = Math.sqrt(a/(double)n);\n\t\t\tSystem.out.println(a);\n\t\t\tn = sc.nextInt();\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint score[] = new int[1000];\n\t\tdouble avg = 0.0;\n\t\tdouble a = 0.0;\n\t\twhile(n != 0){\n\t\t\tavg = 0.0;\n\t\t\ta = 0.0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t\tavg += (double)score[i];\n\t\t\t}\n\t\t\tavg /= (double)n;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ta += (score[i] - avg) * (score[i] - avg);\n\t\t\t}\n\t\t\ta = Math.sqrt(a/(double)n);\n\t\t\tSystem.out.println(a);\n\t\t\tn = sc.nextInt();\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int score[] = new int[1000];",
"score",
"new int[1000]",
"1000",
"double avg = 0.0;",
"avg",
"0.0",
"double a = 0.0;",
"a",
"0.0",
"while(n != 0){\n\t\t\tavg = 0.0;\n\t\t\ta = 0.0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t\tavg += (double)score[i];\n\t\t\t}\n\t\t\tavg /= (double)n;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ta += (score[i] - avg) * (score[i] - avg);\n\t\t\t}\n\t\t\ta = Math.sqrt(a/(double)n);\n\t\t\tSystem.out.println(a);\n\t\t\tn = sc.nextInt();\n\t\t}",
"n != 0",
"n",
"0",
"{\n\t\t\tavg = 0.0;\n\t\t\ta = 0.0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t\tavg += (double)score[i];\n\t\t\t}\n\t\t\tavg /= (double)n;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ta += (score[i] - avg) * (score[i] - avg);\n\t\t\t}\n\t\t\ta = Math.sqrt(a/(double)n);\n\t\t\tSystem.out.println(a);\n\t\t\tn = sc.nextInt();\n\t\t}",
"avg = 0.0",
"avg",
"0.0",
"a = 0.0",
"a",
"0.0",
"for(int i = 0; i < n; i++){\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t\tavg += (double)score[i];\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t\tavg += (double)score[i];\n\t\t\t}",
"{\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t\tavg += (double)score[i];\n\t\t\t}",
"score[i] = sc.nextInt()",
"score[i]",
"score",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"avg += (double)score[i]",
"avg",
"(double)score[i]",
"score",
"i",
"avg /= (double)n",
"avg",
"(double)n",
"for(int i = 0; i < n; i++){\n\t\t\t\ta += (score[i] - avg) * (score[i] - avg);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\ta += (score[i] - avg) * (score[i] - avg);\n\t\t\t}",
"{\n\t\t\t\ta += (score[i] - avg) * (score[i] - avg);\n\t\t\t}",
"a += (score[i] - avg) * (score[i] - avg)",
"a",
"(score[i] - avg) * (score[i] - avg)",
"(score[i] - avg)",
"score[i]",
"score",
"i",
"avg",
"(score[i] - avg)",
"score[i]",
"score",
"i",
"avg",
"a = Math.sqrt(a/(double)n)",
"a",
"Math.sqrt(a/(double)n)",
"Math.sqrt",
"Math",
"a/(double)n",
"a",
"(double)n",
"System.out.println(a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String [] args",
"args",
"public class Main{\n\tpublic static void main(String [] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint score[] = new int[1000];\n\t\tdouble avg = 0.0;\n\t\tdouble a = 0.0;\n\t\twhile(n != 0){\n\t\t\tavg = 0.0;\n\t\t\ta = 0.0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t\tavg += (double)score[i];\n\t\t\t}\n\t\t\tavg /= (double)n;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ta += (score[i] - avg) * (score[i] - avg);\n\t\t\t}\n\t\t\ta = Math.sqrt(a/(double)n);\n\t\t\tSystem.out.println(a);\n\t\t\tn = sc.nextInt();\n\t\t}\n\t}\n}",
"public class Main{\n\tpublic static void main(String [] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint score[] = new int[1000];\n\t\tdouble avg = 0.0;\n\t\tdouble a = 0.0;\n\t\twhile(n != 0){\n\t\t\tavg = 0.0;\n\t\t\ta = 0.0;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t\tavg += (double)score[i];\n\t\t\t}\n\t\t\tavg /= (double)n;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\ta += (score[i] - avg) * (score[i] - avg);\n\t\t\t}\n\t\t\ta = Math.sqrt(a/(double)n);\n\t\t\tSystem.out.println(a);\n\t\t\tn = sc.nextInt();\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String [] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int score[] = new int[1000];
double avg = 0.0;
double a = 0.0;
while(n != 0){
avg = 0.0;
a = 0.0;
for(int i = 0; i < n; i++){
score[i] = sc.nextInt();
avg += (double)score[i];
}
avg /= (double)n;
for(int i = 0; i < n; i++){
a += (score[i] - avg) * (score[i] - avg);
}
a = Math.sqrt(a/(double)n);
System.out.println(a);
n = sc.nextInt();
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
2,
17,
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,
2,
2,
2,
18,
13,
13,
13,
2,
18,
13,
13,
13,
13,
41,
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
],
[
126,
5
],
[
126,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[
13,
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
],
[
16,
28
],
[
28,
29
],
[
28,
30
],
[
16,
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
],
[
16,
52
],
[
52,
53
],
[
52,
54
],
[
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
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
16,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
75,
77
],
[
16,
78
],
[
78,
79
],
[
78,
80
],
[
16,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
86,
87
],
[
86,
88
],
[
81,
89
],
[
89,
90
],
[
90,
91
],
[
81,
92
],
[
93,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
97,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
96,
108
],
[
16,
109
],
[
109,
110
],
[
16,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
16,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
6,
123
],
[
123,
124
],
[
0,
125
],
[
125,
126
],
[
125,
127
]
] | [
"\nimport 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 (0 == 0) {\n\n int ninzu = scanner.nextInt();\n if (ninzu == 0) {\n break;\n }\n double[] tensu = new double[ninzu];\n\n for (int i = 0; ninzu > i; i++) {\n tensu[i] = scanner.nextInt();\n }\n\n double goukei = 0;\n\n for (int i = 0; ninzu > i; i++) {\n goukei += tensu[i];\n }\n\n double heikin = goukei / ninzu;\n\n double bunsan = 0;\n\n for (int i = 0; ninzu > i; i++) {\n bunsan += (tensu[i] - heikin) * (tensu[i] - heikin) / ninzu;\n }\n double bunsan2;\n bunsan2 = Math.sqrt(bunsan);\n\n System.out.println(bunsan2);\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 (0 == 0) {\n\n int ninzu = scanner.nextInt();\n if (ninzu == 0) {\n break;\n }\n double[] tensu = new double[ninzu];\n\n for (int i = 0; ninzu > i; i++) {\n tensu[i] = scanner.nextInt();\n }\n\n double goukei = 0;\n\n for (int i = 0; ninzu > i; i++) {\n goukei += tensu[i];\n }\n\n double heikin = goukei / ninzu;\n\n double bunsan = 0;\n\n for (int i = 0; ninzu > i; i++) {\n bunsan += (tensu[i] - heikin) * (tensu[i] - heikin) / ninzu;\n }\n double bunsan2;\n bunsan2 = Math.sqrt(bunsan);\n\n System.out.println(bunsan2);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n while (0 == 0) {\n\n int ninzu = scanner.nextInt();\n if (ninzu == 0) {\n break;\n }\n double[] tensu = new double[ninzu];\n\n for (int i = 0; ninzu > i; i++) {\n tensu[i] = scanner.nextInt();\n }\n\n double goukei = 0;\n\n for (int i = 0; ninzu > i; i++) {\n goukei += tensu[i];\n }\n\n double heikin = goukei / ninzu;\n\n double bunsan = 0;\n\n for (int i = 0; ninzu > i; i++) {\n bunsan += (tensu[i] - heikin) * (tensu[i] - heikin) / ninzu;\n }\n double bunsan2;\n bunsan2 = Math.sqrt(bunsan);\n\n System.out.println(bunsan2);\n }\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n\n while (0 == 0) {\n\n int ninzu = scanner.nextInt();\n if (ninzu == 0) {\n break;\n }\n double[] tensu = new double[ninzu];\n\n for (int i = 0; ninzu > i; i++) {\n tensu[i] = scanner.nextInt();\n }\n\n double goukei = 0;\n\n for (int i = 0; ninzu > i; i++) {\n goukei += tensu[i];\n }\n\n double heikin = goukei / ninzu;\n\n double bunsan = 0;\n\n for (int i = 0; ninzu > i; i++) {\n bunsan += (tensu[i] - heikin) * (tensu[i] - heikin) / ninzu;\n }\n double bunsan2;\n bunsan2 = Math.sqrt(bunsan);\n\n System.out.println(bunsan2);\n }\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"while (0 == 0) {\n\n int ninzu = scanner.nextInt();\n if (ninzu == 0) {\n break;\n }\n double[] tensu = new double[ninzu];\n\n for (int i = 0; ninzu > i; i++) {\n tensu[i] = scanner.nextInt();\n }\n\n double goukei = 0;\n\n for (int i = 0; ninzu > i; i++) {\n goukei += tensu[i];\n }\n\n double heikin = goukei / ninzu;\n\n double bunsan = 0;\n\n for (int i = 0; ninzu > i; i++) {\n bunsan += (tensu[i] - heikin) * (tensu[i] - heikin) / ninzu;\n }\n double bunsan2;\n bunsan2 = Math.sqrt(bunsan);\n\n System.out.println(bunsan2);\n }",
"0 == 0",
"0",
"0",
"{\n\n int ninzu = scanner.nextInt();\n if (ninzu == 0) {\n break;\n }\n double[] tensu = new double[ninzu];\n\n for (int i = 0; ninzu > i; i++) {\n tensu[i] = scanner.nextInt();\n }\n\n double goukei = 0;\n\n for (int i = 0; ninzu > i; i++) {\n goukei += tensu[i];\n }\n\n double heikin = goukei / ninzu;\n\n double bunsan = 0;\n\n for (int i = 0; ninzu > i; i++) {\n bunsan += (tensu[i] - heikin) * (tensu[i] - heikin) / ninzu;\n }\n double bunsan2;\n bunsan2 = Math.sqrt(bunsan);\n\n System.out.println(bunsan2);\n }",
"int ninzu = scanner.nextInt();",
"ninzu",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"if (ninzu == 0) {\n break;\n }",
"ninzu == 0",
"ninzu",
"0",
"{\n break;\n }",
"break;",
"double[] tensu = new double[ninzu];",
"tensu",
"new double[ninzu]",
"ninzu",
"for (int i = 0; ninzu > i; i++) {\n tensu[i] = scanner.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"ninzu > i",
"ninzu",
"i",
"i++",
"i++",
"i",
"{\n tensu[i] = scanner.nextInt();\n }",
"{\n tensu[i] = scanner.nextInt();\n }",
"tensu[i] = scanner.nextInt()",
"tensu[i]",
"tensu",
"i",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"double goukei = 0;",
"goukei",
"0",
"for (int i = 0; ninzu > i; i++) {\n goukei += tensu[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"ninzu > i",
"ninzu",
"i",
"i++",
"i++",
"i",
"{\n goukei += tensu[i];\n }",
"{\n goukei += tensu[i];\n }",
"goukei += tensu[i]",
"goukei",
"tensu[i]",
"tensu",
"i",
"double heikin = goukei / ninzu;",
"heikin",
"goukei / ninzu",
"goukei",
"ninzu",
"double bunsan = 0;",
"bunsan",
"0",
"for (int i = 0; ninzu > i; i++) {\n bunsan += (tensu[i] - heikin) * (tensu[i] - heikin) / ninzu;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"ninzu > i",
"ninzu",
"i",
"i++",
"i++",
"i",
"{\n bunsan += (tensu[i] - heikin) * (tensu[i] - heikin) / ninzu;\n }",
"{\n bunsan += (tensu[i] - heikin) * (tensu[i] - heikin) / ninzu;\n }",
"bunsan += (tensu[i] - heikin) * (tensu[i] - heikin) / ninzu",
"bunsan",
"(tensu[i] - heikin) * (tensu[i] - heikin) / ninzu",
"(tensu[i] - heikin) * (tensu[i] - heikin)",
"(tensu[i] - heikin)",
"tensu[i]",
"tensu",
"i",
"heikin",
"(tensu[i] - heikin)",
"tensu[i]",
"tensu",
"i",
"heikin",
"ninzu",
"double bunsan2;",
"bunsan2",
"bunsan2 = Math.sqrt(bunsan)",
"bunsan2",
"Math.sqrt(bunsan)",
"Math.sqrt",
"Math",
"bunsan",
"System.out.println(bunsan2)",
"System.out.println",
"System.out",
"System",
"System.out",
"bunsan2",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n while (0 == 0) {\n\n int ninzu = scanner.nextInt();\n if (ninzu == 0) {\n break;\n }\n double[] tensu = new double[ninzu];\n\n for (int i = 0; ninzu > i; i++) {\n tensu[i] = scanner.nextInt();\n }\n\n double goukei = 0;\n\n for (int i = 0; ninzu > i; i++) {\n goukei += tensu[i];\n }\n\n double heikin = goukei / ninzu;\n\n double bunsan = 0;\n\n for (int i = 0; ninzu > i; i++) {\n bunsan += (tensu[i] - heikin) * (tensu[i] - heikin) / ninzu;\n }\n double bunsan2;\n bunsan2 = Math.sqrt(bunsan);\n\n System.out.println(bunsan2);\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n while (0 == 0) {\n\n int ninzu = scanner.nextInt();\n if (ninzu == 0) {\n break;\n }\n double[] tensu = new double[ninzu];\n\n for (int i = 0; ninzu > i; i++) {\n tensu[i] = scanner.nextInt();\n }\n\n double goukei = 0;\n\n for (int i = 0; ninzu > i; i++) {\n goukei += tensu[i];\n }\n\n double heikin = goukei / ninzu;\n\n double bunsan = 0;\n\n for (int i = 0; ninzu > i; i++) {\n bunsan += (tensu[i] - heikin) * (tensu[i] - heikin) / ninzu;\n }\n double bunsan2;\n bunsan2 = Math.sqrt(bunsan);\n\n System.out.println(bunsan2);\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
while (0 == 0) {
int ninzu = scanner.nextInt();
if (ninzu == 0) {
break;
}
double[] tensu = new double[ninzu];
for (int i = 0; ninzu > i; i++) {
tensu[i] = scanner.nextInt();
}
double goukei = 0;
for (int i = 0; ninzu > i; i++) {
goukei += tensu[i];
}
double heikin = goukei / ninzu;
double bunsan = 0;
for (int i = 0; ninzu > i; i++) {
bunsan += (tensu[i] - heikin) * (tensu[i] - heikin) / ninzu;
}
double bunsan2;
bunsan2 = Math.sqrt(bunsan);
System.out.println(bunsan2);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
13,
17,
3,
41,
13,
20,
13,
0,
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,
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
],
[
124,
5
],
[
124,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
14,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
34,
39
],
[
14,
40
],
[
40,
41
],
[
40,
42
],
[
14,
44
],
[
44,
45
],
[
44,
46
],
[
14,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
67,
68
],
[
67,
69
],
[
59,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
14,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
77,
79
],
[
14,
80
],
[
80,
81
],
[
80,
82
],
[
14,
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
],
[
14,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
109,
111
],
[
14,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
6,
121
],
[
121,
122
],
[
0,
123
],
[
123,
124
],
[
123,
125
]
] | [
"import java.io.*;\n\npublic class Main{\n\tpublic static void main(String[] arsg) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\twhile(true){\n\t\tint count = Integer.parseInt(br.readLine());\n\t\tif(count == 0) break;\n\t\t\n\t\tString str[] = new String[count];\n\t\tstr = br.readLine().split(\" \");\n\t\tdouble[] s = new double[count];\n\t\tdouble sum = 0;\n\t\tfor(int i = 0;i<count;i++){\n\t\t\ts[i] = Double.parseDouble(str[i]);\n\t\t\tsum += s[i];\n\t\t}\n\t\tdouble average = (double) sum/count;\n\t\tdouble SUM = 0;\n\t\tfor(int i = 0;i<count;i++){\n\t\t\tSUM += Math.pow(s[i]-average,2);\n\t\t}\n\t\tdouble SUM1 = (double) SUM/count;\n\t\tSystem.out.println(Math.sqrt(SUM1));\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n\tpublic static void main(String[] arsg) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\twhile(true){\n\t\tint count = Integer.parseInt(br.readLine());\n\t\tif(count == 0) break;\n\t\t\n\t\tString str[] = new String[count];\n\t\tstr = br.readLine().split(\" \");\n\t\tdouble[] s = new double[count];\n\t\tdouble sum = 0;\n\t\tfor(int i = 0;i<count;i++){\n\t\t\ts[i] = Double.parseDouble(str[i]);\n\t\t\tsum += s[i];\n\t\t}\n\t\tdouble average = (double) sum/count;\n\t\tdouble SUM = 0;\n\t\tfor(int i = 0;i<count;i++){\n\t\t\tSUM += Math.pow(s[i]-average,2);\n\t\t}\n\t\tdouble SUM1 = (double) SUM/count;\n\t\tSystem.out.println(Math.sqrt(SUM1));\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] arsg) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\twhile(true){\n\t\tint count = Integer.parseInt(br.readLine());\n\t\tif(count == 0) break;\n\t\t\n\t\tString str[] = new String[count];\n\t\tstr = br.readLine().split(\" \");\n\t\tdouble[] s = new double[count];\n\t\tdouble sum = 0;\n\t\tfor(int i = 0;i<count;i++){\n\t\t\ts[i] = Double.parseDouble(str[i]);\n\t\t\tsum += s[i];\n\t\t}\n\t\tdouble average = (double) sum/count;\n\t\tdouble SUM = 0;\n\t\tfor(int i = 0;i<count;i++){\n\t\t\tSUM += Math.pow(s[i]-average,2);\n\t\t}\n\t\tdouble SUM1 = (double) SUM/count;\n\t\tSystem.out.println(Math.sqrt(SUM1));\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\twhile(true){\n\t\tint count = Integer.parseInt(br.readLine());\n\t\tif(count == 0) break;\n\t\t\n\t\tString str[] = new String[count];\n\t\tstr = br.readLine().split(\" \");\n\t\tdouble[] s = new double[count];\n\t\tdouble sum = 0;\n\t\tfor(int i = 0;i<count;i++){\n\t\t\ts[i] = Double.parseDouble(str[i]);\n\t\t\tsum += s[i];\n\t\t}\n\t\tdouble average = (double) sum/count;\n\t\tdouble SUM = 0;\n\t\tfor(int i = 0;i<count;i++){\n\t\t\tSUM += Math.pow(s[i]-average,2);\n\t\t}\n\t\tdouble SUM1 = (double) SUM/count;\n\t\tSystem.out.println(Math.sqrt(SUM1));\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"while(true){\n\t\tint count = Integer.parseInt(br.readLine());\n\t\tif(count == 0) break;\n\t\t\n\t\tString str[] = new String[count];\n\t\tstr = br.readLine().split(\" \");\n\t\tdouble[] s = new double[count];\n\t\tdouble sum = 0;\n\t\tfor(int i = 0;i<count;i++){\n\t\t\ts[i] = Double.parseDouble(str[i]);\n\t\t\tsum += s[i];\n\t\t}\n\t\tdouble average = (double) sum/count;\n\t\tdouble SUM = 0;\n\t\tfor(int i = 0;i<count;i++){\n\t\t\tSUM += Math.pow(s[i]-average,2);\n\t\t}\n\t\tdouble SUM1 = (double) SUM/count;\n\t\tSystem.out.println(Math.sqrt(SUM1));\n\t\t}",
"true",
"{\n\t\tint count = Integer.parseInt(br.readLine());\n\t\tif(count == 0) break;\n\t\t\n\t\tString str[] = new String[count];\n\t\tstr = br.readLine().split(\" \");\n\t\tdouble[] s = new double[count];\n\t\tdouble sum = 0;\n\t\tfor(int i = 0;i<count;i++){\n\t\t\ts[i] = Double.parseDouble(str[i]);\n\t\t\tsum += s[i];\n\t\t}\n\t\tdouble average = (double) sum/count;\n\t\tdouble SUM = 0;\n\t\tfor(int i = 0;i<count;i++){\n\t\t\tSUM += Math.pow(s[i]-average,2);\n\t\t}\n\t\tdouble SUM1 = (double) SUM/count;\n\t\tSystem.out.println(Math.sqrt(SUM1));\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) break;",
"count == 0",
"count",
"0",
"break;",
"String str[] = new String[count];",
"str",
"new String[count]",
"count",
"str = br.readLine().split(\" \")",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"double[] s = new double[count];",
"s",
"new double[count]",
"count",
"double sum = 0;",
"sum",
"0",
"for(int i = 0;i<count;i++){\n\t\t\ts[i] = Double.parseDouble(str[i]);\n\t\t\tsum += s[i];\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<count",
"i",
"count",
"i++",
"i++",
"i",
"{\n\t\t\ts[i] = Double.parseDouble(str[i]);\n\t\t\tsum += s[i];\n\t\t}",
"{\n\t\t\ts[i] = Double.parseDouble(str[i]);\n\t\t\tsum += s[i];\n\t\t}",
"s[i] = Double.parseDouble(str[i])",
"s[i]",
"s",
"i",
"Double.parseDouble(str[i])",
"Double.parseDouble",
"Double",
"str[i]",
"str",
"i",
"sum += s[i]",
"sum",
"s[i]",
"s",
"i",
"double average = (double) sum/count;",
"average",
"(double) sum/count",
"(double) sum",
"count",
"double SUM = 0;",
"SUM",
"0",
"for(int i = 0;i<count;i++){\n\t\t\tSUM += Math.pow(s[i]-average,2);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<count",
"i",
"count",
"i++",
"i++",
"i",
"{\n\t\t\tSUM += Math.pow(s[i]-average,2);\n\t\t}",
"{\n\t\t\tSUM += Math.pow(s[i]-average,2);\n\t\t}",
"SUM += Math.pow(s[i]-average,2)",
"SUM",
"Math.pow(s[i]-average,2)",
"Math.pow",
"Math",
"s[i]-average",
"s[i]",
"s",
"i",
"average",
"2",
"double SUM1 = (double) SUM/count;",
"SUM1",
"(double) SUM/count",
"(double) SUM",
"count",
"System.out.println(Math.sqrt(SUM1))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.sqrt(SUM1)",
"Math.sqrt",
"Math",
"SUM1",
"String[] arsg",
"arsg",
"public class Main{\n\tpublic static void main(String[] arsg) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\twhile(true){\n\t\tint count = Integer.parseInt(br.readLine());\n\t\tif(count == 0) break;\n\t\t\n\t\tString str[] = new String[count];\n\t\tstr = br.readLine().split(\" \");\n\t\tdouble[] s = new double[count];\n\t\tdouble sum = 0;\n\t\tfor(int i = 0;i<count;i++){\n\t\t\ts[i] = Double.parseDouble(str[i]);\n\t\t\tsum += s[i];\n\t\t}\n\t\tdouble average = (double) sum/count;\n\t\tdouble SUM = 0;\n\t\tfor(int i = 0;i<count;i++){\n\t\t\tSUM += Math.pow(s[i]-average,2);\n\t\t}\n\t\tdouble SUM1 = (double) SUM/count;\n\t\tSystem.out.println(Math.sqrt(SUM1));\n\t\t}\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] arsg) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\twhile(true){\n\t\tint count = Integer.parseInt(br.readLine());\n\t\tif(count == 0) break;\n\t\t\n\t\tString str[] = new String[count];\n\t\tstr = br.readLine().split(\" \");\n\t\tdouble[] s = new double[count];\n\t\tdouble sum = 0;\n\t\tfor(int i = 0;i<count;i++){\n\t\t\ts[i] = Double.parseDouble(str[i]);\n\t\t\tsum += s[i];\n\t\t}\n\t\tdouble average = (double) sum/count;\n\t\tdouble SUM = 0;\n\t\tfor(int i = 0;i<count;i++){\n\t\t\tSUM += Math.pow(s[i]-average,2);\n\t\t}\n\t\tdouble SUM1 = (double) SUM/count;\n\t\tSystem.out.println(Math.sqrt(SUM1));\n\t\t}\n\t}\n}",
"Main"
] | import java.io.*;
public class Main{
public static void main(String[] arsg) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
while(true){
int count = Integer.parseInt(br.readLine());
if(count == 0) break;
String str[] = new String[count];
str = br.readLine().split(" ");
double[] s = new double[count];
double sum = 0;
for(int i = 0;i<count;i++){
s[i] = Double.parseDouble(str[i]);
sum += s[i];
}
double average = (double) sum/count;
double SUM = 0;
for(int i = 0;i<count;i++){
SUM += Math.pow(s[i]-average,2);
}
double SUM1 = (double) SUM/count;
System.out.println(Math.sqrt(SUM1));
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
17,
42,
2,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
4,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
2,
2,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
0,
13,
20,
13,
0,
13,
17,
23,
13,
12,
13,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
18,
13,
13,
29,
2,
13,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
142,
8
],
[
142,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
24
],
[
24,
25
],
[
24,
26
],
[
11,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
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
],
[
31,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
54,
57
],
[
31,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
58,
69
],
[
70,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
77,
79
],
[
31,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
92,
94
],
[
31,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
31,
100
],
[
100,
101
],
[
100,
102
],
[
31,
104
],
[
104,
105
],
[
104,
106
],
[
9,
107
],
[
107,
108
],
[
142,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
120,
121
],
[
120,
122
],
[
115,
123
],
[
123,
124
],
[
124,
125
],
[
115,
126
],
[
127,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
130,
132
],
[
111,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
109,
137
],
[
137,
138
],
[
109,
139
],
[
139,
140
],
[
0,
141
],
[
141,
142
],
[
141,
143
]
] | [
"import java.util.Scanner;\nimport java.lang.Math;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\t\n\t\tdouble n = scan.nextInt();\n\t\tint[] data = new int[(int)n];\n\t\tdouble sum=0;\n\t\twhile(n!=0){\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tdata[i]=scan.nextInt();\n\t\t\t}\n\t\t\tdouble ave=average(data,n);\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsum+=(data[i]*data[i]);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(sum/n-ave*ave));\n\t\t\tn=scan.nextInt();\n\t\t\tdata = new int[(int)n];\n\t\t\tsum=0;\n\t\t}\n\t}\n\tpublic static double average(int[] data,double n){\n\t\tdouble sum=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tsum+=data[i];\n\t\t}\n\t\treturn sum/n;\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.lang.Math;",
"Math",
"java.lang",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\t\n\t\tdouble n = scan.nextInt();\n\t\tint[] data = new int[(int)n];\n\t\tdouble sum=0;\n\t\twhile(n!=0){\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tdata[i]=scan.nextInt();\n\t\t\t}\n\t\t\tdouble ave=average(data,n);\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsum+=(data[i]*data[i]);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(sum/n-ave*ave));\n\t\t\tn=scan.nextInt();\n\t\t\tdata = new int[(int)n];\n\t\t\tsum=0;\n\t\t}\n\t}\n\tpublic static double average(int[] data,double n){\n\t\tdouble sum=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tsum+=data[i];\n\t\t}\n\t\treturn sum/n;\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\t\n\t\tdouble n = scan.nextInt();\n\t\tint[] data = new int[(int)n];\n\t\tdouble sum=0;\n\t\twhile(n!=0){\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tdata[i]=scan.nextInt();\n\t\t\t}\n\t\t\tdouble ave=average(data,n);\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsum+=(data[i]*data[i]);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(sum/n-ave*ave));\n\t\t\tn=scan.nextInt();\n\t\t\tdata = new int[(int)n];\n\t\t\tsum=0;\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\t\n\t\tdouble n = scan.nextInt();\n\t\tint[] data = new int[(int)n];\n\t\tdouble sum=0;\n\t\twhile(n!=0){\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tdata[i]=scan.nextInt();\n\t\t\t}\n\t\t\tdouble ave=average(data,n);\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsum+=(data[i]*data[i]);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(sum/n-ave*ave));\n\t\t\tn=scan.nextInt();\n\t\t\tdata = new int[(int)n];\n\t\t\tsum=0;\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"double n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[] data = new int[(int)n];",
"data",
"new int[(int)n]",
"(int)n",
"double sum=0;",
"sum",
"0",
"while(n!=0){\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tdata[i]=scan.nextInt();\n\t\t\t}\n\t\t\tdouble ave=average(data,n);\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsum+=(data[i]*data[i]);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(sum/n-ave*ave));\n\t\t\tn=scan.nextInt();\n\t\t\tdata = new int[(int)n];\n\t\t\tsum=0;\n\t\t}",
"n!=0",
"n",
"0",
"{\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tdata[i]=scan.nextInt();\n\t\t\t}\n\t\t\tdouble ave=average(data,n);\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsum+=(data[i]*data[i]);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(sum/n-ave*ave));\n\t\t\tn=scan.nextInt();\n\t\t\tdata = new int[(int)n];\n\t\t\tsum=0;\n\t\t}",
"for(int i=0;i<n;i++){\n\t\t\t\tdata[i]=scan.nextInt();\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tdata[i]=scan.nextInt();\n\t\t\t}",
"{\n\t\t\t\tdata[i]=scan.nextInt();\n\t\t\t}",
"data[i]=scan.nextInt()",
"data[i]",
"data",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"double ave=average(data,n);",
"ave",
"average(data,n)",
"average",
"data",
"n",
"for(int i=0;i<n;i++){\n\t\t\t\tsum+=(data[i]*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\tsum+=(data[i]*data[i]);\n\t\t\t}",
"{\n\t\t\t\tsum+=(data[i]*data[i]);\n\t\t\t}",
"sum+=(data[i]*data[i])",
"sum",
"(data[i]*data[i])",
"data[i]",
"data",
"i",
"data[i]",
"data",
"i",
"System.out.println(Math.sqrt(sum/n-ave*ave))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.sqrt(sum/n-ave*ave)",
"Math.sqrt",
"Math",
"sum/n-ave*ave",
"sum/n",
"sum",
"n",
"ave*ave",
"ave",
"ave",
"n=scan.nextInt()",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"data = new int[(int)n]",
"data",
"new int[(int)n]",
"(int)n",
"sum=0",
"sum",
"0",
"String[] args",
"args",
"public static double average(int[] data,double n){\n\t\tdouble sum=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tsum+=data[i];\n\t\t}\n\t\treturn sum/n;\n\t}",
"average",
"{\n\t\tdouble sum=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tsum+=data[i];\n\t\t}\n\t\treturn sum/n;\n\t}",
"double sum=0;",
"sum",
"0",
"for(int i=0;i<n;i++){\n\t\t\tsum+=data[i];\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"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/n;",
"sum/n",
"sum",
"n",
"int[] data",
"data",
"double n",
"n",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\t\n\t\tdouble n = scan.nextInt();\n\t\tint[] data = new int[(int)n];\n\t\tdouble sum=0;\n\t\twhile(n!=0){\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tdata[i]=scan.nextInt();\n\t\t\t}\n\t\t\tdouble ave=average(data,n);\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsum+=(data[i]*data[i]);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(sum/n-ave*ave));\n\t\t\tn=scan.nextInt();\n\t\t\tdata = new int[(int)n];\n\t\t\tsum=0;\n\t\t}\n\t}\n\tpublic static double average(int[] data,double n){\n\t\tdouble sum=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tsum+=data[i];\n\t\t}\n\t\treturn sum/n;\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\t\n\t\tdouble n = scan.nextInt();\n\t\tint[] data = new int[(int)n];\n\t\tdouble sum=0;\n\t\twhile(n!=0){\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tdata[i]=scan.nextInt();\n\t\t\t}\n\t\t\tdouble ave=average(data,n);\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsum+=(data[i]*data[i]);\n\t\t\t}\n\t\t\tSystem.out.println(Math.sqrt(sum/n-ave*ave));\n\t\t\tn=scan.nextInt();\n\t\t\tdata = new int[(int)n];\n\t\t\tsum=0;\n\t\t}\n\t}\n\tpublic static double average(int[] data,double n){\n\t\tdouble sum=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tsum+=data[i];\n\t\t}\n\t\treturn sum/n;\n\t}\n}",
"Main"
] | import java.util.Scanner;
import java.lang.Math;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
double n = scan.nextInt();
int[] data = new int[(int)n];
double sum=0;
while(n!=0){
for(int i=0;i<n;i++){
data[i]=scan.nextInt();
}
double ave=average(data,n);
for(int i=0;i<n;i++){
sum+=(data[i]*data[i]);
}
System.out.println(Math.sqrt(sum/n-ave*ave));
n=scan.nextInt();
data = new int[(int)n];
sum=0;
}
}
public static double average(int[] data,double n){
double sum=0;
for(int i=0;i<n;i++){
sum+=data[i];
}
return sum/n;
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
20,
17,
42,
17,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
3,
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,
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
],
[
112,
5
],
[
112,
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,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
24,
35
],
[
35,
36
],
[
35,
37
],
[
24,
38
],
[
38,
39
],
[
38,
40
],
[
24,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
53,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
24,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
24,
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
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
87,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
86,
98
],
[
24,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
99,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
6,
109
],
[
109,
110
],
[
0,
111
],
[
111,
112
],
[
111,
113
]
] | [
"import java.util.*;\npublic class Main{\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n;\n double m, a2;\n int s[] = new int[1000];\n while(true){\n \tn = sc.nextInt();\n \tif(n == 0)break;\n \tm = 0;\n \ta2 = 0; \n \tfor(int i = 0; i < n; i++){\n \t\ts[i] = sc.nextInt();\n \t\tm += s[i];\n \t}\n \tm = m/ n;\n \tfor(int i = 0; i < n; i++){\n \t\ta2 += (s[i] - m)*(s[i] - m) / n;\n \t}\n \tSystem.out.printf(\"%.8f\\n\",Math.sqrt(a2));\n }\n }\n \n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n;\n double m, a2;\n int s[] = new int[1000];\n while(true){\n \tn = sc.nextInt();\n \tif(n == 0)break;\n \tm = 0;\n \ta2 = 0; \n \tfor(int i = 0; i < n; i++){\n \t\ts[i] = sc.nextInt();\n \t\tm += s[i];\n \t}\n \tm = m/ n;\n \tfor(int i = 0; i < n; i++){\n \t\ta2 += (s[i] - m)*(s[i] - m) / n;\n \t}\n \tSystem.out.printf(\"%.8f\\n\",Math.sqrt(a2));\n }\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 int s[] = new int[1000];\n while(true){\n \tn = sc.nextInt();\n \tif(n == 0)break;\n \tm = 0;\n \ta2 = 0; \n \tfor(int i = 0; i < n; i++){\n \t\ts[i] = sc.nextInt();\n \t\tm += s[i];\n \t}\n \tm = m/ n;\n \tfor(int i = 0; i < n; i++){\n \t\ta2 += (s[i] - m)*(s[i] - m) / n;\n \t}\n \tSystem.out.printf(\"%.8f\\n\",Math.sqrt(a2));\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n;\n double m, a2;\n int s[] = new int[1000];\n while(true){\n \tn = sc.nextInt();\n \tif(n == 0)break;\n \tm = 0;\n \ta2 = 0; \n \tfor(int i = 0; i < n; i++){\n \t\ts[i] = sc.nextInt();\n \t\tm += s[i];\n \t}\n \tm = m/ n;\n \tfor(int i = 0; i < n; i++){\n \t\ta2 += (s[i] - m)*(s[i] - m) / n;\n \t}\n \tSystem.out.printf(\"%.8f\\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",
"int s[] = new int[1000];",
"s",
"new int[1000]",
"1000",
"while(true){\n \tn = sc.nextInt();\n \tif(n == 0)break;\n \tm = 0;\n \ta2 = 0; \n \tfor(int i = 0; i < n; i++){\n \t\ts[i] = sc.nextInt();\n \t\tm += s[i];\n \t}\n \tm = m/ n;\n \tfor(int i = 0; i < n; i++){\n \t\ta2 += (s[i] - m)*(s[i] - m) / n;\n \t}\n \tSystem.out.printf(\"%.8f\\n\",Math.sqrt(a2));\n }",
"true",
"{\n \tn = sc.nextInt();\n \tif(n == 0)break;\n \tm = 0;\n \ta2 = 0; \n \tfor(int i = 0; i < n; i++){\n \t\ts[i] = sc.nextInt();\n \t\tm += s[i];\n \t}\n \tm = m/ n;\n \tfor(int i = 0; i < n; i++){\n \t\ta2 += (s[i] - m)*(s[i] - m) / n;\n \t}\n \tSystem.out.printf(\"%.8f\\n\",Math.sqrt(a2));\n }",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(n == 0)break;",
"n == 0",
"n",
"0",
"break;",
"m = 0",
"m",
"0",
"a2 = 0",
"a2",
"0",
"for(int i = 0; i < n; i++){\n \t\ts[i] = sc.nextInt();\n \t\tm += s[i];\n \t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \t\ts[i] = sc.nextInt();\n \t\tm += s[i];\n \t}",
"{\n \t\ts[i] = sc.nextInt();\n \t\tm += s[i];\n \t}",
"s[i] = sc.nextInt()",
"s[i]",
"s",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"m += s[i]",
"m",
"s[i]",
"s",
"i",
"m = m/ n",
"m",
"m/ n",
"m",
"n",
"for(int i = 0; i < n; i++){\n \t\ta2 += (s[i] - m)*(s[i] - m) / n;\n \t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \t\ta2 += (s[i] - m)*(s[i] - m) / n;\n \t}",
"{\n \t\ta2 += (s[i] - m)*(s[i] - m) / n;\n \t}",
"a2 += (s[i] - m)*(s[i] - m) / n",
"a2",
"(s[i] - m)*(s[i] - m) / n",
"(s[i] - m)*(s[i] - m)",
"(s[i] - m)",
"s[i]",
"s",
"i",
"m",
"(s[i] - m)",
"s[i]",
"s",
"i",
"m",
"n",
"System.out.printf(\"%.8f\\n\",Math.sqrt(a2))",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%.8f\\n\"",
"Math.sqrt(a2)",
"Math.sqrt",
"Math",
"a2",
"String[] args",
"args",
"public class Main{\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n;\n double m, a2;\n int s[] = new int[1000];\n while(true){\n \tn = sc.nextInt();\n \tif(n == 0)break;\n \tm = 0;\n \ta2 = 0; \n \tfor(int i = 0; i < n; i++){\n \t\ts[i] = sc.nextInt();\n \t\tm += s[i];\n \t}\n \tm = m/ n;\n \tfor(int i = 0; i < n; i++){\n \t\ta2 += (s[i] - m)*(s[i] - m) / n;\n \t}\n \tSystem.out.printf(\"%.8f\\n\",Math.sqrt(a2));\n }\n }\n \n}",
"public class Main{\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n;\n double m, a2;\n int s[] = new int[1000];\n while(true){\n \tn = sc.nextInt();\n \tif(n == 0)break;\n \tm = 0;\n \ta2 = 0; \n \tfor(int i = 0; i < n; i++){\n \t\ts[i] = sc.nextInt();\n \t\tm += s[i];\n \t}\n \tm = m/ n;\n \tfor(int i = 0; i < n; i++){\n \t\ta2 += (s[i] - m)*(s[i] - m) / n;\n \t}\n \tSystem.out.printf(\"%.8f\\n\",Math.sqrt(a2));\n }\n }\n \n}",
"Main"
] | import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n;
double m, a2;
int s[] = new int[1000];
while(true){
n = sc.nextInt();
if(n == 0)break;
m = 0;
a2 = 0;
for(int i = 0; i < n; i++){
s[i] = sc.nextInt();
m += s[i];
}
m = m/ n;
for(int i = 0; i < n; i++){
a2 += (s[i] - m)*(s[i] - m) / n;
}
System.out.printf("%.8f\n",Math.sqrt(a2));
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
42,
2,
13,
17,
30,
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,
2,
13,
18,
13,
13,
2,
13,
18,
13,
13,
0,
13,
13,
0,
13,
4,
18,
13,
13,
17,
4,
18,
18,
13,
13,
13,
0,
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
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
21,
25
],
[
25,
26
],
[
25,
27
],
[
21,
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
],
[
41,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
21,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
21,
59
],
[
59,
60
],
[
59,
61
],
[
21,
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
],
[
78,
80
],
[
80,
81
],
[
80,
82
],
[
77,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
85,
87
],
[
21,
88
],
[
88,
89
],
[
88,
90
],
[
21,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
93,
97
],
[
21,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
21,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
6,
109
],
[
109,
110
],
[
0,
111
],
[
111,
112
],
[
111,
113
]
] | [
"import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n while(n>0){\n int sum=0;\n int[] s = new int[n];\n for(int i=0;i<n;i++){\n s[i]=scan.nextInt();\n sum+=s[i];\n }\n double ave = (double)sum/n;\n //System.out.println(ave);\n double HF=0;\n for(int i=0;i<n;i++){\n HF+=(ave-s[i])*(ave-s[i]);\n }\n HF/=(double)n;\n HF=Math.pow(HF,0.5);\n System.out.println(HF);\n n = scan.nextInt();\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n while(n>0){\n int sum=0;\n int[] s = new int[n];\n for(int i=0;i<n;i++){\n s[i]=scan.nextInt();\n sum+=s[i];\n }\n double ave = (double)sum/n;\n //System.out.println(ave);\n double HF=0;\n for(int i=0;i<n;i++){\n HF+=(ave-s[i])*(ave-s[i]);\n }\n HF/=(double)n;\n HF=Math.pow(HF,0.5);\n System.out.println(HF);\n n = scan.nextInt();\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n while(n>0){\n int sum=0;\n int[] s = new int[n];\n for(int i=0;i<n;i++){\n s[i]=scan.nextInt();\n sum+=s[i];\n }\n double ave = (double)sum/n;\n //System.out.println(ave);\n double HF=0;\n for(int i=0;i<n;i++){\n HF+=(ave-s[i])*(ave-s[i]);\n }\n HF/=(double)n;\n HF=Math.pow(HF,0.5);\n System.out.println(HF);\n n = scan.nextInt();\n }\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n while(n>0){\n int sum=0;\n int[] s = new int[n];\n for(int i=0;i<n;i++){\n s[i]=scan.nextInt();\n sum+=s[i];\n }\n double ave = (double)sum/n;\n //System.out.println(ave);\n double HF=0;\n for(int i=0;i<n;i++){\n HF+=(ave-s[i])*(ave-s[i]);\n }\n HF/=(double)n;\n HF=Math.pow(HF,0.5);\n System.out.println(HF);\n n = scan.nextInt();\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"while(n>0){\n int sum=0;\n int[] s = new int[n];\n for(int i=0;i<n;i++){\n s[i]=scan.nextInt();\n sum+=s[i];\n }\n double ave = (double)sum/n;\n //System.out.println(ave);\n double HF=0;\n for(int i=0;i<n;i++){\n HF+=(ave-s[i])*(ave-s[i]);\n }\n HF/=(double)n;\n HF=Math.pow(HF,0.5);\n System.out.println(HF);\n n = scan.nextInt();\n }",
"n>0",
"n",
"0",
"{\n int sum=0;\n int[] s = new int[n];\n for(int i=0;i<n;i++){\n s[i]=scan.nextInt();\n sum+=s[i];\n }\n double ave = (double)sum/n;\n //System.out.println(ave);\n double HF=0;\n for(int i=0;i<n;i++){\n HF+=(ave-s[i])*(ave-s[i]);\n }\n HF/=(double)n;\n HF=Math.pow(HF,0.5);\n System.out.println(HF);\n n = scan.nextInt();\n }",
"int sum=0;",
"sum",
"0",
"int[] s = new int[n];",
"s",
"new int[n]",
"n",
"for(int i=0;i<n;i++){\n s[i]=scan.nextInt();\n sum+=s[i];\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n s[i]=scan.nextInt();\n sum+=s[i];\n }",
"{\n s[i]=scan.nextInt();\n sum+=s[i];\n }",
"s[i]=scan.nextInt()",
"s[i]",
"s",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"sum+=s[i]",
"sum",
"s[i]",
"s",
"i",
"double ave = (double)sum/n;",
"ave",
"(double)sum/n",
"(double)sum",
"n",
"double HF=0;",
"HF",
"0",
"for(int i=0;i<n;i++){\n HF+=(ave-s[i])*(ave-s[i]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n HF+=(ave-s[i])*(ave-s[i]);\n }",
"{\n HF+=(ave-s[i])*(ave-s[i]);\n }",
"HF+=(ave-s[i])*(ave-s[i])",
"HF",
"(ave-s[i])*(ave-s[i])",
"(ave-s[i])",
"ave",
"s[i]",
"s",
"i",
"(ave-s[i])",
"ave",
"s[i]",
"s",
"i",
"HF/=(double)n",
"HF",
"(double)n",
"HF=Math.pow(HF,0.5)",
"HF",
"Math.pow(HF,0.5)",
"Math.pow",
"Math",
"HF",
"0.5",
"System.out.println(HF)",
"System.out.println",
"System.out",
"System",
"System.out",
"HF",
"n = scan.nextInt()",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n while(n>0){\n int sum=0;\n int[] s = new int[n];\n for(int i=0;i<n;i++){\n s[i]=scan.nextInt();\n sum+=s[i];\n }\n double ave = (double)sum/n;\n //System.out.println(ave);\n double HF=0;\n for(int i=0;i<n;i++){\n HF+=(ave-s[i])*(ave-s[i]);\n }\n HF/=(double)n;\n HF=Math.pow(HF,0.5);\n System.out.println(HF);\n n = scan.nextInt();\n }\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n while(n>0){\n int sum=0;\n int[] s = new int[n];\n for(int i=0;i<n;i++){\n s[i]=scan.nextInt();\n sum+=s[i];\n }\n double ave = (double)sum/n;\n //System.out.println(ave);\n double HF=0;\n for(int i=0;i<n;i++){\n HF+=(ave-s[i])*(ave-s[i]);\n }\n HF/=(double)n;\n HF=Math.pow(HF,0.5);\n System.out.println(HF);\n n = scan.nextInt();\n }\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
while(n>0){
int sum=0;
int[] s = new int[n];
for(int i=0;i<n;i++){
s[i]=scan.nextInt();
sum+=s[i];
}
double ave = (double)sum/n;
//System.out.println(ave);
double HF=0;
for(int i=0;i<n;i++){
HF+=(ave-s[i])*(ave-s[i]);
}
HF/=(double)n;
HF=Math.pow(HF,0.5);
System.out.println(HF);
n = scan.nextInt();
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
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,
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,
4,
18,
18,
13,
13,
4,
18,
13,
2,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
103,
5
],
[
103,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
10,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
17,
23
],
[
16,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
28
],
[
28,
29
],
[
28,
30
],
[
24,
31
],
[
31,
32
],
[
31,
33
],
[
24,
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
],
[
24,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
24,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
65,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
80,
88
],
[
24,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
97,
98
],
[
97,
99
],
[
6,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
] | [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n try(Scanner scn = new Scanner(System.in)) {\n int n;\n while((n = scn.nextInt()) > 0) {\n double sum = 0, sd = 0;\n double[] s = new double[n];\n\n for(int i = 0; i < n; i++) {\n s[i] = scn.nextDouble();\n sum += s[i];\n }\n double avg = sum / n;\n for(int i = 0; i < n; i++) {\n sd += Math.pow((s[i] - avg), 2);\n }\n System.out.println(Math.sqrt(sd / n));\n }\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n try(Scanner scn = new Scanner(System.in)) {\n int n;\n while((n = scn.nextInt()) > 0) {\n double sum = 0, sd = 0;\n double[] s = new double[n];\n\n for(int i = 0; i < n; i++) {\n s[i] = scn.nextDouble();\n sum += s[i];\n }\n double avg = sum / n;\n for(int i = 0; i < n; i++) {\n sd += Math.pow((s[i] - avg), 2);\n }\n System.out.println(Math.sqrt(sd / n));\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n try(Scanner scn = new Scanner(System.in)) {\n int n;\n while((n = scn.nextInt()) > 0) {\n double sum = 0, sd = 0;\n double[] s = new double[n];\n\n for(int i = 0; i < n; i++) {\n s[i] = scn.nextDouble();\n sum += s[i];\n }\n double avg = sum / n;\n for(int i = 0; i < n; i++) {\n sd += Math.pow((s[i] - avg), 2);\n }\n System.out.println(Math.sqrt(sd / n));\n }\n }\n }",
"main",
"{\n try(Scanner scn = new Scanner(System.in)) {\n int n;\n while((n = scn.nextInt()) > 0) {\n double sum = 0, sd = 0;\n double[] s = new double[n];\n\n for(int i = 0; i < n; i++) {\n s[i] = scn.nextDouble();\n sum += s[i];\n }\n double avg = sum / n;\n for(int i = 0; i < n; i++) {\n sd += Math.pow((s[i] - avg), 2);\n }\n System.out.println(Math.sqrt(sd / n));\n }\n }\n }",
"try(Scanner scn = new Scanner(System.in)) {\n int n;\n while((n = scn.nextInt()) > 0) {\n double sum = 0, sd = 0;\n double[] s = new double[n];\n\n for(int i = 0; i < n; i++) {\n s[i] = scn.nextDouble();\n sum += s[i];\n }\n double avg = sum / n;\n for(int i = 0; i < n; i++) {\n sd += Math.pow((s[i] - avg), 2);\n }\n System.out.println(Math.sqrt(sd / n));\n }\n }",
"{\n int n;\n while((n = scn.nextInt()) > 0) {\n double sum = 0, sd = 0;\n double[] s = new double[n];\n\n for(int i = 0; i < n; i++) {\n s[i] = scn.nextDouble();\n sum += s[i];\n }\n double avg = sum / n;\n for(int i = 0; i < n; i++) {\n sd += Math.pow((s[i] - avg), 2);\n }\n System.out.println(Math.sqrt(sd / n));\n }\n }",
"Scanner scn = new Scanner(System.in)",
"Scanner scn = new Scanner(System.in)",
"new Scanner(System.in)",
"int n;",
"n",
"while((n = scn.nextInt()) > 0) {\n double sum = 0, sd = 0;\n double[] s = new double[n];\n\n for(int i = 0; i < n; i++) {\n s[i] = scn.nextDouble();\n sum += s[i];\n }\n double avg = sum / n;\n for(int i = 0; i < n; i++) {\n sd += Math.pow((s[i] - avg), 2);\n }\n System.out.println(Math.sqrt(sd / n));\n }",
"(n = scn.nextInt()) > 0",
"(n = scn.nextInt())",
"n",
"scn.nextInt()",
"scn.nextInt",
"scn",
"0",
"{\n double sum = 0, sd = 0;\n double[] s = new double[n];\n\n for(int i = 0; i < n; i++) {\n s[i] = scn.nextDouble();\n sum += s[i];\n }\n double avg = sum / n;\n for(int i = 0; i < n; i++) {\n sd += Math.pow((s[i] - avg), 2);\n }\n System.out.println(Math.sqrt(sd / n));\n }",
"double sum = 0",
"sum",
"0",
"sd = 0;",
"sd",
"0",
"double[] s = new double[n];",
"s",
"new double[n]",
"n",
"for(int i = 0; i < n; i++) {\n s[i] = scn.nextDouble();\n sum += s[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n s[i] = scn.nextDouble();\n sum += s[i];\n }",
"{\n s[i] = scn.nextDouble();\n sum += s[i];\n }",
"s[i] = scn.nextDouble()",
"s[i]",
"s",
"i",
"scn.nextDouble()",
"scn.nextDouble",
"scn",
"sum += s[i]",
"sum",
"s[i]",
"s",
"i",
"double avg = sum / n;",
"avg",
"sum / n",
"sum",
"n",
"for(int i = 0; i < n; i++) {\n sd += Math.pow((s[i] - avg), 2);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n sd += Math.pow((s[i] - avg), 2);\n }",
"{\n sd += Math.pow((s[i] - avg), 2);\n }",
"sd += Math.pow((s[i] - avg), 2)",
"sd",
"Math.pow((s[i] - avg), 2)",
"Math.pow",
"Math",
"(s[i] - avg)",
"s[i]",
"s",
"i",
"avg",
"2",
"System.out.println(Math.sqrt(sd / n))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.sqrt(sd / n)",
"Math.sqrt",
"Math",
"sd / n",
"sd",
"n",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n try(Scanner scn = new Scanner(System.in)) {\n int n;\n while((n = scn.nextInt()) > 0) {\n double sum = 0, sd = 0;\n double[] s = new double[n];\n\n for(int i = 0; i < n; i++) {\n s[i] = scn.nextDouble();\n sum += s[i];\n }\n double avg = sum / n;\n for(int i = 0; i < n; i++) {\n sd += Math.pow((s[i] - avg), 2);\n }\n System.out.println(Math.sqrt(sd / n));\n }\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n try(Scanner scn = new Scanner(System.in)) {\n int n;\n while((n = scn.nextInt()) > 0) {\n double sum = 0, sd = 0;\n double[] s = new double[n];\n\n for(int i = 0; i < n; i++) {\n s[i] = scn.nextDouble();\n sum += s[i];\n }\n double avg = sum / n;\n for(int i = 0; i < n; i++) {\n sd += Math.pow((s[i] - avg), 2);\n }\n System.out.println(Math.sqrt(sd / n));\n }\n }\n }\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args) {
try(Scanner scn = new Scanner(System.in)) {
int n;
while((n = scn.nextInt()) > 0) {
double sum = 0, sd = 0;
double[] s = new double[n];
for(int i = 0; i < n; i++) {
s[i] = scn.nextDouble();
sum += s[i];
}
double avg = sum / n;
for(int i = 0; i < n; i++) {
sd += Math.pow((s[i] - avg), 2);
}
System.out.println(Math.sqrt(sd / n));
}
}
}
} |
[
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,
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,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
13,
2,
2,
18,
13,
13,
13,
2,
18,
13,
13,
13,
0,
13,
2,
13,
17,
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
],
[
116,
5
],
[
116,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
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
],
[
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
],
[
21,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
21,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
67,
68
],
[
67,
69
],
[
62,
70
],
[
70,
71
],
[
71,
72
],
[
62,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
76,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
21,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
89,
91
],
[
21,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
21,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
98,
104
],
[
21,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
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 public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n\n while (n != 0) {\n\n int[] score = new int[n];\n\n double ave = 0.0;\n double val = 0.0;\n\n for (int i = 0; i < n; i++) {\n score[i] = sc.nextInt();\n ave += score[i];\n }\n ave /= n * 1.0;\n\n for(int i = 0; i < n; i++)\n val += (score[i] - ave) * (score[i] - ave);\n\n val /= n *1.0;\n\n double sgm = Math.sqrt(val);\n\n System.out.printf(\"%f\\n\", sgm);\n\n n = sc.nextInt();\n }\n\n sc.close();\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n\n while (n != 0) {\n\n int[] score = new int[n];\n\n double ave = 0.0;\n double val = 0.0;\n\n for (int i = 0; i < n; i++) {\n score[i] = sc.nextInt();\n ave += score[i];\n }\n ave /= n * 1.0;\n\n for(int i = 0; i < n; i++)\n val += (score[i] - ave) * (score[i] - ave);\n\n val /= n *1.0;\n\n double sgm = Math.sqrt(val);\n\n System.out.printf(\"%f\\n\", sgm);\n\n n = sc.nextInt();\n }\n\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n\n while (n != 0) {\n\n int[] score = new int[n];\n\n double ave = 0.0;\n double val = 0.0;\n\n for (int i = 0; i < n; i++) {\n score[i] = sc.nextInt();\n ave += score[i];\n }\n ave /= n * 1.0;\n\n for(int i = 0; i < n; i++)\n val += (score[i] - ave) * (score[i] - ave);\n\n val /= n *1.0;\n\n double sgm = Math.sqrt(val);\n\n System.out.printf(\"%f\\n\", sgm);\n\n n = sc.nextInt();\n }\n\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n\n while (n != 0) {\n\n int[] score = new int[n];\n\n double ave = 0.0;\n double val = 0.0;\n\n for (int i = 0; i < n; i++) {\n score[i] = sc.nextInt();\n ave += score[i];\n }\n ave /= n * 1.0;\n\n for(int i = 0; i < n; i++)\n val += (score[i] - ave) * (score[i] - ave);\n\n val /= n *1.0;\n\n double sgm = Math.sqrt(val);\n\n System.out.printf(\"%f\\n\", sgm);\n\n n = sc.nextInt();\n }\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\n int[] score = new int[n];\n\n double ave = 0.0;\n double val = 0.0;\n\n for (int i = 0; i < n; i++) {\n score[i] = sc.nextInt();\n ave += score[i];\n }\n ave /= n * 1.0;\n\n for(int i = 0; i < n; i++)\n val += (score[i] - ave) * (score[i] - ave);\n\n val /= n *1.0;\n\n double sgm = Math.sqrt(val);\n\n System.out.printf(\"%f\\n\", sgm);\n\n n = sc.nextInt();\n }",
"n != 0",
"n",
"0",
"{\n\n int[] score = new int[n];\n\n double ave = 0.0;\n double val = 0.0;\n\n for (int i = 0; i < n; i++) {\n score[i] = sc.nextInt();\n ave += score[i];\n }\n ave /= n * 1.0;\n\n for(int i = 0; i < n; i++)\n val += (score[i] - ave) * (score[i] - ave);\n\n val /= n *1.0;\n\n double sgm = Math.sqrt(val);\n\n System.out.printf(\"%f\\n\", sgm);\n\n n = sc.nextInt();\n }",
"int[] score = new int[n];",
"score",
"new int[n]",
"n",
"double ave = 0.0;",
"ave",
"0.0",
"double val = 0.0;",
"val",
"0.0",
"for (int i = 0; i < n; i++) {\n score[i] = sc.nextInt();\n ave += score[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n score[i] = sc.nextInt();\n ave += score[i];\n }",
"{\n score[i] = sc.nextInt();\n ave += score[i];\n }",
"score[i] = sc.nextInt()",
"score[i]",
"score",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"ave += score[i]",
"ave",
"score[i]",
"score",
"i",
"ave /= n * 1.0",
"ave",
"n * 1.0",
"n",
"1.0",
"for(int i = 0; i < n; i++)\n val += (score[i] - ave) * (score[i] - ave);",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"val += (score[i] - ave) * (score[i] - ave);",
"val += (score[i] - ave) * (score[i] - ave)",
"val",
"(score[i] - ave) * (score[i] - ave)",
"(score[i] - ave)",
"score[i]",
"score",
"i",
"ave",
"(score[i] - ave)",
"score[i]",
"score",
"i",
"ave",
"val /= n *1.0",
"val",
"n *1.0",
"n",
"1.0",
"double sgm = Math.sqrt(val);",
"sgm",
"Math.sqrt(val)",
"Math.sqrt",
"Math",
"val",
"System.out.printf(\"%f\\n\", sgm)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%f\\n\"",
"sgm",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n\n while (n != 0) {\n\n int[] score = new int[n];\n\n double ave = 0.0;\n double val = 0.0;\n\n for (int i = 0; i < n; i++) {\n score[i] = sc.nextInt();\n ave += score[i];\n }\n ave /= n * 1.0;\n\n for(int i = 0; i < n; i++)\n val += (score[i] - ave) * (score[i] - ave);\n\n val /= n *1.0;\n\n double sgm = Math.sqrt(val);\n\n System.out.printf(\"%f\\n\", sgm);\n\n n = sc.nextInt();\n }\n\n sc.close();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n\n while (n != 0) {\n\n int[] score = new int[n];\n\n double ave = 0.0;\n double val = 0.0;\n\n for (int i = 0; i < n; i++) {\n score[i] = sc.nextInt();\n ave += score[i];\n }\n ave /= n * 1.0;\n\n for(int i = 0; i < n; i++)\n val += (score[i] - ave) * (score[i] - ave);\n\n val /= n *1.0;\n\n double sgm = Math.sqrt(val);\n\n System.out.printf(\"%f\\n\", sgm);\n\n n = sc.nextInt();\n }\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 = sc.nextInt();
while (n != 0) {
int[] score = new int[n];
double ave = 0.0;
double val = 0.0;
for (int i = 0; i < n; i++) {
score[i] = sc.nextInt();
ave += score[i];
}
ave /= n * 1.0;
for(int i = 0; i < n; i++)
val += (score[i] - ave) * (score[i] - ave);
val /= n *1.0;
double sgm = Math.sqrt(val);
System.out.printf("%f\n", sgm);
n = sc.nextInt();
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
13,
41,
13,
17,
14,
2,
13,
17,
30,
3,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
18,
13,
13,
0,
13,
2,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
2,
18,
13,
13,
13,
17,
0,
13,
2,
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
],
[
141,
5
],
[
141,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
16,
22
],
[
22,
23
],
[
22,
24
],
[
16,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
29,
30
],
[
16,
31
],
[
31,
32
],
[
31,
33
],
[
16,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
35,
45
],
[
45,
46
],
[
46,
47
],
[
35,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
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
],
[
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
],
[
107,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
121,
123
],
[
16,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
126,
128
],
[
16,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
134,
135
],
[
135,
136
],
[
134,
137
],
[
6,
138
],
[
138,
139
],
[
0,
140
],
[
140,
141
],
[
140,
142
]
] | [
"\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 int sum = 0;\n if (n == 0) { break; }\n int[] scores = new int[n];\n for (int i = 0; i < scores.length; i++) {\n scores[i] = sc.nextInt();\n }\n double average = 0, variance = 0, y = 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 < scores.length; i++) {\n double x = Math.pow((scores[i] - average), 2);\n y = x + y;\n }\n variance = y / n;\n System.out.println(Math.sqrt(variance));\n }\n }\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n try (Scanner sc = new Scanner(System.in)) {\n while (true) {\n int n = sc.nextInt();\n int sum = 0;\n if (n == 0) { break; }\n int[] scores = new int[n];\n for (int i = 0; i < scores.length; i++) {\n scores[i] = sc.nextInt();\n }\n double average = 0, variance = 0, y = 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 < scores.length; i++) {\n double x = Math.pow((scores[i] - average), 2);\n y = x + y;\n }\n variance = y / 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 int sum = 0;\n if (n == 0) { break; }\n int[] scores = new int[n];\n for (int i = 0; i < scores.length; i++) {\n scores[i] = sc.nextInt();\n }\n double average = 0, variance = 0, y = 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 < scores.length; i++) {\n double x = Math.pow((scores[i] - average), 2);\n y = x + y;\n }\n variance = y / 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 int sum = 0;\n if (n == 0) { break; }\n int[] scores = new int[n];\n for (int i = 0; i < scores.length; i++) {\n scores[i] = sc.nextInt();\n }\n double average = 0, variance = 0, y = 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 < scores.length; i++) {\n double x = Math.pow((scores[i] - average), 2);\n y = x + y;\n }\n variance = y / 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 int sum = 0;\n if (n == 0) { break; }\n int[] scores = new int[n];\n for (int i = 0; i < scores.length; i++) {\n scores[i] = sc.nextInt();\n }\n double average = 0, variance = 0, y = 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 < scores.length; i++) {\n double x = Math.pow((scores[i] - average), 2);\n y = x + y;\n }\n variance = y / n;\n System.out.println(Math.sqrt(variance));\n }\n }",
"{\n while (true) {\n int n = sc.nextInt();\n int sum = 0;\n if (n == 0) { break; }\n int[] scores = new int[n];\n for (int i = 0; i < scores.length; i++) {\n scores[i] = sc.nextInt();\n }\n double average = 0, variance = 0, y = 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 < scores.length; i++) {\n double x = Math.pow((scores[i] - average), 2);\n y = x + y;\n }\n variance = y / 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 int sum = 0;\n if (n == 0) { break; }\n int[] scores = new int[n];\n for (int i = 0; i < scores.length; i++) {\n scores[i] = sc.nextInt();\n }\n double average = 0, variance = 0, y = 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 < scores.length; i++) {\n double x = Math.pow((scores[i] - average), 2);\n y = x + y;\n }\n variance = y / n;\n System.out.println(Math.sqrt(variance));\n }",
"true",
"{\n int n = sc.nextInt();\n int sum = 0;\n if (n == 0) { break; }\n int[] scores = new int[n];\n for (int i = 0; i < scores.length; i++) {\n scores[i] = sc.nextInt();\n }\n double average = 0, variance = 0, y = 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 < scores.length; i++) {\n double x = Math.pow((scores[i] - average), 2);\n y = x + y;\n }\n variance = y / n;\n System.out.println(Math.sqrt(variance));\n }",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int sum = 0;",
"sum",
"0",
"if (n == 0) { break; }",
"n == 0",
"n",
"0",
"{ break; }",
"break;",
"int[] scores = new int[n];",
"scores",
"new int[n]",
"n",
"for (int i = 0; i < scores.length; i++) {\n scores[i] = sc.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < scores.length",
"i",
"scores.length",
"scores",
"scores.length",
"i++",
"i++",
"i",
"{\n scores[i] = sc.nextInt();\n }",
"{\n scores[i] = sc.nextInt();\n }",
"scores[i] = sc.nextInt()",
"scores[i]",
"scores",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double average = 0",
"average",
"0",
"variance = 0",
"variance",
"0",
"y = 0;",
"y",
"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 < scores.length; i++) {\n double x = Math.pow((scores[i] - average), 2);\n y = x + y;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < scores.length",
"i",
"scores.length",
"scores",
"scores.length",
"i++",
"i++",
"i",
"{\n double x = Math.pow((scores[i] - average), 2);\n y = x + y;\n }",
"{\n double x = Math.pow((scores[i] - average), 2);\n y = x + y;\n }",
"double x = Math.pow((scores[i] - average), 2);",
"x",
"Math.pow((scores[i] - average), 2)",
"Math.pow",
"Math",
"(scores[i] - average)",
"scores[i]",
"scores",
"i",
"average",
"2",
"y = x + y",
"y",
"x + y",
"x",
"y",
"variance = y / n",
"variance",
"y / n",
"y",
"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 int sum = 0;\n if (n == 0) { break; }\n int[] scores = new int[n];\n for (int i = 0; i < scores.length; i++) {\n scores[i] = sc.nextInt();\n }\n double average = 0, variance = 0, y = 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 < scores.length; i++) {\n double x = Math.pow((scores[i] - average), 2);\n y = x + y;\n }\n variance = y / 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 int sum = 0;\n if (n == 0) { break; }\n int[] scores = new int[n];\n for (int i = 0; i < scores.length; i++) {\n scores[i] = sc.nextInt();\n }\n double average = 0, variance = 0, y = 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 < scores.length; i++) {\n double x = Math.pow((scores[i] - average), 2);\n y = x + y;\n }\n variance = y / 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();
int sum = 0;
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, y = 0;
for (int i = 0; i < scores.length; i++) {
sum = sum + scores[i];
}
average = (double)sum / n;
for (int i = 0; i < scores.length; i++) {
double x = Math.pow((scores[i] - average), 2);
y = x + y;
}
variance = y / n;
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,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
18,
13,
13,
41,
13,
2,
13,
18,
13,
13,
41,
13,
17,
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,
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
],
[
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
],
[
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
],
[
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
],
[
46,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
14,
59
],
[
59,
60
],
[
59,
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
],
[
76,
77
],
[
76,
78
],
[
69,
79
],
[
79,
80
],
[
80,
81
],
[
69,
82
],
[
83,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
87,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
86,
98
],
[
98,
99
],
[
98,
100
],
[
14,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
6,
110
],
[
110,
111
],
[
0,
112
],
[
112,
113
],
[
112,
114
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n while(true) {\n int n = stdIn.nextInt();\n if(n == 0) break;\n int[] scores = new int[n];\n double ave_sum = 0;\n \n for(int i = 0; i < scores.length; i++) {\n scores[i] = stdIn.nextInt();\n ave_sum += scores[i];\n }\n double average = ave_sum / scores.length;\n double variance = 0;\n\n for(int i = 0; i < scores.length; i++) {\n variance += ((scores[i] - average) * (scores[i] - average)) / scores.length;\n }\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 Scanner stdIn = new Scanner(System.in);\n while(true) {\n int n = stdIn.nextInt();\n if(n == 0) break;\n int[] scores = new int[n];\n double ave_sum = 0;\n \n for(int i = 0; i < scores.length; i++) {\n scores[i] = stdIn.nextInt();\n ave_sum += scores[i];\n }\n double average = ave_sum / scores.length;\n double variance = 0;\n\n for(int i = 0; i < scores.length; i++) {\n variance += ((scores[i] - average) * (scores[i] - average)) / scores.length;\n }\n\n System.out.println(Math.sqrt(variance));\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n while(true) {\n int n = stdIn.nextInt();\n if(n == 0) break;\n int[] scores = new int[n];\n double ave_sum = 0;\n \n for(int i = 0; i < scores.length; i++) {\n scores[i] = stdIn.nextInt();\n ave_sum += scores[i];\n }\n double average = ave_sum / scores.length;\n double variance = 0;\n\n for(int i = 0; i < scores.length; i++) {\n variance += ((scores[i] - average) * (scores[i] - average)) / scores.length;\n }\n\n System.out.println(Math.sqrt(variance));\n }\n }",
"main",
"{\n Scanner stdIn = new Scanner(System.in);\n while(true) {\n int n = stdIn.nextInt();\n if(n == 0) break;\n int[] scores = new int[n];\n double ave_sum = 0;\n \n for(int i = 0; i < scores.length; i++) {\n scores[i] = stdIn.nextInt();\n ave_sum += scores[i];\n }\n double average = ave_sum / scores.length;\n double variance = 0;\n\n for(int i = 0; i < scores.length; i++) {\n variance += ((scores[i] - average) * (scores[i] - average)) / scores.length;\n }\n\n System.out.println(Math.sqrt(variance));\n }\n }",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"while(true) {\n int n = stdIn.nextInt();\n if(n == 0) break;\n int[] scores = new int[n];\n double ave_sum = 0;\n \n for(int i = 0; i < scores.length; i++) {\n scores[i] = stdIn.nextInt();\n ave_sum += scores[i];\n }\n double average = ave_sum / scores.length;\n double variance = 0;\n\n for(int i = 0; i < scores.length; i++) {\n variance += ((scores[i] - average) * (scores[i] - average)) / scores.length;\n }\n\n System.out.println(Math.sqrt(variance));\n }",
"true",
"{\n int n = stdIn.nextInt();\n if(n == 0) break;\n int[] scores = new int[n];\n double ave_sum = 0;\n \n for(int i = 0; i < scores.length; i++) {\n scores[i] = stdIn.nextInt();\n ave_sum += scores[i];\n }\n double average = ave_sum / scores.length;\n double variance = 0;\n\n for(int i = 0; i < scores.length; i++) {\n variance += ((scores[i] - average) * (scores[i] - average)) / scores.length;\n }\n\n System.out.println(Math.sqrt(variance));\n }",
"int n = stdIn.nextInt();",
"n",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"if(n == 0) break;",
"n == 0",
"n",
"0",
"break;",
"int[] scores = new int[n];",
"scores",
"new int[n]",
"n",
"double ave_sum = 0;",
"ave_sum",
"0",
"for(int i = 0; i < scores.length; i++) {\n scores[i] = stdIn.nextInt();\n ave_sum += scores[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < scores.length",
"i",
"scores.length",
"scores",
"scores.length",
"i++",
"i++",
"i",
"{\n scores[i] = stdIn.nextInt();\n ave_sum += scores[i];\n }",
"{\n scores[i] = stdIn.nextInt();\n ave_sum += scores[i];\n }",
"scores[i] = stdIn.nextInt()",
"scores[i]",
"scores",
"i",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"ave_sum += scores[i]",
"ave_sum",
"scores[i]",
"scores",
"i",
"double average = ave_sum / scores.length;",
"average",
"ave_sum / scores.length",
"ave_sum",
"scores.length",
"scores",
"scores.length",
"double variance = 0;",
"variance",
"0",
"for(int i = 0; i < scores.length; i++) {\n variance += ((scores[i] - average) * (scores[i] - average)) / scores.length;\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)) / scores.length;\n }",
"{\n variance += ((scores[i] - average) * (scores[i] - average)) / scores.length;\n }",
"variance += ((scores[i] - average) * (scores[i] - average)) / scores.length",
"variance",
"((scores[i] - average) * (scores[i] - average)) / scores.length",
"((scores[i] - average) * (scores[i] - average))",
"(scores[i] - average)",
"scores[i]",
"scores",
"i",
"average",
"(scores[i] - average)",
"scores[i]",
"scores",
"i",
"average",
"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 Scanner stdIn = new Scanner(System.in);\n while(true) {\n int n = stdIn.nextInt();\n if(n == 0) break;\n int[] scores = new int[n];\n double ave_sum = 0;\n \n for(int i = 0; i < scores.length; i++) {\n scores[i] = stdIn.nextInt();\n ave_sum += scores[i];\n }\n double average = ave_sum / scores.length;\n double variance = 0;\n\n for(int i = 0; i < scores.length; i++) {\n variance += ((scores[i] - average) * (scores[i] - average)) / scores.length;\n }\n\n System.out.println(Math.sqrt(variance));\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n while(true) {\n int n = stdIn.nextInt();\n if(n == 0) break;\n int[] scores = new int[n];\n double ave_sum = 0;\n \n for(int i = 0; i < scores.length; i++) {\n scores[i] = stdIn.nextInt();\n ave_sum += scores[i];\n }\n double average = ave_sum / scores.length;\n double variance = 0;\n\n for(int i = 0; i < scores.length; i++) {\n variance += ((scores[i] - average) * (scores[i] - average)) / scores.length;\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 stdIn = new Scanner(System.in);
while(true) {
int n = stdIn.nextInt();
if(n == 0) break;
int[] scores = new int[n];
double ave_sum = 0;
for(int i = 0; i < scores.length; i++) {
scores[i] = stdIn.nextInt();
ave_sum += scores[i];
}
double average = ave_sum / scores.length;
double variance = 0;
for(int i = 0; i < scores.length; i++) {
variance += ((scores[i] - average) * (scores[i] - average)) / 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,
29,
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,
4,
18,
13,
2,
18,
13,
13,
13,
17,
0,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
104,
5
],
[
104,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
14,
25
],
[
25,
26
],
[
25,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
14,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
50,
51
],
[
44,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
14,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
14,
62
],
[
62,
63
],
[
62,
64
],
[
14,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
65,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
80,
88
],
[
14,
89
],
[
89,
90
],
[
89,
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\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tint n = in.nextInt();\n\t\t\tif(n==0) return;\n\t\t\tint sum = 0;\n\t\t\tint[] darr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdarr[i] = in.nextInt();\n\t\t\t\tsum += darr[i];\n\t\t\t}\n\t\t\tdouble m = (double)sum / n;\n\t\t\tdouble bunsan = 0.0;\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\tbunsan += Math.pow(darr[i] - m, 2.0);\n\t\t\t}\n\t\t\tbunsan /= n;\n\t\t\tSystem.out.println(Math.sqrt(bunsan));\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tint n = in.nextInt();\n\t\t\tif(n==0) return;\n\t\t\tint sum = 0;\n\t\t\tint[] darr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdarr[i] = in.nextInt();\n\t\t\t\tsum += darr[i];\n\t\t\t}\n\t\t\tdouble m = (double)sum / n;\n\t\t\tdouble bunsan = 0.0;\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\tbunsan += Math.pow(darr[i] - m, 2.0);\n\t\t\t}\n\t\t\tbunsan /= n;\n\t\t\tSystem.out.println(Math.sqrt(bunsan));\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tint n = in.nextInt();\n\t\t\tif(n==0) return;\n\t\t\tint sum = 0;\n\t\t\tint[] darr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdarr[i] = in.nextInt();\n\t\t\t\tsum += darr[i];\n\t\t\t}\n\t\t\tdouble m = (double)sum / n;\n\t\t\tdouble bunsan = 0.0;\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\tbunsan += Math.pow(darr[i] - m, 2.0);\n\t\t\t}\n\t\t\tbunsan /= n;\n\t\t\tSystem.out.println(Math.sqrt(bunsan));\n\t\t}\n\t}",
"main",
"{\n\t\tScanner in = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tint n = in.nextInt();\n\t\t\tif(n==0) return;\n\t\t\tint sum = 0;\n\t\t\tint[] darr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdarr[i] = in.nextInt();\n\t\t\t\tsum += darr[i];\n\t\t\t}\n\t\t\tdouble m = (double)sum / n;\n\t\t\tdouble bunsan = 0.0;\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\tbunsan += Math.pow(darr[i] - m, 2.0);\n\t\t\t}\n\t\t\tbunsan /= n;\n\t\t\tSystem.out.println(Math.sqrt(bunsan));\n\t\t}\n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"while(true) {\n\t\t\tint n = in.nextInt();\n\t\t\tif(n==0) return;\n\t\t\tint sum = 0;\n\t\t\tint[] darr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdarr[i] = in.nextInt();\n\t\t\t\tsum += darr[i];\n\t\t\t}\n\t\t\tdouble m = (double)sum / n;\n\t\t\tdouble bunsan = 0.0;\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\tbunsan += Math.pow(darr[i] - m, 2.0);\n\t\t\t}\n\t\t\tbunsan /= n;\n\t\t\tSystem.out.println(Math.sqrt(bunsan));\n\t\t}",
"true",
"{\n\t\t\tint n = in.nextInt();\n\t\t\tif(n==0) return;\n\t\t\tint sum = 0;\n\t\t\tint[] darr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdarr[i] = in.nextInt();\n\t\t\t\tsum += darr[i];\n\t\t\t}\n\t\t\tdouble m = (double)sum / n;\n\t\t\tdouble bunsan = 0.0;\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\tbunsan += Math.pow(darr[i] - m, 2.0);\n\t\t\t}\n\t\t\tbunsan /= n;\n\t\t\tSystem.out.println(Math.sqrt(bunsan));\n\t\t}",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"if(n==0) return;",
"n==0",
"n",
"0",
"return;",
"int sum = 0;",
"sum",
"0",
"int[] darr = new int[n];",
"darr",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n\t\t\t\tdarr[i] = in.nextInt();\n\t\t\t\tsum += darr[i];\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tdarr[i] = in.nextInt();\n\t\t\t\tsum += darr[i];\n\t\t\t}",
"{\n\t\t\t\tdarr[i] = in.nextInt();\n\t\t\t\tsum += darr[i];\n\t\t\t}",
"darr[i] = in.nextInt()",
"darr[i]",
"darr",
"i",
"in.nextInt()",
"in.nextInt",
"in",
"sum += darr[i]",
"sum",
"darr[i]",
"darr",
"i",
"double m = (double)sum / n;",
"m",
"(double)sum / n",
"(double)sum",
"n",
"double bunsan = 0.0;",
"bunsan",
"0.0",
"for(int i=0;i<n;i++) {\n\t\t\t\tbunsan += Math.pow(darr[i] - m, 2.0);\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tbunsan += Math.pow(darr[i] - m, 2.0);\n\t\t\t}",
"{\n\t\t\t\tbunsan += Math.pow(darr[i] - m, 2.0);\n\t\t\t}",
"bunsan += Math.pow(darr[i] - m, 2.0)",
"bunsan",
"Math.pow(darr[i] - m, 2.0)",
"Math.pow",
"Math",
"darr[i] - m",
"darr[i]",
"darr",
"i",
"m",
"2.0",
"bunsan /= n",
"bunsan",
"n",
"System.out.println(Math.sqrt(bunsan))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.sqrt(bunsan)",
"Math.sqrt",
"Math",
"bunsan",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tint n = in.nextInt();\n\t\t\tif(n==0) return;\n\t\t\tint sum = 0;\n\t\t\tint[] darr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdarr[i] = in.nextInt();\n\t\t\t\tsum += darr[i];\n\t\t\t}\n\t\t\tdouble m = (double)sum / n;\n\t\t\tdouble bunsan = 0.0;\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\tbunsan += Math.pow(darr[i] - m, 2.0);\n\t\t\t}\n\t\t\tbunsan /= n;\n\t\t\tSystem.out.println(Math.sqrt(bunsan));\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tint n = in.nextInt();\n\t\t\tif(n==0) return;\n\t\t\tint sum = 0;\n\t\t\tint[] darr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tdarr[i] = in.nextInt();\n\t\t\t\tsum += darr[i];\n\t\t\t}\n\t\t\tdouble m = (double)sum / n;\n\t\t\tdouble bunsan = 0.0;\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\tbunsan += Math.pow(darr[i] - m, 2.0);\n\t\t\t}\n\t\t\tbunsan /= n;\n\t\t\tSystem.out.println(Math.sqrt(bunsan));\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
while(true) {
int n = in.nextInt();
if(n==0) return;
int sum = 0;
int[] darr = new int[n];
for (int i = 0; i < n; i++) {
darr[i] = in.nextInt();
sum += darr[i];
}
double m = (double)sum / n;
double bunsan = 0.0;
for(int i=0;i<n;i++) {
bunsan += Math.pow(darr[i] - m, 2.0);
}
bunsan /= n;
System.out.println(Math.sqrt(bunsan));
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
20,
17,
41,
13,
20,
17,
42,
17,
30,
0,
13,
4,
18,
13,
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,
18,
13,
13,
0,
13,
2,
13,
13,
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,
41,
13,
2,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
13,
13,
0,
13,
17,
0,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
132,
5
],
[
132,
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
],
[
23,
25
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
33,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
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
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
91,
99
],
[
86,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
102,
104
],
[
33,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
107,
109
],
[
33,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
110,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
33,
120
],
[
120,
121
],
[
120,
122
],
[
33,
123
],
[
123,
124
],
[
123,
125
],
[
8,
126
],
[
126,
127
],
[
127,
128
],
[
6,
129
],
[
129,
130
],
[
0,
131
],
[
131,
132
],
[
131,
133
]
] | [
"import java.util.Scanner;\npublic class Main{\n\tpublic static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int n;\n double ave=0,sum=0,sum2=0;\n double[] data = new double[1001];\n double[] data2 = new double[1001];\n \n \n while(true) {\n n = sc.nextInt();\n if(n==0)break;\n for(int i = 0;i<n;i++) {\n \tdata[i]=sc.nextInt();\n \tsum +=data[i];\n }\n ave = sum/n;\n \t\n for(int i = 0;i<n;i++) {\n \tdata2[i]=Math.pow(data[i]-ave, 2);\n \tsum2 +=data2[i];\n \t}\n double ans = sum2/n;\n System.out.printf(\"%f\\n\", Math.sqrt(ans));\n \n \n \n sum =0 ;\n sum2=0;\n }\n \n \n \n \n sc.close();\n\t}\n\n\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int n;\n double ave=0,sum=0,sum2=0;\n double[] data = new double[1001];\n double[] data2 = new double[1001];\n \n \n while(true) {\n n = sc.nextInt();\n if(n==0)break;\n for(int i = 0;i<n;i++) {\n \tdata[i]=sc.nextInt();\n \tsum +=data[i];\n }\n ave = sum/n;\n \t\n for(int i = 0;i<n;i++) {\n \tdata2[i]=Math.pow(data[i]-ave, 2);\n \tsum2 +=data2[i];\n \t}\n double ans = sum2/n;\n System.out.printf(\"%f\\n\", Math.sqrt(ans));\n \n \n \n sum =0 ;\n sum2=0;\n }\n \n \n \n \n sc.close();\n\t}\n\n\n}",
"Main",
"public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int n;\n double ave=0,sum=0,sum2=0;\n double[] data = new double[1001];\n double[] data2 = new double[1001];\n \n \n while(true) {\n n = sc.nextInt();\n if(n==0)break;\n for(int i = 0;i<n;i++) {\n \tdata[i]=sc.nextInt();\n \tsum +=data[i];\n }\n ave = sum/n;\n \t\n for(int i = 0;i<n;i++) {\n \tdata2[i]=Math.pow(data[i]-ave, 2);\n \tsum2 +=data2[i];\n \t}\n double ans = sum2/n;\n System.out.printf(\"%f\\n\", Math.sqrt(ans));\n \n \n \n sum =0 ;\n sum2=0;\n }\n \n \n \n \n sc.close();\n\t}",
"main",
"{\n\n Scanner sc = new Scanner(System.in);\n int n;\n double ave=0,sum=0,sum2=0;\n double[] data = new double[1001];\n double[] data2 = new double[1001];\n \n \n while(true) {\n n = sc.nextInt();\n if(n==0)break;\n for(int i = 0;i<n;i++) {\n \tdata[i]=sc.nextInt();\n \tsum +=data[i];\n }\n ave = sum/n;\n \t\n for(int i = 0;i<n;i++) {\n \tdata2[i]=Math.pow(data[i]-ave, 2);\n \tsum2 +=data2[i];\n \t}\n double ans = sum2/n;\n System.out.printf(\"%f\\n\", Math.sqrt(ans));\n \n \n \n sum =0 ;\n sum2=0;\n }\n \n \n \n \n sc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n;",
"n",
"double ave=0",
"ave",
"0",
"sum=0",
"sum",
"0",
"sum2=0;",
"sum2",
"0",
"double[] data = new double[1001];",
"data",
"new double[1001]",
"1001",
"double[] data2 = new double[1001];",
"data2",
"new double[1001]",
"1001",
"while(true) {\n n = sc.nextInt();\n if(n==0)break;\n for(int i = 0;i<n;i++) {\n \tdata[i]=sc.nextInt();\n \tsum +=data[i];\n }\n ave = sum/n;\n \t\n for(int i = 0;i<n;i++) {\n \tdata2[i]=Math.pow(data[i]-ave, 2);\n \tsum2 +=data2[i];\n \t}\n double ans = sum2/n;\n System.out.printf(\"%f\\n\", Math.sqrt(ans));\n \n \n \n sum =0 ;\n sum2=0;\n }",
"true",
"{\n n = sc.nextInt();\n if(n==0)break;\n for(int i = 0;i<n;i++) {\n \tdata[i]=sc.nextInt();\n \tsum +=data[i];\n }\n ave = sum/n;\n \t\n for(int i = 0;i<n;i++) {\n \tdata2[i]=Math.pow(data[i]-ave, 2);\n \tsum2 +=data2[i];\n \t}\n double ans = sum2/n;\n System.out.printf(\"%f\\n\", Math.sqrt(ans));\n \n \n \n sum =0 ;\n sum2=0;\n }",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(n==0)break;",
"n==0",
"n",
"0",
"break;",
"for(int i = 0;i<n;i++) {\n \tdata[i]=sc.nextInt();\n \tsum +=data[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \tdata[i]=sc.nextInt();\n \tsum +=data[i];\n }",
"{\n \tdata[i]=sc.nextInt();\n \tsum +=data[i];\n }",
"data[i]=sc.nextInt()",
"data[i]",
"data",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sum +=data[i]",
"sum",
"data[i]",
"data",
"i",
"ave = sum/n",
"ave",
"sum/n",
"sum",
"n",
"for(int i = 0;i<n;i++) {\n \tdata2[i]=Math.pow(data[i]-ave, 2);\n \tsum2 +=data2[i];\n \t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \tdata2[i]=Math.pow(data[i]-ave, 2);\n \tsum2 +=data2[i];\n \t}",
"{\n \tdata2[i]=Math.pow(data[i]-ave, 2);\n \tsum2 +=data2[i];\n \t}",
"data2[i]=Math.pow(data[i]-ave, 2)",
"data2[i]",
"data2",
"i",
"Math.pow(data[i]-ave, 2)",
"Math.pow",
"Math",
"data[i]-ave",
"data[i]",
"data",
"i",
"ave",
"2",
"sum2 +=data2[i]",
"sum2",
"data2[i]",
"data2",
"i",
"double ans = sum2/n;",
"ans",
"sum2/n",
"sum2",
"n",
"System.out.printf(\"%f\\n\", Math.sqrt(ans))",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%f\\n\"",
"Math.sqrt(ans)",
"Math.sqrt",
"Math",
"ans",
"sum =0",
"sum",
"0",
"sum2=0",
"sum2",
"0",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int n;\n double ave=0,sum=0,sum2=0;\n double[] data = new double[1001];\n double[] data2 = new double[1001];\n \n \n while(true) {\n n = sc.nextInt();\n if(n==0)break;\n for(int i = 0;i<n;i++) {\n \tdata[i]=sc.nextInt();\n \tsum +=data[i];\n }\n ave = sum/n;\n \t\n for(int i = 0;i<n;i++) {\n \tdata2[i]=Math.pow(data[i]-ave, 2);\n \tsum2 +=data2[i];\n \t}\n double ans = sum2/n;\n System.out.printf(\"%f\\n\", Math.sqrt(ans));\n \n \n \n sum =0 ;\n sum2=0;\n }\n \n \n \n \n sc.close();\n\t}\n\n\n}",
"public class Main{\n\tpublic static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int n;\n double ave=0,sum=0,sum2=0;\n double[] data = new double[1001];\n double[] data2 = new double[1001];\n \n \n while(true) {\n n = sc.nextInt();\n if(n==0)break;\n for(int i = 0;i<n;i++) {\n \tdata[i]=sc.nextInt();\n \tsum +=data[i];\n }\n ave = sum/n;\n \t\n for(int i = 0;i<n;i++) {\n \tdata2[i]=Math.pow(data[i]-ave, 2);\n \tsum2 +=data2[i];\n \t}\n double ans = sum2/n;\n System.out.printf(\"%f\\n\", Math.sqrt(ans));\n \n \n \n sum =0 ;\n sum2=0;\n }\n \n \n \n \n sc.close();\n\t}\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 ave=0,sum=0,sum2=0;
double[] data = new double[1001];
double[] data2 = new double[1001];
while(true) {
n = sc.nextInt();
if(n==0)break;
for(int i = 0;i<n;i++) {
data[i]=sc.nextInt();
sum +=data[i];
}
ave = sum/n;
for(int i = 0;i<n;i++) {
data2[i]=Math.pow(data[i]-ave, 2);
sum2 +=data2[i];
}
double ans = sum2/n;
System.out.printf("%f\n", Math.sqrt(ans));
sum =0 ;
sum2=0;
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
0,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
18,
13,
13,
41,
13,
2,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
2,
18,
13,
13,
13,
17,
0,
13,
13,
41,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
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
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
17,
23
],
[
16,
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
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
50,
51
],
[
44,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
24,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
24,
62
],
[
62,
63
],
[
62,
64
],
[
24,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
65,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
80,
88
],
[
24,
89
],
[
89,
90
],
[
89,
91
],
[
24,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
24,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
6,
104
],
[
104,
105
],
[
0,
106
],
[
106,
107
],
[
106,
108
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner reader = new Scanner(System.in);\n\n int n;\n double[] s;\n while ((n = reader.nextInt()) != 0) {\n s = new double[n];\n double sum = 0;\n for (int i = 0; i < n; i++) {\n s[i] = reader.nextDouble();\n sum += s[i];\n }\n double m = sum / n;\n\n double sumA = 0;\n for (int i = 0; i < n; i++) {\n sumA += Math.pow(s[i] - m, 2);\n }\n sumA /= n;\n double Alpha = Math.sqrt(sumA);\n System.out.println(Alpha);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner reader = new Scanner(System.in);\n\n int n;\n double[] s;\n while ((n = reader.nextInt()) != 0) {\n s = new double[n];\n double sum = 0;\n for (int i = 0; i < n; i++) {\n s[i] = reader.nextDouble();\n sum += s[i];\n }\n double m = sum / n;\n\n double sumA = 0;\n for (int i = 0; i < n; i++) {\n sumA += Math.pow(s[i] - m, 2);\n }\n sumA /= n;\n double Alpha = Math.sqrt(sumA);\n System.out.println(Alpha);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner reader = new Scanner(System.in);\n\n int n;\n double[] s;\n while ((n = reader.nextInt()) != 0) {\n s = new double[n];\n double sum = 0;\n for (int i = 0; i < n; i++) {\n s[i] = reader.nextDouble();\n sum += s[i];\n }\n double m = sum / n;\n\n double sumA = 0;\n for (int i = 0; i < n; i++) {\n sumA += Math.pow(s[i] - m, 2);\n }\n sumA /= n;\n double Alpha = Math.sqrt(sumA);\n System.out.println(Alpha);\n }\n }",
"main",
"{\n Scanner reader = new Scanner(System.in);\n\n int n;\n double[] s;\n while ((n = reader.nextInt()) != 0) {\n s = new double[n];\n double sum = 0;\n for (int i = 0; i < n; i++) {\n s[i] = reader.nextDouble();\n sum += s[i];\n }\n double m = sum / n;\n\n double sumA = 0;\n for (int i = 0; i < n; i++) {\n sumA += Math.pow(s[i] - m, 2);\n }\n sumA /= n;\n double Alpha = Math.sqrt(sumA);\n System.out.println(Alpha);\n }\n }",
"Scanner reader = new Scanner(System.in);",
"reader",
"new Scanner(System.in)",
"int n;",
"n",
"double[] s;",
"s",
"while ((n = reader.nextInt()) != 0) {\n s = new double[n];\n double sum = 0;\n for (int i = 0; i < n; i++) {\n s[i] = reader.nextDouble();\n sum += s[i];\n }\n double m = sum / n;\n\n double sumA = 0;\n for (int i = 0; i < n; i++) {\n sumA += Math.pow(s[i] - m, 2);\n }\n sumA /= n;\n double Alpha = Math.sqrt(sumA);\n System.out.println(Alpha);\n }",
"(n = reader.nextInt()) != 0",
"(n = reader.nextInt())",
"n",
"reader.nextInt()",
"reader.nextInt",
"reader",
"0",
"{\n s = new double[n];\n double sum = 0;\n for (int i = 0; i < n; i++) {\n s[i] = reader.nextDouble();\n sum += s[i];\n }\n double m = sum / n;\n\n double sumA = 0;\n for (int i = 0; i < n; i++) {\n sumA += Math.pow(s[i] - m, 2);\n }\n sumA /= n;\n double Alpha = Math.sqrt(sumA);\n System.out.println(Alpha);\n }",
"s = new double[n]",
"s",
"new double[n]",
"n",
"double sum = 0;",
"sum",
"0",
"for (int i = 0; i < n; i++) {\n s[i] = reader.nextDouble();\n sum += s[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n s[i] = reader.nextDouble();\n sum += s[i];\n }",
"{\n s[i] = reader.nextDouble();\n sum += s[i];\n }",
"s[i] = reader.nextDouble()",
"s[i]",
"s",
"i",
"reader.nextDouble()",
"reader.nextDouble",
"reader",
"sum += s[i]",
"sum",
"s[i]",
"s",
"i",
"double m = sum / n;",
"m",
"sum / n",
"sum",
"n",
"double sumA = 0;",
"sumA",
"0",
"for (int i = 0; i < n; i++) {\n sumA += Math.pow(s[i] - m, 2);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n sumA += Math.pow(s[i] - m, 2);\n }",
"{\n sumA += Math.pow(s[i] - m, 2);\n }",
"sumA += Math.pow(s[i] - m, 2)",
"sumA",
"Math.pow(s[i] - m, 2)",
"Math.pow",
"Math",
"s[i] - m",
"s[i]",
"s",
"i",
"m",
"2",
"sumA /= n",
"sumA",
"n",
"double Alpha = Math.sqrt(sumA);",
"Alpha",
"Math.sqrt(sumA)",
"Math.sqrt",
"Math",
"sumA",
"System.out.println(Alpha)",
"System.out.println",
"System.out",
"System",
"System.out",
"Alpha",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner reader = new Scanner(System.in);\n\n int n;\n double[] s;\n while ((n = reader.nextInt()) != 0) {\n s = new double[n];\n double sum = 0;\n for (int i = 0; i < n; i++) {\n s[i] = reader.nextDouble();\n sum += s[i];\n }\n double m = sum / n;\n\n double sumA = 0;\n for (int i = 0; i < n; i++) {\n sumA += Math.pow(s[i] - m, 2);\n }\n sumA /= n;\n double Alpha = Math.sqrt(sumA);\n System.out.println(Alpha);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner reader = new Scanner(System.in);\n\n int n;\n double[] s;\n while ((n = reader.nextInt()) != 0) {\n s = new double[n];\n double sum = 0;\n for (int i = 0; i < n; i++) {\n s[i] = reader.nextDouble();\n sum += s[i];\n }\n double m = sum / n;\n\n double sumA = 0;\n for (int i = 0; i < n; i++) {\n sumA += Math.pow(s[i] - m, 2);\n }\n sumA /= n;\n double Alpha = Math.sqrt(sumA);\n System.out.println(Alpha);\n }\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
int n;
double[] s;
while ((n = reader.nextInt()) != 0) {
s = new double[n];
double sum = 0;
for (int i = 0; i < n; i++) {
s[i] = reader.nextDouble();
sum += s[i];
}
double m = sum / n;
double sumA = 0;
for (int i = 0; i < n; i++) {
sumA += Math.pow(s[i] - m, 2);
}
sumA /= n;
double Alpha = Math.sqrt(sumA);
System.out.println(Alpha);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
42,
17,
30,
0,
13,
4,
18,
13,
4,
18,
13,
14,
2,
13,
17,
30,
3,
0,
13,
17,
0,
13,
17,
0,
13,
4,
18,
4,
18,
13,
17,
0,
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,
0,
13,
18,
13,
13,
0,
13,
2,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
2,
18,
13,
13,
13,
17,
0,
13,
13,
0,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
143,
8
],
[
143,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
11,
19
],
[
19,
20
],
[
11,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
11,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
35,
36
],
[
36,
37
],
[
29,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
42,
43
],
[
29,
44
],
[
44,
45
],
[
44,
46
],
[
29,
47
],
[
47,
48
],
[
47,
49
],
[
29,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
52,
57
],
[
29,
58
],
[
58,
59
],
[
58,
60
],
[
61,
62
],
[
61,
63
],
[
29,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
64,
72
],
[
72,
73
],
[
73,
74
],
[
64,
75
],
[
76,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
84,
85
],
[
84,
86
],
[
76,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
89,
91
],
[
29,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
94,
96
],
[
29,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
97,
105
],
[
105,
106
],
[
106,
107
],
[
97,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
112,
120
],
[
29,
121
],
[
121,
122
],
[
121,
123
],
[
29,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
29,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
130,
135
],
[
135,
136
],
[
136,
137
],
[
135,
138
],
[
135,
139
],
[
9,
140
],
[
140,
141
],
[
0,
142
],
[
142,
143
],
[
142,
144
]
] | [
"import java.util.*;\nimport java.text.*;\n/*\nMain class for AOJ where there is no input.\n*/\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String[] arr;\n int n;\n int[] score;\n double avg;\n int sum;\n double stdDeviation;\n \n while(true){\n n = Integer.parseInt(sc.nextLine());\n if(n == 0){\n break;\n }\n \n sum = 0;\n stdDeviation = 0;\n \n arr = sc.nextLine().split(\" \");\n score = new int[arr.length];\n \n for(int i = 0; i < n; i ++){\n score[i] = Integer.parseInt(arr[i]);\n sum += score[i];\n }\n \n avg = sum/(double)n;\n \n for(int i = 0; i < n; i ++){\n stdDeviation += Math.pow((double)score[i] - avg,2);\n }\n stdDeviation /= (double)n;\n stdDeviation = Math.sqrt(stdDeviation);\n \n System.out.println(String.format(\"%.6f\",stdDeviation));\n }\n }//main\n \n \n}//class",
"import java.util.*;",
"util.*",
"java",
"import java.text.*;",
"text.*",
"java",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String[] arr;\n int n;\n int[] score;\n double avg;\n int sum;\n double stdDeviation;\n \n while(true){\n n = Integer.parseInt(sc.nextLine());\n if(n == 0){\n break;\n }\n \n sum = 0;\n stdDeviation = 0;\n \n arr = sc.nextLine().split(\" \");\n score = new int[arr.length];\n \n for(int i = 0; i < n; i ++){\n score[i] = Integer.parseInt(arr[i]);\n sum += score[i];\n }\n \n avg = sum/(double)n;\n \n for(int i = 0; i < n; i ++){\n stdDeviation += Math.pow((double)score[i] - avg,2);\n }\n stdDeviation /= (double)n;\n stdDeviation = Math.sqrt(stdDeviation);\n \n System.out.println(String.format(\"%.6f\",stdDeviation));\n }\n }//main\n \n \n}//class",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String[] arr;\n int n;\n int[] score;\n double avg;\n int sum;\n double stdDeviation;\n \n while(true){\n n = Integer.parseInt(sc.nextLine());\n if(n == 0){\n break;\n }\n \n sum = 0;\n stdDeviation = 0;\n \n arr = sc.nextLine().split(\" \");\n score = new int[arr.length];\n \n for(int i = 0; i < n; i ++){\n score[i] = Integer.parseInt(arr[i]);\n sum += score[i];\n }\n \n avg = sum/(double)n;\n \n for(int i = 0; i < n; i ++){\n stdDeviation += Math.pow((double)score[i] - avg,2);\n }\n stdDeviation /= (double)n;\n stdDeviation = Math.sqrt(stdDeviation);\n \n System.out.println(String.format(\"%.6f\",stdDeviation));\n }\n }//main",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String[] arr;\n int n;\n int[] score;\n double avg;\n int sum;\n double stdDeviation;\n \n while(true){\n n = Integer.parseInt(sc.nextLine());\n if(n == 0){\n break;\n }\n \n sum = 0;\n stdDeviation = 0;\n \n arr = sc.nextLine().split(\" \");\n score = new int[arr.length];\n \n for(int i = 0; i < n; i ++){\n score[i] = Integer.parseInt(arr[i]);\n sum += score[i];\n }\n \n avg = sum/(double)n;\n \n for(int i = 0; i < n; i ++){\n stdDeviation += Math.pow((double)score[i] - avg,2);\n }\n stdDeviation /= (double)n;\n stdDeviation = Math.sqrt(stdDeviation);\n \n System.out.println(String.format(\"%.6f\",stdDeviation));\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String[] arr;",
"arr",
"int n;",
"n",
"int[] score;",
"score",
"double avg;",
"avg",
"int sum;",
"sum",
"double stdDeviation;",
"stdDeviation",
"while(true){\n n = Integer.parseInt(sc.nextLine());\n if(n == 0){\n break;\n }\n \n sum = 0;\n stdDeviation = 0;\n \n arr = sc.nextLine().split(\" \");\n score = new int[arr.length];\n \n for(int i = 0; i < n; i ++){\n score[i] = Integer.parseInt(arr[i]);\n sum += score[i];\n }\n \n avg = sum/(double)n;\n \n for(int i = 0; i < n; i ++){\n stdDeviation += Math.pow((double)score[i] - avg,2);\n }\n stdDeviation /= (double)n;\n stdDeviation = Math.sqrt(stdDeviation);\n \n System.out.println(String.format(\"%.6f\",stdDeviation));\n }",
"true",
"{\n n = Integer.parseInt(sc.nextLine());\n if(n == 0){\n break;\n }\n \n sum = 0;\n stdDeviation = 0;\n \n arr = sc.nextLine().split(\" \");\n score = new int[arr.length];\n \n for(int i = 0; i < n; i ++){\n score[i] = Integer.parseInt(arr[i]);\n sum += score[i];\n }\n \n avg = sum/(double)n;\n \n for(int i = 0; i < n; i ++){\n stdDeviation += Math.pow((double)score[i] - avg,2);\n }\n stdDeviation /= (double)n;\n stdDeviation = Math.sqrt(stdDeviation);\n \n System.out.println(String.format(\"%.6f\",stdDeviation));\n }",
"n = Integer.parseInt(sc.nextLine())",
"n",
"Integer.parseInt(sc.nextLine())",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if(n == 0){\n break;\n }",
"n == 0",
"n",
"0",
"{\n break;\n }",
"break;",
"sum = 0",
"sum",
"0",
"stdDeviation = 0",
"stdDeviation",
"0",
"arr = sc.nextLine().split(\" \")",
"arr",
"sc.nextLine().split(\" \")",
"sc.nextLine().split",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\" \"",
"score = new int[arr.length]",
"score",
"new int[arr.length]",
"arr.length",
"arr",
"arr.length",
"for(int i = 0; i < n; i ++){\n score[i] = Integer.parseInt(arr[i]);\n sum += score[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i ++",
"i ++",
"i",
"{\n score[i] = Integer.parseInt(arr[i]);\n sum += score[i];\n }",
"{\n score[i] = Integer.parseInt(arr[i]);\n sum += score[i];\n }",
"score[i] = Integer.parseInt(arr[i])",
"score[i]",
"score",
"i",
"Integer.parseInt(arr[i])",
"Integer.parseInt",
"Integer",
"arr[i]",
"arr",
"i",
"sum += score[i]",
"sum",
"score[i]",
"score",
"i",
"avg = sum/(double)n",
"avg",
"sum/(double)n",
"sum",
"(double)n",
"for(int i = 0; i < n; i ++){\n stdDeviation += Math.pow((double)score[i] - avg,2);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i ++",
"i ++",
"i",
"{\n stdDeviation += Math.pow((double)score[i] - avg,2);\n }",
"{\n stdDeviation += Math.pow((double)score[i] - avg,2);\n }",
"stdDeviation += Math.pow((double)score[i] - avg,2)",
"stdDeviation",
"Math.pow((double)score[i] - avg,2)",
"Math.pow",
"Math",
"(double)score[i] - avg",
"(double)score[i]",
"score",
"i",
"avg",
"2",
"stdDeviation /= (double)n",
"stdDeviation",
"(double)n",
"stdDeviation = Math.sqrt(stdDeviation)",
"stdDeviation",
"Math.sqrt(stdDeviation)",
"Math.sqrt",
"Math",
"stdDeviation",
"System.out.println(String.format(\"%.6f\",stdDeviation))",
"System.out.println",
"System.out",
"System",
"System.out",
"String.format(\"%.6f\",stdDeviation)",
"String.format",
"String",
"\"%.6f\"",
"stdDeviation",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String[] arr;\n int n;\n int[] score;\n double avg;\n int sum;\n double stdDeviation;\n \n while(true){\n n = Integer.parseInt(sc.nextLine());\n if(n == 0){\n break;\n }\n \n sum = 0;\n stdDeviation = 0;\n \n arr = sc.nextLine().split(\" \");\n score = new int[arr.length];\n \n for(int i = 0; i < n; i ++){\n score[i] = Integer.parseInt(arr[i]);\n sum += score[i];\n }\n \n avg = sum/(double)n;\n \n for(int i = 0; i < n; i ++){\n stdDeviation += Math.pow((double)score[i] - avg,2);\n }\n stdDeviation /= (double)n;\n stdDeviation = Math.sqrt(stdDeviation);\n \n System.out.println(String.format(\"%.6f\",stdDeviation));\n }\n }//main\n \n \n}//class",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String[] arr;\n int n;\n int[] score;\n double avg;\n int sum;\n double stdDeviation;\n \n while(true){\n n = Integer.parseInt(sc.nextLine());\n if(n == 0){\n break;\n }\n \n sum = 0;\n stdDeviation = 0;\n \n arr = sc.nextLine().split(\" \");\n score = new int[arr.length];\n \n for(int i = 0; i < n; i ++){\n score[i] = Integer.parseInt(arr[i]);\n sum += score[i];\n }\n \n avg = sum/(double)n;\n \n for(int i = 0; i < n; i ++){\n stdDeviation += Math.pow((double)score[i] - avg,2);\n }\n stdDeviation /= (double)n;\n stdDeviation = Math.sqrt(stdDeviation);\n \n System.out.println(String.format(\"%.6f\",stdDeviation));\n }\n }//main\n \n \n}//class",
"Main"
] | import java.util.*;
import java.text.*;
/*
Main class for AOJ where there is no input.
*/
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String[] arr;
int n;
int[] score;
double avg;
int sum;
double stdDeviation;
while(true){
n = Integer.parseInt(sc.nextLine());
if(n == 0){
break;
}
sum = 0;
stdDeviation = 0;
arr = sc.nextLine().split(" ");
score = new int[arr.length];
for(int i = 0; i < n; i ++){
score[i] = Integer.parseInt(arr[i]);
sum += score[i];
}
avg = sum/(double)n;
for(int i = 0; i < n; i ++){
stdDeviation += Math.pow((double)score[i] - avg,2);
}
stdDeviation /= (double)n;
stdDeviation = Math.sqrt(stdDeviation);
System.out.println(String.format("%.6f",stdDeviation));
}
}//main
}//class |
[
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,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
2,
18,
13,
13,
2,
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
],
[
103,
5
],
[
103,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
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
],
[
14,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
60,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
82,
84
],
[
75,
85
],
[
14,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
88,
90
],
[
14,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
6,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n int num = sc.nextInt();\n if(num == 0) break;\n int[] array = new int[num];\n int sum = 0;\n for(int i = 0; i < num; i++){\n array[i] = sc.nextInt();\n sum += array[i];\n }\n double a = 0;\n for(int i = 0; i < num; i++){\n a += Math.pow(array[i] - sum / (double)num, 2);\n }\n a = a / (double)num;\n \n System.out.println(Math.sqrt(a));\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n int num = sc.nextInt();\n if(num == 0) break;\n int[] array = new int[num];\n int sum = 0;\n for(int i = 0; i < num; i++){\n array[i] = sc.nextInt();\n sum += array[i];\n }\n double a = 0;\n for(int i = 0; i < num; i++){\n a += Math.pow(array[i] - sum / (double)num, 2);\n }\n a = a / (double)num;\n \n System.out.println(Math.sqrt(a));\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n int num = sc.nextInt();\n if(num == 0) break;\n int[] array = new int[num];\n int sum = 0;\n for(int i = 0; i < num; i++){\n array[i] = sc.nextInt();\n sum += array[i];\n }\n double a = 0;\n for(int i = 0; i < num; i++){\n a += Math.pow(array[i] - sum / (double)num, 2);\n }\n a = a / (double)num;\n \n System.out.println(Math.sqrt(a));\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n while(true){\n int num = sc.nextInt();\n if(num == 0) break;\n int[] array = new int[num];\n int sum = 0;\n for(int i = 0; i < num; i++){\n array[i] = sc.nextInt();\n sum += array[i];\n }\n double a = 0;\n for(int i = 0; i < num; i++){\n a += Math.pow(array[i] - sum / (double)num, 2);\n }\n a = a / (double)num;\n \n System.out.println(Math.sqrt(a));\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while(true){\n int num = sc.nextInt();\n if(num == 0) break;\n int[] array = new int[num];\n int sum = 0;\n for(int i = 0; i < num; i++){\n array[i] = sc.nextInt();\n sum += array[i];\n }\n double a = 0;\n for(int i = 0; i < num; i++){\n a += Math.pow(array[i] - sum / (double)num, 2);\n }\n a = a / (double)num;\n \n System.out.println(Math.sqrt(a));\n }",
"true",
"{\n int num = sc.nextInt();\n if(num == 0) break;\n int[] array = new int[num];\n int sum = 0;\n for(int i = 0; i < num; i++){\n array[i] = sc.nextInt();\n sum += array[i];\n }\n double a = 0;\n for(int i = 0; i < num; i++){\n a += Math.pow(array[i] - sum / (double)num, 2);\n }\n a = a / (double)num;\n \n System.out.println(Math.sqrt(a));\n }",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(num == 0) break;",
"num == 0",
"num",
"0",
"break;",
"int[] array = new int[num];",
"array",
"new int[num]",
"num",
"int sum = 0;",
"sum",
"0",
"for(int i = 0; i < num; i++){\n array[i] = sc.nextInt();\n sum += array[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n array[i] = sc.nextInt();\n sum += array[i];\n }",
"{\n array[i] = sc.nextInt();\n sum += array[i];\n }",
"array[i] = sc.nextInt()",
"array[i]",
"array",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sum += array[i]",
"sum",
"array[i]",
"array",
"i",
"double a = 0;",
"a",
"0",
"for(int i = 0; i < num; i++){\n a += Math.pow(array[i] - sum / (double)num, 2);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n a += Math.pow(array[i] - sum / (double)num, 2);\n }",
"{\n a += Math.pow(array[i] - sum / (double)num, 2);\n }",
"a += Math.pow(array[i] - sum / (double)num, 2)",
"a",
"Math.pow(array[i] - sum / (double)num, 2)",
"Math.pow",
"Math",
"array[i] - sum / (double)num",
"array[i]",
"array",
"i",
"sum / (double)num",
"sum",
"(double)num",
"2",
"a = a / (double)num",
"a",
"a / (double)num",
"a",
"(double)num",
"System.out.println(Math.sqrt(a))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.sqrt(a)",
"Math.sqrt",
"Math",
"a",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n int num = sc.nextInt();\n if(num == 0) break;\n int[] array = new int[num];\n int sum = 0;\n for(int i = 0; i < num; i++){\n array[i] = sc.nextInt();\n sum += array[i];\n }\n double a = 0;\n for(int i = 0; i < num; i++){\n a += Math.pow(array[i] - sum / (double)num, 2);\n }\n a = a / (double)num;\n \n System.out.println(Math.sqrt(a));\n }\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n int num = sc.nextInt();\n if(num == 0) break;\n int[] array = new int[num];\n int sum = 0;\n for(int i = 0; i < num; i++){\n array[i] = sc.nextInt();\n sum += array[i];\n }\n double a = 0;\n for(int i = 0; i < num; i++){\n a += Math.pow(array[i] - sum / (double)num, 2);\n }\n a = a / (double)num;\n \n System.out.println(Math.sqrt(a));\n }\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
while(true){
int num = sc.nextInt();
if(num == 0) break;
int[] array = new int[num];
int sum = 0;
for(int i = 0; i < num; i++){
array[i] = sc.nextInt();
sum += array[i];
}
double a = 0;
for(int i = 0; i < num; i++){
a += Math.pow(array[i] - sum / (double)num, 2);
}
a = a / (double)num;
System.out.println(Math.sqrt(a));
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
3,
41,
13,
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,
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
],
[
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
],
[
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
],
[
84,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
84,
92
],
[
14,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
98,
99
],
[
98,
100
],
[
14,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
6,
107
],
[
107,
108
],
[
0,
109
],
[
109,
110
],
[
109,
111
]
] | [
"/**\n\nn 人の学生を含むクラスでプログラミングの試験を行った。それぞれの得点をs1, s2 ... snとしたときの、標準偏差を求めるプログラムを作成せよ。\n\n得点の平均値をmとすれば、分散α2は以下の式で得られる:\n\nα2 = (?ni=1(si - m)2)/n\n\n分散の正の平方根が標準偏差αとなる。\n\n */\n\n//スキャナつかうため\n\nimport java.util.Scanner;\n\npublic class Main {\n\t// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t//生徒の数に0がはいるまで処理を繰り返す\n\t\twhile(true){\n\n\t\t//生徒の数を受け取る\n\t\tint intSeito = sc.nextInt();\n\t\t//生徒が0の場合処理を終了する\n\t\tif(intSeito == 0){\n\t\t\tbreak;\n\t\t\t}\n\t\t//点数と平均と結果を入れる変数を作る。\n\t\tint [] Ten =new int [intSeito];\n\t\tdouble dbHeikin = 0;\n\t\tdouble dbKekka = 0;\n\t\tdouble dbGoukei = 0;\n\t\t//生徒の数だけ処理を繰り返す\n\t\tfor(int i = 0; i < intSeito ; i ++){\n\t\t\t//受けとった数字をdb平均に足していく\n\t\t\tTen [i] = sc.nextInt();\n\t\t\tdbGoukei += Ten[i];\n\t\t}\n\t\t//点の合計に生徒数を引いて平均点を出す。\n\t\tdbHeikin = dbGoukei/intSeito;\n\t\t//生徒の数だけ処理を繰り返す\n\t\tfor(int j = 0; j < intSeito ; j++){\n\t\t\t//dbKekkaに点数-平均点の2乗を足していく\n\t\t\tdbKekka += Math.pow(Ten[j]-dbHeikin,2);\n\t\t}\n\t\t//dbKekkaから生徒の数を割り\n\t\t//平方根の中にいれる\n dbKekka= Math.sqrt(dbKekka/(double)intSeito);\n\n //結果表示\n System.out.println(dbKekka);\n\n\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\t// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t//生徒の数に0がはいるまで処理を繰り返す\n\t\twhile(true){\n\n\t\t//生徒の数を受け取る\n\t\tint intSeito = sc.nextInt();\n\t\t//生徒が0の場合処理を終了する\n\t\tif(intSeito == 0){\n\t\t\tbreak;\n\t\t\t}\n\t\t//点数と平均と結果を入れる変数を作る。\n\t\tint [] Ten =new int [intSeito];\n\t\tdouble dbHeikin = 0;\n\t\tdouble dbKekka = 0;\n\t\tdouble dbGoukei = 0;\n\t\t//生徒の数だけ処理を繰り返す\n\t\tfor(int i = 0; i < intSeito ; i ++){\n\t\t\t//受けとった数字をdb平均に足していく\n\t\t\tTen [i] = sc.nextInt();\n\t\t\tdbGoukei += Ten[i];\n\t\t}\n\t\t//点の合計に生徒数を引いて平均点を出す。\n\t\tdbHeikin = dbGoukei/intSeito;\n\t\t//生徒の数だけ処理を繰り返す\n\t\tfor(int j = 0; j < intSeito ; j++){\n\t\t\t//dbKekkaに点数-平均点の2乗を足していく\n\t\t\tdbKekka += Math.pow(Ten[j]-dbHeikin,2);\n\t\t}\n\t\t//dbKekkaから生徒の数を割り\n\t\t//平方根の中にいれる\n dbKekka= Math.sqrt(dbKekka/(double)intSeito);\n\n //結果表示\n System.out.println(dbKekka);\n\n\n\t\t}\n\t}\n}",
"Main",
"// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t//生徒の数に0がはいるまで処理を繰り返す\n\t\twhile(true){\n\n\t\t//生徒の数を受け取る\n\t\tint intSeito = sc.nextInt();\n\t\t//生徒が0の場合処理を終了する\n\t\tif(intSeito == 0){\n\t\t\tbreak;\n\t\t\t}\n\t\t//点数と平均と結果を入れる変数を作る。\n\t\tint [] Ten =new int [intSeito];\n\t\tdouble dbHeikin = 0;\n\t\tdouble dbKekka = 0;\n\t\tdouble dbGoukei = 0;\n\t\t//生徒の数だけ処理を繰り返す\n\t\tfor(int i = 0; i < intSeito ; i ++){\n\t\t\t//受けとった数字をdb平均に足していく\n\t\t\tTen [i] = sc.nextInt();\n\t\t\tdbGoukei += Ten[i];\n\t\t}\n\t\t//点の合計に生徒数を引いて平均点を出す。\n\t\tdbHeikin = dbGoukei/intSeito;\n\t\t//生徒の数だけ処理を繰り返す\n\t\tfor(int j = 0; j < intSeito ; j++){\n\t\t\t//dbKekkaに点数-平均点の2乗を足していく\n\t\t\tdbKekka += Math.pow(Ten[j]-dbHeikin,2);\n\t\t}\n\t\t//dbKekkaから生徒の数を割り\n\t\t//平方根の中にいれる\n dbKekka= Math.sqrt(dbKekka/(double)intSeito);\n\n //結果表示\n System.out.println(dbKekka);\n\n\n\t\t}\n\t}",
"main",
"{\n\t\t// 入力ストリームの生成\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t//生徒の数に0がはいるまで処理を繰り返す\n\t\twhile(true){\n\n\t\t//生徒の数を受け取る\n\t\tint intSeito = sc.nextInt();\n\t\t//生徒が0の場合処理を終了する\n\t\tif(intSeito == 0){\n\t\t\tbreak;\n\t\t\t}\n\t\t//点数と平均と結果を入れる変数を作る。\n\t\tint [] Ten =new int [intSeito];\n\t\tdouble dbHeikin = 0;\n\t\tdouble dbKekka = 0;\n\t\tdouble dbGoukei = 0;\n\t\t//生徒の数だけ処理を繰り返す\n\t\tfor(int i = 0; i < intSeito ; i ++){\n\t\t\t//受けとった数字をdb平均に足していく\n\t\t\tTen [i] = sc.nextInt();\n\t\t\tdbGoukei += Ten[i];\n\t\t}\n\t\t//点の合計に生徒数を引いて平均点を出す。\n\t\tdbHeikin = dbGoukei/intSeito;\n\t\t//生徒の数だけ処理を繰り返す\n\t\tfor(int j = 0; j < intSeito ; j++){\n\t\t\t//dbKekkaに点数-平均点の2乗を足していく\n\t\t\tdbKekka += Math.pow(Ten[j]-dbHeikin,2);\n\t\t}\n\t\t//dbKekkaから生徒の数を割り\n\t\t//平方根の中にいれる\n dbKekka= Math.sqrt(dbKekka/(double)intSeito);\n\n //結果表示\n System.out.println(dbKekka);\n\n\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while(true){\n\n\t\t//生徒の数を受け取る\n\t\tint intSeito = sc.nextInt();\n\t\t//生徒が0の場合処理を終了する\n\t\tif(intSeito == 0){\n\t\t\tbreak;\n\t\t\t}\n\t\t//点数と平均と結果を入れる変数を作る。\n\t\tint [] Ten =new int [intSeito];\n\t\tdouble dbHeikin = 0;\n\t\tdouble dbKekka = 0;\n\t\tdouble dbGoukei = 0;\n\t\t//生徒の数だけ処理を繰り返す\n\t\tfor(int i = 0; i < intSeito ; i ++){\n\t\t\t//受けとった数字をdb平均に足していく\n\t\t\tTen [i] = sc.nextInt();\n\t\t\tdbGoukei += Ten[i];\n\t\t}\n\t\t//点の合計に生徒数を引いて平均点を出す。\n\t\tdbHeikin = dbGoukei/intSeito;\n\t\t//生徒の数だけ処理を繰り返す\n\t\tfor(int j = 0; j < intSeito ; j++){\n\t\t\t//dbKekkaに点数-平均点の2乗を足していく\n\t\t\tdbKekka += Math.pow(Ten[j]-dbHeikin,2);\n\t\t}\n\t\t//dbKekkaから生徒の数を割り\n\t\t//平方根の中にいれる\n dbKekka= Math.sqrt(dbKekka/(double)intSeito);\n\n //結果表示\n System.out.println(dbKekka);\n\n\n\t\t}",
"true",
"{\n\n\t\t//生徒の数を受け取る\n\t\tint intSeito = sc.nextInt();\n\t\t//生徒が0の場合処理を終了する\n\t\tif(intSeito == 0){\n\t\t\tbreak;\n\t\t\t}\n\t\t//点数と平均と結果を入れる変数を作る。\n\t\tint [] Ten =new int [intSeito];\n\t\tdouble dbHeikin = 0;\n\t\tdouble dbKekka = 0;\n\t\tdouble dbGoukei = 0;\n\t\t//生徒の数だけ処理を繰り返す\n\t\tfor(int i = 0; i < intSeito ; i ++){\n\t\t\t//受けとった数字をdb平均に足していく\n\t\t\tTen [i] = sc.nextInt();\n\t\t\tdbGoukei += Ten[i];\n\t\t}\n\t\t//点の合計に生徒数を引いて平均点を出す。\n\t\tdbHeikin = dbGoukei/intSeito;\n\t\t//生徒の数だけ処理を繰り返す\n\t\tfor(int j = 0; j < intSeito ; j++){\n\t\t\t//dbKekkaに点数-平均点の2乗を足していく\n\t\t\tdbKekka += Math.pow(Ten[j]-dbHeikin,2);\n\t\t}\n\t\t//dbKekkaから生徒の数を割り\n\t\t//平方根の中にいれる\n dbKekka= Math.sqrt(dbKekka/(double)intSeito);\n\n //結果表示\n System.out.println(dbKekka);\n\n\n\t\t}",
"int intSeito = sc.nextInt();",
"intSeito",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(intSeito == 0){\n\t\t\tbreak;\n\t\t\t}",
"intSeito == 0",
"intSeito",
"0",
"{\n\t\t\tbreak;\n\t\t\t}",
"break;",
"int [] Ten =new int [intSeito];",
"Ten",
"new int [intSeito]",
"intSeito",
"double dbHeikin = 0;",
"dbHeikin",
"0",
"double dbKekka = 0;",
"dbKekka",
"0",
"double dbGoukei = 0;",
"dbGoukei",
"0",
"for(int i = 0; i < intSeito ; i ++){\n\t\t\t//受けとった数字をdb平均に足していく\n\t\t\tTen [i] = sc.nextInt();\n\t\t\tdbGoukei += Ten[i];\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < intSeito",
"i",
"intSeito",
"i ++",
"i ++",
"i",
"{\n\t\t\t//受けとった数字をdb平均に足していく\n\t\t\tTen [i] = sc.nextInt();\n\t\t\tdbGoukei += Ten[i];\n\t\t}",
"{\n\t\t\t//受けとった数字をdb平均に足していく\n\t\t\tTen [i] = sc.nextInt();\n\t\t\tdbGoukei += Ten[i];\n\t\t}",
"Ten [i] = sc.nextInt()",
"Ten [i]",
"Ten",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"dbGoukei += Ten[i]",
"dbGoukei",
"Ten[i]",
"Ten",
"i",
"dbHeikin = dbGoukei/intSeito",
"dbHeikin",
"dbGoukei/intSeito",
"dbGoukei",
"intSeito",
"for(int j = 0; j < intSeito ; j++){\n\t\t\t//dbKekkaに点数-平均点の2乗を足していく\n\t\t\tdbKekka += Math.pow(Ten[j]-dbHeikin,2);\n\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < intSeito",
"j",
"intSeito",
"j++",
"j++",
"j",
"{\n\t\t\t//dbKekkaに点数-平均点の2乗を足していく\n\t\t\tdbKekka += Math.pow(Ten[j]-dbHeikin,2);\n\t\t}",
"{\n\t\t\t//dbKekkaに点数-平均点の2乗を足していく\n\t\t\tdbKekka += Math.pow(Ten[j]-dbHeikin,2);\n\t\t}",
"dbKekka += Math.pow(Ten[j]-dbHeikin,2)",
"dbKekka",
"Math.pow(Ten[j]-dbHeikin,2)",
"Math.pow",
"Math",
"Ten[j]-dbHeikin",
"Ten[j]",
"Ten",
"j",
"dbHeikin",
"2",
"dbKekka= Math.sqrt(dbKekka/(double)intSeito)",
"dbKekka",
"Math.sqrt(dbKekka/(double)intSeito)",
"Math.sqrt",
"Math",
"dbKekka/(double)intSeito",
"dbKekka",
"(double)intSeito",
"System.out.println(dbKekka)",
"System.out.println",
"System.out",
"System",
"System.out",
"dbKekka",
"String[] args",
"args",
"public class Main {\n\t// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t//生徒の数に0がはいるまで処理を繰り返す\n\t\twhile(true){\n\n\t\t//生徒の数を受け取る\n\t\tint intSeito = sc.nextInt();\n\t\t//生徒が0の場合処理を終了する\n\t\tif(intSeito == 0){\n\t\t\tbreak;\n\t\t\t}\n\t\t//点数と平均と結果を入れる変数を作る。\n\t\tint [] Ten =new int [intSeito];\n\t\tdouble dbHeikin = 0;\n\t\tdouble dbKekka = 0;\n\t\tdouble dbGoukei = 0;\n\t\t//生徒の数だけ処理を繰り返す\n\t\tfor(int i = 0; i < intSeito ; i ++){\n\t\t\t//受けとった数字をdb平均に足していく\n\t\t\tTen [i] = sc.nextInt();\n\t\t\tdbGoukei += Ten[i];\n\t\t}\n\t\t//点の合計に生徒数を引いて平均点を出す。\n\t\tdbHeikin = dbGoukei/intSeito;\n\t\t//生徒の数だけ処理を繰り返す\n\t\tfor(int j = 0; j < intSeito ; j++){\n\t\t\t//dbKekkaに点数-平均点の2乗を足していく\n\t\t\tdbKekka += Math.pow(Ten[j]-dbHeikin,2);\n\t\t}\n\t\t//dbKekkaから生徒の数を割り\n\t\t//平方根の中にいれる\n dbKekka= Math.sqrt(dbKekka/(double)intSeito);\n\n //結果表示\n System.out.println(dbKekka);\n\n\n\t\t}\n\t}\n}",
"public class Main {\n\t// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t//生徒の数に0がはいるまで処理を繰り返す\n\t\twhile(true){\n\n\t\t//生徒の数を受け取る\n\t\tint intSeito = sc.nextInt();\n\t\t//生徒が0の場合処理を終了する\n\t\tif(intSeito == 0){\n\t\t\tbreak;\n\t\t\t}\n\t\t//点数と平均と結果を入れる変数を作る。\n\t\tint [] Ten =new int [intSeito];\n\t\tdouble dbHeikin = 0;\n\t\tdouble dbKekka = 0;\n\t\tdouble dbGoukei = 0;\n\t\t//生徒の数だけ処理を繰り返す\n\t\tfor(int i = 0; i < intSeito ; i ++){\n\t\t\t//受けとった数字をdb平均に足していく\n\t\t\tTen [i] = sc.nextInt();\n\t\t\tdbGoukei += Ten[i];\n\t\t}\n\t\t//点の合計に生徒数を引いて平均点を出す。\n\t\tdbHeikin = dbGoukei/intSeito;\n\t\t//生徒の数だけ処理を繰り返す\n\t\tfor(int j = 0; j < intSeito ; j++){\n\t\t\t//dbKekkaに点数-平均点の2乗を足していく\n\t\t\tdbKekka += Math.pow(Ten[j]-dbHeikin,2);\n\t\t}\n\t\t//dbKekkaから生徒の数を割り\n\t\t//平方根の中にいれる\n dbKekka= Math.sqrt(dbKekka/(double)intSeito);\n\n //結果表示\n System.out.println(dbKekka);\n\n\n\t\t}\n\t}\n}",
"Main"
] | /**
n 人の学生を含むクラスでプログラミングの試験を行った。それぞれの得点をs1, s2 ... snとしたときの、標準偏差を求めるプログラムを作成せよ。
得点の平均値をmとすれば、分散α2は以下の式で得られる:
α2 = (?ni=1(si - m)2)/n
分散の正の平方根が標準偏差αとなる。
*/
//スキャナつかうため
import java.util.Scanner;
public class Main {
// プログラムのエントリポイント
public static void main(String[] args) {
// 入力ストリームの生成
Scanner sc = new Scanner(System.in);
//生徒の数に0がはいるまで処理を繰り返す
while(true){
//生徒の数を受け取る
int intSeito = sc.nextInt();
//生徒が0の場合処理を終了する
if(intSeito == 0){
break;
}
//点数と平均と結果を入れる変数を作る。
int [] Ten =new int [intSeito];
double dbHeikin = 0;
double dbKekka = 0;
double dbGoukei = 0;
//生徒の数だけ処理を繰り返す
for(int i = 0; i < intSeito ; i ++){
//受けとった数字をdb平均に足していく
Ten [i] = sc.nextInt();
dbGoukei += Ten[i];
}
//点の合計に生徒数を引いて平均点を出す。
dbHeikin = dbGoukei/intSeito;
//生徒の数だけ処理を繰り返す
for(int j = 0; j < intSeito ; j++){
//dbKekkaに点数-平均点の2乗を足していく
dbKekka += Math.pow(Ten[j]-dbHeikin,2);
}
//dbKekkaから生徒の数を割り
//平方根の中にいれる
dbKekka= Math.sqrt(dbKekka/(double)intSeito);
//結果表示
System.out.println(dbKekka);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
17,
30,
41,
13,
17,
41,
13,
17,
41,
13,
41,
13,
17,
0,
13,
4,
18,
13,
14,
2,
13,
17,
3,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
18,
13,
13,
0,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
13,
4,
18,
13,
2,
18,
13,
13,
13,
17,
0,
13,
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
],
[
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
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
14,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
14,
36
],
[
36,
37
],
[
36,
38
],
[
14,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
40,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
58,
59
],
[
52,
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
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
82,
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
],
[
6,
106
],
[
106,
107
],
[
0,
108
],
[
108,
109
],
[
108,
110
]
] | [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (true) {\n int n = 0;\n double m = 0,s,s2=0;\n n = sc.nextInt();\n if (n == 0)\n break;\n int[] d = new int[n];\n for (int i = 0; i < n; i++) {\n d[i] = sc.nextInt();\n m += d[i];\n }\n m /= n;\n for (int j = 0; j < n; j++)\n s2 += Math.pow(d[j]-m,2);\n s2 /= n;\n s = Math.sqrt(s2);\n\n System.out.println(s);\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (true) {\n int n = 0;\n double m = 0,s,s2=0;\n n = sc.nextInt();\n if (n == 0)\n break;\n int[] d = new int[n];\n for (int i = 0; i < n; i++) {\n d[i] = sc.nextInt();\n m += d[i];\n }\n m /= n;\n for (int j = 0; j < n; j++)\n s2 += Math.pow(d[j]-m,2);\n s2 /= n;\n s = Math.sqrt(s2);\n\n System.out.println(s);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (true) {\n int n = 0;\n double m = 0,s,s2=0;\n n = sc.nextInt();\n if (n == 0)\n break;\n int[] d = new int[n];\n for (int i = 0; i < n; i++) {\n d[i] = sc.nextInt();\n m += d[i];\n }\n m /= n;\n for (int j = 0; j < n; j++)\n s2 += Math.pow(d[j]-m,2);\n s2 /= n;\n s = Math.sqrt(s2);\n\n System.out.println(s);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n while (true) {\n int n = 0;\n double m = 0,s,s2=0;\n n = sc.nextInt();\n if (n == 0)\n break;\n int[] d = new int[n];\n for (int i = 0; i < n; i++) {\n d[i] = sc.nextInt();\n m += d[i];\n }\n m /= n;\n for (int j = 0; j < n; j++)\n s2 += Math.pow(d[j]-m,2);\n s2 /= n;\n s = Math.sqrt(s2);\n\n System.out.println(s);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while (true) {\n int n = 0;\n double m = 0,s,s2=0;\n n = sc.nextInt();\n if (n == 0)\n break;\n int[] d = new int[n];\n for (int i = 0; i < n; i++) {\n d[i] = sc.nextInt();\n m += d[i];\n }\n m /= n;\n for (int j = 0; j < n; j++)\n s2 += Math.pow(d[j]-m,2);\n s2 /= n;\n s = Math.sqrt(s2);\n\n System.out.println(s);\n }",
"true",
"{\n int n = 0;\n double m = 0,s,s2=0;\n n = sc.nextInt();\n if (n == 0)\n break;\n int[] d = new int[n];\n for (int i = 0; i < n; i++) {\n d[i] = sc.nextInt();\n m += d[i];\n }\n m /= n;\n for (int j = 0; j < n; j++)\n s2 += Math.pow(d[j]-m,2);\n s2 /= n;\n s = Math.sqrt(s2);\n\n System.out.println(s);\n }",
"int n = 0;",
"n",
"0",
"double m = 0",
"m",
"0",
"s",
"s",
"s2=0;",
"s2",
"0",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (n == 0)\n break;",
"n == 0",
"n",
"0",
"break;",
"int[] d = new int[n];",
"d",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n d[i] = sc.nextInt();\n m += d[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n d[i] = sc.nextInt();\n m += d[i];\n }",
"{\n d[i] = sc.nextInt();\n m += d[i];\n }",
"d[i] = sc.nextInt()",
"d[i]",
"d",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"m += d[i]",
"m",
"d[i]",
"d",
"i",
"m /= n",
"m",
"n",
"for (int j = 0; j < n; j++)\n s2 += Math.pow(d[j]-m,2);",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < n",
"j",
"n",
"j++",
"j++",
"j",
"s2 += Math.pow(d[j]-m,2);",
"s2 += Math.pow(d[j]-m,2)",
"s2",
"Math.pow(d[j]-m,2)",
"Math.pow",
"Math",
"d[j]-m",
"d[j]",
"d",
"j",
"m",
"2",
"s2 /= n",
"s2",
"n",
"s = Math.sqrt(s2)",
"s",
"Math.sqrt(s2)",
"Math.sqrt",
"Math",
"s2",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"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 = 0;\n double m = 0,s,s2=0;\n n = sc.nextInt();\n if (n == 0)\n break;\n int[] d = new int[n];\n for (int i = 0; i < n; i++) {\n d[i] = sc.nextInt();\n m += d[i];\n }\n m /= n;\n for (int j = 0; j < n; j++)\n s2 += Math.pow(d[j]-m,2);\n s2 /= n;\n s = Math.sqrt(s2);\n\n System.out.println(s);\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 = 0;\n double m = 0,s,s2=0;\n n = sc.nextInt();\n if (n == 0)\n break;\n int[] d = new int[n];\n for (int i = 0; i < n; i++) {\n d[i] = sc.nextInt();\n m += d[i];\n }\n m /= n;\n for (int j = 0; j < n; j++)\n s2 += Math.pow(d[j]-m,2);\n s2 /= n;\n s = Math.sqrt(s2);\n\n System.out.println(s);\n }\n }\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (true) {
int n = 0;
double m = 0,s,s2=0;
n = sc.nextInt();
if (n == 0)
break;
int[] d = new int[n];
for (int i = 0; i < n; i++) {
d[i] = sc.nextInt();
m += d[i];
}
m /= n;
for (int j = 0; j < n; j++)
s2 += Math.pow(d[j]-m,2);
s2 /= n;
s = Math.sqrt(s2);
System.out.println(s);
}
}
}
|
[
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,
41,
13,
0,
13,
20,
13,
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,
2,
13,
18,
13,
13,
41,
13,
2,
13,
13,
41,
13,
41,
13,
0,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
2,
2,
18,
13,
13,
13,
2,
18,
13,
13,
13,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
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
],
[
17,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
14,
25
],
[
25,
26
],
[
14,
27
],
[
27,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
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
],
[
60,
61
],
[
60,
62
],
[
14,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
14,
68
],
[
68,
69
],
[
14,
70
],
[
70,
71
],
[
14,
72
],
[
72,
73
],
[
72,
74
],
[
14,
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
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
92,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
14,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
105,
107
],
[
14,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
108,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
6,
118
],
[
118,
119
],
[
0,
120
],
[
120,
121
],
[
120,
122
]
] | [
"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 i;\n int[] ten;\n ten=new int[n];\n int sum=0;\n for(i=0;i<n;i++){\n ten[i]=sc.nextInt();\n sum=sum+ten[i];\n }\n double ave=(double)sum/n;\n double t;\n double s;\n t=0;\n for(i=0;i<n;i++){\n t=t+(ten[i]-ave)*(ten[i]-ave);\n }\n s=t/n;\n System.out.printf(\"%f\\n\",Math.sqrt(s));\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 i;\n int[] ten;\n ten=new int[n];\n int sum=0;\n for(i=0;i<n;i++){\n ten[i]=sc.nextInt();\n sum=sum+ten[i];\n }\n double ave=(double)sum/n;\n double t;\n double s;\n t=0;\n for(i=0;i<n;i++){\n t=t+(ten[i]-ave)*(ten[i]-ave);\n }\n s=t/n;\n System.out.printf(\"%f\\n\",Math.sqrt(s));\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 i;\n int[] ten;\n ten=new int[n];\n int sum=0;\n for(i=0;i<n;i++){\n ten[i]=sc.nextInt();\n sum=sum+ten[i];\n }\n double ave=(double)sum/n;\n double t;\n double s;\n t=0;\n for(i=0;i<n;i++){\n t=t+(ten[i]-ave)*(ten[i]-ave);\n }\n s=t/n;\n System.out.printf(\"%f\\n\",Math.sqrt(s));\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 i;\n int[] ten;\n ten=new int[n];\n int sum=0;\n for(i=0;i<n;i++){\n ten[i]=sc.nextInt();\n sum=sum+ten[i];\n }\n double ave=(double)sum/n;\n double t;\n double s;\n t=0;\n for(i=0;i<n;i++){\n t=t+(ten[i]-ave)*(ten[i]-ave);\n }\n s=t/n;\n System.out.printf(\"%f\\n\",Math.sqrt(s));\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 i;\n int[] ten;\n ten=new int[n];\n int sum=0;\n for(i=0;i<n;i++){\n ten[i]=sc.nextInt();\n sum=sum+ten[i];\n }\n double ave=(double)sum/n;\n double t;\n double s;\n t=0;\n for(i=0;i<n;i++){\n t=t+(ten[i]-ave)*(ten[i]-ave);\n }\n s=t/n;\n System.out.printf(\"%f\\n\",Math.sqrt(s));\n }",
"true",
"{\n int n= sc.nextInt();\n if(n==0) break;\n int i;\n int[] ten;\n ten=new int[n];\n int sum=0;\n for(i=0;i<n;i++){\n ten[i]=sc.nextInt();\n sum=sum+ten[i];\n }\n double ave=(double)sum/n;\n double t;\n double s;\n t=0;\n for(i=0;i<n;i++){\n t=t+(ten[i]-ave)*(ten[i]-ave);\n }\n s=t/n;\n System.out.printf(\"%f\\n\",Math.sqrt(s));\n }",
"int n= sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(n==0) break;",
"n==0",
"n",
"0",
"break;",
"int i;",
"i",
"int[] ten;",
"ten",
"ten=new int[n]",
"ten",
"new int[n]",
"n",
"int sum=0;",
"sum",
"0",
"for(i=0;i<n;i++){\n ten[i]=sc.nextInt();\n sum=sum+ten[i];\n }",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n ten[i]=sc.nextInt();\n sum=sum+ten[i];\n }",
"{\n ten[i]=sc.nextInt();\n sum=sum+ten[i];\n }",
"ten[i]=sc.nextInt()",
"ten[i]",
"ten",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sum=sum+ten[i]",
"sum",
"sum+ten[i]",
"sum",
"ten[i]",
"ten",
"i",
"double ave=(double)sum/n;",
"ave",
"(double)sum/n",
"(double)sum",
"n",
"double t;",
"t",
"double s;",
"s",
"t=0",
"t",
"0",
"for(i=0;i<n;i++){\n t=t+(ten[i]-ave)*(ten[i]-ave);\n }",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n t=t+(ten[i]-ave)*(ten[i]-ave);\n }",
"{\n t=t+(ten[i]-ave)*(ten[i]-ave);\n }",
"t=t+(ten[i]-ave)*(ten[i]-ave)",
"t",
"t+(ten[i]-ave)*(ten[i]-ave)",
"t",
"(ten[i]-ave)*(ten[i]-ave)",
"(ten[i]-ave)",
"ten[i]",
"ten",
"i",
"ave",
"(ten[i]-ave)",
"ten[i]",
"ten",
"i",
"ave",
"s=t/n",
"s",
"t/n",
"t",
"n",
"System.out.printf(\"%f\\n\",Math.sqrt(s))",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%f\\n\"",
"Math.sqrt(s)",
"Math.sqrt",
"Math",
"s",
"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 i;\n int[] ten;\n ten=new int[n];\n int sum=0;\n for(i=0;i<n;i++){\n ten[i]=sc.nextInt();\n sum=sum+ten[i];\n }\n double ave=(double)sum/n;\n double t;\n double s;\n t=0;\n for(i=0;i<n;i++){\n t=t+(ten[i]-ave)*(ten[i]-ave);\n }\n s=t/n;\n System.out.printf(\"%f\\n\",Math.sqrt(s));\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 i;\n int[] ten;\n ten=new int[n];\n int sum=0;\n for(i=0;i<n;i++){\n ten[i]=sc.nextInt();\n sum=sum+ten[i];\n }\n double ave=(double)sum/n;\n double t;\n double s;\n t=0;\n for(i=0;i<n;i++){\n t=t+(ten[i]-ave)*(ten[i]-ave);\n }\n s=t/n;\n System.out.printf(\"%f\\n\",Math.sqrt(s));\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 i;
int[] ten;
ten=new int[n];
int sum=0;
for(i=0;i<n;i++){
ten[i]=sc.nextInt();
sum=sum+ten[i];
}
double ave=(double)sum/n;
double t;
double s;
t=0;
for(i=0;i<n;i++){
t=t+(ten[i]-ave)*(ten[i]-ave);
}
s=t/n;
System.out.printf("%f\n",Math.sqrt(s));
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
42,
17,
30,
0,
13,
4,
18,
13,
14,
2,
17,
13,
3,
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,
18,
13,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
2,
18,
13,
13,
13,
2,
18,
13,
13,
13,
0,
13,
2,
13,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
13,
0,
13,
17,
0,
13,
17,
0,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
129,
5
],
[
129,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
27,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
27,
38
],
[
38,
39
],
[
38,
40
],
[
27,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
42,
52
],
[
52,
53
],
[
53,
54
],
[
42,
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
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
27,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
80,
82
],
[
73,
83
],
[
83,
84
],
[
84,
85
],
[
73,
86
],
[
87,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
90,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
27,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
105,
107
],
[
27,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
27,
117
],
[
117,
118
],
[
117,
119
],
[
27,
120
],
[
120,
121
],
[
120,
122
],
[
27,
123
],
[
123,
124
],
[
123,
125
],
[
6,
126
],
[
126,
127
],
[
0,
128
],
[
128,
129
],
[
128,
130
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] tokuten;\n\t\tint kazu = 0;\n\t\tdouble average = 0;\n\t\tdouble hensa2 =0.0;\n\t\tdouble bunsan;\n\t\twhile (true){\n\t\t\tkazu = sc.nextInt();\n\t\t\tif(0==kazu) break;\n\t\t\ttokuten = new int[kazu];\n\t\t\tfor(int i=0;i<tokuten.length;i++){\n\t\t\t\ttokuten[i]=sc.nextInt();\n\t\t\t\t//System.out.println();\n\t\t\t\t//System.out.println(tokuten[i]);\n\t\t\t\taverage += (double)tokuten[i]/tokuten.length;\n\t\t\t}\n\t\t\t//System.out.println(\"average = \"+average);\n\t\t\tfor(int i=0;i<tokuten.length;i++){\n\t\t\t\thensa2 += (tokuten[i]-average)*(tokuten[i]-average);\n\t\t\t\t//System.out.println(\"hensa2[0~\"+i+\"] = \"+hensa2);\n\t\t\t}\n\t\t\tbunsan=hensa2/tokuten.length;\n\t\t\t//System.out.println(\"bunsan = \"+bunsan);\n\t\t\tSystem.out.println(Math.sqrt(bunsan));\n\n\t\t\t/* 初期化 */\n\t\t\taverage = 0;\n\t\t\thensa2 = 0;\n\t\t\tkazu =0;\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] tokuten;\n\t\tint kazu = 0;\n\t\tdouble average = 0;\n\t\tdouble hensa2 =0.0;\n\t\tdouble bunsan;\n\t\twhile (true){\n\t\t\tkazu = sc.nextInt();\n\t\t\tif(0==kazu) break;\n\t\t\ttokuten = new int[kazu];\n\t\t\tfor(int i=0;i<tokuten.length;i++){\n\t\t\t\ttokuten[i]=sc.nextInt();\n\t\t\t\t//System.out.println();\n\t\t\t\t//System.out.println(tokuten[i]);\n\t\t\t\taverage += (double)tokuten[i]/tokuten.length;\n\t\t\t}\n\t\t\t//System.out.println(\"average = \"+average);\n\t\t\tfor(int i=0;i<tokuten.length;i++){\n\t\t\t\thensa2 += (tokuten[i]-average)*(tokuten[i]-average);\n\t\t\t\t//System.out.println(\"hensa2[0~\"+i+\"] = \"+hensa2);\n\t\t\t}\n\t\t\tbunsan=hensa2/tokuten.length;\n\t\t\t//System.out.println(\"bunsan = \"+bunsan);\n\t\t\tSystem.out.println(Math.sqrt(bunsan));\n\n\t\t\t/* 初期化 */\n\t\t\taverage = 0;\n\t\t\thensa2 = 0;\n\t\t\tkazu =0;\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] tokuten;\n\t\tint kazu = 0;\n\t\tdouble average = 0;\n\t\tdouble hensa2 =0.0;\n\t\tdouble bunsan;\n\t\twhile (true){\n\t\t\tkazu = sc.nextInt();\n\t\t\tif(0==kazu) break;\n\t\t\ttokuten = new int[kazu];\n\t\t\tfor(int i=0;i<tokuten.length;i++){\n\t\t\t\ttokuten[i]=sc.nextInt();\n\t\t\t\t//System.out.println();\n\t\t\t\t//System.out.println(tokuten[i]);\n\t\t\t\taverage += (double)tokuten[i]/tokuten.length;\n\t\t\t}\n\t\t\t//System.out.println(\"average = \"+average);\n\t\t\tfor(int i=0;i<tokuten.length;i++){\n\t\t\t\thensa2 += (tokuten[i]-average)*(tokuten[i]-average);\n\t\t\t\t//System.out.println(\"hensa2[0~\"+i+\"] = \"+hensa2);\n\t\t\t}\n\t\t\tbunsan=hensa2/tokuten.length;\n\t\t\t//System.out.println(\"bunsan = \"+bunsan);\n\t\t\tSystem.out.println(Math.sqrt(bunsan));\n\n\t\t\t/* 初期化 */\n\t\t\taverage = 0;\n\t\t\thensa2 = 0;\n\t\t\tkazu =0;\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] tokuten;\n\t\tint kazu = 0;\n\t\tdouble average = 0;\n\t\tdouble hensa2 =0.0;\n\t\tdouble bunsan;\n\t\twhile (true){\n\t\t\tkazu = sc.nextInt();\n\t\t\tif(0==kazu) break;\n\t\t\ttokuten = new int[kazu];\n\t\t\tfor(int i=0;i<tokuten.length;i++){\n\t\t\t\ttokuten[i]=sc.nextInt();\n\t\t\t\t//System.out.println();\n\t\t\t\t//System.out.println(tokuten[i]);\n\t\t\t\taverage += (double)tokuten[i]/tokuten.length;\n\t\t\t}\n\t\t\t//System.out.println(\"average = \"+average);\n\t\t\tfor(int i=0;i<tokuten.length;i++){\n\t\t\t\thensa2 += (tokuten[i]-average)*(tokuten[i]-average);\n\t\t\t\t//System.out.println(\"hensa2[0~\"+i+\"] = \"+hensa2);\n\t\t\t}\n\t\t\tbunsan=hensa2/tokuten.length;\n\t\t\t//System.out.println(\"bunsan = \"+bunsan);\n\t\t\tSystem.out.println(Math.sqrt(bunsan));\n\n\t\t\t/* 初期化 */\n\t\t\taverage = 0;\n\t\t\thensa2 = 0;\n\t\t\tkazu =0;\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] tokuten;",
"tokuten",
"int kazu = 0;",
"kazu",
"0",
"double average = 0;",
"average",
"0",
"double hensa2 =0.0;",
"hensa2",
"0.0",
"double bunsan;",
"bunsan",
"while (true){\n\t\t\tkazu = sc.nextInt();\n\t\t\tif(0==kazu) break;\n\t\t\ttokuten = new int[kazu];\n\t\t\tfor(int i=0;i<tokuten.length;i++){\n\t\t\t\ttokuten[i]=sc.nextInt();\n\t\t\t\t//System.out.println();\n\t\t\t\t//System.out.println(tokuten[i]);\n\t\t\t\taverage += (double)tokuten[i]/tokuten.length;\n\t\t\t}\n\t\t\t//System.out.println(\"average = \"+average);\n\t\t\tfor(int i=0;i<tokuten.length;i++){\n\t\t\t\thensa2 += (tokuten[i]-average)*(tokuten[i]-average);\n\t\t\t\t//System.out.println(\"hensa2[0~\"+i+\"] = \"+hensa2);\n\t\t\t}\n\t\t\tbunsan=hensa2/tokuten.length;\n\t\t\t//System.out.println(\"bunsan = \"+bunsan);\n\t\t\tSystem.out.println(Math.sqrt(bunsan));\n\n\t\t\t/* 初期化 */\n\t\t\taverage = 0;\n\t\t\thensa2 = 0;\n\t\t\tkazu =0;\n\t\t}",
"true",
"{\n\t\t\tkazu = sc.nextInt();\n\t\t\tif(0==kazu) break;\n\t\t\ttokuten = new int[kazu];\n\t\t\tfor(int i=0;i<tokuten.length;i++){\n\t\t\t\ttokuten[i]=sc.nextInt();\n\t\t\t\t//System.out.println();\n\t\t\t\t//System.out.println(tokuten[i]);\n\t\t\t\taverage += (double)tokuten[i]/tokuten.length;\n\t\t\t}\n\t\t\t//System.out.println(\"average = \"+average);\n\t\t\tfor(int i=0;i<tokuten.length;i++){\n\t\t\t\thensa2 += (tokuten[i]-average)*(tokuten[i]-average);\n\t\t\t\t//System.out.println(\"hensa2[0~\"+i+\"] = \"+hensa2);\n\t\t\t}\n\t\t\tbunsan=hensa2/tokuten.length;\n\t\t\t//System.out.println(\"bunsan = \"+bunsan);\n\t\t\tSystem.out.println(Math.sqrt(bunsan));\n\n\t\t\t/* 初期化 */\n\t\t\taverage = 0;\n\t\t\thensa2 = 0;\n\t\t\tkazu =0;\n\t\t}",
"kazu = sc.nextInt()",
"kazu",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(0==kazu) break;",
"0==kazu",
"0",
"kazu",
"break;",
"tokuten = new int[kazu]",
"tokuten",
"new int[kazu]",
"kazu",
"for(int i=0;i<tokuten.length;i++){\n\t\t\t\ttokuten[i]=sc.nextInt();\n\t\t\t\t//System.out.println();\n\t\t\t\t//System.out.println(tokuten[i]);\n\t\t\t\taverage += (double)tokuten[i]/tokuten.length;\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<tokuten.length",
"i",
"tokuten.length",
"tokuten",
"tokuten.length",
"i++",
"i++",
"i",
"{\n\t\t\t\ttokuten[i]=sc.nextInt();\n\t\t\t\t//System.out.println();\n\t\t\t\t//System.out.println(tokuten[i]);\n\t\t\t\taverage += (double)tokuten[i]/tokuten.length;\n\t\t\t}",
"{\n\t\t\t\ttokuten[i]=sc.nextInt();\n\t\t\t\t//System.out.println();\n\t\t\t\t//System.out.println(tokuten[i]);\n\t\t\t\taverage += (double)tokuten[i]/tokuten.length;\n\t\t\t}",
"tokuten[i]=sc.nextInt()",
"tokuten[i]",
"tokuten",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"average += (double)tokuten[i]/tokuten.length",
"average",
"(double)tokuten[i]/tokuten.length",
"(double)tokuten[i]",
"tokuten",
"i",
"tokuten.length",
"tokuten",
"tokuten.length",
"for(int i=0;i<tokuten.length;i++){\n\t\t\t\thensa2 += (tokuten[i]-average)*(tokuten[i]-average);\n\t\t\t\t//System.out.println(\"hensa2[0~\"+i+\"] = \"+hensa2);\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<tokuten.length",
"i",
"tokuten.length",
"tokuten",
"tokuten.length",
"i++",
"i++",
"i",
"{\n\t\t\t\thensa2 += (tokuten[i]-average)*(tokuten[i]-average);\n\t\t\t\t//System.out.println(\"hensa2[0~\"+i+\"] = \"+hensa2);\n\t\t\t}",
"{\n\t\t\t\thensa2 += (tokuten[i]-average)*(tokuten[i]-average);\n\t\t\t\t//System.out.println(\"hensa2[0~\"+i+\"] = \"+hensa2);\n\t\t\t}",
"hensa2 += (tokuten[i]-average)*(tokuten[i]-average)",
"hensa2",
"(tokuten[i]-average)*(tokuten[i]-average)",
"(tokuten[i]-average)",
"tokuten[i]",
"tokuten",
"i",
"average",
"(tokuten[i]-average)",
"tokuten[i]",
"tokuten",
"i",
"average",
"bunsan=hensa2/tokuten.length",
"bunsan",
"hensa2/tokuten.length",
"hensa2",
"tokuten.length",
"tokuten",
"tokuten.length",
"System.out.println(Math.sqrt(bunsan))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.sqrt(bunsan)",
"Math.sqrt",
"Math",
"bunsan",
"average = 0",
"average",
"0",
"hensa2 = 0",
"hensa2",
"0",
"kazu =0",
"kazu",
"0",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] tokuten;\n\t\tint kazu = 0;\n\t\tdouble average = 0;\n\t\tdouble hensa2 =0.0;\n\t\tdouble bunsan;\n\t\twhile (true){\n\t\t\tkazu = sc.nextInt();\n\t\t\tif(0==kazu) break;\n\t\t\ttokuten = new int[kazu];\n\t\t\tfor(int i=0;i<tokuten.length;i++){\n\t\t\t\ttokuten[i]=sc.nextInt();\n\t\t\t\t//System.out.println();\n\t\t\t\t//System.out.println(tokuten[i]);\n\t\t\t\taverage += (double)tokuten[i]/tokuten.length;\n\t\t\t}\n\t\t\t//System.out.println(\"average = \"+average);\n\t\t\tfor(int i=0;i<tokuten.length;i++){\n\t\t\t\thensa2 += (tokuten[i]-average)*(tokuten[i]-average);\n\t\t\t\t//System.out.println(\"hensa2[0~\"+i+\"] = \"+hensa2);\n\t\t\t}\n\t\t\tbunsan=hensa2/tokuten.length;\n\t\t\t//System.out.println(\"bunsan = \"+bunsan);\n\t\t\tSystem.out.println(Math.sqrt(bunsan));\n\n\t\t\t/* 初期化 */\n\t\t\taverage = 0;\n\t\t\thensa2 = 0;\n\t\t\tkazu =0;\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] tokuten;\n\t\tint kazu = 0;\n\t\tdouble average = 0;\n\t\tdouble hensa2 =0.0;\n\t\tdouble bunsan;\n\t\twhile (true){\n\t\t\tkazu = sc.nextInt();\n\t\t\tif(0==kazu) break;\n\t\t\ttokuten = new int[kazu];\n\t\t\tfor(int i=0;i<tokuten.length;i++){\n\t\t\t\ttokuten[i]=sc.nextInt();\n\t\t\t\t//System.out.println();\n\t\t\t\t//System.out.println(tokuten[i]);\n\t\t\t\taverage += (double)tokuten[i]/tokuten.length;\n\t\t\t}\n\t\t\t//System.out.println(\"average = \"+average);\n\t\t\tfor(int i=0;i<tokuten.length;i++){\n\t\t\t\thensa2 += (tokuten[i]-average)*(tokuten[i]-average);\n\t\t\t\t//System.out.println(\"hensa2[0~\"+i+\"] = \"+hensa2);\n\t\t\t}\n\t\t\tbunsan=hensa2/tokuten.length;\n\t\t\t//System.out.println(\"bunsan = \"+bunsan);\n\t\t\tSystem.out.println(Math.sqrt(bunsan));\n\n\t\t\t/* 初期化 */\n\t\t\taverage = 0;\n\t\t\thensa2 = 0;\n\t\t\tkazu =0;\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] tokuten;
int kazu = 0;
double average = 0;
double hensa2 =0.0;
double bunsan;
while (true){
kazu = sc.nextInt();
if(0==kazu) break;
tokuten = new int[kazu];
for(int i=0;i<tokuten.length;i++){
tokuten[i]=sc.nextInt();
//System.out.println();
//System.out.println(tokuten[i]);
average += (double)tokuten[i]/tokuten.length;
}
//System.out.println("average = "+average);
for(int i=0;i<tokuten.length;i++){
hensa2 += (tokuten[i]-average)*(tokuten[i]-average);
//System.out.println("hensa2[0~"+i+"] = "+hensa2);
}
bunsan=hensa2/tokuten.length;
//System.out.println("bunsan = "+bunsan);
System.out.println(Math.sqrt(bunsan));
/* 初期化 */
average = 0;
hensa2 = 0;
kazu =0;
}
}
}
|
[
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,
41,
13,
17,
41,
13,
0,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
18,
13,
13,
0,
13,
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,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
110,
5
],
[
110,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
29
],
[
29,
30
],
[
14,
31
],
[
31,
32
],
[
31,
33
],
[
14,
34
],
[
34,
35
],
[
14,
36
],
[
36,
37
],
[
36,
38
],
[
14,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
40,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
58,
59
],
[
52,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
14,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
14,
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
],
[
85,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
14,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
104,
105
],
[
104,
106
],
[
6,
107
],
[
107,
108
],
[
0,
109
],
[
109,
110
],
[
109,
111
]
] | [
"import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\nScanner sc = new Scanner(System.in);\nwhile(true){\n int a = sc.nextInt();\n if(a==0){\n break;\n }\n int sum=0;\n double avg,bun=0;\n int[] b;\n b = new int[a];\n for(int i=0;i<a;i++){\nb[i]=sc.nextInt();\nsum+=b[i];\n }\navg=(double)sum/a;\nfor(int j=0;j<a;j++){\n bun+=(double)(b[j]-avg)*(b[j]-avg);\n}\nSystem.out.println(Math.sqrt(bun/a));\n}\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\nScanner sc = new Scanner(System.in);\nwhile(true){\n int a = sc.nextInt();\n if(a==0){\n break;\n }\n int sum=0;\n double avg,bun=0;\n int[] b;\n b = new int[a];\n for(int i=0;i<a;i++){\nb[i]=sc.nextInt();\nsum+=b[i];\n }\navg=(double)sum/a;\nfor(int j=0;j<a;j++){\n bun+=(double)(b[j]-avg)*(b[j]-avg);\n}\nSystem.out.println(Math.sqrt(bun/a));\n}\n }\n}",
"Main",
"public static void main(String[] args){\nScanner sc = new Scanner(System.in);\nwhile(true){\n int a = sc.nextInt();\n if(a==0){\n break;\n }\n int sum=0;\n double avg,bun=0;\n int[] b;\n b = new int[a];\n for(int i=0;i<a;i++){\nb[i]=sc.nextInt();\nsum+=b[i];\n }\navg=(double)sum/a;\nfor(int j=0;j<a;j++){\n bun+=(double)(b[j]-avg)*(b[j]-avg);\n}\nSystem.out.println(Math.sqrt(bun/a));\n}\n }",
"main",
"{\nScanner sc = new Scanner(System.in);\nwhile(true){\n int a = sc.nextInt();\n if(a==0){\n break;\n }\n int sum=0;\n double avg,bun=0;\n int[] b;\n b = new int[a];\n for(int i=0;i<a;i++){\nb[i]=sc.nextInt();\nsum+=b[i];\n }\navg=(double)sum/a;\nfor(int j=0;j<a;j++){\n bun+=(double)(b[j]-avg)*(b[j]-avg);\n}\nSystem.out.println(Math.sqrt(bun/a));\n}\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while(true){\n int a = sc.nextInt();\n if(a==0){\n break;\n }\n int sum=0;\n double avg,bun=0;\n int[] b;\n b = new int[a];\n for(int i=0;i<a;i++){\nb[i]=sc.nextInt();\nsum+=b[i];\n }\navg=(double)sum/a;\nfor(int j=0;j<a;j++){\n bun+=(double)(b[j]-avg)*(b[j]-avg);\n}\nSystem.out.println(Math.sqrt(bun/a));\n}",
"true",
"{\n int a = sc.nextInt();\n if(a==0){\n break;\n }\n int sum=0;\n double avg,bun=0;\n int[] b;\n b = new int[a];\n for(int i=0;i<a;i++){\nb[i]=sc.nextInt();\nsum+=b[i];\n }\navg=(double)sum/a;\nfor(int j=0;j<a;j++){\n bun+=(double)(b[j]-avg)*(b[j]-avg);\n}\nSystem.out.println(Math.sqrt(bun/a));\n}",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(a==0){\n break;\n }",
"a==0",
"a",
"0",
"{\n break;\n }",
"break;",
"int sum=0;",
"sum",
"0",
"double avg",
"avg",
"bun=0;",
"bun",
"0",
"int[] b;",
"b",
"b = new int[a]",
"b",
"new int[a]",
"a",
"for(int i=0;i<a;i++){\nb[i]=sc.nextInt();\nsum+=b[i];\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a",
"i",
"a",
"i++",
"i++",
"i",
"{\nb[i]=sc.nextInt();\nsum+=b[i];\n }",
"{\nb[i]=sc.nextInt();\nsum+=b[i];\n }",
"b[i]=sc.nextInt()",
"b[i]",
"b",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sum+=b[i]",
"sum",
"b[i]",
"b",
"i",
"avg=(double)sum/a",
"avg",
"(double)sum/a",
"(double)sum",
"a",
"for(int j=0;j<a;j++){\n bun+=(double)(b[j]-avg)*(b[j]-avg);\n}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<a",
"j",
"a",
"j++",
"j++",
"j",
"{\n bun+=(double)(b[j]-avg)*(b[j]-avg);\n}",
"{\n bun+=(double)(b[j]-avg)*(b[j]-avg);\n}",
"bun+=(double)(b[j]-avg)*(b[j]-avg)",
"bun",
"(double)(b[j]-avg)*(b[j]-avg)",
"(double)(b[j]-avg)",
"b[j]",
"b",
"j",
"avg",
"(b[j]-avg)",
"b[j]",
"b",
"j",
"avg",
"System.out.println(Math.sqrt(bun/a))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.sqrt(bun/a)",
"Math.sqrt",
"Math",
"bun/a",
"bun",
"a",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\nScanner sc = new Scanner(System.in);\nwhile(true){\n int a = sc.nextInt();\n if(a==0){\n break;\n }\n int sum=0;\n double avg,bun=0;\n int[] b;\n b = new int[a];\n for(int i=0;i<a;i++){\nb[i]=sc.nextInt();\nsum+=b[i];\n }\navg=(double)sum/a;\nfor(int j=0;j<a;j++){\n bun+=(double)(b[j]-avg)*(b[j]-avg);\n}\nSystem.out.println(Math.sqrt(bun/a));\n}\n }\n}",
"public class Main{\n public static void main(String[] args){\nScanner sc = new Scanner(System.in);\nwhile(true){\n int a = sc.nextInt();\n if(a==0){\n break;\n }\n int sum=0;\n double avg,bun=0;\n int[] b;\n b = new int[a];\n for(int i=0;i<a;i++){\nb[i]=sc.nextInt();\nsum+=b[i];\n }\navg=(double)sum/a;\nfor(int j=0;j<a;j++){\n bun+=(double)(b[j]-avg)*(b[j]-avg);\n}\nSystem.out.println(Math.sqrt(bun/a));\n}\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
while(true){
int a = sc.nextInt();
if(a==0){
break;
}
int sum=0;
double avg,bun=0;
int[] b;
b = new int[a];
for(int i=0;i<a;i++){
b[i]=sc.nextInt();
sum+=b[i];
}
avg=(double)sum/a;
for(int j=0;j<a;j++){
bun+=(double)(b[j]-avg)*(b[j]-avg);
}
System.out.println(Math.sqrt(bun/a));
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
14,
2,
13,
17,
3,
41,
13,
4,
18,
4,
18,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
4,
18,
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,
4,
18,
13,
2,
4,
18,
13,
18,
13,
13,
13,
17,
0,
13,
4,
18,
13,
2,
13,
13,
4,
18,
4,
18,
13,
4,
18,
13,
17,
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
],
[
139,
11
],
[
139,
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
],
[
32,
34
],
[
23,
35
],
[
35,
36
],
[
35,
37
],
[
23,
38
],
[
38,
39
],
[
38,
40
],
[
23,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
23,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
48,
53
],
[
23,
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
],
[
67,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
74,
75
],
[
74,
76
],
[
23,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
23,
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
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
106,
107
],
[
106,
108
],
[
102,
109
],
[
99,
110
],
[
23,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
116,
117
],
[
116,
118
],
[
23,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
121,
124
],
[
124,
125
],
[
125,
126
],
[
124,
127
],
[
124,
128
],
[
119,
129
],
[
14,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
130,
135
],
[
12,
136
],
[
136,
137
],
[
0,
138
],
[
138,
139
],
[
138,
140
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] age)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\twhile( true ){\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tint i = 0;\n\t\t\tdouble m = 0;\n\t\t\tdouble a = 0;\n\n\t\t\tif( n==0 ) break;\n\n\t\t\tString[] s = br.readLine().split(\" \");\n\n\t\t\tfor( i=0 ; i<n ; i++ ){\n\t\t\t\tm = m+Double.parseDouble(s[i]);\n\t\t\t}\n\n\t\t\tm = m/n;\n\n\t\t\tfor( i=0 ; i<n ; i++ ){\n\t\t\t\ta = a+Math.pow(Double.parseDouble(s[i])-m, 2);\n\t\t\t}\n\n\t\t\ta = Math.sqrt(a/n);\n\t\t\tsb.append(String.format(\"%.6f\", a)).append(\"\\n\");\n \t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] age)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\twhile( true ){\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tint i = 0;\n\t\t\tdouble m = 0;\n\t\t\tdouble a = 0;\n\n\t\t\tif( n==0 ) break;\n\n\t\t\tString[] s = br.readLine().split(\" \");\n\n\t\t\tfor( i=0 ; i<n ; i++ ){\n\t\t\t\tm = m+Double.parseDouble(s[i]);\n\t\t\t}\n\n\t\t\tm = m/n;\n\n\t\t\tfor( i=0 ; i<n ; i++ ){\n\t\t\t\ta = a+Math.pow(Double.parseDouble(s[i])-m, 2);\n\t\t\t}\n\n\t\t\ta = Math.sqrt(a/n);\n\t\t\tsb.append(String.format(\"%.6f\", a)).append(\"\\n\");\n \t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n}",
"Main",
"public static void main(String[] age)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\twhile( true ){\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tint i = 0;\n\t\t\tdouble m = 0;\n\t\t\tdouble a = 0;\n\n\t\t\tif( n==0 ) break;\n\n\t\t\tString[] s = br.readLine().split(\" \");\n\n\t\t\tfor( i=0 ; i<n ; i++ ){\n\t\t\t\tm = m+Double.parseDouble(s[i]);\n\t\t\t}\n\n\t\t\tm = m/n;\n\n\t\t\tfor( i=0 ; i<n ; i++ ){\n\t\t\t\ta = a+Math.pow(Double.parseDouble(s[i])-m, 2);\n\t\t\t}\n\n\t\t\ta = Math.sqrt(a/n);\n\t\t\tsb.append(String.format(\"%.6f\", a)).append(\"\\n\");\n \t\t}\n\n\t\tSystem.out.print(sb);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\twhile( true ){\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tint i = 0;\n\t\t\tdouble m = 0;\n\t\t\tdouble a = 0;\n\n\t\t\tif( n==0 ) break;\n\n\t\t\tString[] s = br.readLine().split(\" \");\n\n\t\t\tfor( i=0 ; i<n ; i++ ){\n\t\t\t\tm = m+Double.parseDouble(s[i]);\n\t\t\t}\n\n\t\t\tm = m/n;\n\n\t\t\tfor( i=0 ; i<n ; i++ ){\n\t\t\t\ta = a+Math.pow(Double.parseDouble(s[i])-m, 2);\n\t\t\t}\n\n\t\t\ta = Math.sqrt(a/n);\n\t\t\tsb.append(String.format(\"%.6f\", a)).append(\"\\n\");\n \t\t}\n\n\t\tSystem.out.print(sb);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuffer sb = new StringBuffer();",
"sb",
"new StringBuffer()",
"while( true ){\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tint i = 0;\n\t\t\tdouble m = 0;\n\t\t\tdouble a = 0;\n\n\t\t\tif( n==0 ) break;\n\n\t\t\tString[] s = br.readLine().split(\" \");\n\n\t\t\tfor( i=0 ; i<n ; i++ ){\n\t\t\t\tm = m+Double.parseDouble(s[i]);\n\t\t\t}\n\n\t\t\tm = m/n;\n\n\t\t\tfor( i=0 ; i<n ; i++ ){\n\t\t\t\ta = a+Math.pow(Double.parseDouble(s[i])-m, 2);\n\t\t\t}\n\n\t\t\ta = Math.sqrt(a/n);\n\t\t\tsb.append(String.format(\"%.6f\", a)).append(\"\\n\");\n \t\t}",
"true",
"{\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tint i = 0;\n\t\t\tdouble m = 0;\n\t\t\tdouble a = 0;\n\n\t\t\tif( n==0 ) break;\n\n\t\t\tString[] s = br.readLine().split(\" \");\n\n\t\t\tfor( i=0 ; i<n ; i++ ){\n\t\t\t\tm = m+Double.parseDouble(s[i]);\n\t\t\t}\n\n\t\t\tm = m/n;\n\n\t\t\tfor( i=0 ; i<n ; i++ ){\n\t\t\t\ta = a+Math.pow(Double.parseDouble(s[i])-m, 2);\n\t\t\t}\n\n\t\t\ta = Math.sqrt(a/n);\n\t\t\tsb.append(String.format(\"%.6f\", a)).append(\"\\n\");\n \t\t}",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int i = 0;",
"i",
"0",
"double m = 0;",
"m",
"0",
"double a = 0;",
"a",
"0",
"if( n==0 ) break;",
"n==0",
"n",
"0",
"break;",
"String[] s = br.readLine().split(\" \");",
"s",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for( i=0 ; i<n ; i++ ){\n\t\t\t\tm = m+Double.parseDouble(s[i]);\n\t\t\t}",
"i=0 ;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tm = m+Double.parseDouble(s[i]);\n\t\t\t}",
"{\n\t\t\t\tm = m+Double.parseDouble(s[i]);\n\t\t\t}",
"m = m+Double.parseDouble(s[i])",
"m",
"m+Double.parseDouble(s[i])",
"m",
"Double.parseDouble(s[i])",
"Double.parseDouble",
"Double",
"s[i]",
"s",
"i",
"m = m/n",
"m",
"m/n",
"m",
"n",
"for( i=0 ; i<n ; i++ ){\n\t\t\t\ta = a+Math.pow(Double.parseDouble(s[i])-m, 2);\n\t\t\t}",
"i=0 ;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\ta = a+Math.pow(Double.parseDouble(s[i])-m, 2);\n\t\t\t}",
"{\n\t\t\t\ta = a+Math.pow(Double.parseDouble(s[i])-m, 2);\n\t\t\t}",
"a = a+Math.pow(Double.parseDouble(s[i])-m, 2)",
"a",
"a+Math.pow(Double.parseDouble(s[i])-m, 2)",
"a",
"Math.pow(Double.parseDouble(s[i])-m, 2)",
"Math.pow",
"Math",
"Double.parseDouble(s[i])-m",
"Double.parseDouble(s[i])",
"Double.parseDouble",
"Double",
"s[i]",
"s",
"i",
"m",
"2",
"a = Math.sqrt(a/n)",
"a",
"Math.sqrt(a/n)",
"Math.sqrt",
"Math",
"a/n",
"a",
"n",
"sb.append(String.format(\"%.6f\", a)).append(\"\\n\")",
"sb.append(String.format(\"%.6f\", a)).append",
"sb.append(String.format(\"%.6f\", a))",
"sb.append",
"sb",
"String.format(\"%.6f\", a)",
"String.format",
"String",
"\"%.6f\"",
"a",
"\"\\n\"",
"System.out.print(sb)",
"System.out.print",
"System.out",
"System",
"System.out",
"sb",
"String[] age",
"age",
"public class Main {\n\tpublic static void main(String[] age)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\twhile( true ){\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tint i = 0;\n\t\t\tdouble m = 0;\n\t\t\tdouble a = 0;\n\n\t\t\tif( n==0 ) break;\n\n\t\t\tString[] s = br.readLine().split(\" \");\n\n\t\t\tfor( i=0 ; i<n ; i++ ){\n\t\t\t\tm = m+Double.parseDouble(s[i]);\n\t\t\t}\n\n\t\t\tm = m/n;\n\n\t\t\tfor( i=0 ; i<n ; i++ ){\n\t\t\t\ta = a+Math.pow(Double.parseDouble(s[i])-m, 2);\n\t\t\t}\n\n\t\t\ta = Math.sqrt(a/n);\n\t\t\tsb.append(String.format(\"%.6f\", a)).append(\"\\n\");\n \t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] age)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\twhile( true ){\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tint i = 0;\n\t\t\tdouble m = 0;\n\t\t\tdouble a = 0;\n\n\t\t\tif( n==0 ) break;\n\n\t\t\tString[] s = br.readLine().split(\" \");\n\n\t\t\tfor( i=0 ; i<n ; i++ ){\n\t\t\t\tm = m+Double.parseDouble(s[i]);\n\t\t\t}\n\n\t\t\tm = m/n;\n\n\t\t\tfor( i=0 ; i<n ; i++ ){\n\t\t\t\ta = a+Math.pow(Double.parseDouble(s[i])-m, 2);\n\t\t\t}\n\n\t\t\ta = Math.sqrt(a/n);\n\t\t\tsb.append(String.format(\"%.6f\", a)).append(\"\\n\");\n \t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] age)throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuffer sb = new StringBuffer();
while( true ){
int n = Integer.parseInt(br.readLine());
int i = 0;
double m = 0;
double a = 0;
if( n==0 ) break;
String[] s = br.readLine().split(" ");
for( i=0 ; i<n ; i++ ){
m = m+Double.parseDouble(s[i]);
}
m = m/n;
for( i=0 ; i<n ; i++ ){
a = a+Math.pow(Double.parseDouble(s[i])-m, 2);
}
a = Math.sqrt(a/n);
sb.append(String.format("%.6f", a)).append("\n");
}
System.out.print(sb);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
42,
40,
4,
18,
0,
13,
4,
18,
13,
17,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
20,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
42,
2,
40,
13,
17,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
0,
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,
2,
18,
13,
13,
13,
2,
18,
13,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
13,
2,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
131,
11
],
[
131,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
22,
29
],
[
20,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
33,
38
],
[
30,
39
],
[
39,
40
],
[
39,
41
],
[
42,
43
],
[
42,
44
],
[
30,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
30,
50
],
[
50,
51
],
[
50,
52
],
[
30,
53
],
[
53,
54
],
[
53,
55
],
[
30,
56
],
[
56,
57
],
[
56,
58
],
[
30,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
59,
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
],
[
30,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
30,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
30,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
90,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
105,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
30,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
116,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
125,
126
],
[
125,
127
],
[
12,
128
],
[
128,
129
],
[
0,
130
],
[
130,
131
],
[
130,
132
]
] | [
"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 IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line;\n while (!(line = br.readLine()).equals(\"0\")) {\n String[] lines = br.readLine().split(\" \");\n double[] list = new double[lines.length];\n int n = lines.length;\n double total = 0.0; //????¨????\n double average = 0.0; //?????????\n double var = 0.0; //?????£\n while (n-- > 0) {\n list[n] = Double.parseDouble(lines[n]);\n total+=list[n];\n }\n n=lines.length;\n average=total/n;\n for(int i=0;i<n;i++){\n var+=((list[i]-average)*(list[i]-average));\n }\n System.out.printf(\"%f\\n\",Math.sqrt(var/n));\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line;\n while (!(line = br.readLine()).equals(\"0\")) {\n String[] lines = br.readLine().split(\" \");\n double[] list = new double[lines.length];\n int n = lines.length;\n double total = 0.0; //????¨????\n double average = 0.0; //?????????\n double var = 0.0; //?????£\n while (n-- > 0) {\n list[n] = Double.parseDouble(lines[n]);\n total+=list[n];\n }\n n=lines.length;\n average=total/n;\n for(int i=0;i<n;i++){\n var+=((list[i]-average)*(list[i]-average));\n }\n System.out.printf(\"%f\\n\",Math.sqrt(var/n));\n }\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line;\n while (!(line = br.readLine()).equals(\"0\")) {\n String[] lines = br.readLine().split(\" \");\n double[] list = new double[lines.length];\n int n = lines.length;\n double total = 0.0; //????¨????\n double average = 0.0; //?????????\n double var = 0.0; //?????£\n while (n-- > 0) {\n list[n] = Double.parseDouble(lines[n]);\n total+=list[n];\n }\n n=lines.length;\n average=total/n;\n for(int i=0;i<n;i++){\n var+=((list[i]-average)*(list[i]-average));\n }\n System.out.printf(\"%f\\n\",Math.sqrt(var/n));\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line;\n while (!(line = br.readLine()).equals(\"0\")) {\n String[] lines = br.readLine().split(\" \");\n double[] list = new double[lines.length];\n int n = lines.length;\n double total = 0.0; //????¨????\n double average = 0.0; //?????????\n double var = 0.0; //?????£\n while (n-- > 0) {\n list[n] = Double.parseDouble(lines[n]);\n total+=list[n];\n }\n n=lines.length;\n average=total/n;\n for(int i=0;i<n;i++){\n var+=((list[i]-average)*(list[i]-average));\n }\n System.out.printf(\"%f\\n\",Math.sqrt(var/n));\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String line;",
"line",
"while (!(line = br.readLine()).equals(\"0\")) {\n String[] lines = br.readLine().split(\" \");\n double[] list = new double[lines.length];\n int n = lines.length;\n double total = 0.0; //????¨????\n double average = 0.0; //?????????\n double var = 0.0; //?????£\n while (n-- > 0) {\n list[n] = Double.parseDouble(lines[n]);\n total+=list[n];\n }\n n=lines.length;\n average=total/n;\n for(int i=0;i<n;i++){\n var+=((list[i]-average)*(list[i]-average));\n }\n System.out.printf(\"%f\\n\",Math.sqrt(var/n));\n }",
"!(line = br.readLine()).equals(\"0\")",
"(line = br.readLine()).equals(\"0\")",
"(line = br.readLine()).equals",
"(line = br.readLine())",
"line",
"br.readLine()",
"br.readLine",
"br",
"\"0\"",
"{\n String[] lines = br.readLine().split(\" \");\n double[] list = new double[lines.length];\n int n = lines.length;\n double total = 0.0; //????¨????\n double average = 0.0; //?????????\n double var = 0.0; //?????£\n while (n-- > 0) {\n list[n] = Double.parseDouble(lines[n]);\n total+=list[n];\n }\n n=lines.length;\n average=total/n;\n for(int i=0;i<n;i++){\n var+=((list[i]-average)*(list[i]-average));\n }\n System.out.printf(\"%f\\n\",Math.sqrt(var/n));\n }",
"String[] lines = br.readLine().split(\" \");",
"lines",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"double[] list = new double[lines.length];",
"list",
"new double[lines.length]",
"lines.length",
"lines",
"lines.length",
"int n = lines.length;",
"n",
"lines.length",
"lines",
"lines.length",
"double total = 0.0;",
"total",
"0.0",
"double average = 0.0;",
"average",
"0.0",
"double var = 0.0;",
"var",
"0.0",
"while (n-- > 0) {\n list[n] = Double.parseDouble(lines[n]);\n total+=list[n];\n }",
"n-- > 0",
"n--",
"n",
"0",
"{\n list[n] = Double.parseDouble(lines[n]);\n total+=list[n];\n }",
"list[n] = Double.parseDouble(lines[n])",
"list[n]",
"list",
"n",
"Double.parseDouble(lines[n])",
"Double.parseDouble",
"Double",
"lines[n]",
"lines",
"n",
"total+=list[n]",
"total",
"list[n]",
"list",
"n",
"n=lines.length",
"n",
"lines.length",
"lines",
"lines.length",
"average=total/n",
"average",
"total/n",
"total",
"n",
"for(int i=0;i<n;i++){\n var+=((list[i]-average)*(list[i]-average));\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n var+=((list[i]-average)*(list[i]-average));\n }",
"{\n var+=((list[i]-average)*(list[i]-average));\n }",
"var+=((list[i]-average)*(list[i]-average))",
"var",
"((list[i]-average)*(list[i]-average))",
"(list[i]-average)",
"list[i]",
"list",
"i",
"average",
"(list[i]-average)",
"list[i]",
"list",
"i",
"average",
"System.out.printf(\"%f\\n\",Math.sqrt(var/n))",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%f\\n\"",
"Math.sqrt(var/n)",
"Math.sqrt",
"Math",
"var/n",
"var",
"n",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line;\n while (!(line = br.readLine()).equals(\"0\")) {\n String[] lines = br.readLine().split(\" \");\n double[] list = new double[lines.length];\n int n = lines.length;\n double total = 0.0; //????¨????\n double average = 0.0; //?????????\n double var = 0.0; //?????£\n while (n-- > 0) {\n list[n] = Double.parseDouble(lines[n]);\n total+=list[n];\n }\n n=lines.length;\n average=total/n;\n for(int i=0;i<n;i++){\n var+=((list[i]-average)*(list[i]-average));\n }\n System.out.printf(\"%f\\n\",Math.sqrt(var/n));\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line;\n while (!(line = br.readLine()).equals(\"0\")) {\n String[] lines = br.readLine().split(\" \");\n double[] list = new double[lines.length];\n int n = lines.length;\n double total = 0.0; //????¨????\n double average = 0.0; //?????????\n double var = 0.0; //?????£\n while (n-- > 0) {\n list[n] = Double.parseDouble(lines[n]);\n total+=list[n];\n }\n n=lines.length;\n average=total/n;\n for(int i=0;i<n;i++){\n var+=((list[i]-average)*(list[i]-average));\n }\n System.out.printf(\"%f\\n\",Math.sqrt(var/n));\n }\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line;
while (!(line = br.readLine()).equals("0")) {
String[] lines = br.readLine().split(" ");
double[] list = new double[lines.length];
int n = lines.length;
double total = 0.0; //????¨????
double average = 0.0; //?????????
double var = 0.0; //?????£
while (n-- > 0) {
list[n] = Double.parseDouble(lines[n]);
total+=list[n];
}
n=lines.length;
average=total/n;
for(int i=0;i<n;i++){
var+=((list[i]-average)*(list[i]-average));
}
System.out.printf("%f\n",Math.sqrt(var/n));
}
}
} |
[
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,
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,
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,
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
],
[
113,
8
],
[
113,
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
],
[
38,
40
],
[
17,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
53,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
17,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
66,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
86,
88
],
[
81,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
93,
94
],
[
93,
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
],
[
9,
110
],
[
110,
111
],
[
0,
112
],
[
112,
113
],
[
112,
114
]
] | [
"import java.util.Scanner;\nimport java.lang.Math;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n\n while(true){\n int n = stdIn.nextInt();\n if(n==0) break;\n int a[] = new int[n];\n double sum = 0;\n double sum1 = 0;\n double t = 0;\n\n for (int i = 0; i < n; i++) {\n a[i] = stdIn.nextInt();\n sum += a[i];\n }\n\n for (int j = 0; j < n; j++) {\n sum1 += (double) (a[j] - sum / n) * (a[j] - sum / n);\n }\n\n t = Math.sqrt((double) sum1 / n);\n\n System.out.println(t);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.lang.Math;",
"Math",
"java.lang",
"public class Main {\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n\n while(true){\n int n = stdIn.nextInt();\n if(n==0) break;\n int a[] = new int[n];\n double sum = 0;\n double sum1 = 0;\n double t = 0;\n\n for (int i = 0; i < n; i++) {\n a[i] = stdIn.nextInt();\n sum += a[i];\n }\n\n for (int j = 0; j < n; j++) {\n sum1 += (double) (a[j] - sum / n) * (a[j] - sum / n);\n }\n\n t = Math.sqrt((double) sum1 / n);\n\n System.out.println(t);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n\n while(true){\n int n = stdIn.nextInt();\n if(n==0) break;\n int a[] = new int[n];\n double sum = 0;\n double sum1 = 0;\n double t = 0;\n\n for (int i = 0; i < n; i++) {\n a[i] = stdIn.nextInt();\n sum += a[i];\n }\n\n for (int j = 0; j < n; j++) {\n sum1 += (double) (a[j] - sum / n) * (a[j] - sum / n);\n }\n\n t = Math.sqrt((double) sum1 / n);\n\n System.out.println(t);\n }\n }",
"main",
"{\n Scanner stdIn = new Scanner(System.in);\n\n while(true){\n int n = stdIn.nextInt();\n if(n==0) break;\n int a[] = new int[n];\n double sum = 0;\n double sum1 = 0;\n double t = 0;\n\n for (int i = 0; i < n; i++) {\n a[i] = stdIn.nextInt();\n sum += a[i];\n }\n\n for (int j = 0; j < n; j++) {\n sum1 += (double) (a[j] - sum / n) * (a[j] - sum / n);\n }\n\n t = Math.sqrt((double) sum1 / n);\n\n System.out.println(t);\n }\n }",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"while(true){\n int n = stdIn.nextInt();\n if(n==0) break;\n int a[] = new int[n];\n double sum = 0;\n double sum1 = 0;\n double t = 0;\n\n for (int i = 0; i < n; i++) {\n a[i] = stdIn.nextInt();\n sum += a[i];\n }\n\n for (int j = 0; j < n; j++) {\n sum1 += (double) (a[j] - sum / n) * (a[j] - sum / n);\n }\n\n t = Math.sqrt((double) sum1 / n);\n\n System.out.println(t);\n }",
"true",
"{\n int n = stdIn.nextInt();\n if(n==0) break;\n int a[] = new int[n];\n double sum = 0;\n double sum1 = 0;\n double t = 0;\n\n for (int i = 0; i < n; i++) {\n a[i] = stdIn.nextInt();\n sum += a[i];\n }\n\n for (int j = 0; j < n; j++) {\n sum1 += (double) (a[j] - sum / n) * (a[j] - sum / n);\n }\n\n t = Math.sqrt((double) sum1 / n);\n\n System.out.println(t);\n }",
"int n = stdIn.nextInt();",
"n",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"if(n==0) break;",
"n==0",
"n",
"0",
"break;",
"int a[] = new int[n];",
"a",
"new int[n]",
"n",
"double sum = 0;",
"sum",
"0",
"double sum1 = 0;",
"sum1",
"0",
"double t = 0;",
"t",
"0",
"for (int i = 0; i < n; i++) {\n a[i] = stdIn.nextInt();\n sum += a[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a[i] = stdIn.nextInt();\n sum += a[i];\n }",
"{\n a[i] = stdIn.nextInt();\n sum += a[i];\n }",
"a[i] = stdIn.nextInt()",
"a[i]",
"a",
"i",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"sum += a[i]",
"sum",
"a[i]",
"a",
"i",
"for (int j = 0; j < n; j++) {\n sum1 += (double) (a[j] - sum / n) * (a[j] - sum / n);\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < n",
"j",
"n",
"j++",
"j++",
"j",
"{\n sum1 += (double) (a[j] - sum / n) * (a[j] - sum / n);\n }",
"{\n sum1 += (double) (a[j] - sum / n) * (a[j] - sum / n);\n }",
"sum1 += (double) (a[j] - sum / n) * (a[j] - sum / n)",
"sum1",
"(double) (a[j] - sum / n) * (a[j] - sum / n)",
"(double) (a[j] - sum / n)",
"a[j]",
"a",
"j",
"sum / n",
"sum",
"n",
"(a[j] - sum / n)",
"a[j]",
"a",
"j",
"sum / n",
"sum",
"n",
"t = Math.sqrt((double) sum1 / n)",
"t",
"Math.sqrt((double) sum1 / n)",
"Math.sqrt",
"Math",
"(double) sum1 / n",
"(double) sum1",
"n",
"System.out.println(t)",
"System.out.println",
"System.out",
"System",
"System.out",
"t",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n\n while(true){\n int n = stdIn.nextInt();\n if(n==0) break;\n int a[] = new int[n];\n double sum = 0;\n double sum1 = 0;\n double t = 0;\n\n for (int i = 0; i < n; i++) {\n a[i] = stdIn.nextInt();\n sum += a[i];\n }\n\n for (int j = 0; j < n; j++) {\n sum1 += (double) (a[j] - sum / n) * (a[j] - sum / n);\n }\n\n t = Math.sqrt((double) sum1 / n);\n\n System.out.println(t);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n\n while(true){\n int n = stdIn.nextInt();\n if(n==0) break;\n int a[] = new int[n];\n double sum = 0;\n double sum1 = 0;\n double t = 0;\n\n for (int i = 0; i < n; i++) {\n a[i] = stdIn.nextInt();\n sum += a[i];\n }\n\n for (int j = 0; j < n; j++) {\n sum1 += (double) (a[j] - sum / n) * (a[j] - sum / n);\n }\n\n t = Math.sqrt((double) sum1 / n);\n\n System.out.println(t);\n }\n }\n}",
"Main"
] | import java.util.Scanner;
import java.lang.Math;
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 a[] = new int[n];
double sum = 0;
double sum1 = 0;
double t = 0;
for (int i = 0; i < n; i++) {
a[i] = stdIn.nextInt();
sum += a[i];
}
for (int j = 0; j < n; j++) {
sum1 += (double) (a[j] - sum / n) * (a[j] - sum / n);
}
t = Math.sqrt((double) sum1 / n);
System.out.println(t);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
40,
17,
42,
17,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
3,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
18,
13,
13,
0,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
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
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
11,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
21,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
21,
33
],
[
33,
34
],
[
33,
35
],
[
21,
37
],
[
37,
38
],
[
37,
39
],
[
21,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
40,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
58,
59
],
[
52,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
21,
65
],
[
65,
66
],
[
65,
67
],
[
21,
68
],
[
68,
69
],
[
68,
70
],
[
21,
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
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
86,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
21,
97
],
[
97,
98
],
[
97,
99
],
[
21,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
21,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
9,
112
],
[
112,
113
]
] | [
"import java.io.IOException;\nimport java.util.Scanner;\nclass Main{\n\tpublic static void main(String[] args)throws NumberFormatException, IOException{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint student = -1;\n\t\twhile(true){\n\t\t\tstudent =scan.nextInt();\n\t\t\tif (student == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint[] score = new int[student];\n\t\t\tdouble average = 0.0;\n\t\t\tfor(int i=0;i<student; i++){\n\t\t\t\tscore[i] = scan.nextInt();\n\t\t\t\taverage += score[i];\n\t\t\t}\n\t\t\taverage /= student;\t\t//????¨??????° / ????????° ??? ?????????\n\t\t\tdouble deviation = 0.0;\n\t\t\tfor(int i=0; i<student; i++){\n\t\t\t\tdeviation += (score[i] - average) * (score[i] - average);\n\t\t\t}\n\t\t\tdeviation /= student;\n\t\t\tdeviation = Math.sqrt(deviation);\n\t\t\tSystem.out.println(deviation);\n\t\t}\n\t}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n\tpublic static void main(String[] args)throws NumberFormatException, IOException{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint student = -1;\n\t\twhile(true){\n\t\t\tstudent =scan.nextInt();\n\t\t\tif (student == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint[] score = new int[student];\n\t\t\tdouble average = 0.0;\n\t\t\tfor(int i=0;i<student; i++){\n\t\t\t\tscore[i] = scan.nextInt();\n\t\t\t\taverage += score[i];\n\t\t\t}\n\t\t\taverage /= student;\t\t//????¨??????° / ????????° ??? ?????????\n\t\t\tdouble deviation = 0.0;\n\t\t\tfor(int i=0; i<student; i++){\n\t\t\t\tdeviation += (score[i] - average) * (score[i] - average);\n\t\t\t}\n\t\t\tdeviation /= student;\n\t\t\tdeviation = Math.sqrt(deviation);\n\t\t\tSystem.out.println(deviation);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args)throws NumberFormatException, IOException{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint student = -1;\n\t\twhile(true){\n\t\t\tstudent =scan.nextInt();\n\t\t\tif (student == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint[] score = new int[student];\n\t\t\tdouble average = 0.0;\n\t\t\tfor(int i=0;i<student; i++){\n\t\t\t\tscore[i] = scan.nextInt();\n\t\t\t\taverage += score[i];\n\t\t\t}\n\t\t\taverage /= student;\t\t//????¨??????° / ????????° ??? ?????????\n\t\t\tdouble deviation = 0.0;\n\t\t\tfor(int i=0; i<student; i++){\n\t\t\t\tdeviation += (score[i] - average) * (score[i] - average);\n\t\t\t}\n\t\t\tdeviation /= student;\n\t\t\tdeviation = Math.sqrt(deviation);\n\t\t\tSystem.out.println(deviation);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint student = -1;\n\t\twhile(true){\n\t\t\tstudent =scan.nextInt();\n\t\t\tif (student == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint[] score = new int[student];\n\t\t\tdouble average = 0.0;\n\t\t\tfor(int i=0;i<student; i++){\n\t\t\t\tscore[i] = scan.nextInt();\n\t\t\t\taverage += score[i];\n\t\t\t}\n\t\t\taverage /= student;\t\t//????¨??????° / ????????° ??? ?????????\n\t\t\tdouble deviation = 0.0;\n\t\t\tfor(int i=0; i<student; i++){\n\t\t\t\tdeviation += (score[i] - average) * (score[i] - average);\n\t\t\t}\n\t\t\tdeviation /= student;\n\t\t\tdeviation = Math.sqrt(deviation);\n\t\t\tSystem.out.println(deviation);\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int student = -1;",
"student",
"-1",
"1",
"while(true){\n\t\t\tstudent =scan.nextInt();\n\t\t\tif (student == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint[] score = new int[student];\n\t\t\tdouble average = 0.0;\n\t\t\tfor(int i=0;i<student; i++){\n\t\t\t\tscore[i] = scan.nextInt();\n\t\t\t\taverage += score[i];\n\t\t\t}\n\t\t\taverage /= student;\t\t//????¨??????° / ????????° ??? ?????????\n\t\t\tdouble deviation = 0.0;\n\t\t\tfor(int i=0; i<student; i++){\n\t\t\t\tdeviation += (score[i] - average) * (score[i] - average);\n\t\t\t}\n\t\t\tdeviation /= student;\n\t\t\tdeviation = Math.sqrt(deviation);\n\t\t\tSystem.out.println(deviation);\n\t\t}",
"true",
"{\n\t\t\tstudent =scan.nextInt();\n\t\t\tif (student == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint[] score = new int[student];\n\t\t\tdouble average = 0.0;\n\t\t\tfor(int i=0;i<student; i++){\n\t\t\t\tscore[i] = scan.nextInt();\n\t\t\t\taverage += score[i];\n\t\t\t}\n\t\t\taverage /= student;\t\t//????¨??????° / ????????° ??? ?????????\n\t\t\tdouble deviation = 0.0;\n\t\t\tfor(int i=0; i<student; i++){\n\t\t\t\tdeviation += (score[i] - average) * (score[i] - average);\n\t\t\t}\n\t\t\tdeviation /= student;\n\t\t\tdeviation = Math.sqrt(deviation);\n\t\t\tSystem.out.println(deviation);\n\t\t}",
"student =scan.nextInt()",
"student",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if (student == 0){\n\t\t\t\tbreak;\n\t\t\t}",
"student == 0",
"student",
"0",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"int[] score = new int[student];",
"score",
"new int[student]",
"student",
"double average = 0.0;",
"average",
"0.0",
"for(int i=0;i<student; i++){\n\t\t\t\tscore[i] = scan.nextInt();\n\t\t\t\taverage += score[i];\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<student",
"i",
"student",
"i++",
"i++",
"i",
"{\n\t\t\t\tscore[i] = scan.nextInt();\n\t\t\t\taverage += score[i];\n\t\t\t}",
"{\n\t\t\t\tscore[i] = scan.nextInt();\n\t\t\t\taverage += score[i];\n\t\t\t}",
"score[i] = scan.nextInt()",
"score[i]",
"score",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"average += score[i]",
"average",
"score[i]",
"score",
"i",
"average /= student",
"average",
"student",
"double deviation = 0.0;",
"deviation",
"0.0",
"for(int i=0; i<student; i++){\n\t\t\t\tdeviation += (score[i] - average) * (score[i] - average);\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<student",
"i",
"student",
"i++",
"i++",
"i",
"{\n\t\t\t\tdeviation += (score[i] - average) * (score[i] - average);\n\t\t\t}",
"{\n\t\t\t\tdeviation += (score[i] - average) * (score[i] - average);\n\t\t\t}",
"deviation += (score[i] - average) * (score[i] - average)",
"deviation",
"(score[i] - average) * (score[i] - average)",
"(score[i] - average)",
"score[i]",
"score",
"i",
"average",
"(score[i] - average)",
"score[i]",
"score",
"i",
"average",
"deviation /= student",
"deviation",
"student",
"deviation = Math.sqrt(deviation)",
"deviation",
"Math.sqrt(deviation)",
"Math.sqrt",
"Math",
"deviation",
"System.out.println(deviation)",
"System.out.println",
"System.out",
"System",
"System.out",
"deviation",
"String[] args",
"args"
] | import java.io.IOException;
import java.util.Scanner;
class Main{
public static void main(String[] args)throws NumberFormatException, IOException{
Scanner scan = new Scanner(System.in);
int student = -1;
while(true){
student =scan.nextInt();
if (student == 0){
break;
}
int[] score = new int[student];
double average = 0.0;
for(int i=0;i<student; i++){
score[i] = scan.nextInt();
average += score[i];
}
average /= student; //????¨??????° / ????????° ??? ?????????
double deviation = 0.0;
for(int i=0; i<student; i++){
deviation += (score[i] - average) * (score[i] - average);
}
deviation /= student;
deviation = Math.sqrt(deviation);
System.out.println(deviation);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
42,
17,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
3,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
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,
4,
18,
13,
2,
18,
13,
13,
13,
17,
0,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
102,
5
],
[
102,
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
],
[
21,
22
],
[
22,
23
],
[
18,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
28
],
[
18,
29
],
[
29,
30
],
[
29,
31
],
[
18,
32
],
[
32,
33
],
[
32,
34
],
[
18,
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
],
[
18,
60
],
[
60,
61
],
[
60,
62
],
[
18,
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
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
78,
86
],
[
18,
87
],
[
87,
88
],
[
87,
89
],
[
18,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
6,
99
],
[
99,
100
],
[
0,
101
],
[
101,
102
],
[
101,
103
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int score[] = new int[1000];\n\n while (true) {\n int n = scanner.nextInt();\n if (n == 0) break;\n double m = 0.0, d = 0.0;\n\n for (int i = 0; i < n; ++i) {\n score[i] = scanner.nextInt();\n m += score[i];\n }\n\n m /= n;\n\n for (int i = 0; i < n; ++i) {\n d += Math.pow(((double)score[i] - m), 2);\n }\n\n d /= n;\n\n System.out.println(Math.sqrt(d));\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 score[] = new int[1000];\n\n while (true) {\n int n = scanner.nextInt();\n if (n == 0) break;\n double m = 0.0, d = 0.0;\n\n for (int i = 0; i < n; ++i) {\n score[i] = scanner.nextInt();\n m += score[i];\n }\n\n m /= n;\n\n for (int i = 0; i < n; ++i) {\n d += Math.pow(((double)score[i] - m), 2);\n }\n\n d /= n;\n\n System.out.println(Math.sqrt(d));\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int score[] = new int[1000];\n\n while (true) {\n int n = scanner.nextInt();\n if (n == 0) break;\n double m = 0.0, d = 0.0;\n\n for (int i = 0; i < n; ++i) {\n score[i] = scanner.nextInt();\n m += score[i];\n }\n\n m /= n;\n\n for (int i = 0; i < n; ++i) {\n d += Math.pow(((double)score[i] - m), 2);\n }\n\n d /= n;\n\n System.out.println(Math.sqrt(d));\n }\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n int score[] = new int[1000];\n\n while (true) {\n int n = scanner.nextInt();\n if (n == 0) break;\n double m = 0.0, d = 0.0;\n\n for (int i = 0; i < n; ++i) {\n score[i] = scanner.nextInt();\n m += score[i];\n }\n\n m /= n;\n\n for (int i = 0; i < n; ++i) {\n d += Math.pow(((double)score[i] - m), 2);\n }\n\n d /= n;\n\n System.out.println(Math.sqrt(d));\n }\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int score[] = new int[1000];",
"score",
"new int[1000]",
"1000",
"while (true) {\n int n = scanner.nextInt();\n if (n == 0) break;\n double m = 0.0, d = 0.0;\n\n for (int i = 0; i < n; ++i) {\n score[i] = scanner.nextInt();\n m += score[i];\n }\n\n m /= n;\n\n for (int i = 0; i < n; ++i) {\n d += Math.pow(((double)score[i] - m), 2);\n }\n\n d /= n;\n\n System.out.println(Math.sqrt(d));\n }",
"true",
"{\n int n = scanner.nextInt();\n if (n == 0) break;\n double m = 0.0, d = 0.0;\n\n for (int i = 0; i < n; ++i) {\n score[i] = scanner.nextInt();\n m += score[i];\n }\n\n m /= n;\n\n for (int i = 0; i < n; ++i) {\n d += Math.pow(((double)score[i] - m), 2);\n }\n\n d /= n;\n\n System.out.println(Math.sqrt(d));\n }",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"if (n == 0) break;",
"n == 0",
"n",
"0",
"break;",
"double m = 0.0",
"m",
"0.0",
"d = 0.0;",
"d",
"0.0",
"for (int i = 0; i < n; ++i) {\n score[i] = scanner.nextInt();\n m += score[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"++i",
"++i",
"i",
"{\n score[i] = scanner.nextInt();\n m += score[i];\n }",
"{\n score[i] = scanner.nextInt();\n m += score[i];\n }",
"score[i] = scanner.nextInt()",
"score[i]",
"score",
"i",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"m += score[i]",
"m",
"score[i]",
"score",
"i",
"m /= n",
"m",
"n",
"for (int i = 0; i < n; ++i) {\n d += Math.pow(((double)score[i] - m), 2);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"++i",
"++i",
"i",
"{\n d += Math.pow(((double)score[i] - m), 2);\n }",
"{\n d += Math.pow(((double)score[i] - m), 2);\n }",
"d += Math.pow(((double)score[i] - m), 2)",
"d",
"Math.pow(((double)score[i] - m), 2)",
"Math.pow",
"Math",
"((double)score[i] - m)",
"(double)score[i]",
"score",
"i",
"m",
"2",
"d /= n",
"d",
"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",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int score[] = new int[1000];\n\n while (true) {\n int n = scanner.nextInt();\n if (n == 0) break;\n double m = 0.0, d = 0.0;\n\n for (int i = 0; i < n; ++i) {\n score[i] = scanner.nextInt();\n m += score[i];\n }\n\n m /= n;\n\n for (int i = 0; i < n; ++i) {\n d += Math.pow(((double)score[i] - m), 2);\n }\n\n d /= n;\n\n System.out.println(Math.sqrt(d));\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int score[] = new int[1000];\n\n while (true) {\n int n = scanner.nextInt();\n if (n == 0) break;\n double m = 0.0, d = 0.0;\n\n for (int i = 0; i < n; ++i) {\n score[i] = scanner.nextInt();\n m += score[i];\n }\n\n m /= n;\n\n for (int i = 0; i < n; ++i) {\n d += Math.pow(((double)score[i] - m), 2);\n }\n\n d /= n;\n\n System.out.println(Math.sqrt(d));\n }\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int score[] = new int[1000];
while (true) {
int n = scanner.nextInt();
if (n == 0) break;
double m = 0.0, d = 0.0;
for (int i = 0; i < n; ++i) {
score[i] = scanner.nextInt();
m += score[i];
}
m /= n;
for (int i = 0; i < n; ++i) {
d += Math.pow(((double)score[i] - m), 2);
}
d /= n;
System.out.println(Math.sqrt(d));
}
}
}
|
[
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,
41,
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,
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,
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
],
[
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
],
[
17,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
20,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
14,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
14,
33
],
[
33,
34
],
[
33,
35
],
[
14,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
49,
57
],
[
57,
58
],
[
57,
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
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
86,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
14,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
99,
101
],
[
14,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
14,
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;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = sc.nextInt();\n\t\t\tdouble ave = 0.0;\n\t\t\tdouble a = 0.0;\n\t\t\tdouble b;\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\tint[] score = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t\tave = ave + score[i];\n\t\t\t}\n\t\t\tave = ave / n;\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\ta = a + (score[j] - ave) * (score[j] - ave);\n\t\t\t}\n\t\t\ta = a / n;\n\t\t\tb = Math.sqrt(a);\n\t\t\tSystem.out.println(b);\n\t\t}\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = sc.nextInt();\n\t\t\tdouble ave = 0.0;\n\t\t\tdouble a = 0.0;\n\t\t\tdouble b;\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\tint[] score = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t\tave = ave + score[i];\n\t\t\t}\n\t\t\tave = ave / n;\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\ta = a + (score[j] - ave) * (score[j] - ave);\n\t\t\t}\n\t\t\ta = a / n;\n\t\t\tb = Math.sqrt(a);\n\t\t\tSystem.out.println(b);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = sc.nextInt();\n\t\t\tdouble ave = 0.0;\n\t\t\tdouble a = 0.0;\n\t\t\tdouble b;\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\tint[] score = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t\tave = ave + score[i];\n\t\t\t}\n\t\t\tave = ave / n;\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\ta = a + (score[j] - ave) * (score[j] - ave);\n\t\t\t}\n\t\t\ta = a / n;\n\t\t\tb = Math.sqrt(a);\n\t\t\tSystem.out.println(b);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = sc.nextInt();\n\t\t\tdouble ave = 0.0;\n\t\t\tdouble a = 0.0;\n\t\t\tdouble b;\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\tint[] score = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t\tave = ave + score[i];\n\t\t\t}\n\t\t\tave = ave / n;\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\ta = a + (score[j] - ave) * (score[j] - ave);\n\t\t\t}\n\t\t\ta = a / n;\n\t\t\tb = Math.sqrt(a);\n\t\t\tSystem.out.println(b);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while (true) {\n\t\t\tint n = sc.nextInt();\n\t\t\tdouble ave = 0.0;\n\t\t\tdouble a = 0.0;\n\t\t\tdouble b;\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\tint[] score = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t\tave = ave + score[i];\n\t\t\t}\n\t\t\tave = ave / n;\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\ta = a + (score[j] - ave) * (score[j] - ave);\n\t\t\t}\n\t\t\ta = a / n;\n\t\t\tb = Math.sqrt(a);\n\t\t\tSystem.out.println(b);\n\t\t}",
"true",
"{\n\t\t\tint n = sc.nextInt();\n\t\t\tdouble ave = 0.0;\n\t\t\tdouble a = 0.0;\n\t\t\tdouble b;\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\tint[] score = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t\tave = ave + score[i];\n\t\t\t}\n\t\t\tave = ave / n;\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\ta = a + (score[j] - ave) * (score[j] - ave);\n\t\t\t}\n\t\t\ta = a / n;\n\t\t\tb = Math.sqrt(a);\n\t\t\tSystem.out.println(b);\n\t\t}",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double ave = 0.0;",
"ave",
"0.0",
"double a = 0.0;",
"a",
"0.0",
"double b;",
"b",
"if (n == 0)\n\t\t\t\tbreak;",
"n == 0",
"n",
"0",
"break;",
"int[] score = new int[n];",
"score",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t\tave = ave + score[i];\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t\tave = ave + score[i];\n\t\t\t}",
"{\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t\tave = ave + score[i];\n\t\t\t}",
"score[i] = sc.nextInt()",
"score[i]",
"score",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"ave = ave + score[i]",
"ave",
"ave + score[i]",
"ave",
"score[i]",
"score",
"i",
"ave = ave / n",
"ave",
"ave / n",
"ave",
"n",
"for (int j = 0; j < n; j++) {\n\t\t\t\ta = a + (score[j] - ave) * (score[j] - ave);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < n",
"j",
"n",
"j++",
"j++",
"j",
"{\n\t\t\t\ta = a + (score[j] - ave) * (score[j] - ave);\n\t\t\t}",
"{\n\t\t\t\ta = a + (score[j] - ave) * (score[j] - ave);\n\t\t\t}",
"a = a + (score[j] - ave) * (score[j] - ave)",
"a",
"a + (score[j] - ave) * (score[j] - ave)",
"a",
"(score[j] - ave) * (score[j] - ave)",
"(score[j] - ave)",
"score[j]",
"score",
"j",
"ave",
"(score[j] - ave)",
"score[j]",
"score",
"j",
"ave",
"a = a / n",
"a",
"a / n",
"a",
"n",
"b = Math.sqrt(a)",
"b",
"Math.sqrt(a)",
"Math.sqrt",
"Math",
"a",
"System.out.println(b)",
"System.out.println",
"System.out",
"System",
"System.out",
"b",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = sc.nextInt();\n\t\t\tdouble ave = 0.0;\n\t\t\tdouble a = 0.0;\n\t\t\tdouble b;\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\tint[] score = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t\tave = ave + score[i];\n\t\t\t}\n\t\t\tave = ave / n;\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\ta = a + (score[j] - ave) * (score[j] - ave);\n\t\t\t}\n\t\t\ta = a / n;\n\t\t\tb = Math.sqrt(a);\n\t\t\tSystem.out.println(b);\n\t\t}\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint n = sc.nextInt();\n\t\t\tdouble ave = 0.0;\n\t\t\tdouble a = 0.0;\n\t\t\tdouble b;\n\t\t\tif (n == 0)\n\t\t\t\tbreak;\n\t\t\tint[] score = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tscore[i] = sc.nextInt();\n\t\t\t\tave = ave + score[i];\n\t\t\t}\n\t\t\tave = ave / n;\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\ta = a + (score[j] - ave) * (score[j] - ave);\n\t\t\t}\n\t\t\ta = a / n;\n\t\t\tb = Math.sqrt(a);\n\t\t\tSystem.out.println(b);\n\t\t}\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (true) {
int n = sc.nextInt();
double ave = 0.0;
double a = 0.0;
double b;
if (n == 0)
break;
int[] score = new int[n];
for (int i = 0; i < n; i++) {
score[i] = sc.nextInt();
ave = ave + score[i];
}
ave = ave / n;
for (int j = 0; j < n; j++) {
a = a + (score[j] - ave) * (score[j] - ave);
}
a = a / n;
b = Math.sqrt(a);
System.out.println(b);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
20,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
5,
13,
30,
4,
18,
18,
13,
13,
17,
30,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
3,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
20,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
0,
13,
18,
13,
13,
0,
13,
2,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
2,
18,
13,
13,
13,
2,
18,
13,
13,
13,
0,
13,
18,
13,
13,
0,
13,
4,
18,
13,
13,
4,
18,
13,
13,
0,
13,
17,
0,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
203,
14
],
[
203,
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
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
27,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
27,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
52,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
52,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
52,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
52,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
52,
81
],
[
81,
82
],
[
81,
83
],
[
84,
85
],
[
84,
86
],
[
52,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
94,
96
],
[
87,
97
],
[
97,
98
],
[
98,
99
],
[
87,
100
],
[
101,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
109,
110
],
[
109,
111
],
[
101,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
114,
116
],
[
52,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
121,
123
],
[
52,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
131,
133
],
[
124,
134
],
[
134,
135
],
[
135,
136
],
[
124,
137
],
[
138,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
142,
146
],
[
141,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
52,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
154,
156
],
[
52,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
159,
162
],
[
52,
163
],
[
163,
164
],
[
164,
165
],
[
163,
166
],
[
52,
167
],
[
167,
168
],
[
167,
169
],
[
52,
170
],
[
170,
171
],
[
170,
172
],
[
46,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
176,
177
],
[
46,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
178,
183
],
[
183,
184
],
[
183,
185
],
[
178,
186
],
[
186,
187
],
[
187,
188
],
[
178,
189
],
[
190,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
191,
196
],
[
196,
197
],
[
197,
198
],
[
196,
199
],
[
15,
200
],
[
200,
201
],
[
0,
202
],
[
202,
203
],
[
202,
204
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\n\n/**\n * Lesson10C n 人の学生を含むクラスでプログラミングの試験を行った。\n * それぞれの得点をs1, s2 ...\n * snとしたときの、標準偏差を求めるプログラム\n * 得点の平均値をmとすれば、\n * 分散α2は以下の式で得られる:\n * α2 = (?ni=1(si - m)2)/n\n * 分散の正の平方根が標準偏差αとなる。\n *\n * @author Internship\n *\n */\npublic class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t// 平均M 全部足して/個数で割る\n\t\tdouble dbAverage = 0.0;\n\n\t\t// 標準偏差\n\t\t// aa = (s1-m)2乗 + (s2-m)2乗 + ・・・\n\t\t//あとでNで割る\n\t\t// a = ・・・\n\t\tdouble dbStandarddeviatio = 0.0;\n\n\t\t// 答えの格納場所\n\t\tArrayList<Double> dbAryAnswer = new ArrayList<Double>();\n\n\t\t// 1行目を取得\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\twhile (true) {\n\n\t\t\t\tString strLine = insBR.readLine();\n\n\t\t\t\t// 数字を取得\n\t\t\t\tint intNum = Integer.parseInt(strLine);\n\n\t\t\t\tif (intNum == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// 2行目を取得\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t// 分解\n\t\t\t\tString[] strAryLine = strLine.split(\" \");\n\n\t\t\t\t// 配列に全部格納しておく\n\t\t\t\tint[] intLine = new int[strAryLine.length];\n\n\t\t\t\tfor (int i = 0; i < strAryLine.length; i++) {\n\t\t\t\t\tintLine[i] = Integer.parseInt(strAryLine[i]);\n\n\t\t\t\t\t// 平均M 全部足して/個数で割る\n\t\t\t\t\tdbAverage += intLine[i];\n\n\t\t\t\t}\n\n\t\t\t\t// 平均M 全部足して/個数で割る\n\t\t\t\tdbAverage = dbAverage / strAryLine.length;\n\n\t\t\t\t// 標準偏差\n\t\t\t\t// aa = (s1-m) + (s2-m) + ・・・\n\n\t\t\t\tfor (int i = 0; i < strAryLine.length; i++) {\n\n\t\t\t\t\tdbStandarddeviatio += (intLine[i] - dbAverage) * (intLine[i] - dbAverage);\n\n\t\t\t\t}\n\n\t\t\t\t// aaをnで割る\n\t\t\t\tdbStandarddeviatio /= strAryLine.length;\n\n\t\t\t\t// a =・・・・\n\t\t\t\tdbStandarddeviatio = Math.sqrt(dbStandarddeviatio);\n\n\t\t\t\tdbAryAnswer.add(dbStandarddeviatio);\n\n\t\t\t\t//初期化\n\t\t\t\tdbAverage = 0.0;\n\t\t\t\t\n\t\t\t\tdbStandarddeviatio =0.0;\n\n\t\t\t}\n\n\t\t\t// 答えが何個あるか取得\n\t\t\tint intSize = dbAryAnswer.size();\n\n\t\t\t// 出力\n\t\t\tfor (int i = 0; i < intSize; i++) {\n\t\t\t\tSystem.out.println(dbAryAnswer.get(i));\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"public class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t// 平均M 全部足して/個数で割る\n\t\tdouble dbAverage = 0.0;\n\n\t\t// 標準偏差\n\t\t// aa = (s1-m)2乗 + (s2-m)2乗 + ・・・\n\t\t//あとでNで割る\n\t\t// a = ・・・\n\t\tdouble dbStandarddeviatio = 0.0;\n\n\t\t// 答えの格納場所\n\t\tArrayList<Double> dbAryAnswer = new ArrayList<Double>();\n\n\t\t// 1行目を取得\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\twhile (true) {\n\n\t\t\t\tString strLine = insBR.readLine();\n\n\t\t\t\t// 数字を取得\n\t\t\t\tint intNum = Integer.parseInt(strLine);\n\n\t\t\t\tif (intNum == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// 2行目を取得\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t// 分解\n\t\t\t\tString[] strAryLine = strLine.split(\" \");\n\n\t\t\t\t// 配列に全部格納しておく\n\t\t\t\tint[] intLine = new int[strAryLine.length];\n\n\t\t\t\tfor (int i = 0; i < strAryLine.length; i++) {\n\t\t\t\t\tintLine[i] = Integer.parseInt(strAryLine[i]);\n\n\t\t\t\t\t// 平均M 全部足して/個数で割る\n\t\t\t\t\tdbAverage += intLine[i];\n\n\t\t\t\t}\n\n\t\t\t\t// 平均M 全部足して/個数で割る\n\t\t\t\tdbAverage = dbAverage / strAryLine.length;\n\n\t\t\t\t// 標準偏差\n\t\t\t\t// aa = (s1-m) + (s2-m) + ・・・\n\n\t\t\t\tfor (int i = 0; i < strAryLine.length; i++) {\n\n\t\t\t\t\tdbStandarddeviatio += (intLine[i] - dbAverage) * (intLine[i] - dbAverage);\n\n\t\t\t\t}\n\n\t\t\t\t// aaをnで割る\n\t\t\t\tdbStandarddeviatio /= strAryLine.length;\n\n\t\t\t\t// a =・・・・\n\t\t\t\tdbStandarddeviatio = Math.sqrt(dbStandarddeviatio);\n\n\t\t\t\tdbAryAnswer.add(dbStandarddeviatio);\n\n\t\t\t\t//初期化\n\t\t\t\tdbAverage = 0.0;\n\t\t\t\t\n\t\t\t\tdbStandarddeviatio =0.0;\n\n\t\t\t}\n\n\t\t\t// 答えが何個あるか取得\n\t\t\tint intSize = dbAryAnswer.size();\n\n\t\t\t// 出力\n\t\t\tfor (int i = 0; i < intSize; i++) {\n\t\t\t\tSystem.out.println(dbAryAnswer.get(i));\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}\n\t}\n}",
"Main",
"/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t// 平均M 全部足して/個数で割る\n\t\tdouble dbAverage = 0.0;\n\n\t\t// 標準偏差\n\t\t// aa = (s1-m)2乗 + (s2-m)2乗 + ・・・\n\t\t//あとでNで割る\n\t\t// a = ・・・\n\t\tdouble dbStandarddeviatio = 0.0;\n\n\t\t// 答えの格納場所\n\t\tArrayList<Double> dbAryAnswer = new ArrayList<Double>();\n\n\t\t// 1行目を取得\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\twhile (true) {\n\n\t\t\t\tString strLine = insBR.readLine();\n\n\t\t\t\t// 数字を取得\n\t\t\t\tint intNum = Integer.parseInt(strLine);\n\n\t\t\t\tif (intNum == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// 2行目を取得\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t// 分解\n\t\t\t\tString[] strAryLine = strLine.split(\" \");\n\n\t\t\t\t// 配列に全部格納しておく\n\t\t\t\tint[] intLine = new int[strAryLine.length];\n\n\t\t\t\tfor (int i = 0; i < strAryLine.length; i++) {\n\t\t\t\t\tintLine[i] = Integer.parseInt(strAryLine[i]);\n\n\t\t\t\t\t// 平均M 全部足して/個数で割る\n\t\t\t\t\tdbAverage += intLine[i];\n\n\t\t\t\t}\n\n\t\t\t\t// 平均M 全部足して/個数で割る\n\t\t\t\tdbAverage = dbAverage / strAryLine.length;\n\n\t\t\t\t// 標準偏差\n\t\t\t\t// aa = (s1-m) + (s2-m) + ・・・\n\n\t\t\t\tfor (int i = 0; i < strAryLine.length; i++) {\n\n\t\t\t\t\tdbStandarddeviatio += (intLine[i] - dbAverage) * (intLine[i] - dbAverage);\n\n\t\t\t\t}\n\n\t\t\t\t// aaをnで割る\n\t\t\t\tdbStandarddeviatio /= strAryLine.length;\n\n\t\t\t\t// a =・・・・\n\t\t\t\tdbStandarddeviatio = Math.sqrt(dbStandarddeviatio);\n\n\t\t\t\tdbAryAnswer.add(dbStandarddeviatio);\n\n\t\t\t\t//初期化\n\t\t\t\tdbAverage = 0.0;\n\t\t\t\t\n\t\t\t\tdbStandarddeviatio =0.0;\n\n\t\t\t}\n\n\t\t\t// 答えが何個あるか取得\n\t\t\tint intSize = dbAryAnswer.size();\n\n\t\t\t// 出力\n\t\t\tfor (int i = 0; i < intSize; i++) {\n\t\t\t\tSystem.out.println(dbAryAnswer.get(i));\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}\n\t}",
"main",
"{\n\n\t\t// 平均M 全部足して/個数で割る\n\t\tdouble dbAverage = 0.0;\n\n\t\t// 標準偏差\n\t\t// aa = (s1-m)2乗 + (s2-m)2乗 + ・・・\n\t\t//あとでNで割る\n\t\t// a = ・・・\n\t\tdouble dbStandarddeviatio = 0.0;\n\n\t\t// 答えの格納場所\n\t\tArrayList<Double> dbAryAnswer = new ArrayList<Double>();\n\n\t\t// 1行目を取得\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\twhile (true) {\n\n\t\t\t\tString strLine = insBR.readLine();\n\n\t\t\t\t// 数字を取得\n\t\t\t\tint intNum = Integer.parseInt(strLine);\n\n\t\t\t\tif (intNum == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// 2行目を取得\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t// 分解\n\t\t\t\tString[] strAryLine = strLine.split(\" \");\n\n\t\t\t\t// 配列に全部格納しておく\n\t\t\t\tint[] intLine = new int[strAryLine.length];\n\n\t\t\t\tfor (int i = 0; i < strAryLine.length; i++) {\n\t\t\t\t\tintLine[i] = Integer.parseInt(strAryLine[i]);\n\n\t\t\t\t\t// 平均M 全部足して/個数で割る\n\t\t\t\t\tdbAverage += intLine[i];\n\n\t\t\t\t}\n\n\t\t\t\t// 平均M 全部足して/個数で割る\n\t\t\t\tdbAverage = dbAverage / strAryLine.length;\n\n\t\t\t\t// 標準偏差\n\t\t\t\t// aa = (s1-m) + (s2-m) + ・・・\n\n\t\t\t\tfor (int i = 0; i < strAryLine.length; i++) {\n\n\t\t\t\t\tdbStandarddeviatio += (intLine[i] - dbAverage) * (intLine[i] - dbAverage);\n\n\t\t\t\t}\n\n\t\t\t\t// aaをnで割る\n\t\t\t\tdbStandarddeviatio /= strAryLine.length;\n\n\t\t\t\t// a =・・・・\n\t\t\t\tdbStandarddeviatio = Math.sqrt(dbStandarddeviatio);\n\n\t\t\t\tdbAryAnswer.add(dbStandarddeviatio);\n\n\t\t\t\t//初期化\n\t\t\t\tdbAverage = 0.0;\n\t\t\t\t\n\t\t\t\tdbStandarddeviatio =0.0;\n\n\t\t\t}\n\n\t\t\t// 答えが何個あるか取得\n\t\t\tint intSize = dbAryAnswer.size();\n\n\t\t\t// 出力\n\t\t\tfor (int i = 0; i < intSize; i++) {\n\t\t\t\tSystem.out.println(dbAryAnswer.get(i));\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}\n\t}",
"double dbAverage = 0.0;",
"dbAverage",
"0.0",
"double dbStandarddeviatio = 0.0;",
"dbStandarddeviatio",
"0.0",
"ArrayList<Double> dbAryAnswer = new ArrayList<Double>();",
"dbAryAnswer",
"new ArrayList<Double>()",
"try {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\twhile (true) {\n\n\t\t\t\tString strLine = insBR.readLine();\n\n\t\t\t\t// 数字を取得\n\t\t\t\tint intNum = Integer.parseInt(strLine);\n\n\t\t\t\tif (intNum == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// 2行目を取得\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t// 分解\n\t\t\t\tString[] strAryLine = strLine.split(\" \");\n\n\t\t\t\t// 配列に全部格納しておく\n\t\t\t\tint[] intLine = new int[strAryLine.length];\n\n\t\t\t\tfor (int i = 0; i < strAryLine.length; i++) {\n\t\t\t\t\tintLine[i] = Integer.parseInt(strAryLine[i]);\n\n\t\t\t\t\t// 平均M 全部足して/個数で割る\n\t\t\t\t\tdbAverage += intLine[i];\n\n\t\t\t\t}\n\n\t\t\t\t// 平均M 全部足して/個数で割る\n\t\t\t\tdbAverage = dbAverage / strAryLine.length;\n\n\t\t\t\t// 標準偏差\n\t\t\t\t// aa = (s1-m) + (s2-m) + ・・・\n\n\t\t\t\tfor (int i = 0; i < strAryLine.length; i++) {\n\n\t\t\t\t\tdbStandarddeviatio += (intLine[i] - dbAverage) * (intLine[i] - dbAverage);\n\n\t\t\t\t}\n\n\t\t\t\t// aaをnで割る\n\t\t\t\tdbStandarddeviatio /= strAryLine.length;\n\n\t\t\t\t// a =・・・・\n\t\t\t\tdbStandarddeviatio = Math.sqrt(dbStandarddeviatio);\n\n\t\t\t\tdbAryAnswer.add(dbStandarddeviatio);\n\n\t\t\t\t//初期化\n\t\t\t\tdbAverage = 0.0;\n\t\t\t\t\n\t\t\t\tdbStandarddeviatio =0.0;\n\n\t\t\t}\n\n\t\t\t// 答えが何個あるか取得\n\t\t\tint intSize = dbAryAnswer.size();\n\n\t\t\t// 出力\n\t\t\tfor (int i = 0; i < intSize; i++) {\n\t\t\t\tSystem.out.println(dbAryAnswer.get(i));\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}",
"catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}",
"IOException e",
"{\n\t\t\tSystem.out.println(e);\n\t\t}",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}",
"NumberFormatException e",
"{\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}",
"System.out.println(\"数字で入力して下さい\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"数字で入力して下さい\"",
"{\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\twhile (true) {\n\n\t\t\t\tString strLine = insBR.readLine();\n\n\t\t\t\t// 数字を取得\n\t\t\t\tint intNum = Integer.parseInt(strLine);\n\n\t\t\t\tif (intNum == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// 2行目を取得\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t// 分解\n\t\t\t\tString[] strAryLine = strLine.split(\" \");\n\n\t\t\t\t// 配列に全部格納しておく\n\t\t\t\tint[] intLine = new int[strAryLine.length];\n\n\t\t\t\tfor (int i = 0; i < strAryLine.length; i++) {\n\t\t\t\t\tintLine[i] = Integer.parseInt(strAryLine[i]);\n\n\t\t\t\t\t// 平均M 全部足して/個数で割る\n\t\t\t\t\tdbAverage += intLine[i];\n\n\t\t\t\t}\n\n\t\t\t\t// 平均M 全部足して/個数で割る\n\t\t\t\tdbAverage = dbAverage / strAryLine.length;\n\n\t\t\t\t// 標準偏差\n\t\t\t\t// aa = (s1-m) + (s2-m) + ・・・\n\n\t\t\t\tfor (int i = 0; i < strAryLine.length; i++) {\n\n\t\t\t\t\tdbStandarddeviatio += (intLine[i] - dbAverage) * (intLine[i] - dbAverage);\n\n\t\t\t\t}\n\n\t\t\t\t// aaをnで割る\n\t\t\t\tdbStandarddeviatio /= strAryLine.length;\n\n\t\t\t\t// a =・・・・\n\t\t\t\tdbStandarddeviatio = Math.sqrt(dbStandarddeviatio);\n\n\t\t\t\tdbAryAnswer.add(dbStandarddeviatio);\n\n\t\t\t\t//初期化\n\t\t\t\tdbAverage = 0.0;\n\t\t\t\t\n\t\t\t\tdbStandarddeviatio =0.0;\n\n\t\t\t}\n\n\t\t\t// 答えが何個あるか取得\n\t\t\tint intSize = dbAryAnswer.size();\n\n\t\t\t// 出力\n\t\t\tfor (int i = 0; i < intSize; i++) {\n\t\t\t\tSystem.out.println(dbAryAnswer.get(i));\n\t\t\t}\n\n\t\t}",
"BufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));",
"insBR",
"new BufferedReader(new InputStreamReader(System.in))",
"while (true) {\n\n\t\t\t\tString strLine = insBR.readLine();\n\n\t\t\t\t// 数字を取得\n\t\t\t\tint intNum = Integer.parseInt(strLine);\n\n\t\t\t\tif (intNum == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// 2行目を取得\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t// 分解\n\t\t\t\tString[] strAryLine = strLine.split(\" \");\n\n\t\t\t\t// 配列に全部格納しておく\n\t\t\t\tint[] intLine = new int[strAryLine.length];\n\n\t\t\t\tfor (int i = 0; i < strAryLine.length; i++) {\n\t\t\t\t\tintLine[i] = Integer.parseInt(strAryLine[i]);\n\n\t\t\t\t\t// 平均M 全部足して/個数で割る\n\t\t\t\t\tdbAverage += intLine[i];\n\n\t\t\t\t}\n\n\t\t\t\t// 平均M 全部足して/個数で割る\n\t\t\t\tdbAverage = dbAverage / strAryLine.length;\n\n\t\t\t\t// 標準偏差\n\t\t\t\t// aa = (s1-m) + (s2-m) + ・・・\n\n\t\t\t\tfor (int i = 0; i < strAryLine.length; i++) {\n\n\t\t\t\t\tdbStandarddeviatio += (intLine[i] - dbAverage) * (intLine[i] - dbAverage);\n\n\t\t\t\t}\n\n\t\t\t\t// aaをnで割る\n\t\t\t\tdbStandarddeviatio /= strAryLine.length;\n\n\t\t\t\t// a =・・・・\n\t\t\t\tdbStandarddeviatio = Math.sqrt(dbStandarddeviatio);\n\n\t\t\t\tdbAryAnswer.add(dbStandarddeviatio);\n\n\t\t\t\t//初期化\n\t\t\t\tdbAverage = 0.0;\n\t\t\t\t\n\t\t\t\tdbStandarddeviatio =0.0;\n\n\t\t\t}",
"true",
"{\n\n\t\t\t\tString strLine = insBR.readLine();\n\n\t\t\t\t// 数字を取得\n\t\t\t\tint intNum = Integer.parseInt(strLine);\n\n\t\t\t\tif (intNum == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// 2行目を取得\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t// 分解\n\t\t\t\tString[] strAryLine = strLine.split(\" \");\n\n\t\t\t\t// 配列に全部格納しておく\n\t\t\t\tint[] intLine = new int[strAryLine.length];\n\n\t\t\t\tfor (int i = 0; i < strAryLine.length; i++) {\n\t\t\t\t\tintLine[i] = Integer.parseInt(strAryLine[i]);\n\n\t\t\t\t\t// 平均M 全部足して/個数で割る\n\t\t\t\t\tdbAverage += intLine[i];\n\n\t\t\t\t}\n\n\t\t\t\t// 平均M 全部足して/個数で割る\n\t\t\t\tdbAverage = dbAverage / strAryLine.length;\n\n\t\t\t\t// 標準偏差\n\t\t\t\t// aa = (s1-m) + (s2-m) + ・・・\n\n\t\t\t\tfor (int i = 0; i < strAryLine.length; i++) {\n\n\t\t\t\t\tdbStandarddeviatio += (intLine[i] - dbAverage) * (intLine[i] - dbAverage);\n\n\t\t\t\t}\n\n\t\t\t\t// aaをnで割る\n\t\t\t\tdbStandarddeviatio /= strAryLine.length;\n\n\t\t\t\t// a =・・・・\n\t\t\t\tdbStandarddeviatio = Math.sqrt(dbStandarddeviatio);\n\n\t\t\t\tdbAryAnswer.add(dbStandarddeviatio);\n\n\t\t\t\t//初期化\n\t\t\t\tdbAverage = 0.0;\n\t\t\t\t\n\t\t\t\tdbStandarddeviatio =0.0;\n\n\t\t\t}",
"String strLine = insBR.readLine();",
"strLine",
"insBR.readLine()",
"insBR.readLine",
"insBR",
"int intNum = Integer.parseInt(strLine);",
"intNum",
"Integer.parseInt(strLine)",
"Integer.parseInt",
"Integer",
"strLine",
"if (intNum == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"intNum == 0",
"intNum",
"0",
"{\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"break;",
"strLine = insBR.readLine()",
"strLine",
"insBR.readLine()",
"insBR.readLine",
"insBR",
"String[] strAryLine = strLine.split(\" \");",
"strAryLine",
"strLine.split(\" \")",
"strLine.split",
"strLine",
"\" \"",
"int[] intLine = new int[strAryLine.length];",
"intLine",
"new int[strAryLine.length]",
"strAryLine.length",
"strAryLine",
"strAryLine.length",
"for (int i = 0; i < strAryLine.length; i++) {\n\t\t\t\t\tintLine[i] = Integer.parseInt(strAryLine[i]);\n\n\t\t\t\t\t// 平均M 全部足して/個数で割る\n\t\t\t\t\tdbAverage += intLine[i];\n\n\t\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < strAryLine.length",
"i",
"strAryLine.length",
"strAryLine",
"strAryLine.length",
"i++",
"i++",
"i",
"{\n\t\t\t\t\tintLine[i] = Integer.parseInt(strAryLine[i]);\n\n\t\t\t\t\t// 平均M 全部足して/個数で割る\n\t\t\t\t\tdbAverage += intLine[i];\n\n\t\t\t\t}",
"{\n\t\t\t\t\tintLine[i] = Integer.parseInt(strAryLine[i]);\n\n\t\t\t\t\t// 平均M 全部足して/個数で割る\n\t\t\t\t\tdbAverage += intLine[i];\n\n\t\t\t\t}",
"intLine[i] = Integer.parseInt(strAryLine[i])",
"intLine[i]",
"intLine",
"i",
"Integer.parseInt(strAryLine[i])",
"Integer.parseInt",
"Integer",
"strAryLine[i]",
"strAryLine",
"i",
"dbAverage += intLine[i]",
"dbAverage",
"intLine[i]",
"intLine",
"i",
"dbAverage = dbAverage / strAryLine.length",
"dbAverage",
"dbAverage / strAryLine.length",
"dbAverage",
"strAryLine.length",
"strAryLine",
"strAryLine.length",
"for (int i = 0; i < strAryLine.length; i++) {\n\n\t\t\t\t\tdbStandarddeviatio += (intLine[i] - dbAverage) * (intLine[i] - dbAverage);\n\n\t\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < strAryLine.length",
"i",
"strAryLine.length",
"strAryLine",
"strAryLine.length",
"i++",
"i++",
"i",
"{\n\n\t\t\t\t\tdbStandarddeviatio += (intLine[i] - dbAverage) * (intLine[i] - dbAverage);\n\n\t\t\t\t}",
"{\n\n\t\t\t\t\tdbStandarddeviatio += (intLine[i] - dbAverage) * (intLine[i] - dbAverage);\n\n\t\t\t\t}",
"dbStandarddeviatio += (intLine[i] - dbAverage) * (intLine[i] - dbAverage)",
"dbStandarddeviatio",
"(intLine[i] - dbAverage) * (intLine[i] - dbAverage)",
"(intLine[i] - dbAverage)",
"intLine[i]",
"intLine",
"i",
"dbAverage",
"(intLine[i] - dbAverage)",
"intLine[i]",
"intLine",
"i",
"dbAverage",
"dbStandarddeviatio /= strAryLine.length",
"dbStandarddeviatio",
"strAryLine.length",
"strAryLine",
"strAryLine.length",
"dbStandarddeviatio = Math.sqrt(dbStandarddeviatio)",
"dbStandarddeviatio",
"Math.sqrt(dbStandarddeviatio)",
"Math.sqrt",
"Math",
"dbStandarddeviatio",
"dbAryAnswer.add(dbStandarddeviatio)",
"dbAryAnswer.add",
"dbAryAnswer",
"dbStandarddeviatio",
"dbAverage = 0.0",
"dbAverage",
"0.0",
"dbStandarddeviatio =0.0",
"dbStandarddeviatio",
"0.0",
"int intSize = dbAryAnswer.size();",
"intSize",
"dbAryAnswer.size()",
"dbAryAnswer.size",
"dbAryAnswer",
"for (int i = 0; i < intSize; i++) {\n\t\t\t\tSystem.out.println(dbAryAnswer.get(i));\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < intSize",
"i",
"intSize",
"i++",
"i++",
"i",
"{\n\t\t\t\tSystem.out.println(dbAryAnswer.get(i));\n\t\t\t}",
"{\n\t\t\t\tSystem.out.println(dbAryAnswer.get(i));\n\t\t\t}",
"System.out.println(dbAryAnswer.get(i))",
"System.out.println",
"System.out",
"System",
"System.out",
"dbAryAnswer.get(i)",
"dbAryAnswer.get",
"dbAryAnswer",
"i",
"String[] args",
"args",
"public class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t// 平均M 全部足して/個数で割る\n\t\tdouble dbAverage = 0.0;\n\n\t\t// 標準偏差\n\t\t// aa = (s1-m)2乗 + (s2-m)2乗 + ・・・\n\t\t//あとでNで割る\n\t\t// a = ・・・\n\t\tdouble dbStandarddeviatio = 0.0;\n\n\t\t// 答えの格納場所\n\t\tArrayList<Double> dbAryAnswer = new ArrayList<Double>();\n\n\t\t// 1行目を取得\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\twhile (true) {\n\n\t\t\t\tString strLine = insBR.readLine();\n\n\t\t\t\t// 数字を取得\n\t\t\t\tint intNum = Integer.parseInt(strLine);\n\n\t\t\t\tif (intNum == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// 2行目を取得\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t// 分解\n\t\t\t\tString[] strAryLine = strLine.split(\" \");\n\n\t\t\t\t// 配列に全部格納しておく\n\t\t\t\tint[] intLine = new int[strAryLine.length];\n\n\t\t\t\tfor (int i = 0; i < strAryLine.length; i++) {\n\t\t\t\t\tintLine[i] = Integer.parseInt(strAryLine[i]);\n\n\t\t\t\t\t// 平均M 全部足して/個数で割る\n\t\t\t\t\tdbAverage += intLine[i];\n\n\t\t\t\t}\n\n\t\t\t\t// 平均M 全部足して/個数で割る\n\t\t\t\tdbAverage = dbAverage / strAryLine.length;\n\n\t\t\t\t// 標準偏差\n\t\t\t\t// aa = (s1-m) + (s2-m) + ・・・\n\n\t\t\t\tfor (int i = 0; i < strAryLine.length; i++) {\n\n\t\t\t\t\tdbStandarddeviatio += (intLine[i] - dbAverage) * (intLine[i] - dbAverage);\n\n\t\t\t\t}\n\n\t\t\t\t// aaをnで割る\n\t\t\t\tdbStandarddeviatio /= strAryLine.length;\n\n\t\t\t\t// a =・・・・\n\t\t\t\tdbStandarddeviatio = Math.sqrt(dbStandarddeviatio);\n\n\t\t\t\tdbAryAnswer.add(dbStandarddeviatio);\n\n\t\t\t\t//初期化\n\t\t\t\tdbAverage = 0.0;\n\t\t\t\t\n\t\t\t\tdbStandarddeviatio =0.0;\n\n\t\t\t}\n\n\t\t\t// 答えが何個あるか取得\n\t\t\tint intSize = dbAryAnswer.size();\n\n\t\t\t// 出力\n\t\t\tfor (int i = 0; i < intSize; i++) {\n\t\t\t\tSystem.out.println(dbAryAnswer.get(i));\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}\n\t}\n}",
"public class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t// 平均M 全部足して/個数で割る\n\t\tdouble dbAverage = 0.0;\n\n\t\t// 標準偏差\n\t\t// aa = (s1-m)2乗 + (s2-m)2乗 + ・・・\n\t\t//あとでNで割る\n\t\t// a = ・・・\n\t\tdouble dbStandarddeviatio = 0.0;\n\n\t\t// 答えの格納場所\n\t\tArrayList<Double> dbAryAnswer = new ArrayList<Double>();\n\n\t\t// 1行目を取得\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\twhile (true) {\n\n\t\t\t\tString strLine = insBR.readLine();\n\n\t\t\t\t// 数字を取得\n\t\t\t\tint intNum = Integer.parseInt(strLine);\n\n\t\t\t\tif (intNum == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// 2行目を取得\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t// 分解\n\t\t\t\tString[] strAryLine = strLine.split(\" \");\n\n\t\t\t\t// 配列に全部格納しておく\n\t\t\t\tint[] intLine = new int[strAryLine.length];\n\n\t\t\t\tfor (int i = 0; i < strAryLine.length; i++) {\n\t\t\t\t\tintLine[i] = Integer.parseInt(strAryLine[i]);\n\n\t\t\t\t\t// 平均M 全部足して/個数で割る\n\t\t\t\t\tdbAverage += intLine[i];\n\n\t\t\t\t}\n\n\t\t\t\t// 平均M 全部足して/個数で割る\n\t\t\t\tdbAverage = dbAverage / strAryLine.length;\n\n\t\t\t\t// 標準偏差\n\t\t\t\t// aa = (s1-m) + (s2-m) + ・・・\n\n\t\t\t\tfor (int i = 0; i < strAryLine.length; i++) {\n\n\t\t\t\t\tdbStandarddeviatio += (intLine[i] - dbAverage) * (intLine[i] - dbAverage);\n\n\t\t\t\t}\n\n\t\t\t\t// aaをnで割る\n\t\t\t\tdbStandarddeviatio /= strAryLine.length;\n\n\t\t\t\t// a =・・・・\n\t\t\t\tdbStandarddeviatio = Math.sqrt(dbStandarddeviatio);\n\n\t\t\t\tdbAryAnswer.add(dbStandarddeviatio);\n\n\t\t\t\t//初期化\n\t\t\t\tdbAverage = 0.0;\n\t\t\t\t\n\t\t\t\tdbStandarddeviatio =0.0;\n\n\t\t\t}\n\n\t\t\t// 答えが何個あるか取得\n\t\t\tint intSize = dbAryAnswer.size();\n\n\t\t\t// 出力\n\t\t\tfor (int i = 0; i < intSize; i++) {\n\t\t\t\tSystem.out.println(dbAryAnswer.get(i));\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
/**
* Lesson10C n 人の学生を含むクラスでプログラミングの試験を行った。
* それぞれの得点をs1, s2 ...
* snとしたときの、標準偏差を求めるプログラム
* 得点の平均値をmとすれば、
* 分散α2は以下の式で得られる:
* α2 = (?ni=1(si - m)2)/n
* 分散の正の平方根が標準偏差αとなる。
*
* @author Internship
*
*/
public class Main{
/**
* プログラムのエントリポイント
*
* @param args
*/
public static void main(String[] args) {
// 平均M 全部足して/個数で割る
double dbAverage = 0.0;
// 標準偏差
// aa = (s1-m)2乗 + (s2-m)2乗 + ・・・
//あとでNで割る
// a = ・・・
double dbStandarddeviatio = 0.0;
// 答えの格納場所
ArrayList<Double> dbAryAnswer = new ArrayList<Double>();
// 1行目を取得
try {
BufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));
while (true) {
String strLine = insBR.readLine();
// 数字を取得
int intNum = Integer.parseInt(strLine);
if (intNum == 0) {
break;
}
// 2行目を取得
strLine = insBR.readLine();
// 分解
String[] strAryLine = strLine.split(" ");
// 配列に全部格納しておく
int[] intLine = new int[strAryLine.length];
for (int i = 0; i < strAryLine.length; i++) {
intLine[i] = Integer.parseInt(strAryLine[i]);
// 平均M 全部足して/個数で割る
dbAverage += intLine[i];
}
// 平均M 全部足して/個数で割る
dbAverage = dbAverage / strAryLine.length;
// 標準偏差
// aa = (s1-m) + (s2-m) + ・・・
for (int i = 0; i < strAryLine.length; i++) {
dbStandarddeviatio += (intLine[i] - dbAverage) * (intLine[i] - dbAverage);
}
// aaをnで割る
dbStandarddeviatio /= strAryLine.length;
// a =・・・・
dbStandarddeviatio = Math.sqrt(dbStandarddeviatio);
dbAryAnswer.add(dbStandarddeviatio);
//初期化
dbAverage = 0.0;
dbStandarddeviatio =0.0;
}
// 答えが何個あるか取得
int intSize = dbAryAnswer.size();
// 出力
for (int i = 0; i < intSize; i++) {
System.out.println(dbAryAnswer.get(i));
}
} catch (IOException e) {
System.out.println(e);
} catch (NumberFormatException e) {
System.out.println("数字で入力して下さい");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
20,
42,
17,
30,
41,
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,
41,
13,
4,
18,
13,
4,
18,
13,
13,
0,
13,
13,
41,
13,
2,
13,
4,
18,
13,
41,
13,
17,
28,
13,
13,
30,
30,
0,
13,
4,
18,
13,
2,
13,
13,
17,
4,
18,
18,
13,
13,
4,
18,
13,
2,
13,
4,
18,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
105,
5
],
[
105,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[
6,
15
],
[
15,
16
],
[
105,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
25,
36
],
[
36,
37
],
[
36,
38
],
[
25,
39
],
[
39,
40
],
[
39,
41
],
[
25,
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
],
[
54,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
54,
64
],
[
64,
65
],
[
64,
66
],
[
25,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
25,
74
],
[
74,
75
],
[
74,
76
],
[
25,
77
],
[
77,
78
],
[
77,
79
],
[
77,
80
],
[
81,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
87,
88
],
[
87,
89
],
[
84,
90
],
[
25,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
0,
104
],
[
104,
105
],
[
104,
106
]
] | [
"import java.util.*;\n\npublic class Main {\n \n public static void main(String[] args) {\n Main main = new Main();\n main.solv();\n }\n \n private void solv() {\n Scanner input = new Scanner(System.in);\n while (true) {\n int n = input.nextInt();\n if (n == 0) break;\n List<Integer> list = new ArrayList<Integer>();\n int sum = 0;\n for (int i = 0; i < n; i++) {\n int s = input.nextInt();\n list.add(s);\n sum += s;\n }\n double avg = (double)sum / list.size();\n double a = 0;\n for (int s : list) {\n a += Math.pow(s - avg, 2);\n }\n System.out.println(Math.sqrt(a / list.size()));\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n \n public static void main(String[] args) {\n Main main = new Main();\n main.solv();\n }\n \n private void solv() {\n Scanner input = new Scanner(System.in);\n while (true) {\n int n = input.nextInt();\n if (n == 0) break;\n List<Integer> list = new ArrayList<Integer>();\n int sum = 0;\n for (int i = 0; i < n; i++) {\n int s = input.nextInt();\n list.add(s);\n sum += s;\n }\n double avg = (double)sum / list.size();\n double a = 0;\n for (int s : list) {\n a += Math.pow(s - avg, 2);\n }\n System.out.println(Math.sqrt(a / list.size()));\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Main main = new Main();\n main.solv();\n }",
"main",
"{\n Main main = new Main();\n main.solv();\n }",
"Main main = new Main();",
"main",
"new Main()",
"main.solv()",
"main.solv",
"main",
"String[] args",
"args",
"private void solv() {\n Scanner input = new Scanner(System.in);\n while (true) {\n int n = input.nextInt();\n if (n == 0) break;\n List<Integer> list = new ArrayList<Integer>();\n int sum = 0;\n for (int i = 0; i < n; i++) {\n int s = input.nextInt();\n list.add(s);\n sum += s;\n }\n double avg = (double)sum / list.size();\n double a = 0;\n for (int s : list) {\n a += Math.pow(s - avg, 2);\n }\n System.out.println(Math.sqrt(a / list.size()));\n }\n }",
"solv",
"{\n Scanner input = new Scanner(System.in);\n while (true) {\n int n = input.nextInt();\n if (n == 0) break;\n List<Integer> list = new ArrayList<Integer>();\n int sum = 0;\n for (int i = 0; i < n; i++) {\n int s = input.nextInt();\n list.add(s);\n sum += s;\n }\n double avg = (double)sum / list.size();\n double a = 0;\n for (int s : list) {\n a += Math.pow(s - avg, 2);\n }\n System.out.println(Math.sqrt(a / list.size()));\n }\n }",
"Scanner input = new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"while (true) {\n int n = input.nextInt();\n if (n == 0) break;\n List<Integer> list = new ArrayList<Integer>();\n int sum = 0;\n for (int i = 0; i < n; i++) {\n int s = input.nextInt();\n list.add(s);\n sum += s;\n }\n double avg = (double)sum / list.size();\n double a = 0;\n for (int s : list) {\n a += Math.pow(s - avg, 2);\n }\n System.out.println(Math.sqrt(a / list.size()));\n }",
"true",
"{\n int n = input.nextInt();\n if (n == 0) break;\n List<Integer> list = new ArrayList<Integer>();\n int sum = 0;\n for (int i = 0; i < n; i++) {\n int s = input.nextInt();\n list.add(s);\n sum += s;\n }\n double avg = (double)sum / list.size();\n double a = 0;\n for (int s : list) {\n a += Math.pow(s - avg, 2);\n }\n System.out.println(Math.sqrt(a / list.size()));\n }",
"int n = input.nextInt();",
"n",
"input.nextInt()",
"input.nextInt",
"input",
"if (n == 0) break;",
"n == 0",
"n",
"0",
"break;",
"List<Integer> list = new ArrayList<Integer>();",
"list",
"new ArrayList<Integer>()",
"int sum = 0;",
"sum",
"0",
"for (int i = 0; i < n; i++) {\n int s = input.nextInt();\n list.add(s);\n sum += s;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int s = input.nextInt();\n list.add(s);\n sum += s;\n }",
"{\n int s = input.nextInt();\n list.add(s);\n sum += s;\n }",
"int s = input.nextInt();",
"s",
"input.nextInt()",
"input.nextInt",
"input",
"list.add(s)",
"list.add",
"list",
"s",
"sum += s",
"sum",
"s",
"double avg = (double)sum / list.size();",
"avg",
"(double)sum / list.size()",
"(double)sum",
"list.size()",
"list.size",
"list",
"double a = 0;",
"a",
"0",
"for (int s : list) {\n a += Math.pow(s - avg, 2);\n }",
"int s",
"list",
"{\n a += Math.pow(s - avg, 2);\n }",
"{\n a += Math.pow(s - avg, 2);\n }",
"a += Math.pow(s - avg, 2)",
"a",
"Math.pow(s - avg, 2)",
"Math.pow",
"Math",
"s - avg",
"s",
"avg",
"2",
"System.out.println(Math.sqrt(a / list.size()))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.sqrt(a / list.size())",
"Math.sqrt",
"Math",
"a / list.size()",
"a",
"list.size()",
"list.size",
"list",
"public class Main {\n \n public static void main(String[] args) {\n Main main = new Main();\n main.solv();\n }\n \n private void solv() {\n Scanner input = new Scanner(System.in);\n while (true) {\n int n = input.nextInt();\n if (n == 0) break;\n List<Integer> list = new ArrayList<Integer>();\n int sum = 0;\n for (int i = 0; i < n; i++) {\n int s = input.nextInt();\n list.add(s);\n sum += s;\n }\n double avg = (double)sum / list.size();\n double a = 0;\n for (int s : list) {\n a += Math.pow(s - avg, 2);\n }\n System.out.println(Math.sqrt(a / list.size()));\n }\n }\n}",
"public class Main {\n \n public static void main(String[] args) {\n Main main = new Main();\n main.solv();\n }\n \n private void solv() {\n Scanner input = new Scanner(System.in);\n while (true) {\n int n = input.nextInt();\n if (n == 0) break;\n List<Integer> list = new ArrayList<Integer>();\n int sum = 0;\n for (int i = 0; i < n; i++) {\n int s = input.nextInt();\n list.add(s);\n sum += s;\n }\n double avg = (double)sum / list.size();\n double a = 0;\n for (int s : list) {\n a += Math.pow(s - avg, 2);\n }\n System.out.println(Math.sqrt(a / list.size()));\n }\n }\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args) {
Main main = new Main();
main.solv();
}
private void solv() {
Scanner input = new Scanner(System.in);
while (true) {
int n = input.nextInt();
if (n == 0) break;
List<Integer> list = new ArrayList<Integer>();
int sum = 0;
for (int i = 0; i < n; i++) {
int s = input.nextInt();
list.add(s);
sum += s;
}
double avg = (double)sum / list.size();
double a = 0;
for (int s : list) {
a += Math.pow(s - avg, 2);
}
System.out.println(Math.sqrt(a / list.size()));
}
}
} |
[
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,
4,
18,
4,
18,
13,
17,
41,
13,
20,
13,
41,
13,
17,
41,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
0,
13,
18,
13,
13,
0,
13,
2,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
2,
18,
13,
13,
13,
2,
18,
13,
13,
13,
0,
13,
4,
18,
13,
2,
13,
13,
4,
18,
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
],
[
133,
11
],
[
133,
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
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
36,
41
],
[
20,
42
],
[
42,
43
],
[
42,
44
],
[
20,
46
],
[
46,
47
],
[
46,
48
],
[
20,
49
],
[
49,
50
],
[
20,
51
],
[
51,
52
],
[
20,
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
],
[
20,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
20,
86
],
[
86,
87
],
[
86,
88
],
[
20,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
89,
97
],
[
97,
98
],
[
98,
99
],
[
89,
100
],
[
101,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
104,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
20,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
120,
121
],
[
120,
122
],
[
20,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
123,
128
],
[
123,
129
],
[
12,
130
],
[
130,
131
],
[
0,
132
],
[
132,
133
],
[
132,
134
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\npublic class Main {\n\tpublic static void main(String[] args)throws IOException {\n\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\tString[] dat=br.readLine().split(\" \");\n\t\t\tint[] p= new int[n];\n\t\t\tint sum=0;\n\t\t\tdouble h,hsa;\n\t\t\tfor (int i=0;i<n;i++){\n\t\t\t\tp[i] = Integer.parseInt(dat[i]);\n\t\t\t\tsum +=p[i];\n\t\t\t}\n\t\t\t\n\t\t\th=(double)sum/n;\n\t\t\tdouble bun=0;\n\t\t\tfor (int i=0;i<n;i++){\n\t\t\t\tbun +=(p[i]-h)*(p[i]-h);\n\t\t\t}\n\t\t\thsa=(double)Math.sqrt(bun/n);\t\n\t\t\tSystem.out.printf(\"%.8f\\n\",hsa);\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\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\tString[] dat=br.readLine().split(\" \");\n\t\t\tint[] p= new int[n];\n\t\t\tint sum=0;\n\t\t\tdouble h,hsa;\n\t\t\tfor (int i=0;i<n;i++){\n\t\t\t\tp[i] = Integer.parseInt(dat[i]);\n\t\t\t\tsum +=p[i];\n\t\t\t}\n\t\t\t\n\t\t\th=(double)sum/n;\n\t\t\tdouble bun=0;\n\t\t\tfor (int i=0;i<n;i++){\n\t\t\t\tbun +=(p[i]-h)*(p[i]-h);\n\t\t\t}\n\t\t\thsa=(double)Math.sqrt(bun/n);\t\n\t\t\tSystem.out.printf(\"%.8f\\n\",hsa);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args)throws IOException {\n\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tint n=Integer.parseInt(br.readLine());\n\t\t\tif(n==0)break;\n\t\t\tString[] dat=br.readLine().split(\" \");\n\t\t\tint[] p= new int[n];\n\t\t\tint sum=0;\n\t\t\tdouble h,hsa;\n\t\t\tfor (int i=0;i<n;i++){\n\t\t\t\tp[i] = Integer.parseInt(dat[i]);\n\t\t\t\tsum +=p[i];\n\t\t\t}\n\t\t\t\n\t\t\th=(double)sum/n;\n\t\t\tdouble bun=0;\n\t\t\tfor (int i=0;i<n;i++){\n\t\t\t\tbun +=(p[i]-h)*(p[i]-h);\n\t\t\t}\n\t\t\thsa=(double)Math.sqrt(bun/n);\t\n\t\t\tSystem.out.printf(\"%.8f\\n\",hsa);\n\t\t}\n\t}",
"main",
"{\n\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\tString[] dat=br.readLine().split(\" \");\n\t\t\tint[] p= new int[n];\n\t\t\tint sum=0;\n\t\t\tdouble h,hsa;\n\t\t\tfor (int i=0;i<n;i++){\n\t\t\t\tp[i] = Integer.parseInt(dat[i]);\n\t\t\t\tsum +=p[i];\n\t\t\t}\n\t\t\t\n\t\t\th=(double)sum/n;\n\t\t\tdouble bun=0;\n\t\t\tfor (int i=0;i<n;i++){\n\t\t\t\tbun +=(p[i]-h)*(p[i]-h);\n\t\t\t}\n\t\t\thsa=(double)Math.sqrt(bun/n);\t\n\t\t\tSystem.out.printf(\"%.8f\\n\",hsa);\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\tString[] dat=br.readLine().split(\" \");\n\t\t\tint[] p= new int[n];\n\t\t\tint sum=0;\n\t\t\tdouble h,hsa;\n\t\t\tfor (int i=0;i<n;i++){\n\t\t\t\tp[i] = Integer.parseInt(dat[i]);\n\t\t\t\tsum +=p[i];\n\t\t\t}\n\t\t\t\n\t\t\th=(double)sum/n;\n\t\t\tdouble bun=0;\n\t\t\tfor (int i=0;i<n;i++){\n\t\t\t\tbun +=(p[i]-h)*(p[i]-h);\n\t\t\t}\n\t\t\thsa=(double)Math.sqrt(bun/n);\t\n\t\t\tSystem.out.printf(\"%.8f\\n\",hsa);\n\t\t}",
"true",
"{\n\t\t\tint n=Integer.parseInt(br.readLine());\n\t\t\tif(n==0)break;\n\t\t\tString[] dat=br.readLine().split(\" \");\n\t\t\tint[] p= new int[n];\n\t\t\tint sum=0;\n\t\t\tdouble h,hsa;\n\t\t\tfor (int i=0;i<n;i++){\n\t\t\t\tp[i] = Integer.parseInt(dat[i]);\n\t\t\t\tsum +=p[i];\n\t\t\t}\n\t\t\t\n\t\t\th=(double)sum/n;\n\t\t\tdouble bun=0;\n\t\t\tfor (int i=0;i<n;i++){\n\t\t\t\tbun +=(p[i]-h)*(p[i]-h);\n\t\t\t}\n\t\t\thsa=(double)Math.sqrt(bun/n);\t\n\t\t\tSystem.out.printf(\"%.8f\\n\",hsa);\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;",
"String[] dat=br.readLine().split(\" \");",
"dat",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int[] p= new int[n];",
"p",
"new int[n]",
"n",
"int sum=0;",
"sum",
"0",
"double h",
"h",
"hsa;",
"hsa",
"for (int i=0;i<n;i++){\n\t\t\t\tp[i] = Integer.parseInt(dat[i]);\n\t\t\t\tsum +=p[i];\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tp[i] = Integer.parseInt(dat[i]);\n\t\t\t\tsum +=p[i];\n\t\t\t}",
"{\n\t\t\t\tp[i] = Integer.parseInt(dat[i]);\n\t\t\t\tsum +=p[i];\n\t\t\t}",
"p[i] = Integer.parseInt(dat[i])",
"p[i]",
"p",
"i",
"Integer.parseInt(dat[i])",
"Integer.parseInt",
"Integer",
"dat[i]",
"dat",
"i",
"sum +=p[i]",
"sum",
"p[i]",
"p",
"i",
"h=(double)sum/n",
"h",
"(double)sum/n",
"(double)sum",
"n",
"double bun=0;",
"bun",
"0",
"for (int i=0;i<n;i++){\n\t\t\t\tbun +=(p[i]-h)*(p[i]-h);\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tbun +=(p[i]-h)*(p[i]-h);\n\t\t\t}",
"{\n\t\t\t\tbun +=(p[i]-h)*(p[i]-h);\n\t\t\t}",
"bun +=(p[i]-h)*(p[i]-h)",
"bun",
"(p[i]-h)*(p[i]-h)",
"(p[i]-h)",
"p[i]",
"p",
"i",
"h",
"(p[i]-h)",
"p[i]",
"p",
"i",
"h",
"hsa=(double)Math.sqrt(bun/n)",
"hsa",
"(double)Math.sqrt(bun/n)",
"Math.sqrt",
"Math",
"bun/n",
"bun",
"n",
"System.out.printf(\"%.8f\\n\",hsa)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%.8f\\n\"",
"hsa",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args)throws IOException {\n\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\tString[] dat=br.readLine().split(\" \");\n\t\t\tint[] p= new int[n];\n\t\t\tint sum=0;\n\t\t\tdouble h,hsa;\n\t\t\tfor (int i=0;i<n;i++){\n\t\t\t\tp[i] = Integer.parseInt(dat[i]);\n\t\t\t\tsum +=p[i];\n\t\t\t}\n\t\t\t\n\t\t\th=(double)sum/n;\n\t\t\tdouble bun=0;\n\t\t\tfor (int i=0;i<n;i++){\n\t\t\t\tbun +=(p[i]-h)*(p[i]-h);\n\t\t\t}\n\t\t\thsa=(double)Math.sqrt(bun/n);\t\n\t\t\tSystem.out.printf(\"%.8f\\n\",hsa);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args)throws IOException {\n\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\tString[] dat=br.readLine().split(\" \");\n\t\t\tint[] p= new int[n];\n\t\t\tint sum=0;\n\t\t\tdouble h,hsa;\n\t\t\tfor (int i=0;i<n;i++){\n\t\t\t\tp[i] = Integer.parseInt(dat[i]);\n\t\t\t\tsum +=p[i];\n\t\t\t}\n\t\t\t\n\t\t\th=(double)sum/n;\n\t\t\tdouble bun=0;\n\t\t\tfor (int i=0;i<n;i++){\n\t\t\t\tbun +=(p[i]-h)*(p[i]-h);\n\t\t\t}\n\t\t\thsa=(double)Math.sqrt(bun/n);\t\n\t\t\tSystem.out.printf(\"%.8f\\n\",hsa);\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 n=Integer.parseInt(br.readLine());
if(n==0)break;
String[] dat=br.readLine().split(" ");
int[] p= new int[n];
int sum=0;
double h,hsa;
for (int i=0;i<n;i++){
p[i] = Integer.parseInt(dat[i]);
sum +=p[i];
}
h=(double)sum/n;
double bun=0;
for (int i=0;i<n;i++){
bun +=(p[i]-h)*(p[i]-h);
}
hsa=(double)Math.sqrt(bun/n);
System.out.printf("%.8f\n",hsa);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
0,
13,
17,
0,
13,
20,
13,
0,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
18,
13,
13,
0,
13,
13,
0,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
2,
18,
13,
13,
13,
17,
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
],
[
111,
5
],
[
111,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
23,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
34,
36
],
[
30,
38
],
[
38,
39
],
[
38,
40
],
[
30,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
53,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
30,
66
],
[
66,
67
],
[
66,
68
],
[
30,
69
],
[
69,
70
],
[
69,
71
],
[
30,
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
],
[
30,
96
],
[
96,
97
],
[
96,
98
],
[
30,
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.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc=new Scanner(System.in);\n int n;\n double[] s;\n double m;\n double a;\n int i;\n while((n=sc.nextInt())!=0){\n s=null;\n s=new double[n];\n m=0;\n for(i=0;i<n;i++){\n s[i]=sc.nextDouble();\n m+=s[i];\n }\n m/=n;\n a=0;\n for(i=0;i<n;i++){\n a+=Math.pow(s[i]-m,2);\n }\n a/=n;\n System.out.println(Math.sqrt(a));\n }\n }\n}\n",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc=new Scanner(System.in);\n int n;\n double[] s;\n double m;\n double a;\n int i;\n while((n=sc.nextInt())!=0){\n s=null;\n s=new double[n];\n m=0;\n for(i=0;i<n;i++){\n s[i]=sc.nextDouble();\n m+=s[i];\n }\n m/=n;\n a=0;\n for(i=0;i<n;i++){\n a+=Math.pow(s[i]-m,2);\n }\n a/=n;\n System.out.println(Math.sqrt(a));\n }\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner sc=new Scanner(System.in);\n int n;\n double[] s;\n double m;\n double a;\n int i;\n while((n=sc.nextInt())!=0){\n s=null;\n s=new double[n];\n m=0;\n for(i=0;i<n;i++){\n s[i]=sc.nextDouble();\n m+=s[i];\n }\n m/=n;\n a=0;\n for(i=0;i<n;i++){\n a+=Math.pow(s[i]-m,2);\n }\n a/=n;\n System.out.println(Math.sqrt(a));\n }\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n int n;\n double[] s;\n double m;\n double a;\n int i;\n while((n=sc.nextInt())!=0){\n s=null;\n s=new double[n];\n m=0;\n for(i=0;i<n;i++){\n s[i]=sc.nextDouble();\n m+=s[i];\n }\n m/=n;\n a=0;\n for(i=0;i<n;i++){\n a+=Math.pow(s[i]-m,2);\n }\n a/=n;\n System.out.println(Math.sqrt(a));\n }\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n;",
"n",
"double[] s;",
"s",
"double m;",
"m",
"double a;",
"a",
"int i;",
"i",
"while((n=sc.nextInt())!=0){\n s=null;\n s=new double[n];\n m=0;\n for(i=0;i<n;i++){\n s[i]=sc.nextDouble();\n m+=s[i];\n }\n m/=n;\n a=0;\n for(i=0;i<n;i++){\n a+=Math.pow(s[i]-m,2);\n }\n a/=n;\n System.out.println(Math.sqrt(a));\n }",
"(n=sc.nextInt())!=0",
"(n=sc.nextInt())",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"0",
"{\n s=null;\n s=new double[n];\n m=0;\n for(i=0;i<n;i++){\n s[i]=sc.nextDouble();\n m+=s[i];\n }\n m/=n;\n a=0;\n for(i=0;i<n;i++){\n a+=Math.pow(s[i]-m,2);\n }\n a/=n;\n System.out.println(Math.sqrt(a));\n }",
"s=null",
"s",
"null",
"s=new double[n]",
"s",
"new double[n]",
"n",
"m=0",
"m",
"0",
"for(i=0;i<n;i++){\n s[i]=sc.nextDouble();\n m+=s[i];\n }",
"i=0;",
"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",
"a=0",
"a",
"0",
"for(i=0;i<n;i++){\n a+=Math.pow(s[i]-m,2);\n }",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a+=Math.pow(s[i]-m,2);\n }",
"{\n a+=Math.pow(s[i]-m,2);\n }",
"a+=Math.pow(s[i]-m,2)",
"a",
"Math.pow(s[i]-m,2)",
"Math.pow",
"Math",
"s[i]-m",
"s[i]",
"s",
"i",
"m",
"2",
"a/=n",
"a",
"n",
"System.out.println(Math.sqrt(a))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.sqrt(a)",
"Math.sqrt",
"Math",
"a",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc=new Scanner(System.in);\n int n;\n double[] s;\n double m;\n double a;\n int i;\n while((n=sc.nextInt())!=0){\n s=null;\n s=new double[n];\n m=0;\n for(i=0;i<n;i++){\n s[i]=sc.nextDouble();\n m+=s[i];\n }\n m/=n;\n a=0;\n for(i=0;i<n;i++){\n a+=Math.pow(s[i]-m,2);\n }\n a/=n;\n System.out.println(Math.sqrt(a));\n }\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc=new Scanner(System.in);\n int n;\n double[] s;\n double m;\n double a;\n int i;\n while((n=sc.nextInt())!=0){\n s=null;\n s=new double[n];\n m=0;\n for(i=0;i<n;i++){\n s[i]=sc.nextDouble();\n m+=s[i];\n }\n m/=n;\n a=0;\n for(i=0;i<n;i++){\n a+=Math.pow(s[i]-m,2);\n }\n a/=n;\n System.out.println(Math.sqrt(a));\n }\n }\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc=new Scanner(System.in);
int n;
double[] s;
double m;
double a;
int i;
while((n=sc.nextInt())!=0){
s=null;
s=new double[n];
m=0;
for(i=0;i<n;i++){
s[i]=sc.nextDouble();
m+=s[i];
}
m/=n;
a=0;
for(i=0;i<n;i++){
a+=Math.pow(s[i]-m,2);
}
a/=n;
System.out.println(Math.sqrt(a));
}
}
}
|
[
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,
42,
40,
2,
13,
17,
30,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
17,
41,
13,
20,
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,
28,
13,
13,
30,
30,
0,
13,
4,
18,
13,
2,
13,
13,
17,
41,
13,
4,
18,
13,
2,
13,
13,
4,
18,
18,
13,
13,
17,
13,
0,
13,
4,
18,
13,
4,
18,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
32,
33
],
[
33,
34
],
[
23,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
40,
46
],
[
46,
47
],
[
46,
48
],
[
40,
50
],
[
50,
51
],
[
50,
52
],
[
40,
53
],
[
53,
54
],
[
53,
55
],
[
40,
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
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
74,
75
],
[
68,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
40,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
40,
86
],
[
86,
87
],
[
86,
88
],
[
40,
89
],
[
89,
90
],
[
89,
91
],
[
89,
92
],
[
93,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
99,
100
],
[
99,
101
],
[
96,
102
],
[
40,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
108,
109
],
[
108,
110
],
[
40,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
111,
117
],
[
40,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
123,
124
],
[
124,
125
],
[
21,
126
],
[
126,
127
]
] | [
"import java.io.BufferedReader;\nimport java.io.FileInputStream;\nimport java.io.FileReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int n=Integer.parseInt(br.readLine());\n while(!(n==0)){\n String str=br.readLine();\n int[] in=new int[n];double sum=0;\n Scanner sc=new Scanner(str);\n for(int i=0;i<n;i++){\n \t\n \tin[i]=sc.nextInt();\n \tsum+=in[i];\n \t }\n double m=sum/n;\n \n \n double t=0;\n for(int i:in){\n \tt+=Math.pow(i-m,2);\n \t\n }\n double ar=Math.sqrt(t/n);\n System.out.printf(\"%.8f%n\",ar);\n n=Integer.parseInt(br.readLine());\n}\n}}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.FileInputStream;",
"FileInputStream",
"java.io",
"import java.io.FileReader;",
"FileReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int n=Integer.parseInt(br.readLine());\n while(!(n==0)){\n String str=br.readLine();\n int[] in=new int[n];double sum=0;\n Scanner sc=new Scanner(str);\n for(int i=0;i<n;i++){\n \t\n \tin[i]=sc.nextInt();\n \tsum+=in[i];\n \t }\n double m=sum/n;\n \n \n double t=0;\n for(int i:in){\n \tt+=Math.pow(i-m,2);\n \t\n }\n double ar=Math.sqrt(t/n);\n System.out.printf(\"%.8f%n\",ar);\n n=Integer.parseInt(br.readLine());\n}\n}}",
"Main",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int n=Integer.parseInt(br.readLine());\n while(!(n==0)){\n String str=br.readLine();\n int[] in=new int[n];double sum=0;\n Scanner sc=new Scanner(str);\n for(int i=0;i<n;i++){\n \t\n \tin[i]=sc.nextInt();\n \tsum+=in[i];\n \t }\n double m=sum/n;\n \n \n double t=0;\n for(int i:in){\n \tt+=Math.pow(i-m,2);\n \t\n }\n double ar=Math.sqrt(t/n);\n System.out.printf(\"%.8f%n\",ar);\n n=Integer.parseInt(br.readLine());\n}\n}",
"main",
"{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int n=Integer.parseInt(br.readLine());\n while(!(n==0)){\n String str=br.readLine();\n int[] in=new int[n];double sum=0;\n Scanner sc=new Scanner(str);\n for(int i=0;i<n;i++){\n \t\n \tin[i]=sc.nextInt();\n \tsum+=in[i];\n \t }\n double m=sum/n;\n \n \n double t=0;\n for(int i:in){\n \tt+=Math.pow(i-m,2);\n \t\n }\n double ar=Math.sqrt(t/n);\n System.out.printf(\"%.8f%n\",ar);\n n=Integer.parseInt(br.readLine());\n}\n}",
"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 String str=br.readLine();\n int[] in=new int[n];double sum=0;\n Scanner sc=new Scanner(str);\n for(int i=0;i<n;i++){\n \t\n \tin[i]=sc.nextInt();\n \tsum+=in[i];\n \t }\n double m=sum/n;\n \n \n double t=0;\n for(int i:in){\n \tt+=Math.pow(i-m,2);\n \t\n }\n double ar=Math.sqrt(t/n);\n System.out.printf(\"%.8f%n\",ar);\n n=Integer.parseInt(br.readLine());\n}",
"!(n==0)",
"(n==0)",
"n",
"0",
"{\n String str=br.readLine();\n int[] in=new int[n];double sum=0;\n Scanner sc=new Scanner(str);\n for(int i=0;i<n;i++){\n \t\n \tin[i]=sc.nextInt();\n \tsum+=in[i];\n \t }\n double m=sum/n;\n \n \n double t=0;\n for(int i:in){\n \tt+=Math.pow(i-m,2);\n \t\n }\n double ar=Math.sqrt(t/n);\n System.out.printf(\"%.8f%n\",ar);\n n=Integer.parseInt(br.readLine());\n}",
"String str=br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"int[] in=new int[n];",
"in",
"new int[n]",
"n",
"double sum=0;",
"sum",
"0",
"Scanner sc=new Scanner(str);",
"sc",
"new Scanner(str)",
"for(int i=0;i<n;i++){\n \t\n \tin[i]=sc.nextInt();\n \tsum+=in[i];\n \t }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \t\n \tin[i]=sc.nextInt();\n \tsum+=in[i];\n \t }",
"{\n \t\n \tin[i]=sc.nextInt();\n \tsum+=in[i];\n \t }",
"in[i]=sc.nextInt()",
"in[i]",
"in",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sum+=in[i]",
"sum",
"in[i]",
"in",
"i",
"double m=sum/n;",
"m",
"sum/n",
"sum",
"n",
"double t=0;",
"t",
"0",
"for(int i:in){\n \tt+=Math.pow(i-m,2);\n \t\n }",
"int i",
"in",
"{\n \tt+=Math.pow(i-m,2);\n \t\n }",
"{\n \tt+=Math.pow(i-m,2);\n \t\n }",
"t+=Math.pow(i-m,2)",
"t",
"Math.pow(i-m,2)",
"Math.pow",
"Math",
"i-m",
"i",
"m",
"2",
"double ar=Math.sqrt(t/n);",
"ar",
"Math.sqrt(t/n)",
"Math.sqrt",
"Math",
"t/n",
"t",
"n",
"System.out.printf(\"%.8f%n\",ar)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%.8f%n\"",
"ar",
"n=Integer.parseInt(br.readLine())",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String[] args",
"args"
] | import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
class Main {
public static void main(String[] args) throws NumberFormatException, IOException {
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int n=Integer.parseInt(br.readLine());
while(!(n==0)){
String str=br.readLine();
int[] in=new int[n];double sum=0;
Scanner sc=new Scanner(str);
for(int i=0;i<n;i++){
in[i]=sc.nextInt();
sum+=in[i];
}
double m=sum/n;
double t=0;
for(int i:in){
t+=Math.pow(i-m,2);
}
double ar=Math.sqrt(t/n);
System.out.printf("%.8f%n",ar);
n=Integer.parseInt(br.readLine());
}
}} |
[
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,
0,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
12,
13,
30,
4,
18,
20,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
115,
5
],
[
115,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
14,
25
],
[
25,
26
],
[
25,
27
],
[
14,
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
],
[
115,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
106,
112
],
[
112,
113
],
[
0,
114
],
[
114,
115
],
[
114,
116
]
] | [
"import java.util.Scanner;\npublic class Main {\n\tvoid run(){\n\t\tScanner s = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint n = s.nextInt();\n\t\t\tif(n == 0)\tbreak;\n\t\t\tint[] stu = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\tstu[i] = s.nextInt();\n\t\t\t\tsum+=stu[i];\n\t\t\t}\n\t\t\tdouble m = ((double) sum) / n;\n\t\t\tdouble a = 0;\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\ta += (stu[i] - m) * (stu[i] - m);\n\t\t\t}\n\t\t\ta /= n;\n\t\t\ta = Math.sqrt(a);\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}\n\tpublic static void main(String args[]){\n\t\tnew Main().run();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tvoid run(){\n\t\tScanner s = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint n = s.nextInt();\n\t\t\tif(n == 0)\tbreak;\n\t\t\tint[] stu = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\tstu[i] = s.nextInt();\n\t\t\t\tsum+=stu[i];\n\t\t\t}\n\t\t\tdouble m = ((double) sum) / n;\n\t\t\tdouble a = 0;\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\ta += (stu[i] - m) * (stu[i] - m);\n\t\t\t}\n\t\t\ta /= n;\n\t\t\ta = Math.sqrt(a);\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}\n\tpublic static void main(String args[]){\n\t\tnew Main().run();\n\t}\n}",
"Main",
"void run(){\n\t\tScanner s = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint n = s.nextInt();\n\t\t\tif(n == 0)\tbreak;\n\t\t\tint[] stu = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\tstu[i] = s.nextInt();\n\t\t\t\tsum+=stu[i];\n\t\t\t}\n\t\t\tdouble m = ((double) sum) / n;\n\t\t\tdouble a = 0;\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\ta += (stu[i] - m) * (stu[i] - m);\n\t\t\t}\n\t\t\ta /= n;\n\t\t\ta = Math.sqrt(a);\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}",
"run",
"{\n\t\tScanner s = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint n = s.nextInt();\n\t\t\tif(n == 0)\tbreak;\n\t\t\tint[] stu = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\tstu[i] = s.nextInt();\n\t\t\t\tsum+=stu[i];\n\t\t\t}\n\t\t\tdouble m = ((double) sum) / n;\n\t\t\tdouble a = 0;\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\ta += (stu[i] - m) * (stu[i] - m);\n\t\t\t}\n\t\t\ta /= n;\n\t\t\ta = Math.sqrt(a);\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"while(true){\n\t\t\tint n = s.nextInt();\n\t\t\tif(n == 0)\tbreak;\n\t\t\tint[] stu = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\tstu[i] = s.nextInt();\n\t\t\t\tsum+=stu[i];\n\t\t\t}\n\t\t\tdouble m = ((double) sum) / n;\n\t\t\tdouble a = 0;\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\ta += (stu[i] - m) * (stu[i] - m);\n\t\t\t}\n\t\t\ta /= n;\n\t\t\ta = Math.sqrt(a);\n\t\t\tSystem.out.println(a);\n\t\t}",
"true",
"{\n\t\t\tint n = s.nextInt();\n\t\t\tif(n == 0)\tbreak;\n\t\t\tint[] stu = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\tstu[i] = s.nextInt();\n\t\t\t\tsum+=stu[i];\n\t\t\t}\n\t\t\tdouble m = ((double) sum) / n;\n\t\t\tdouble a = 0;\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\ta += (stu[i] - m) * (stu[i] - m);\n\t\t\t}\n\t\t\ta /= n;\n\t\t\ta = Math.sqrt(a);\n\t\t\tSystem.out.println(a);\n\t\t}",
"int n = s.nextInt();",
"n",
"s.nextInt()",
"s.nextInt",
"s",
"if(n == 0)\tbreak;",
"n == 0",
"n",
"0",
"break;",
"int[] stu = new int[n];",
"stu",
"new int[n]",
"n",
"int sum = 0;",
"sum",
"0",
"for(int i = 0;i < n;i++){\n\t\t\t\tstu[i] = s.nextInt();\n\t\t\t\tsum+=stu[i];\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tstu[i] = s.nextInt();\n\t\t\t\tsum+=stu[i];\n\t\t\t}",
"{\n\t\t\t\tstu[i] = s.nextInt();\n\t\t\t\tsum+=stu[i];\n\t\t\t}",
"stu[i] = s.nextInt()",
"stu[i]",
"stu",
"i",
"s.nextInt()",
"s.nextInt",
"s",
"sum+=stu[i]",
"sum",
"stu[i]",
"stu",
"i",
"double m = ((double) sum) / n;",
"m",
"((double) sum) / n",
"((double) sum)",
"n",
"double a = 0;",
"a",
"0",
"for(int i = 0;i < n;i++){\n\t\t\t\ta += (stu[i] - m) * (stu[i] - m);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\ta += (stu[i] - m) * (stu[i] - m);\n\t\t\t}",
"{\n\t\t\t\ta += (stu[i] - m) * (stu[i] - m);\n\t\t\t}",
"a += (stu[i] - m) * (stu[i] - m)",
"a",
"(stu[i] - m) * (stu[i] - m)",
"(stu[i] - m)",
"stu[i]",
"stu",
"i",
"m",
"(stu[i] - m)",
"stu[i]",
"stu",
"i",
"m",
"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",
"public static void main(String args[]){\n\t\tnew Main().run();\n\t}",
"main",
"{\n\t\tnew Main().run();\n\t}",
"new Main().run()",
"new Main().run",
"new Main()",
"String args[]",
"args",
"public class Main {\n\tvoid run(){\n\t\tScanner s = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint n = s.nextInt();\n\t\t\tif(n == 0)\tbreak;\n\t\t\tint[] stu = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\tstu[i] = s.nextInt();\n\t\t\t\tsum+=stu[i];\n\t\t\t}\n\t\t\tdouble m = ((double) sum) / n;\n\t\t\tdouble a = 0;\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\ta += (stu[i] - m) * (stu[i] - m);\n\t\t\t}\n\t\t\ta /= n;\n\t\t\ta = Math.sqrt(a);\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}\n\tpublic static void main(String args[]){\n\t\tnew Main().run();\n\t}\n}",
"public class Main {\n\tvoid run(){\n\t\tScanner s = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint n = s.nextInt();\n\t\t\tif(n == 0)\tbreak;\n\t\t\tint[] stu = new int[n];\n\t\t\tint sum = 0;\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\tstu[i] = s.nextInt();\n\t\t\t\tsum+=stu[i];\n\t\t\t}\n\t\t\tdouble m = ((double) sum) / n;\n\t\t\tdouble a = 0;\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\ta += (stu[i] - m) * (stu[i] - m);\n\t\t\t}\n\t\t\ta /= n;\n\t\t\ta = Math.sqrt(a);\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}\n\tpublic static void main(String args[]){\n\t\tnew Main().run();\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
void run(){
Scanner s = new Scanner(System.in);
while(true){
int n = s.nextInt();
if(n == 0) break;
int[] stu = new int[n];
int sum = 0;
for(int i = 0;i < n;i++){
stu[i] = s.nextInt();
sum+=stu[i];
}
double m = ((double) sum) / n;
double a = 0;
for(int i = 0;i < n;i++){
a += (stu[i] - m) * (stu[i] - m);
}
a /= n;
a = Math.sqrt(a);
System.out.println(a);
}
}
public static void main(String args[]){
new Main().run();
}
} |
[
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
13,
18,
13,
13,
0,
13,
2,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
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
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
16,
50
],
[
50,
51
],
[
50,
52
],
[
16,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
16,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
16,
75
],
[
75,
76
],
[
75,
77
],
[
16,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
78,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
96,
97
],
[
96,
98
],
[
16,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
107,
109
],
[
104,
110
],
[
16,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
111,
117
],
[
16,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
6,
123
],
[
123,
124
]
] | [
"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 \n for (int i = 0; i < n; i++) numbers[i] = in.nextInt();\n \n long double_sum = 0;\n for (int i = 0; i < n; i++) double_sum += numbers[i];\n double_sum = double_sum * double_sum;\n \n long sum_double = 0;\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 \n for (int i = 0; i < n; i++) numbers[i] = in.nextInt();\n \n long double_sum = 0;\n for (int i = 0; i < n; i++) double_sum += numbers[i];\n double_sum = double_sum * double_sum;\n \n long sum_double = 0;\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 \n for (int i = 0; i < n; i++) numbers[i] = in.nextInt();\n \n long double_sum = 0;\n for (int i = 0; i < n; i++) double_sum += numbers[i];\n double_sum = double_sum * double_sum;\n \n long sum_double = 0;\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 \n for (int i = 0; i < n; i++) numbers[i] = in.nextInt();\n \n long double_sum = 0;\n for (int i = 0; i < n; i++) double_sum += numbers[i];\n double_sum = double_sum * double_sum;\n \n long sum_double = 0;\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 \n for (int i = 0; i < n; i++) numbers[i] = in.nextInt();\n \n long double_sum = 0;\n for (int i = 0; i < n; i++) double_sum += numbers[i];\n double_sum = double_sum * double_sum;\n \n long sum_double = 0;\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 \n for (int i = 0; i < n; i++) numbers[i] = in.nextInt();\n \n long double_sum = 0;\n for (int i = 0; i < n; i++) double_sum += numbers[i];\n double_sum = double_sum * double_sum;\n \n long sum_double = 0;\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",
"for (int i = 0; i < n; i++) numbers[i] = in.nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"numbers[i] = in.nextInt();",
"numbers[i] = in.nextInt()",
"numbers[i]",
"numbers",
"i",
"in.nextInt()",
"in.nextInt",
"in",
"long double_sum = 0;",
"double_sum",
"0",
"for (int i = 0; i < n; i++) double_sum += numbers[i];",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"double_sum += numbers[i];",
"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",
"long sum_double = 0;",
"sum_double",
"0",
"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];
for (int i = 0; i < n; i++) numbers[i] = in.nextInt();
long double_sum = 0;
for (int i = 0; i < n; i++) double_sum += numbers[i];
double_sum = double_sum * double_sum;
long sum_double = 0;
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,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
3,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
18,
13,
13,
0,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
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
] | [
[
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
],
[
19,
20
],
[
19,
21
],
[
18,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
22,
34
],
[
34,
35
],
[
34,
36
],
[
22,
38
],
[
38,
39
],
[
38,
40
],
[
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
],
[
53,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
22,
66
],
[
66,
67
],
[
66,
68
],
[
22,
69
],
[
69,
70
],
[
69,
71
],
[
22,
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
],
[
22,
98
],
[
98,
99
],
[
98,
100
],
[
22,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
22,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
9,
113
],
[
113,
114
]
] | [
"import java.io.IOException;\nimport java.util.Scanner;\nclass Main{\n\tpublic static void main(String[] args)throws NumberFormatException, IOException{\n\t\t//System.out.println(\" \");\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = 1;\n\t\twhile(n != 0){\n\t\t\tn =scan.nextInt();\n\t\t\tif (n==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] score = new int[n];\n\t\t\tdouble heikin = 0.0;\n\t\t\tfor(int i=0;i<n; i++){\n\t\t\t\tscore[i] = scan.nextInt();\n\t\t\t\theikin += score[i];\n\t\t\t}\n\t\t\theikin /= n;\n\t\t\tdouble keisan = 0.0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tkeisan += (score[i] - heikin) * (score[i] - heikin);\n\t\t\t}\n\t\t\tkeisan /= n;\n\t\t\tkeisan = Math.sqrt(keisan);\n\t\t\tSystem.out.println(keisan);\n\t\t}\n\t}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n\tpublic static void main(String[] args)throws NumberFormatException, IOException{\n\t\t//System.out.println(\" \");\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = 1;\n\t\twhile(n != 0){\n\t\t\tn =scan.nextInt();\n\t\t\tif (n==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] score = new int[n];\n\t\t\tdouble heikin = 0.0;\n\t\t\tfor(int i=0;i<n; i++){\n\t\t\t\tscore[i] = scan.nextInt();\n\t\t\t\theikin += score[i];\n\t\t\t}\n\t\t\theikin /= n;\n\t\t\tdouble keisan = 0.0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tkeisan += (score[i] - heikin) * (score[i] - heikin);\n\t\t\t}\n\t\t\tkeisan /= n;\n\t\t\tkeisan = Math.sqrt(keisan);\n\t\t\tSystem.out.println(keisan);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args)throws NumberFormatException, IOException{\n\t\t//System.out.println(\" \");\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = 1;\n\t\twhile(n != 0){\n\t\t\tn =scan.nextInt();\n\t\t\tif (n==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] score = new int[n];\n\t\t\tdouble heikin = 0.0;\n\t\t\tfor(int i=0;i<n; i++){\n\t\t\t\tscore[i] = scan.nextInt();\n\t\t\t\theikin += score[i];\n\t\t\t}\n\t\t\theikin /= n;\n\t\t\tdouble keisan = 0.0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tkeisan += (score[i] - heikin) * (score[i] - heikin);\n\t\t\t}\n\t\t\tkeisan /= n;\n\t\t\tkeisan = Math.sqrt(keisan);\n\t\t\tSystem.out.println(keisan);\n\t\t}\n\t}",
"main",
"{\n\t\t//System.out.println(\" \");\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = 1;\n\t\twhile(n != 0){\n\t\t\tn =scan.nextInt();\n\t\t\tif (n==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] score = new int[n];\n\t\t\tdouble heikin = 0.0;\n\t\t\tfor(int i=0;i<n; i++){\n\t\t\t\tscore[i] = scan.nextInt();\n\t\t\t\theikin += score[i];\n\t\t\t}\n\t\t\theikin /= n;\n\t\t\tdouble keisan = 0.0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tkeisan += (score[i] - heikin) * (score[i] - heikin);\n\t\t\t}\n\t\t\tkeisan /= n;\n\t\t\tkeisan = Math.sqrt(keisan);\n\t\t\tSystem.out.println(keisan);\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = 1;",
"n",
"1",
"while(n != 0){\n\t\t\tn =scan.nextInt();\n\t\t\tif (n==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] score = new int[n];\n\t\t\tdouble heikin = 0.0;\n\t\t\tfor(int i=0;i<n; i++){\n\t\t\t\tscore[i] = scan.nextInt();\n\t\t\t\theikin += score[i];\n\t\t\t}\n\t\t\theikin /= n;\n\t\t\tdouble keisan = 0.0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tkeisan += (score[i] - heikin) * (score[i] - heikin);\n\t\t\t}\n\t\t\tkeisan /= n;\n\t\t\tkeisan = Math.sqrt(keisan);\n\t\t\tSystem.out.println(keisan);\n\t\t}",
"n != 0",
"n",
"0",
"{\n\t\t\tn =scan.nextInt();\n\t\t\tif (n==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint[] score = new int[n];\n\t\t\tdouble heikin = 0.0;\n\t\t\tfor(int i=0;i<n; i++){\n\t\t\t\tscore[i] = scan.nextInt();\n\t\t\t\theikin += score[i];\n\t\t\t}\n\t\t\theikin /= n;\n\t\t\tdouble keisan = 0.0;\n\t\t\tfor(int i=0; i<n; i++){\n\t\t\t\tkeisan += (score[i] - heikin) * (score[i] - heikin);\n\t\t\t}\n\t\t\tkeisan /= n;\n\t\t\tkeisan = Math.sqrt(keisan);\n\t\t\tSystem.out.println(keisan);\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;",
"int[] score = new int[n];",
"score",
"new int[n]",
"n",
"double heikin = 0.0;",
"heikin",
"0.0",
"for(int i=0;i<n; i++){\n\t\t\t\tscore[i] = scan.nextInt();\n\t\t\t\theikin += score[i];\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tscore[i] = scan.nextInt();\n\t\t\t\theikin += score[i];\n\t\t\t}",
"{\n\t\t\t\tscore[i] = scan.nextInt();\n\t\t\t\theikin += score[i];\n\t\t\t}",
"score[i] = scan.nextInt()",
"score[i]",
"score",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"heikin += score[i]",
"heikin",
"score[i]",
"score",
"i",
"heikin /= n",
"heikin",
"n",
"double keisan = 0.0;",
"keisan",
"0.0",
"for(int i=0; i<n; i++){\n\t\t\t\tkeisan += (score[i] - heikin) * (score[i] - heikin);\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tkeisan += (score[i] - heikin) * (score[i] - heikin);\n\t\t\t}",
"{\n\t\t\t\tkeisan += (score[i] - heikin) * (score[i] - heikin);\n\t\t\t}",
"keisan += (score[i] - heikin) * (score[i] - heikin)",
"keisan",
"(score[i] - heikin) * (score[i] - heikin)",
"(score[i] - heikin)",
"score[i]",
"score",
"i",
"heikin",
"(score[i] - heikin)",
"score[i]",
"score",
"i",
"heikin",
"keisan /= n",
"keisan",
"n",
"keisan = Math.sqrt(keisan)",
"keisan",
"Math.sqrt(keisan)",
"Math.sqrt",
"Math",
"keisan",
"System.out.println(keisan)",
"System.out.println",
"System.out",
"System",
"System.out",
"keisan",
"String[] args",
"args"
] | import java.io.IOException;
import java.util.Scanner;
class Main{
public static void main(String[] args)throws NumberFormatException, IOException{
//System.out.println(" ");
Scanner scan = new Scanner(System.in);
int n = 1;
while(n != 0){
n =scan.nextInt();
if (n==0){
break;
}
int[] score = new int[n];
double heikin = 0.0;
for(int i=0;i<n; i++){
score[i] = scan.nextInt();
heikin += score[i];
}
heikin /= n;
double keisan = 0.0;
for(int i=0; i<n; i++){
keisan += (score[i] - heikin) * (score[i] - heikin);
}
keisan /= n;
keisan = Math.sqrt(keisan);
System.out.println(keisan);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
41,
13,
41,
13,
20,
2,
17,
17,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
42,
17,
30,
0,
13,
4,
18,
13,
4,
18,
13,
14,
2,
17,
13,
30,
3,
0,
13,
0,
13,
17,
28,
13,
4,
18,
4,
18,
13,
17,
17,
30,
30,
0,
18,
13,
13,
4,
18,
13,
13,
0,
13,
18,
13,
40,
13,
0,
13,
2,
13,
13,
0,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
2,
18,
13,
13,
13,
17,
0,
13,
4,
18,
13,
2,
13,
13,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
12,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
30,
31
],
[
30,
32
],
[
22,
33
],
[
33,
34
],
[
22,
35
],
[
35,
36
],
[
35,
37
],
[
22,
38
],
[
38,
39
],
[
38,
40
],
[
22,
41
],
[
41,
42
],
[
41,
43
],
[
22,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
52,
53
],
[
53,
54
],
[
46,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
46,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
46,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
68,
73
],
[
68,
74
],
[
66,
75
],
[
76,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
76,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
46,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
93,
95
],
[
46,
96
],
[
96,
97
],
[
96,
98
],
[
46,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
99,
107
],
[
107,
108
],
[
108,
109
],
[
99,
110
],
[
111,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
114,
122
],
[
46,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
125,
128
],
[
128,
129
],
[
128,
130
],
[
46,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
136,
137
],
[
136,
138
],
[
6,
139
],
[
139,
140
]
] | [
"import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\tint n;\n\t\t\tString str;\n\t\t\tdouble[] s = new double[ 1000+1 ];\n\t\t\tint i;\n\t\t\tdouble ave = 0, sum = 0, a = 0;\n\t\t\twhile( true ) {\n\t\t\t\tn = Integer.parseInt( kb.readLine() );\n\t\t\t\tif( 0 == n ) { break; }\n\t\t\t\tsum = i = 0;\n\t\t\t\tfor( String nums: kb.readLine().split( \" \", 0 ) ) {\n\t\t\t\t\ts[i] = Double.parseDouble( nums );\n\t\t\t\t\tsum += s[i++];\n\t\t\t\t}\n\t\t\t\tave = sum/n;\n\t\t\t\tsum = 0;\n\t\t\t\tfor( i=0; i<n; i++ ) {\n\t\t\t\t\tsum += Math.pow( s[i]-ave, 2 );\n\t\t\t\t}\n\t\t\t\ta = Math.sqrt( sum/n );\n\t\t\t\tSystem.out.print( a + \"\\n\" );\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\tint n;\n\t\t\tString str;\n\t\t\tdouble[] s = new double[ 1000+1 ];\n\t\t\tint i;\n\t\t\tdouble ave = 0, sum = 0, a = 0;\n\t\t\twhile( true ) {\n\t\t\t\tn = Integer.parseInt( kb.readLine() );\n\t\t\t\tif( 0 == n ) { break; }\n\t\t\t\tsum = i = 0;\n\t\t\t\tfor( String nums: kb.readLine().split( \" \", 0 ) ) {\n\t\t\t\t\ts[i] = Double.parseDouble( nums );\n\t\t\t\t\tsum += s[i++];\n\t\t\t\t}\n\t\t\t\tave = sum/n;\n\t\t\t\tsum = 0;\n\t\t\t\tfor( i=0; i<n; i++ ) {\n\t\t\t\t\tsum += Math.pow( s[i]-ave, 2 );\n\t\t\t\t}\n\t\t\t\ta = Math.sqrt( sum/n );\n\t\t\t\tSystem.out.print( a + \"\\n\" );\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\tint n;\n\t\t\tString str;\n\t\t\tdouble[] s = new double[ 1000+1 ];\n\t\t\tint i;\n\t\t\tdouble ave = 0, sum = 0, a = 0;\n\t\t\twhile( true ) {\n\t\t\t\tn = Integer.parseInt( kb.readLine() );\n\t\t\t\tif( 0 == n ) { break; }\n\t\t\t\tsum = i = 0;\n\t\t\t\tfor( String nums: kb.readLine().split( \" \", 0 ) ) {\n\t\t\t\t\ts[i] = Double.parseDouble( nums );\n\t\t\t\t\tsum += s[i++];\n\t\t\t\t}\n\t\t\t\tave = sum/n;\n\t\t\t\tsum = 0;\n\t\t\t\tfor( i=0; i<n; i++ ) {\n\t\t\t\t\tsum += Math.pow( s[i]-ave, 2 );\n\t\t\t\t}\n\t\t\t\ta = Math.sqrt( sum/n );\n\t\t\t\tSystem.out.print( a + \"\\n\" );\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\tint n;\n\t\t\tString str;\n\t\t\tdouble[] s = new double[ 1000+1 ];\n\t\t\tint i;\n\t\t\tdouble ave = 0, sum = 0, a = 0;\n\t\t\twhile( true ) {\n\t\t\t\tn = Integer.parseInt( kb.readLine() );\n\t\t\t\tif( 0 == n ) { break; }\n\t\t\t\tsum = i = 0;\n\t\t\t\tfor( String nums: kb.readLine().split( \" \", 0 ) ) {\n\t\t\t\t\ts[i] = Double.parseDouble( nums );\n\t\t\t\t\tsum += s[i++];\n\t\t\t\t}\n\t\t\t\tave = sum/n;\n\t\t\t\tsum = 0;\n\t\t\t\tfor( i=0; i<n; i++ ) {\n\t\t\t\t\tsum += Math.pow( s[i]-ave, 2 );\n\t\t\t\t}\n\t\t\t\ta = Math.sqrt( sum/n );\n\t\t\t\tSystem.out.print( a + \"\\n\" );\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}",
"BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );",
"kb",
"new BufferedReader( new InputStreamReader( System.in ) )",
"try {\n\t\t\tint n;\n\t\t\tString str;\n\t\t\tdouble[] s = new double[ 1000+1 ];\n\t\t\tint i;\n\t\t\tdouble ave = 0, sum = 0, a = 0;\n\t\t\twhile( true ) {\n\t\t\t\tn = Integer.parseInt( kb.readLine() );\n\t\t\t\tif( 0 == n ) { break; }\n\t\t\t\tsum = i = 0;\n\t\t\t\tfor( String nums: kb.readLine().split( \" \", 0 ) ) {\n\t\t\t\t\ts[i] = Double.parseDouble( nums );\n\t\t\t\t\tsum += s[i++];\n\t\t\t\t}\n\t\t\t\tave = sum/n;\n\t\t\t\tsum = 0;\n\t\t\t\tfor( i=0; i<n; i++ ) {\n\t\t\t\t\tsum += Math.pow( s[i]-ave, 2 );\n\t\t\t\t}\n\t\t\t\ta = Math.sqrt( sum/n );\n\t\t\t\tSystem.out.print( a + \"\\n\" );\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}",
"catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}",
"IOException e",
"{\n\t\t\tSystem.err.println( e );\n\t\t}",
"System.err.println( e )",
"System.err.println",
"System.err",
"System",
"System.err",
"e",
"{\n\t\t\tint n;\n\t\t\tString str;\n\t\t\tdouble[] s = new double[ 1000+1 ];\n\t\t\tint i;\n\t\t\tdouble ave = 0, sum = 0, a = 0;\n\t\t\twhile( true ) {\n\t\t\t\tn = Integer.parseInt( kb.readLine() );\n\t\t\t\tif( 0 == n ) { break; }\n\t\t\t\tsum = i = 0;\n\t\t\t\tfor( String nums: kb.readLine().split( \" \", 0 ) ) {\n\t\t\t\t\ts[i] = Double.parseDouble( nums );\n\t\t\t\t\tsum += s[i++];\n\t\t\t\t}\n\t\t\t\tave = sum/n;\n\t\t\t\tsum = 0;\n\t\t\t\tfor( i=0; i<n; i++ ) {\n\t\t\t\t\tsum += Math.pow( s[i]-ave, 2 );\n\t\t\t\t}\n\t\t\t\ta = Math.sqrt( sum/n );\n\t\t\t\tSystem.out.print( a + \"\\n\" );\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}",
"int n;",
"n",
"String str;",
"str",
"double[] s = new double[ 1000+1 ];",
"s",
"new double[ 1000+1 ]",
"1000+1",
"1000",
"1",
"int i;",
"i",
"double ave = 0",
"ave",
"0",
"sum = 0",
"sum",
"0",
"a = 0;",
"a",
"0",
"while( true ) {\n\t\t\t\tn = Integer.parseInt( kb.readLine() );\n\t\t\t\tif( 0 == n ) { break; }\n\t\t\t\tsum = i = 0;\n\t\t\t\tfor( String nums: kb.readLine().split( \" \", 0 ) ) {\n\t\t\t\t\ts[i] = Double.parseDouble( nums );\n\t\t\t\t\tsum += s[i++];\n\t\t\t\t}\n\t\t\t\tave = sum/n;\n\t\t\t\tsum = 0;\n\t\t\t\tfor( i=0; i<n; i++ ) {\n\t\t\t\t\tsum += Math.pow( s[i]-ave, 2 );\n\t\t\t\t}\n\t\t\t\ta = Math.sqrt( sum/n );\n\t\t\t\tSystem.out.print( a + \"\\n\" );\n\t\t\t}",
"true",
"{\n\t\t\t\tn = Integer.parseInt( kb.readLine() );\n\t\t\t\tif( 0 == n ) { break; }\n\t\t\t\tsum = i = 0;\n\t\t\t\tfor( String nums: kb.readLine().split( \" \", 0 ) ) {\n\t\t\t\t\ts[i] = Double.parseDouble( nums );\n\t\t\t\t\tsum += s[i++];\n\t\t\t\t}\n\t\t\t\tave = sum/n;\n\t\t\t\tsum = 0;\n\t\t\t\tfor( i=0; i<n; i++ ) {\n\t\t\t\t\tsum += Math.pow( s[i]-ave, 2 );\n\t\t\t\t}\n\t\t\t\ta = Math.sqrt( sum/n );\n\t\t\t\tSystem.out.print( a + \"\\n\" );\n\t\t\t}",
"n = Integer.parseInt( kb.readLine() )",
"n",
"Integer.parseInt( kb.readLine() )",
"Integer.parseInt",
"Integer",
"kb.readLine()",
"kb.readLine",
"kb",
"if( 0 == n ) { break; }",
"0 == n",
"0",
"n",
"{ break; }",
"break;",
"sum = i = 0",
"sum",
"i = 0",
"i",
"0",
"for( String nums: kb.readLine().split( \" \", 0 ) ) {\n\t\t\t\t\ts[i] = Double.parseDouble( nums );\n\t\t\t\t\tsum += s[i++];\n\t\t\t\t}",
"String nums",
"kb.readLine().split( \" \", 0 )",
"kb.readLine().split",
"kb.readLine()",
"kb.readLine",
"kb",
"\" \"",
"0",
"{\n\t\t\t\t\ts[i] = Double.parseDouble( nums );\n\t\t\t\t\tsum += s[i++];\n\t\t\t\t}",
"{\n\t\t\t\t\ts[i] = Double.parseDouble( nums );\n\t\t\t\t\tsum += s[i++];\n\t\t\t\t}",
"s[i] = Double.parseDouble( nums )",
"s[i]",
"s",
"i",
"Double.parseDouble( nums )",
"Double.parseDouble",
"Double",
"nums",
"sum += s[i++]",
"sum",
"s[i++]",
"s",
"i++",
"i",
"ave = sum/n",
"ave",
"sum/n",
"sum",
"n",
"sum = 0",
"sum",
"0",
"for( i=0; i<n; i++ ) {\n\t\t\t\t\tsum += Math.pow( s[i]-ave, 2 );\n\t\t\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\t\tsum += Math.pow( s[i]-ave, 2 );\n\t\t\t\t}",
"{\n\t\t\t\t\tsum += Math.pow( s[i]-ave, 2 );\n\t\t\t\t}",
"sum += Math.pow( s[i]-ave, 2 )",
"sum",
"Math.pow( s[i]-ave, 2 )",
"Math.pow",
"Math",
"s[i]-ave",
"s[i]",
"s",
"i",
"ave",
"2",
"a = Math.sqrt( sum/n )",
"a",
"Math.sqrt( sum/n )",
"Math.sqrt",
"Math",
"sum/n",
"sum",
"n",
"System.out.print( a + \"\\n\" )",
"System.out.print",
"System.out",
"System",
"System.out",
"a + \"\\n\"",
"a",
"\"\\n\"",
"String[] args",
"args"
] | import java.io.*;
class Main {
public static void main(String[] args) {
BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );
try {
int n;
String str;
double[] s = new double[ 1000+1 ];
int i;
double ave = 0, sum = 0, a = 0;
while( true ) {
n = Integer.parseInt( kb.readLine() );
if( 0 == n ) { break; }
sum = i = 0;
for( String nums: kb.readLine().split( " ", 0 ) ) {
s[i] = Double.parseDouble( nums );
sum += s[i++];
}
ave = sum/n;
sum = 0;
for( i=0; i<n; i++ ) {
sum += Math.pow( s[i]-ave, 2 );
}
a = Math.sqrt( sum/n );
System.out.print( a + "\n" );
}
} catch( IOException e ) {
System.err.println( e );
}
}
} |
[
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,
17,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
3,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
0,
13,
13,
28,
13,
13,
30,
30,
0,
13,
4,
18,
13,
2,
13,
2,
13,
13,
17,
4,
18,
18,
13,
13,
4,
18,
13,
2,
13,
13,
0,
13,
17,
0,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
105,
11
],
[
105,
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
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
29,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
29,
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
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
53,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
53,
63
],
[
63,
64
],
[
63,
65
],
[
29,
66
],
[
66,
67
],
[
66,
68
],
[
66,
69
],
[
70,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
73,
81
],
[
29,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
90,
91
],
[
90,
92
],
[
29,
93
],
[
93,
94
],
[
93,
95
],
[
29,
96
],
[
96,
97
],
[
96,
98
],
[
29,
99
],
[
99,
100
],
[
100,
101
],
[
12,
102
],
[
102,
103
],
[
0,
104
],
[
104,
105
],
[
104,
106
]
] | [
"import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n List<Integer> score = new ArrayList<>();\n double total = 0;\n double a2n = 0.0;\n while(true){\n int n = sc.nextInt();\n if(n == 0){\n break;\n }\n for(int i = 0; i < n; i++){\n int s = sc.nextInt();\n score.add(s);\n total += s;\n }\n for(int i:score){\n a2n += Math.pow(i - (total/n), 2);\n }\n System.out.println(Math.sqrt(a2n/n));\n total = 0;\n a2n = 0;\n score.clear();\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\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n List<Integer> score = new ArrayList<>();\n double total = 0;\n double a2n = 0.0;\n while(true){\n int n = sc.nextInt();\n if(n == 0){\n break;\n }\n for(int i = 0; i < n; i++){\n int s = sc.nextInt();\n score.add(s);\n total += s;\n }\n for(int i:score){\n a2n += Math.pow(i - (total/n), 2);\n }\n System.out.println(Math.sqrt(a2n/n));\n total = 0;\n a2n = 0;\n score.clear();\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n List<Integer> score = new ArrayList<>();\n double total = 0;\n double a2n = 0.0;\n while(true){\n int n = sc.nextInt();\n if(n == 0){\n break;\n }\n for(int i = 0; i < n; i++){\n int s = sc.nextInt();\n score.add(s);\n total += s;\n }\n for(int i:score){\n a2n += Math.pow(i - (total/n), 2);\n }\n System.out.println(Math.sqrt(a2n/n));\n total = 0;\n a2n = 0;\n score.clear();\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n List<Integer> score = new ArrayList<>();\n double total = 0;\n double a2n = 0.0;\n while(true){\n int n = sc.nextInt();\n if(n == 0){\n break;\n }\n for(int i = 0; i < n; i++){\n int s = sc.nextInt();\n score.add(s);\n total += s;\n }\n for(int i:score){\n a2n += Math.pow(i - (total/n), 2);\n }\n System.out.println(Math.sqrt(a2n/n));\n total = 0;\n a2n = 0;\n score.clear();\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"List<Integer> score = new ArrayList<>();",
"score",
"new ArrayList<>()",
"double total = 0;",
"total",
"0",
"double a2n = 0.0;",
"a2n",
"0.0",
"while(true){\n int n = sc.nextInt();\n if(n == 0){\n break;\n }\n for(int i = 0; i < n; i++){\n int s = sc.nextInt();\n score.add(s);\n total += s;\n }\n for(int i:score){\n a2n += Math.pow(i - (total/n), 2);\n }\n System.out.println(Math.sqrt(a2n/n));\n total = 0;\n a2n = 0;\n score.clear();\n }",
"true",
"{\n int n = sc.nextInt();\n if(n == 0){\n break;\n }\n for(int i = 0; i < n; i++){\n int s = sc.nextInt();\n score.add(s);\n total += s;\n }\n for(int i:score){\n a2n += Math.pow(i - (total/n), 2);\n }\n System.out.println(Math.sqrt(a2n/n));\n total = 0;\n a2n = 0;\n score.clear();\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;",
"for(int i = 0; i < n; i++){\n int s = sc.nextInt();\n score.add(s);\n total += s;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int s = sc.nextInt();\n score.add(s);\n total += s;\n }",
"{\n int s = sc.nextInt();\n score.add(s);\n total += s;\n }",
"int s = sc.nextInt();",
"s",
"sc.nextInt()",
"sc.nextInt",
"sc",
"score.add(s)",
"score.add",
"score",
"s",
"total += s",
"total",
"s",
"for(int i:score){\n a2n += Math.pow(i - (total/n), 2);\n }",
"int i",
"score",
"{\n a2n += Math.pow(i - (total/n), 2);\n }",
"{\n a2n += Math.pow(i - (total/n), 2);\n }",
"a2n += Math.pow(i - (total/n), 2)",
"a2n",
"Math.pow(i - (total/n), 2)",
"Math.pow",
"Math",
"i - (total/n)",
"i",
"(total/n)",
"total",
"n",
"2",
"System.out.println(Math.sqrt(a2n/n))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.sqrt(a2n/n)",
"Math.sqrt",
"Math",
"a2n/n",
"a2n",
"n",
"total = 0",
"total",
"0",
"a2n = 0",
"a2n",
"0",
"score.clear()",
"score.clear",
"score",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n List<Integer> score = new ArrayList<>();\n double total = 0;\n double a2n = 0.0;\n while(true){\n int n = sc.nextInt();\n if(n == 0){\n break;\n }\n for(int i = 0; i < n; i++){\n int s = sc.nextInt();\n score.add(s);\n total += s;\n }\n for(int i:score){\n a2n += Math.pow(i - (total/n), 2);\n }\n System.out.println(Math.sqrt(a2n/n));\n total = 0;\n a2n = 0;\n score.clear();\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n List<Integer> score = new ArrayList<>();\n double total = 0;\n double a2n = 0.0;\n while(true){\n int n = sc.nextInt();\n if(n == 0){\n break;\n }\n for(int i = 0; i < n; i++){\n int s = sc.nextInt();\n score.add(s);\n total += s;\n }\n for(int i:score){\n a2n += Math.pow(i - (total/n), 2);\n }\n System.out.println(Math.sqrt(a2n/n));\n total = 0;\n a2n = 0;\n score.clear();\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);
List<Integer> score = new ArrayList<>();
double total = 0;
double a2n = 0.0;
while(true){
int n = sc.nextInt();
if(n == 0){
break;
}
for(int i = 0; i < n; i++){
int s = sc.nextInt();
score.add(s);
total += s;
}
for(int i:score){
a2n += Math.pow(i - (total/n), 2);
}
System.out.println(Math.sqrt(a2n/n));
total = 0;
a2n = 0;
score.clear();
}
}
} |
[
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,
41,
13,
17,
14,
2,
13,
17,
30,
3,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
18,
13,
13,
0,
13,
2,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
13,
13,
13,
0,
13,
2,
13,
13,
0,
13,
2,
13,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
137,
5
],
[
137,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
20,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
14,
35
],
[
35,
36
],
[
35,
37
],
[
14,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
39,
49
],
[
49,
50
],
[
50,
51
],
[
39,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
14,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
61,
71
],
[
71,
72
],
[
72,
73
],
[
61,
74
],
[
75,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
14,
81
],
[
81,
82
],
[
81,
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
],
[
95,
96
],
[
95,
97
],
[
88,
98
],
[
98,
99
],
[
99,
100
],
[
88,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
102,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
112,
114
],
[
14,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
119,
121
],
[
14,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
127,
128
],
[
128,
129
],
[
127,
130
],
[
8,
131
],
[
131,
132
],
[
132,
133
],
[
6,
134
],
[
134,
135
],
[
0,
136
],
[
136,
137
],
[
136,
138
]
] | [
"import java.util.Scanner;\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 double ave = 0;\n double bun = 0;\n double bunm = 0;\n if(n == 0){\n break;\n }\n int[] ten = new int[n];\n for(int i = 0; i < ten.length;i++){\n ten[i] = sc.nextInt();\n }\n for(int i = 0;i <ten.length; i++){\n ave += ten[i];\n }\n ave = ave/ten.length;\n\n for(int i = 0;i < ten.length;i++){\n bunm = ten[i] - ave;\n bun += bunm*bunm;\n }\n bun = bun/ten.length;\n System.out.println(Math.sqrt(bun));\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 double ave = 0;\n double bun = 0;\n double bunm = 0;\n if(n == 0){\n break;\n }\n int[] ten = new int[n];\n for(int i = 0; i < ten.length;i++){\n ten[i] = sc.nextInt();\n }\n for(int i = 0;i <ten.length; i++){\n ave += ten[i];\n }\n ave = ave/ten.length;\n\n for(int i = 0;i < ten.length;i++){\n bunm = ten[i] - ave;\n bun += bunm*bunm;\n }\n bun = bun/ten.length;\n System.out.println(Math.sqrt(bun));\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 double ave = 0;\n double bun = 0;\n double bunm = 0;\n if(n == 0){\n break;\n }\n int[] ten = new int[n];\n for(int i = 0; i < ten.length;i++){\n ten[i] = sc.nextInt();\n }\n for(int i = 0;i <ten.length; i++){\n ave += ten[i];\n }\n ave = ave/ten.length;\n\n for(int i = 0;i < ten.length;i++){\n bunm = ten[i] - ave;\n bun += bunm*bunm;\n }\n bun = bun/ten.length;\n System.out.println(Math.sqrt(bun));\n }\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n while(true){\n int n = sc.nextInt();\n double ave = 0;\n double bun = 0;\n double bunm = 0;\n if(n == 0){\n break;\n }\n int[] ten = new int[n];\n for(int i = 0; i < ten.length;i++){\n ten[i] = sc.nextInt();\n }\n for(int i = 0;i <ten.length; i++){\n ave += ten[i];\n }\n ave = ave/ten.length;\n\n for(int i = 0;i < ten.length;i++){\n bunm = ten[i] - ave;\n bun += bunm*bunm;\n }\n bun = bun/ten.length;\n System.out.println(Math.sqrt(bun));\n }\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while(true){\n int n = sc.nextInt();\n double ave = 0;\n double bun = 0;\n double bunm = 0;\n if(n == 0){\n break;\n }\n int[] ten = new int[n];\n for(int i = 0; i < ten.length;i++){\n ten[i] = sc.nextInt();\n }\n for(int i = 0;i <ten.length; i++){\n ave += ten[i];\n }\n ave = ave/ten.length;\n\n for(int i = 0;i < ten.length;i++){\n bunm = ten[i] - ave;\n bun += bunm*bunm;\n }\n bun = bun/ten.length;\n System.out.println(Math.sqrt(bun));\n }",
"true",
"{\n int n = sc.nextInt();\n double ave = 0;\n double bun = 0;\n double bunm = 0;\n if(n == 0){\n break;\n }\n int[] ten = new int[n];\n for(int i = 0; i < ten.length;i++){\n ten[i] = sc.nextInt();\n }\n for(int i = 0;i <ten.length; i++){\n ave += ten[i];\n }\n ave = ave/ten.length;\n\n for(int i = 0;i < ten.length;i++){\n bunm = ten[i] - ave;\n bun += bunm*bunm;\n }\n bun = bun/ten.length;\n System.out.println(Math.sqrt(bun));\n }",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double ave = 0;",
"ave",
"0",
"double bun = 0;",
"bun",
"0",
"double bunm = 0;",
"bunm",
"0",
"if(n == 0){\n break;\n }",
"n == 0",
"n",
"0",
"{\n break;\n }",
"break;",
"int[] ten = new int[n];",
"ten",
"new int[n]",
"n",
"for(int i = 0; i < ten.length;i++){\n ten[i] = sc.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < ten.length",
"i",
"ten.length",
"ten",
"ten.length",
"i++",
"i++",
"i",
"{\n ten[i] = sc.nextInt();\n }",
"{\n ten[i] = sc.nextInt();\n }",
"ten[i] = sc.nextInt()",
"ten[i]",
"ten",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0;i <ten.length; i++){\n ave += ten[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <ten.length",
"i",
"ten.length",
"ten",
"ten.length",
"i++",
"i++",
"i",
"{\n ave += ten[i];\n }",
"{\n ave += ten[i];\n }",
"ave += ten[i]",
"ave",
"ten[i]",
"ten",
"i",
"ave = ave/ten.length",
"ave",
"ave/ten.length",
"ave",
"ten.length",
"ten",
"ten.length",
"for(int i = 0;i < ten.length;i++){\n bunm = ten[i] - ave;\n bun += bunm*bunm;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < ten.length",
"i",
"ten.length",
"ten",
"ten.length",
"i++",
"i++",
"i",
"{\n bunm = ten[i] - ave;\n bun += bunm*bunm;\n }",
"{\n bunm = ten[i] - ave;\n bun += bunm*bunm;\n }",
"bunm = ten[i] - ave",
"bunm",
"ten[i] - ave",
"ten[i]",
"ten",
"i",
"ave",
"bun += bunm*bunm",
"bun",
"bunm*bunm",
"bunm",
"bunm",
"bun = bun/ten.length",
"bun",
"bun/ten.length",
"bun",
"ten.length",
"ten",
"ten.length",
"System.out.println(Math.sqrt(bun))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.sqrt(bun)",
"Math.sqrt",
"Math",
"bun",
"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 double ave = 0;\n double bun = 0;\n double bunm = 0;\n if(n == 0){\n break;\n }\n int[] ten = new int[n];\n for(int i = 0; i < ten.length;i++){\n ten[i] = sc.nextInt();\n }\n for(int i = 0;i <ten.length; i++){\n ave += ten[i];\n }\n ave = ave/ten.length;\n\n for(int i = 0;i < ten.length;i++){\n bunm = ten[i] - ave;\n bun += bunm*bunm;\n }\n bun = bun/ten.length;\n System.out.println(Math.sqrt(bun));\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 double ave = 0;\n double bun = 0;\n double bunm = 0;\n if(n == 0){\n break;\n }\n int[] ten = new int[n];\n for(int i = 0; i < ten.length;i++){\n ten[i] = sc.nextInt();\n }\n for(int i = 0;i <ten.length; i++){\n ave += ten[i];\n }\n ave = ave/ten.length;\n\n for(int i = 0;i < ten.length;i++){\n bunm = ten[i] - ave;\n bun += bunm*bunm;\n }\n bun = bun/ten.length;\n System.out.println(Math.sqrt(bun));\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();
double ave = 0;
double bun = 0;
double bunm = 0;
if(n == 0){
break;
}
int[] ten = new int[n];
for(int i = 0; i < ten.length;i++){
ten[i] = sc.nextInt();
}
for(int i = 0;i <ten.length; i++){
ave += ten[i];
}
ave = ave/ten.length;
for(int i = 0;i < ten.length;i++){
bunm = ten[i] - ave;
bun += bunm*bunm;
}
bun = bun/ten.length;
System.out.println(Math.sqrt(bun));
}
sc.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
21,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
28,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
28,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
46,
46
],
[
46,
47
],
[
46,
48
],
[
46,
49
],
[
12,
50
],
[
50,
51
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main{\n public static void main(String[] args){\n \tInputStreamReader isr = new InputStreamReader(System.in);\n \tBufferedReader br = new BufferedReader(isr);\n \ttry {\n\t\t\tString buf = br.readLine();\n\t\t\tint num = Integer.parseInt(buf);\n\t\t\tSystem.out.println(num * num * num);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\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){\n \tInputStreamReader isr = new InputStreamReader(System.in);\n \tBufferedReader br = new BufferedReader(isr);\n \ttry {\n\t\t\tString buf = br.readLine();\n\t\t\tint num = Integer.parseInt(buf);\n\t\t\tSystem.out.println(num * num * num);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n }\n}",
"Main",
"public static void main(String[] args){\n \tInputStreamReader isr = new InputStreamReader(System.in);\n \tBufferedReader br = new BufferedReader(isr);\n \ttry {\n\t\t\tString buf = br.readLine();\n\t\t\tint num = Integer.parseInt(buf);\n\t\t\tSystem.out.println(num * num * num);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n }",
"main",
"{\n \tInputStreamReader isr = new InputStreamReader(System.in);\n \tBufferedReader br = new BufferedReader(isr);\n \ttry {\n\t\t\tString buf = br.readLine();\n\t\t\tint num = Integer.parseInt(buf);\n\t\t\tSystem.out.println(num * num * num);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n }",
"InputStreamReader isr = new InputStreamReader(System.in);",
"isr",
"new InputStreamReader(System.in)",
"BufferedReader br = new BufferedReader(isr);",
"br",
"new BufferedReader(isr)",
"try {\n\t\t\tString buf = br.readLine();\n\t\t\tint num = Integer.parseInt(buf);\n\t\t\tSystem.out.println(num * num * num);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"IOException e",
"{\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\tString buf = br.readLine();\n\t\t\tint num = Integer.parseInt(buf);\n\t\t\tSystem.out.println(num * num * num);\n\t\t}",
"String buf = br.readLine();",
"buf",
"br.readLine()",
"br.readLine",
"br",
"int num = Integer.parseInt(buf);",
"num",
"Integer.parseInt(buf)",
"Integer.parseInt",
"Integer",
"buf",
"System.out.println(num * num * num)",
"System.out.println",
"System.out",
"System",
"System.out",
"num * num * num",
"num * num * num",
"num",
"num",
"num",
"String[] args",
"args"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main{
public static void main(String[] args){
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
try {
String buf = br.readLine();
int num = Integer.parseInt(buf);
System.out.println(num * num * num);
} catch (IOException e) {
e.printStackTrace();
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
25,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
6,
36
],
[
36,
37
]
] | [
"import java.io.*;\n\nclass Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n double x = Double.parseDouble(str);\n double result = Math.pow(x, 3.0);\n System.out.println((int)result);\n }\n}",
"import java.io.*;",
"io.*",
"java",
"class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n double x = Double.parseDouble(str);\n double result = Math.pow(x, 3.0);\n System.out.println((int)result);\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n double x = Double.parseDouble(str);\n double result = Math.pow(x, 3.0);\n System.out.println((int)result);\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n double x = Double.parseDouble(str);\n double result = Math.pow(x, 3.0);\n System.out.println((int)result);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str = br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"double x = Double.parseDouble(str);",
"x",
"Double.parseDouble(str)",
"Double.parseDouble",
"Double",
"str",
"double result = Math.pow(x, 3.0);",
"result",
"Math.pow(x, 3.0)",
"Math.pow",
"Math",
"x",
"3.0",
"System.out.println((int)result)",
"System.out.println",
"System.out",
"System",
"System.out",
"(int)result",
"String[] args",
"args"
] | import java.io.*;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = br.readLine();
double x = Double.parseDouble(str);
double result = Math.pow(x, 3.0);
System.out.println((int)result);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
45,
11
],
[
45,
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
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
14,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
38,
38
],
[
38,
39
],
[
38,
40
],
[
38,
41
],
[
12,
42
],
[
42,
43
],
[
0,
44
],
[
44,
45
],
[
44,
46
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main \n{\n\tpublic static void main(String arg[]) throws IOException\n\t{\n\tInputStreamReader isr = new InputStreamReader(System.in);\n\tBufferedReader br = new BufferedReader(isr);\n\tString buf = br.readLine();\n\t\n\tint x = Integer.parseInt(buf);\n\t\n\t\n\n\t\n\tSystem.out.println(x*x*x);\n\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 arg[]) throws IOException\n\t{\n\tInputStreamReader isr = new InputStreamReader(System.in);\n\tBufferedReader br = new BufferedReader(isr);\n\tString buf = br.readLine();\n\t\n\tint x = Integer.parseInt(buf);\n\t\n\t\n\n\t\n\tSystem.out.println(x*x*x);\n\t\n\t}\n}",
"Main",
"public static void main(String arg[]) throws IOException\n\t{\n\tInputStreamReader isr = new InputStreamReader(System.in);\n\tBufferedReader br = new BufferedReader(isr);\n\tString buf = br.readLine();\n\t\n\tint x = Integer.parseInt(buf);\n\t\n\t\n\n\t\n\tSystem.out.println(x*x*x);\n\t\n\t}",
"main",
"{\n\tInputStreamReader isr = new InputStreamReader(System.in);\n\tBufferedReader br = new BufferedReader(isr);\n\tString buf = br.readLine();\n\t\n\tint x = Integer.parseInt(buf);\n\t\n\t\n\n\t\n\tSystem.out.println(x*x*x);\n\t\n\t}",
"InputStreamReader isr = new InputStreamReader(System.in);",
"isr",
"new InputStreamReader(System.in)",
"BufferedReader br = new BufferedReader(isr);",
"br",
"new BufferedReader(isr)",
"String buf = br.readLine();",
"buf",
"br.readLine()",
"br.readLine",
"br",
"int x = Integer.parseInt(buf);",
"x",
"Integer.parseInt(buf)",
"Integer.parseInt",
"Integer",
"buf",
"System.out.println(x*x*x)",
"System.out.println",
"System.out",
"System",
"System.out",
"x*x*x",
"x*x*x",
"x",
"x",
"x",
"String arg[]",
"arg",
"public class Main \n{\n\tpublic static void main(String arg[]) throws IOException\n\t{\n\tInputStreamReader isr = new InputStreamReader(System.in);\n\tBufferedReader br = new BufferedReader(isr);\n\tString buf = br.readLine();\n\t\n\tint x = Integer.parseInt(buf);\n\t\n\t\n\n\t\n\tSystem.out.println(x*x*x);\n\t\n\t}\n}",
"public class Main \n{\n\tpublic static void main(String arg[]) throws IOException\n\t{\n\tInputStreamReader isr = new InputStreamReader(System.in);\n\tBufferedReader br = new BufferedReader(isr);\n\tString buf = br.readLine();\n\t\n\tint x = Integer.parseInt(buf);\n\t\n\t\n\n\t\n\tSystem.out.println(x*x*x);\n\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 arg[]) throws IOException
{
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
String buf = br.readLine();
int x = Integer.parseInt(buf);
System.out.println(x*x*x);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
20,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
60,
5
],
[
60,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
13,
15
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
16,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
16,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
35,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
53,
53
],
[
53,
54
],
[
53,
55
],
[
53,
56
],
[
6,
57
],
[
57,
58
],
[
0,
59
],
[
59,
60
],
[
59,
61
]
] | [
"import java.io.*;\n\npublic class Main{\n public static void main(String[] args){\n String line;\n int x;\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try{\n line = reader.readLine();\n x = Integer.parseInt(line);\n System.out.println(x*x*x);\n }catch(NumberFormatException e){\n System.out.println(e);\n }catch(IOException e){\n System.out.println(e);\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n public static void main(String[] args){\n String line;\n int x;\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try{\n line = reader.readLine();\n x = Integer.parseInt(line);\n System.out.println(x*x*x);\n }catch(NumberFormatException e){\n System.out.println(e);\n }catch(IOException e){\n System.out.println(e);\n }\n }\n}",
"Main",
"public static void main(String[] args){\n String line;\n int x;\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try{\n line = reader.readLine();\n x = Integer.parseInt(line);\n System.out.println(x*x*x);\n }catch(NumberFormatException e){\n System.out.println(e);\n }catch(IOException e){\n System.out.println(e);\n }\n }",
"main",
"{\n String line;\n int x;\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try{\n line = reader.readLine();\n x = Integer.parseInt(line);\n System.out.println(x*x*x);\n }catch(NumberFormatException e){\n System.out.println(e);\n }catch(IOException e){\n System.out.println(e);\n }\n }",
"String line;",
"line",
"int x;",
"x",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"try{\n line = reader.readLine();\n x = Integer.parseInt(line);\n System.out.println(x*x*x);\n }catch(NumberFormatException e){\n System.out.println(e);\n }catch(IOException e){\n System.out.println(e);\n }",
"catch(NumberFormatException e){\n System.out.println(e);\n }",
"NumberFormatException e",
"{\n System.out.println(e);\n }",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"catch(IOException e){\n System.out.println(e);\n }",
"IOException e",
"{\n System.out.println(e);\n }",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"{\n line = reader.readLine();\n x = Integer.parseInt(line);\n System.out.println(x*x*x);\n }",
"line = reader.readLine()",
"line",
"reader.readLine()",
"reader.readLine",
"reader",
"x = Integer.parseInt(line)",
"x",
"Integer.parseInt(line)",
"Integer.parseInt",
"Integer",
"line",
"System.out.println(x*x*x)",
"System.out.println",
"System.out",
"System",
"System.out",
"x*x*x",
"x*x*x",
"x",
"x",
"x",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n String line;\n int x;\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try{\n line = reader.readLine();\n x = Integer.parseInt(line);\n System.out.println(x*x*x);\n }catch(NumberFormatException e){\n System.out.println(e);\n }catch(IOException e){\n System.out.println(e);\n }\n }\n}",
"public class Main{\n public static void main(String[] args){\n String line;\n int x;\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try{\n line = reader.readLine();\n x = Integer.parseInt(line);\n System.out.println(x*x*x);\n }catch(NumberFormatException e){\n System.out.println(e);\n }catch(IOException e){\n System.out.println(e);\n }\n }\n}",
"Main"
] | import java.io.*;
public class Main{
public static void main(String[] args){
String line;
int x;
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
try{
line = reader.readLine();
x = Integer.parseInt(line);
System.out.println(x*x*x);
}catch(NumberFormatException e){
System.out.println(e);
}catch(IOException e){
System.out.println(e);
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.