結果

問題 No.56 消費税
ユーザー higashihigashi
提出日時 2022-12-28 13:32:59
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 234 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 10,668 KB
実行使用メモリ 9,276 KB
最終ジャッジ日時 2023-08-15 08:19:36
合計ジャッジ時間 1,943 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
9,268 KB
testcase_01 AC 21 ms
9,196 KB
testcase_02 AC 21 ms
9,276 KB
testcase_03 AC 21 ms
9,196 KB
testcase_04 AC 21 ms
9,208 KB
testcase_05 AC 21 ms
9,124 KB
testcase_06 AC 21 ms
9,096 KB
testcase_07 AC 21 ms
9,224 KB
testcase_08 AC 21 ms
9,088 KB
testcase_09 AC 21 ms
9,140 KB
testcase_10 AC 21 ms
9,100 KB
testcase_11 AC 21 ms
9,104 KB
testcase_12 AC 21 ms
9,192 KB
testcase_13 AC 21 ms
9,096 KB
testcase_14 AC 21 ms
9,048 KB
testcase_15 AC 21 ms
9,128 KB
testcase_16 AC 21 ms
9,272 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 21 ms
9,268 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 21 ms
9,192 KB
testcase_25 AC 21 ms
9,136 KB
testcase_26 AC 21 ms
9,096 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
import decimal

def main():
    d, p = map(int, input().split())
    tax = decimal.Decimal(str(1 + (p / 100)))
    price = decimal.Decimal(str(d * tax))
    print(math.floor(price))


if __name__ == '__main__':
    main()
0