結果

問題 No.56 消費税
ユーザー yuruhuwaRubyyuruhuwaRuby
提出日時 2016-05-30 22:48:05
言語 Ruby
(3.4.1)
結果
AC  
実行時間 86 ms / 5,000 ms
コード長 112 bytes
コンパイル時間 189 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2024-07-18 03:13:25
合計ジャッジ時間 2,955 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 23
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:2: warning: `*' after local variable or literal is interpreted as binary operator
Main.rb:2: warning: even though it seems like argument prefix
Syntax OK

ソースコード

diff #

money,tax = gets.split.map(&:to_i)
consumption_tax = money * tax *0.01
sum = money + consumption_tax

p sum.to_i
0