結果

問題 No.191 供託金
ユーザー mesh1nek0x0mesh1nek0x0
提出日時 2018-07-06 23:40:04
言語 Ruby
(3.4.1)
結果
AC  
実行時間 89 ms / 5,000 ms
コード長 226 bytes
コンパイル時間 196 ms
コンパイル使用メモリ 7,296 KB
実行使用メモリ 12,160 KB
最終ジャッジ日時 2024-07-01 02:58:14
合計ジャッジ時間 3,626 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

#!/bin/ruby
N = gets.chomp.to_i
C = gets.chomp.split(' ')

tmp = []
C.each { |e| tmp.push(e.to_f) }

threthold = tmp.sum / 10.0

out = 0
tmp.count.times do |num|
  if tmp[num] <= threthold
    out += 1
  end
end

puts 30 * out
0