結果

問題 No.219 巨大数の概算
ユーザー ktshun
提出日時 2015-06-01 19:09:48
言語 Python2
(2.7.18)
結果
AC  
実行時間 64 ms / 1,500 ms
コード長 292 bytes
コンパイル時間 52 ms
コンパイル使用メモリ 6,948 KB
実行使用メモリ 6,784 KB
最終ジャッジ日時 2024-07-18 11:13:10
合計ジャッジ時間 5,309 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 51
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding:utf-8 -*-
import math

if __name__ == "__main__":
	n = input()
	for i in xrange(n):
		a,b = map(int,raw_input().split())
		z = int(b * math.log10(a))
		temp = b*math.log10(a) - z
		s = "%.16f" % (10 ** (temp + 1e-20))
#		s = str(round(pow(a,temp),1) + 1e-20)
		print s[0],s[2],z
0