結果

問題 No.191 供託金
ユーザー what_alnk
提出日時 2015-09-01 19:56:37
言語 Ruby
(3.4.1)
結果
AC  
実行時間 85 ms / 5,000 ms
コード長 154 bytes
コンパイル時間 48 ms
コンパイル使用メモリ 7,296 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2024-11-16 21:35:47
合計ジャッジ時間 2,890 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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.inject(:+) / 10
res = 0
c.each do |cc|
  if cc <= a then
    res += 1
  end
end
p res * 30
0