結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,676 KB
testcase_01 AC 118 ms
21,308 KB
testcase_02 AC 110 ms
19,648 KB
testcase_03 AC 114 ms
20,624 KB
testcase_04 AC 104 ms
17,612 KB
testcase_05 AC 119 ms
21,520 KB
testcase_06 AC 92 ms
17,068 KB
testcase_07 AC 89 ms
16,560 KB
testcase_08 AC 115 ms
20,340 KB
testcase_09 AC 87 ms
16,076 KB
testcase_10 AC 81 ms
15,568 KB
testcase_11 AC 108 ms
19,456 KB
testcase_12 AC 108 ms
19,456 KB
testcase_13 AC 129 ms
21,972 KB
testcase_14 AC 110 ms
19,460 KB
testcase_15 AC 99 ms
18,032 KB
testcase_16 AC 88 ms
16,632 KB
testcase_17 AC 106 ms
19,424 KB
testcase_18 AC 108 ms
19,756 KB
testcase_19 AC 113 ms
20,796 KB
testcase_20 AC 105 ms
18,476 KB
testcase_21 AC 119 ms
20,716 KB
testcase_22 AC 114 ms
20,232 KB
testcase_23 AC 81 ms
15,192 KB
testcase_24 AC 82 ms
15,180 KB
testcase_25 AC 86 ms
15,980 KB
testcase_26 AC 132 ms
22,600 KB
testcase_27 AC 86 ms
15,424 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)+1e-9
p z<0?-(-z).floor: z.floor
0