結果

問題 No.219 巨大数の概算
ユーザー convexineqconvexineq
提出日時 2020-12-19 11:03:30
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 304 bytes
コンパイル時間 150 ms
コンパイル使用メモリ 81,648 KB
実行使用メモリ 77,156 KB
最終ジャッジ日時 2023-10-21 09:06:24
合計ジャッジ時間 11,027 ms
ジャッジサーバーID
(参考情報)
judge9 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 147 ms
77,152 KB
testcase_01 AC 140 ms
76,784 KB
testcase_02 AC 137 ms
76,780 KB
testcase_03 AC 138 ms
76,788 KB
testcase_04 WA -
testcase_05 AC 39 ms
53,596 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 39 ms
53,596 KB
testcase_10 AC 142 ms
77,152 KB
testcase_11 AC 144 ms
77,152 KB
testcase_12 AC 141 ms
76,780 KB
testcase_13 AC 144 ms
77,152 KB
testcase_14 AC 138 ms
76,784 KB
testcase_15 AC 137 ms
76,784 KB
testcase_16 AC 143 ms
77,152 KB
testcase_17 AC 147 ms
76,784 KB
testcase_18 AC 145 ms
77,152 KB
testcase_19 AC 137 ms
76,788 KB
testcase_20 AC 138 ms
76,796 KB
testcase_21 AC 137 ms
76,784 KB
testcase_22 AC 144 ms
77,152 KB
testcase_23 AC 142 ms
76,784 KB
testcase_24 AC 138 ms
76,780 KB
testcase_25 AC 144 ms
77,152 KB
testcase_26 AC 145 ms
77,152 KB
testcase_27 AC 139 ms
76,780 KB
testcase_28 WA -
testcase_29 AC 139 ms
76,784 KB
testcase_30 AC 145 ms
77,152 KB
testcase_31 AC 137 ms
76,780 KB
testcase_32 AC 143 ms
77,152 KB
testcase_33 AC 138 ms
76,780 KB
testcase_34 AC 137 ms
76,784 KB
testcase_35 AC 140 ms
76,784 KB
testcase_36 AC 139 ms
76,784 KB
testcase_37 AC 139 ms
76,788 KB
testcase_38 AC 139 ms
76,784 KB
testcase_39 AC 138 ms
76,780 KB
testcase_40 AC 138 ms
76,788 KB
testcase_41 AC 141 ms
76,780 KB
testcase_42 AC 140 ms
77,152 KB
testcase_43 AC 141 ms
77,152 KB
testcase_44 AC 145 ms
77,156 KB
testcase_45 AC 136 ms
76,784 KB
testcase_46 AC 140 ms
76,792 KB
testcase_47 AC 138 ms
76,792 KB
testcase_48 AC 136 ms
76,784 KB
testcase_49 AC 136 ms
76,784 KB
testcase_50 AC 138 ms
76,788 KB
testcase_51 AC 39 ms
53,596 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
from math import log
from bisect import bisect_left
res = [-1] + [log(i/10,10) for i in range(1,101)]

#print(res)
for _ in range(n):
    a,b = map(int,input().split())
    c = b*log(a,10)
    z = int(c)
    idx = bisect_left(res, c-z) - 1
    x = idx//10
    y = idx%10
    print(x,y,z)
0