結果

問題 No.858 わり算
ユーザー r_ishida
提出日時 2020-02-05 10:51:30
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 31 ms / 2,000 ms
コード長 195 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 12,032 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2025-01-07 14:53:20
合計ジャッジ時間 949 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

import decimal
decimal.getcontext().prec = 50
a, b = map(int, input().split())
x, y = divmod(a, b)
ans = str(x)+'.'
for i in range(0, 50):
    x, y = divmod(y*10, b)
    ans += str(x)
print(ans)
0