結果

問題 No.858 わり算
ユーザー alcoholampalcoholamp
提出日時 2019-10-18 15:16:34
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 23 ms / 2,000 ms
コード長 312 bytes
コンパイル時間 73 ms
コンパイル使用メモリ 10,676 KB
実行使用メモリ 9,040 KB
最終ジャッジ日時 2023-09-07 20:42:39
合計ジャッジ時間 879 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

from decimal import *

class Problem0858:
    def solve(this):
        a, b = map(int, input().split())
        getcontext().prec = 100
        getcontext().rounding = ROUND_DOWN
        print("{:.50f}".format(Decimal(a) / Decimal(b)))

if __name__ == "__main__":
    problem = Problem0858()
    problem.solve()
0