結果

問題 No.219 巨大数の概算
ユーザー H3PO4
提出日時 2020-06-01 13:37:52
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 142 ms / 1,500 ms
コード長 171 bytes
コンパイル時間 159 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-11-21 16:19:31
合計ジャッジ時間 10,182 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 51
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

N = int(input())
for _ in range(N):
    a, b = map(int, input().split())
    f, i = math.modf(b * math.log(a, 10))
    print(*str(10 ** (f + 1))[:2], int(i))
0