結果

問題 No.1131 Deviation Score
ユーザー masashi0217masashi0217
提出日時 2020-08-02 13:49:13
言語 Ruby
(3.3.0)
結果
AC  
実行時間 203 ms / 2,000 ms
コード長 141 bytes
コンパイル時間 242 ms
コンパイル使用メモリ 11,260 KB
実行使用メモリ 23,768 KB
最終ジャッジ日時 2023-09-10 12:23:23
合計ジャッジ時間 4,594 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 108 ms
16,332 KB
testcase_01 AC 83 ms
15,292 KB
testcase_02 AC 185 ms
20,540 KB
testcase_03 AC 130 ms
18,572 KB
testcase_04 AC 176 ms
20,372 KB
testcase_05 AC 119 ms
17,536 KB
testcase_06 AC 183 ms
20,696 KB
testcase_07 AC 131 ms
18,664 KB
testcase_08 AC 170 ms
20,456 KB
testcase_09 AC 114 ms
17,512 KB
testcase_10 AC 167 ms
20,160 KB
testcase_11 AC 169 ms
20,260 KB
testcase_12 AC 157 ms
20,316 KB
testcase_13 AC 184 ms
20,580 KB
testcase_14 AC 99 ms
16,340 KB
testcase_15 AC 102 ms
16,116 KB
testcase_16 AC 174 ms
20,324 KB
testcase_17 AC 119 ms
17,504 KB
testcase_18 AC 203 ms
23,768 KB
testcase_19 AC 82 ms
15,160 KB
testcase_20 AC 82 ms
15,064 KB
testcase_21 AC 81 ms
15,116 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:4: warning: assigned but unused variable - heikin
Syntax OK

ソースコード

diff #

n = gets.to_i
x = gets.chomp.split(" ").map(&:to_i)
a = x.inject(:+)
heikin = a / n
x.each do |i|
    puts (100* n - a + i * n) / (2 * n)
end
0