結果
| 問題 | 
                            No.56 消費税
                             | 
                    
| コンテスト | |
| ユーザー | 
                             sjgq5302
                         | 
                    
| 提出日時 | 2017-07-18 22:22:18 | 
| 言語 | Ruby  (3.4.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 122 bytes | 
| コンパイル時間 | 111 ms | 
| コンパイル使用メモリ | 7,296 KB | 
| 実行使用メモリ | 12,288 KB | 
| 最終ジャッジ日時 | 2024-10-08 11:02:25 | 
| 合計ジャッジ時間 | 3,760 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 WA * 1 | 
| other | AC * 13 WA * 10 | 
コンパイルメッセージ
Syntax OK
ソースコード
input = gets.split(" ").map(&:to_f)
price = input[0]
tax = input[1]
puts (price * ((tax * 1/100).to_f + 1.to_f)).floor(0)
            
            
            
        
            
sjgq5302