結果
問題 | No.191 供託金 |
ユーザー | Takuya Noguchi |
提出日時 | 2018-03-01 22:43:56 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 197 ms / 5,000 ms |
コード長 | 151 bytes |
コンパイル時間 | 460 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-12-26 00:50:11 |
合計ジャッジ時間 | 5,217 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
コンパイルメッセージ
Syntax OK
ソースコード
N = gets.to_i c = gets.split.map(&:to_i) deposit_money = 30 threshold = c.inject(&:+) / 10 puts c.select { |_c| _c <= threshold }.size * deposit_money