結果

問題 No.219 巨大数の概算
ユーザー nebukuro09nebukuro09
提出日時 2016-11-01 10:31:08
言語 Python2
(2.7.18)
結果
AC  
実行時間 97 ms / 1,500 ms
コード長 269 bytes
コンパイル時間 207 ms
コンパイル使用メモリ 6,944 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-18 12:16:28
合計ジャッジ時間 6,311 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 51
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import log10

def solve():
    A, B = map(int, raw_input().split())
    x = B*log10(A)
    n = int(x)
    m = x-int(x)
    i = 10
    while log10(i/10.) <= m:
        i += 1
    i -= 1
    print str(i)[0], str(i)[1], n 

for _ in xrange(input()):
    solve()
0