結果

問題 No.858 わり算
ユーザー 👑 KazunKazun
提出日時 2021-07-22 01:39:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 139 bytes
コンパイル時間 787 ms
コンパイル使用メモリ 87,012 KB
実行使用メモリ 71,312 KB
最終ジャッジ日時 2023-09-24 13:46:46
合計ジャッジ時間 2,155 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
71,276 KB
testcase_01 AC 76 ms
70,964 KB
testcase_02 AC 76 ms
71,276 KB
testcase_03 AC 75 ms
71,268 KB
testcase_04 AC 75 ms
70,972 KB
testcase_05 AC 78 ms
71,312 KB
testcase_06 AC 77 ms
71,012 KB
testcase_07 AC 77 ms
70,972 KB
testcase_08 AC 76 ms
71,104 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B=map(int,input().split())

Q,r=divmod(A,B)
X=[]
for _ in range(60):
    q,r=divmod(10*r,B)
    X.append(q)

print(Q,".",*X[:50],sep="")
0