結果

問題 No.858 わり算
ユーザー cotton_fn_cotton_fn_
提出日時 2019-08-09 22:26:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 191 bytes
コンパイル時間 106 ms
コンパイル使用メモリ 10,632 KB
実行使用メモリ 8,996 KB
最終ジャッジ日時 2023-09-26 18:33:21
合計ジャッジ時間 1,126 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
8,996 KB
testcase_01 AC 21 ms
8,968 KB
testcase_02 AC 22 ms
8,804 KB
testcase_03 AC 21 ms
8,988 KB
testcase_04 AC 20 ms
8,916 KB
testcase_05 AC 21 ms
8,816 KB
testcase_06 AC 21 ms
8,900 KB
testcase_07 WA -
testcase_08 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import *

a, b = map(int, input().split())

ctx = getcontext()
ctx.prec = 1000
ctx.rounding = ROUND_FLOOR

y = Decimal(a) / Decimal(b)
print(y.quantize(Decimal('1.' + '0' * 50)))
0