結果

問題 No.219 巨大数の概算
ユーザー 37kt_
提出日時 2016-01-12 21:49:02
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 128 ms / 1,500 ms
コード長 209 bytes
コンパイル時間 114 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,392 KB
最終ジャッジ日時 2024-07-18 11:54:44
合計ジャッジ時間 8,351 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 51
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import *
from math import *

n = int(input())
for i in range(n):
	a, b = map(float, input().split())
	y = floor(b * log10(a))
	x = "{0:.6f}".format(10 ** (b * log10(a) - y))
	print(x[0], x[2], y)
0