結果

問題 No.858 わり算
ユーザー pofpof
提出日時 2020-01-15 22:58:59
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 186 bytes
コンパイル時間 359 ms
コンパイル使用メモリ 10,668 KB
実行使用メモリ 9,052 KB
最終ジャッジ日時 2023-09-02 22:15:38
合計ジャッジ時間 1,431 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

from decimal import *
getcontext().prec= 51
a,b = map(int,input().split())
r = Decimal(a) / Decimal(b)
c = r.quantize(Decimal(str("0." +  "0"*49 + "1"))  , rounding=ROUND_FLOOR)
print(c)
0