結果

問題 No.858 わり算
ユーザー NagisaNagisa
提出日時 2019-08-09 22:32:06
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 239 bytes
コンパイル時間 270 ms
コンパイル使用メモリ 87,004 KB
実行使用メモリ 89,196 KB
最終ジャッジ日時 2023-09-26 20:47:24
合計ジャッジ時間 3,370 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

from decimal import *
myothercontext = Context(prec=50, rounding=ROUND_DOWN)
setcontext(myothercontext)
A, B = input().split()
S = str(Decimal(A)/Decimal(B))
if S.count(".") == 0:
    print(S+"."+"0"*50)
else:
    print(S+"0"*(52-len(S)))
0