結果

問題 No.191 供託金
ユーザー fine
提出日時 2015-10-11 21:09:24
言語 Ruby
(3.4.1)
結果
AC  
実行時間 79 ms / 5,000 ms
コード長 172 bytes
コンパイル時間 46 ms
コンパイル使用メモリ 7,296 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2024-11-16 21:40:40
合計ジャッジ時間 2,930 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

n = gets.to_i
c = gets.chomp.split(" ").map(&:to_f)
sum = 0
c.each{|v|
    sum += v
}
count = 0
c.each{|v|
    if v <= sum / 10
        count += 1
    end
}
puts 30 * count
0