結果
| 問題 | No.56 消費税 |
| コンテスト | |
| ユーザー |
kenta
|
| 提出日時 | 2021-10-22 17:10:43 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 325 bytes |
| 記録 | |
| コンパイル時間 | 331 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-04-11 02:59:04 |
| 合計ジャッジ時間 | 4,123 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 13 WA * 10 |
ソースコード
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()
kenta