Logo
(追記) (追記ここまで)

21301번 - Comfy Deviations 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 512 MB20515614177.901%

문제

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:

$$s_t = \sqrt{\frac{\sum_{i=1}^{n}{(t_i-\overline{t})^2}}{n-1}}$$

  • $s_t$ = Standard deviation of temperature values
  • $n$ = The number of data points (10 in this case)
  • $t_i$ = Each of the input temperature values
  • $\overline{t}$ = The average (mean) of all 10 input values.

입력

Input consists of a single line containing 10 space separated floating point values representing the temperature values to check.

Each temperature value, $t_1 \dots t_{10}$ will be in the range (68ドル \le t \le 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

예제 출력 1

COMFY

예제 입력 2

68.2 68 69.0004 68 69.8 70.123 72 73.10009 74 75.0

예제 출력 2

NOT COMFY

힌트

출처

ICPC > Regionals > North America > Greater New York Region > 2020 Greater New York Programming Contest B번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /