結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 21 ms
9,028 KB
testcase_02 AC 21 ms
8,888 KB
testcase_03 AC 22 ms
9,028 KB
testcase_04 WA -
testcase_05 AC 22 ms
8,824 KB
testcase_06 AC 21 ms
8,916 KB
testcase_07 AC 21 ms
9,044 KB
testcase_08 AC 22 ms
8,884 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 = 50
getcontext().rounding = ROUND_DOWN
print('{:.50f}'.format(Decimal(a) / Decimal(b))) # Decimal('0.143')
0