結果
| 問題 | No.586 ダブルブッキング | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2017-11-04 16:39:59 | 
| 言語 | Ruby (3.4.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 89 ms / 2,000 ms | 
| コード長 | 187 bytes | 
| コンパイル時間 | 89 ms | 
| コンパイル使用メモリ | 7,296 KB | 
| 実行使用メモリ | 12,288 KB | 
| 最終ジャッジ日時 | 2024-11-23 17:55:51 | 
| 合計ジャッジ時間 | 1,335 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 5 | 
コンパイルメッセージ
Main.rb:6: warning: possibly useless use of .. in void context Syntax OK
ソースコード
hotel1 = gets.chomp.to_i
hotel2 = gets.chomp.to_i
room = gets.chomp.to_i
list = Array.new
0..room.times{list << gets.chomp.to_i}
puts (list.length - list.uniq.length) * (hotel1 + hotel2)
            
            
            
        