結果

問題 No.219 巨大数の概算
コンテスト
ユーザー roiti46
提出日時 2015-05-29 22:39:00
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 302 ms / 1,500 ms
コード長 217 bytes
コンパイル時間 149 ms
コンパイル使用メモリ 77,592 KB
最終ジャッジ日時 2025-12-03 15:21:33
ジャッジサーバーID
(参考情報)
judge3 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 51
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

from math import log10
N = int(raw_input())
for loop in xrange(N):
    A, B = map(int, raw_input().split())
    t = int(B * log10(A))
    a = "%.16f" % 10 ** (B * log10(A) - t)
    x, y = a[0], a[2]
    print x, y, t
0