結果

問題 No.858 わり算
ユーザー ak0327
提出日時 2020-09-24 22:11:16
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 28 ms / 2,000 ms
コード長 182 bytes
コンパイル時間 147 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 10,240 KB
最終ジャッジ日時 2025-01-07 14:55:04
合計ジャッジ時間 980 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b = map(int, input().split())

ans_int = str(a//b)
ans_mod = ''
mod = a%b*10

while len(ans_mod) < 50:
    ans_mod += str(mod//b)
    mod = mod%b*10

print(f'{ans_int}.{ans_mod}')
0