結果

問題 No.1134 Deviation Score Ⅱ
ユーザー 👑 hos.lyrichos.lyric
提出日時 2020-07-30 02:55:02
言語 Ruby
(3.2.2)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 144 bytes
コンパイル時間 53 ms
コンパイル使用メモリ 11,548 KB
実行使用メモリ 22,652 KB
最終ジャッジ日時 2023-09-13 20:49:52
合計ジャッジ時間 4,222 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
15,496 KB
testcase_01 AC 118 ms
21,252 KB
testcase_02 AC 108 ms
19,692 KB
testcase_03 AC 114 ms
20,580 KB
testcase_04 AC 98 ms
17,468 KB
testcase_05 AC 117 ms
21,272 KB
testcase_06 AC 90 ms
16,872 KB
testcase_07 AC 87 ms
16,472 KB
testcase_08 AC 110 ms
20,428 KB
testcase_09 AC 84 ms
16,264 KB
testcase_10 AC 81 ms
15,736 KB
testcase_11 AC 107 ms
19,504 KB
testcase_12 AC 106 ms
19,224 KB
testcase_13 AC 128 ms
21,988 KB
testcase_14 AC 104 ms
19,632 KB
testcase_15 AC 100 ms
17,872 KB
testcase_16 AC 88 ms
16,544 KB
testcase_17 AC 105 ms
19,412 KB
testcase_18 AC 107 ms
19,728 KB
testcase_19 AC 115 ms
21,000 KB
testcase_20 AC 99 ms
18,344 KB
testcase_21 AC 110 ms
20,848 KB
testcase_22 AC 108 ms
20,412 KB
testcase_23 AC 77 ms
15,484 KB
testcase_24 AC 82 ms
15,464 KB
testcase_25 AC 86 ms
15,824 KB
testcase_26 AC 129 ms
22,652 KB
testcase_27 AC 79 ms
15,432 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n=gets.to_i
x=gets.split.map &:to_f
m=x.sum/n
s=(x.map{|y|(y-m)**2}.sum/n)**0.5
z=50+10*(x[gets.to_i-1]-m)/(s>0? s:1)
p z<0?-(-z).floor: z.floor
0