結果

問題 No.858 わり算
ユーザー cotton_fn_cotton_fn_
提出日時 2019-08-09 22:30:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 209 bytes
コンパイル時間 103 ms
コンパイル使用メモリ 10,512 KB
実行使用メモリ 9,020 KB
最終ジャッジ日時 2023-09-26 19:12:15
合計ジャッジ時間 928 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
8,916 KB
testcase_01 AC 20 ms
8,812 KB
testcase_02 AC 21 ms
8,996 KB
testcase_03 AC 21 ms
8,972 KB
testcase_04 AC 21 ms
8,916 KB
testcase_05 AC 21 ms
9,008 KB
testcase_06 AC 21 ms
9,004 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
ctx.Emin = -10000

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