結果

問題 No.219 巨大数の概算
ユーザー convexineqconvexineq
提出日時 2020-12-19 11:04:46
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 358 bytes
コンパイル時間 152 ms
コンパイル使用メモリ 81,732 KB
実行使用メモリ 77,368 KB
最終ジャッジ日時 2023-10-21 09:06:35
合計ジャッジ時間 9,751 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
77,368 KB
testcase_01 AC 135 ms
76,996 KB
testcase_02 AC 133 ms
77,000 KB
testcase_03 AC 120 ms
77,000 KB
testcase_04 WA -
testcase_05 AC 35 ms
53,800 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 38 ms
53,800 KB
testcase_10 AC 121 ms
77,368 KB
testcase_11 AC 130 ms
77,368 KB
testcase_12 AC 119 ms
77,000 KB
testcase_13 AC 125 ms
77,364 KB
testcase_14 AC 123 ms
76,996 KB
testcase_15 AC 121 ms
77,000 KB
testcase_16 AC 128 ms
77,368 KB
testcase_17 AC 119 ms
76,996 KB
testcase_18 AC 122 ms
77,368 KB
testcase_19 AC 121 ms
76,996 KB
testcase_20 AC 124 ms
77,000 KB
testcase_21 AC 123 ms
76,996 KB
testcase_22 AC 123 ms
77,368 KB
testcase_23 AC 122 ms
76,996 KB
testcase_24 AC 121 ms
76,996 KB
testcase_25 AC 122 ms
77,368 KB
testcase_26 AC 123 ms
77,364 KB
testcase_27 AC 127 ms
76,996 KB
testcase_28 WA -
testcase_29 AC 120 ms
77,000 KB
testcase_30 AC 126 ms
77,364 KB
testcase_31 AC 123 ms
77,000 KB
testcase_32 AC 138 ms
77,368 KB
testcase_33 AC 122 ms
77,000 KB
testcase_34 AC 125 ms
76,996 KB
testcase_35 AC 123 ms
77,000 KB
testcase_36 AC 119 ms
76,996 KB
testcase_37 AC 120 ms
77,000 KB
testcase_38 AC 121 ms
76,996 KB
testcase_39 AC 128 ms
77,000 KB
testcase_40 AC 119 ms
77,000 KB
testcase_41 AC 134 ms
76,996 KB
testcase_42 AC 126 ms
77,364 KB
testcase_43 AC 122 ms
77,368 KB
testcase_44 AC 121 ms
77,368 KB
testcase_45 AC 119 ms
76,996 KB
testcase_46 AC 120 ms
76,996 KB
testcase_47 AC 127 ms
77,004 KB
testcase_48 AC 117 ms
77,000 KB
testcase_49 AC 119 ms
77,000 KB
testcase_50 AC 116 ms
76,996 KB
testcase_51 AC 35 ms
53,800 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
from math import log
from bisect import bisect_left
res = [-1.0] + [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
    if idx < 1: idx = 1
    if idx >= 100: idx = 99
    x = idx//10
    y = idx%10
    print(x,y,z)
0