結果

問題 No.3356 A÷B問題
コンテスト
ユーザー nikoro256
提出日時 2025-11-14 21:51:49
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 307 bytes
コンパイル時間 164 ms
コンパイル使用メモリ 82,708 KB
実行使用メモリ 56,716 KB
最終ジャッジ日時 2025-11-14 21:51:53
合計ジャッジ時間 2,712 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 34 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B=map(int,input().split())
lim = 495
d = 10**lim
ans=A*d//B
ansf = []
for i in range(lim-2):
    ansf.append(abs(ans)//(1000*(10**i))%10)
ansf = ansf[::-1]
if ans < 0:
    print("-"+str(ansf[0])+"."+"".join([str(x) for x in ansf[1:]]))
else:
    print(str(ansf[0])+"."+"".join([str(x) for x in ansf[1:]]))
0