結果

問題 No.858 わり算
ユーザー QCFiumQCFium
提出日時 2019-08-09 21:41:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 219 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 10,652 KB
実行使用メモリ 7,944 KB
最終ジャッジ日時 2023-09-26 17:33:59
合計ジャッジ時間 910 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 17 ms
7,784 KB
testcase_02 AC 17 ms
7,768 KB
testcase_03 AC 16 ms
7,788 KB
testcase_04 WA -
testcase_05 AC 20 ms
7,944 KB
testcase_06 AC 16 ms
7,892 KB
testcase_07 AC 16 ms
7,808 KB
testcase_08 AC 16 ms
7,804 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import os

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

v = str(a * (10**61) // b)

pos = len(v)
pos -= 61
if pos <= 0:
	v = "0." + ("0" * -pos) + v[:50 + pos]
else:
	v = v[:pos] + "." + v[pos + 1:pos + 51]
	

print(v)
0