結果

問題 No.858 わり算
ユーザー convexineqconvexineq
提出日時 2021-04-04 10:37:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 150 bytes
コンパイル時間 293 ms
コンパイル使用メモリ 87,224 KB
実行使用メモリ 71,592 KB
最終ジャッジ日時 2023-08-27 06:15:05
合計ジャッジ時間 1,578 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,364 KB
testcase_01 AC 64 ms
71,592 KB
testcase_02 AC 67 ms
71,416 KB
testcase_03 AC 67 ms
71,224 KB
testcase_04 AC 67 ms
71,372 KB
testcase_05 AC 67 ms
71,468 KB
testcase_06 AC 67 ms
71,588 KB
testcase_07 AC 66 ms
71,304 KB
testcase_08 AC 66 ms
71,364 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b = map(int, input().split())
p,q = divmod(a,b)
s = [str(p),"."]
for _ in range(50):
    p,q = divmod(q*10,b)
    s.append(str(p))
print("".join(s))
0