Problem 2741 --Math Functions - Standard Deviation

2741: Math Functions - Standard Deviation

"
Time Limit $1$ 秒/Second(s) Memory Limit $512$ 兆字节/Megabyte(s)
提交总数 $8$ 正确数量 $8$
裁判形式 特别裁判/Special Judge 我的状态 尚未尝试
难度 分类标签 STL

Standard Deviation 

You have final scores of an examination for n students. Calculate standard deviation of the scores s1, s2 ... sn. 

The variance α^2 is defined by 

where m is an average of si. The standard deviation of the scores is the square root of their variance.

The input consists of multiple datasets. Each dataset is given in the following format: 

s1 s2 ... sn 

The input ends with single zero for n.

For each dataset, print the standard deviation in a line. The output should not contain an absolute error greater than 10^-4.
5
70 80 100 90 20
3
80 80 80
0
27.85677655
0.00000000
n ≤ 1000 0 ≤ si ≤ 100

推荐代码 查看2741 所有题解 上传题解视频得图灵币

本题记录 用 户(点击查看用户) 运行号(点击购买题解) 时 间
算法最快[$0 $ms] 请问一下安科怎么走 449808 2019-07-29 14:59:50
内存最少[$2032 $KB] 请问一下安科怎么走 449808 2019-07-29 14:59:50
第一AC AOJ大管家 332790 2018-11-27 23:14:53
第一挑战 AOJ大管家 332790 2018-11-27 23:14:53

赛题来源/所属竞赛 会津大学《C++ Programming I》 C++程序设计(入门)

竞赛编号 竞赛名称 竞赛时间 访问比赛