結果
| 問題 | No.285 消費税2 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-12-06 14:33:19 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 21 ms / 2,000 ms |
| + 596µs | |
| コード長 | 351 bytes |
| 記録 | |
| コンパイル時間 | 55 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-09-15 10:17:52 |
| 合計ジャッジ時間 | 2,696 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 26 |
ソースコード
def main():
D = int(input())
tax_plus = D*108
match len(str(tax_plus)):
case 1:
tax_plus = "0.0" + str(tax_plus)
case 2:
tax_plus = "0." + str(tax_plus)
case _:
tax_plus = str(tax_plus)[:-2] + "." + str(tax_plus)[-2:]
print(tax_plus)
if __name__ == "__main__":
main()