結果

問題 No.219 巨大数の概算
ユーザー matsu7874matsu7874
提出日時 2015-10-03 18:55:28
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 385 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 10,728 KB
実行使用メモリ 8,104 KB
最終ジャッジ日時 2023-09-27 01:50:57
合計ジャッジ時間 12,799 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 169 ms
7,908 KB
testcase_01 AC 166 ms
8,068 KB
testcase_02 AC 168 ms
8,072 KB
testcase_03 AC 167 ms
7,932 KB
testcase_04 WA -
testcase_05 AC 16 ms
7,912 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 16 ms
7,912 KB
testcase_10 AC 166 ms
7,900 KB
testcase_11 AC 169 ms
7,900 KB
testcase_12 AC 168 ms
8,088 KB
testcase_13 AC 168 ms
7,956 KB
testcase_14 AC 167 ms
7,920 KB
testcase_15 AC 168 ms
7,896 KB
testcase_16 AC 169 ms
7,928 KB
testcase_17 AC 168 ms
8,028 KB
testcase_18 WA -
testcase_19 AC 171 ms
8,060 KB
testcase_20 AC 165 ms
7,912 KB
testcase_21 AC 169 ms
8,072 KB
testcase_22 WA -
testcase_23 AC 169 ms
8,104 KB
testcase_24 AC 172 ms
7,920 KB
testcase_25 AC 167 ms
7,932 KB
testcase_26 AC 165 ms
8,016 KB
testcase_27 AC 168 ms
7,992 KB
testcase_28 WA -
testcase_29 AC 169 ms
7,972 KB
testcase_30 AC 165 ms
8,084 KB
testcase_31 AC 168 ms
8,040 KB
testcase_32 AC 167 ms
7,896 KB
testcase_33 WA -
testcase_34 AC 168 ms
7,940 KB
testcase_35 WA -
testcase_36 AC 167 ms
7,968 KB
testcase_37 WA -
testcase_38 AC 165 ms
7,964 KB
testcase_39 AC 166 ms
7,908 KB
testcase_40 WA -
testcase_41 AC 168 ms
8,064 KB
testcase_42 WA -
testcase_43 AC 165 ms
7,948 KB
testcase_44 WA -
testcase_45 AC 170 ms
8,024 KB
testcase_46 AC 167 ms
7,900 KB
testcase_47 AC 167 ms
7,928 KB
testcase_48 AC 171 ms
7,900 KB
testcase_49 AC 167 ms
8,064 KB
testcase_50 AC 164 ms
7,948 KB
testcase_51 AC 16 ms
8,088 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N = int(input())
for i in range(N):
    A, B = map(int, input().split())
    log = math.log10(A) * B
    Z = int(log)
    xy = log - Z
    l = 0.0
    r = 10.0
    while l + 0.0001 < r:
        m = (l + r) / 2
        t = math.log10(m)
        if t < xy:
            l = m
        elif xy <= t:
            r = m
    X = int(l)
    Y = int((l - X) * 10)
    print(X, Y, Z)
0