結果

問題 No.56 消費税
ユーザー zeroyonichihachizeroyonichihachi
提出日時 2016-09-28 16:10:46
言語 Ruby
(3.3.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 104 bytes
コンパイル時間 226 ms
コンパイル使用メモリ 11,484 KB
実行使用メモリ 15,476 KB
最終ジャッジ日時 2023-09-25 03:40:39
合計ジャッジ時間 3,698 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,368 KB
testcase_01 AC 82 ms
15,260 KB
testcase_02 AC 82 ms
15,184 KB
testcase_03 AC 83 ms
15,424 KB
testcase_04 AC 82 ms
15,416 KB
testcase_05 AC 82 ms
15,272 KB
testcase_06 AC 82 ms
15,256 KB
testcase_07 AC 81 ms
15,160 KB
testcase_08 AC 83 ms
15,220 KB
testcase_09 AC 82 ms
15,252 KB
testcase_10 AC 83 ms
15,316 KB
testcase_11 AC 82 ms
15,276 KB
testcase_12 AC 82 ms
15,236 KB
testcase_13 AC 83 ms
15,408 KB
testcase_14 AC 81 ms
15,420 KB
testcase_15 AC 82 ms
15,432 KB
testcase_16 AC 83 ms
15,324 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 82 ms
15,232 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 83 ms
15,252 KB
testcase_25 AC 82 ms
15,296 KB
testcase_26 AC 82 ms
15,196 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

require "bigdecimal"

d, tax = gets.split(" ").map(&:to_i)

p (BigDecimal(d) * (1 + tax / 100.0)).floor
0