結果
問題 |
No.191 供託金
|
ユーザー |
|
提出日時 | 2017-11-03 10:02:03 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 89 ms / 5,000 ms |
コード長 | 181 bytes |
コンパイル時間 | 93 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-11-22 15:19:17 |
合計ジャッジ時間 | 3,355 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - test_case Syntax OK
ソースコード
test_case = gets.chomp.to_i list = gets.chomp.split.map(&:to_i) confiscation = list.inject{|sum, n| sum + n} / 10 target = list.select{|i| i <= confiscation}.count puts target * 30