結果

問題 No.858 わり算
ユーザー s_shoheis_shohei
提出日時 2020-04-15 23:26:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 36 ms / 2,000 ms
コード長 172 bytes
コンパイル時間 343 ms
コンパイル使用メモリ 82,464 KB
実行使用メモリ 53,204 KB
最終ジャッジ日時 2024-04-09 19:04:48
合計ジャッジ時間 1,298 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
52,464 KB
testcase_01 AC 35 ms
52,156 KB
testcase_02 AC 35 ms
52,472 KB
testcase_03 AC 35 ms
53,084 KB
testcase_04 AC 35 ms
52,608 KB
testcase_05 AC 34 ms
52,000 KB
testcase_06 AC 34 ms
52,488 KB
testcase_07 AC 34 ms
52,824 KB
testcase_08 AC 34 ms
53,204 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

dot = a//b
a = a - dot*b
print(str(dot)+".",end="")

for i in range(50):
    a*=10
    nxt=a//b
    a-=nxt*b
    print(nxt,end="")

print()
0