結果

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

テストケース

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

ソースコード

diff #

from decimal import *

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

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

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