結果

問題 No.1131 Deviation Score
ユーザー shi-moshi-mo
提出日時 2020-10-01 11:51:46
言語 Ruby
(3.3.0)
結果
AC  
実行時間 210 ms / 2,000 ms
コード長 127 bytes
コンパイル時間 179 ms
コンパイル使用メモリ 11,444 KB
実行使用メモリ 23,516 KB
最終ジャッジ日時 2023-09-10 12:32:17
合計ジャッジ時間 4,601 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 104 ms
16,444 KB
testcase_01 AC 81 ms
15,368 KB
testcase_02 AC 198 ms
20,388 KB
testcase_03 AC 130 ms
18,580 KB
testcase_04 AC 189 ms
20,280 KB
testcase_05 AC 119 ms
17,656 KB
testcase_06 AC 190 ms
20,480 KB
testcase_07 AC 132 ms
18,592 KB
testcase_08 AC 179 ms
20,176 KB
testcase_09 AC 116 ms
17,380 KB
testcase_10 AC 174 ms
20,240 KB
testcase_11 AC 178 ms
20,172 KB
testcase_12 AC 162 ms
19,940 KB
testcase_13 AC 192 ms
20,536 KB
testcase_14 AC 100 ms
16,224 KB
testcase_15 AC 100 ms
16,084 KB
testcase_16 AC 181 ms
20,372 KB
testcase_17 AC 119 ms
17,684 KB
testcase_18 AC 210 ms
23,516 KB
testcase_19 AC 79 ms
15,092 KB
testcase_20 AC 77 ms
15,280 KB
testcase_21 AC 80 ms
15,176 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i
x = gets.split.map(&:to_i)
a = x.inject(:+).to_f / n
x.each do |xi|
  d = (a-xi).to_f / 2
  puts (50-d).floor
end
0