結果

問題 No.858 わり算
ユーザー ThetaTheta
提出日時 2022-10-19 13:20:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 293 bytes
コンパイル時間 238 ms
コンパイル使用メモリ 10,716 KB
実行使用メモリ 9,076 KB
最終ジャッジ日時 2023-09-12 03:15:19
合計ジャッジ時間 1,223 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

from decimal import ROUND_DOWN, Decimal, Context, setcontext


def main():
    context = Context(prec=50, rounding=ROUND_DOWN)
    setcontext(context)
    A, B = map(int, input().split())
    result = Decimal(A) / Decimal(B)
    print(f"{result:.50f}")


if __name__ == "__main__":
    main()
0