题号:NC226648
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld
题目描述
According to Wikipedia, standard deviation is a number used to tell how measurements for a group are spread out from the average (mean or expected value). A low standard deviation means that most of the numbers are close to the average, while a high standard deviation means that the numbers are more spread out. For this problem, you will read in 10 temperature values and use the standard deviation to determine if values are close to the mean temperature. The formula for calculating the standard deviation is:
输入描述:
Input consists of a single line containing 10 space separated floating point values representing the temperature values to check. Each temperature value, t1 .. t10 will be in the range (68 <= t <= 80)
输出描述:
The output consists of a single line that has the string COMFY if the standard deviation of the input values is <= 1.0 or NOT COMFY if the standard deviation of the input values is > 1.0
示例1
输入
复制
79 78 78 79 79 77 78 78 77 78
示例2
输入
复制
68.2 68 69.0004 68 69.8 70.123
72 73.10009 74 75.0
说明
Note: The Sample Input for Sample 2 is one single line. It is wrapped to two lines above so it fits in
the table