結果

問題 No.858 わり算
ユーザー brthyyjpbrthyyjp
提出日時 2020-06-01 16:44:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 216 bytes
コンパイル時間 273 ms
コンパイル使用メモリ 87,156 KB
実行使用メモリ 71,216 KB
最終ジャッジ日時 2023-08-14 05:12:38
合計ジャッジ時間 1,835 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,216 KB
testcase_01 AC 72 ms
71,156 KB
testcase_02 AC 72 ms
70,884 KB
testcase_03 AC 72 ms
71,128 KB
testcase_04 AC 71 ms
70,816 KB
testcase_05 AC 71 ms
70,880 KB
testcase_06 AC 73 ms
70,824 KB
testcase_07 AC 74 ms
70,820 KB
testcase_08 AC 72 ms
70,964 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b = map(int, input().split())
q = (a*10**50)//b
q = str(q)
if len(q) <= 50:
    q = '0'*(50-len(q))+q
    ans = '0'+ '.' + q[len(q)-50:len(q)]
else:
    ans = q[0:len(q)-50] + '.' + q[len(q)-50:len(q)]
print(ans)
0