結果

問題 No.858 わり算
ユーザー .
提出日時 2019-08-09 21:47:55
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 238 bytes
コンパイル時間 307 ms
コンパイル使用メモリ 82,892 KB
実行使用メモリ 80,720 KB
最終ジャッジ日時 2024-07-19 11:36:05
合計ジャッジ時間 1,770 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 2 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import decimal
decimal.getcontext().prec = 51
a,b=map(float,input().split())
a=decimal.Decimal(a)
b=decimal.Decimal(b)
s=str(decimal.Decimal(a/b))
if len(s)>=53:
    print(s[:len(s)-1])
else:
    s=float(s)
    print("{:.50f}".format(s))
0