結果

問題 No.858 わり算
ユーザー seiyuseiyu
提出日時 2020-10-20 00:29:33
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 211 bytes
コンパイル時間 309 ms
コンパイル使用メモリ 87,180 KB
実行使用メモリ 91,868 KB
最終ジャッジ日時 2023-09-28 13:31:14
合計ジャッジ時間 3,389 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 RE -
testcase_02 AC 230 ms
88,824 KB
testcase_03 RE -
testcase_04 WA -
testcase_05 AC 231 ms
89,100 KB
testcase_06 RE -
testcase_07 WA -
testcase_08 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import *
getcontext().prec = 51
a,b =(x for x in input().split())
a = Decimal(a)
b = Decimal(b)

ans1 = str(a / b).split('.')[0]
ans2 = str(a / b).split('.')[1][0:50]

print(ans1 + '.' + ans2)





0