結果

問題 No.56 消費税
ユーザー kentakenta
提出日時 2021-10-22 17:10:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 325 bytes
コンパイル時間 259 ms
コンパイル使用メモリ 11,828 KB
実行使用メモリ 10,196 KB
最終ジャッジ日時 2023-10-24 03:39:48
合計ジャッジ時間 1,942 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,004 KB
testcase_01 AC 31 ms
10,004 KB
testcase_02 AC 29 ms
10,004 KB
testcase_03 WA -
testcase_04 AC 29 ms
10,004 KB
testcase_05 AC 29 ms
10,004 KB
testcase_06 AC 29 ms
10,004 KB
testcase_07 AC 29 ms
10,004 KB
testcase_08 AC 29 ms
10,004 KB
testcase_09 AC 29 ms
10,004 KB
testcase_10 AC 29 ms
10,004 KB
testcase_11 AC 29 ms
10,004 KB
testcase_12 AC 28 ms
10,004 KB
testcase_13 AC 28 ms
10,004 KB
testcase_14 AC 28 ms
10,004 KB
testcase_15 AC 28 ms
10,004 KB
testcase_16 AC 29 ms
10,004 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

def main():
    price_tax_ratio = input()
    price_tax_ratio_list=price_tax_ratio.split(" ")
    price = int(price_tax_ratio_list[0])
    tax_ratio = int(price_tax_ratio_list[1])
    price1 = price * (1 + tax_ratio*0.01)
    price2 = math.floor(price1)
    print(price2)


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