結果

問題 No.858 わり算
ユーザー i_am_nicolen_22i_am_nicolen_22
提出日時 2019-08-09 21:43:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 410 bytes
コンパイル時間 995 ms
コンパイル使用メモリ 10,544 KB
実行使用メモリ 9,024 KB
最終ジャッジ日時 2023-09-26 17:36:57
合計ジャッジ時間 1,339 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

a,b=map(int,input().split())
from decimal import Decimal, getcontext,ROUND_DOWN

# デフォルトでは少数28桁まで保持する.
#Decimal(1) / Decimal(7) # Decimal('0.1428571428571428571428571429')

# 精度を指定することもできる(以下では少数第3位まで).
getcontext().prec = 51
getcontext().rounding = ROUND_DOWN
print('{:.50f}'.format(Decimal(a) / Decimal(b))) # Decimal('0.143')
0