結果

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

ソースコード

diff #

n = gets.to_i
cs = gets.split(' ').map(&:to_i)
threshold = cs.inject(&:+) / 10
puts cs.select{|c|c <= threshold}.size * 30
0