結果

問題 No.56 消費税
ユーザー higashihigashi
提出日時 2022-12-28 13:32:59
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 234 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 11,264 KB
最終ジャッジ日時 2024-05-02 20:07:08
合計ジャッジ時間 2,106 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
11,264 KB
testcase_01 AC 34 ms
11,264 KB
testcase_02 AC 32 ms
11,264 KB
testcase_03 AC 34 ms
11,264 KB
testcase_04 AC 35 ms
11,264 KB
testcase_05 AC 35 ms
11,264 KB
testcase_06 AC 33 ms
11,136 KB
testcase_07 AC 33 ms
11,264 KB
testcase_08 AC 36 ms
11,264 KB
testcase_09 AC 33 ms
11,264 KB
testcase_10 AC 35 ms
11,264 KB
testcase_11 AC 34 ms
11,264 KB
testcase_12 AC 34 ms
11,264 KB
testcase_13 AC 35 ms
11,264 KB
testcase_14 AC 35 ms
11,264 KB
testcase_15 AC 34 ms
11,264 KB
testcase_16 AC 35 ms
11,264 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 33 ms
11,264 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 33 ms
11,264 KB
testcase_25 AC 34 ms
11,264 KB
testcase_26 AC 34 ms
11,264 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