結果

問題 No.219 巨大数の概算
ユーザー 👑 rin204rin204
提出日時 2022-07-04 14:59:35
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 184 ms / 1,500 ms
コード長 328 bytes
コンパイル時間 1,434 ms
コンパイル使用メモリ 86,744 KB
実行使用メモリ 79,300 KB
最終ジャッジ日時 2023-08-20 22:14:39
合計ジャッジ時間 14,047 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 170 ms
78,728 KB
testcase_01 AC 171 ms
78,824 KB
testcase_02 AC 174 ms
78,668 KB
testcase_03 AC 181 ms
78,400 KB
testcase_04 AC 147 ms
78,864 KB
testcase_05 AC 73 ms
71,572 KB
testcase_06 AC 109 ms
76,980 KB
testcase_07 AC 73 ms
71,540 KB
testcase_08 AC 113 ms
76,956 KB
testcase_09 AC 75 ms
71,752 KB
testcase_10 AC 172 ms
78,764 KB
testcase_11 AC 170 ms
78,764 KB
testcase_12 AC 171 ms
78,888 KB
testcase_13 AC 168 ms
79,144 KB
testcase_14 AC 177 ms
78,220 KB
testcase_15 AC 170 ms
78,800 KB
testcase_16 AC 171 ms
79,172 KB
testcase_17 AC 184 ms
78,120 KB
testcase_18 AC 174 ms
78,720 KB
testcase_19 AC 174 ms
78,984 KB
testcase_20 AC 170 ms
78,736 KB
testcase_21 AC 178 ms
78,156 KB
testcase_22 AC 170 ms
78,716 KB
testcase_23 AC 172 ms
78,776 KB
testcase_24 AC 177 ms
78,784 KB
testcase_25 AC 178 ms
78,188 KB
testcase_26 AC 177 ms
78,372 KB
testcase_27 AC 171 ms
78,792 KB
testcase_28 AC 170 ms
78,712 KB
testcase_29 AC 182 ms
78,232 KB
testcase_30 AC 178 ms
78,136 KB
testcase_31 AC 174 ms
78,696 KB
testcase_32 AC 178 ms
78,608 KB
testcase_33 AC 176 ms
78,032 KB
testcase_34 AC 170 ms
78,844 KB
testcase_35 AC 170 ms
78,848 KB
testcase_36 AC 173 ms
78,764 KB
testcase_37 AC 182 ms
78,244 KB
testcase_38 AC 180 ms
78,056 KB
testcase_39 AC 178 ms
78,164 KB
testcase_40 AC 177 ms
78,180 KB
testcase_41 AC 173 ms
78,648 KB
testcase_42 AC 173 ms
78,652 KB
testcase_43 AC 172 ms
79,012 KB
testcase_44 AC 172 ms
78,884 KB
testcase_45 AC 172 ms
78,932 KB
testcase_46 AC 174 ms
78,796 KB
testcase_47 AC 172 ms
79,300 KB
testcase_48 AC 179 ms
78,060 KB
testcase_49 AC 172 ms
78,788 KB
testcase_50 AC 173 ms
78,732 KB
testcase_51 AC 76 ms
71,856 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import log10

def solve():
    a, b = map(int, input().split())
    c = log10(a) * b
    z = int(c)
    c -= z
    for i in range(11, 101):
        if log10(i / 10) >= c:
            i -= 1
            x = i // 10
            y = i % 10
            break
    print(x, y, z)


for _ in range(int(input())):
    solve()
0