結果

問題 No.56 消費税
ユーザー TakashinaInHub
提出日時 2016-01-27 22:57:37
言語 Ruby
(3.4.1)
結果
WA  
実行時間 -
コード長 85 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2024-09-21 17:42:41
合計ジャッジ時間 3,187 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 4
other WA * 23
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - price
Main.rb:1: warning: assigned but unused variable - tax
Syntax OK

ソースコード

diff #

price, tax = gets.chomp.split(" ").map &:to_i
puts "(price * (1*tax.to_f/100)).floor"
0