結果

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

ソースコード

diff #

A,B=map(int,input().split())
lim = 499
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