結果

問題 No.191 供託金
ユーザー wonda_t_coffee
提出日時 2020-01-28 23:59:57
言語 Ruby
(3.4.1)
結果
AC  
実行時間 91 ms / 5,000 ms
コード長 137 bytes
コンパイル時間 397 ms
コンパイル使用メモリ 7,168 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2024-09-15 16:30:08
合計ジャッジ時間 3,413 ms
ジャッジサーバーID
(参考情報)
judge6 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

n = gets.chomp.to_i
c = gets.chomp.split.map(&:to_i)
a = c.sum / 10.to_f
cnt = 0
c.select do |ci|
  cnt += 1 if ci <= a
end
puts 30 * cnt
0