結果

問題 No.858 わり算
ユーザー 👑 H20H20
提出日時 2021-06-16 09:15:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 211 ms / 2,000 ms
コード長 242 bytes
コンパイル時間 274 ms
コンパイル使用メモリ 87,288 KB
実行使用メモリ 89,252 KB
最終ジャッジ日時 2023-08-28 16:33:24
合計ジャッジ時間 3,260 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 204 ms
89,120 KB
testcase_01 AC 209 ms
88,944 KB
testcase_02 AC 209 ms
89,252 KB
testcase_03 AC 207 ms
89,168 KB
testcase_04 AC 206 ms
88,920 KB
testcase_05 AC 209 ms
89,096 KB
testcase_06 AC 209 ms
89,164 KB
testcase_07 AC 211 ms
89,024 KB
testcase_08 AC 208 ms
88,888 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import Decimal, getcontext, ROUND_DOWN
getcontext().prec = 1000
A,B = map(int,input().split())
A = Decimal(A)
B = Decimal(B)
kiri = '0.'+'0'*49+'1'
print('{:.50f}'.format(Decimal(A/B).quantize(Decimal(kiri),rounding=ROUND_DOWN)))
0