結果

問題 No.56 消費税
ユーザー mahiromahiro
提出日時 2020-01-11 17:59:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 217 ms / 5,000 ms
コード長 166 bytes
コンパイル時間 1,141 ms
コンパイル使用メモリ 86,956 KB
実行使用メモリ 89,152 KB
最終ジャッジ日時 2023-08-16 16:14:00
合計ジャッジ時間 7,817 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 216 ms
89,012 KB
testcase_01 AC 214 ms
89,044 KB
testcase_02 AC 213 ms
88,788 KB
testcase_03 AC 213 ms
89,088 KB
testcase_04 AC 215 ms
89,004 KB
testcase_05 AC 215 ms
88,964 KB
testcase_06 AC 213 ms
88,816 KB
testcase_07 AC 212 ms
88,848 KB
testcase_08 AC 213 ms
88,880 KB
testcase_09 AC 214 ms
89,008 KB
testcase_10 AC 213 ms
88,920 KB
testcase_11 AC 213 ms
89,068 KB
testcase_12 AC 215 ms
88,820 KB
testcase_13 AC 217 ms
88,840 KB
testcase_14 AC 216 ms
88,964 KB
testcase_15 AC 216 ms
88,928 KB
testcase_16 AC 213 ms
88,696 KB
testcase_17 AC 215 ms
89,060 KB
testcase_18 AC 213 ms
89,044 KB
testcase_19 AC 214 ms
88,832 KB
testcase_20 AC 214 ms
88,876 KB
testcase_21 AC 215 ms
89,024 KB
testcase_22 AC 213 ms
88,812 KB
testcase_23 AC 211 ms
88,836 KB
testcase_24 AC 213 ms
88,792 KB
testcase_25 AC 214 ms
88,796 KB
testcase_26 AC 214 ms
89,152 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import decimal

price, tax_rate = [decimal.Decimal(i) for i in input().split()]
ans = int(price * (decimal.Decimal(1) + tax_rate * decimal.Decimal(0.01)))
print(ans)
0