結果

問題 No.219 巨大数の概算
ユーザー nebukuro09nebukuro09
提出日時 2016-11-01 10:31:08
言語 Python2
(2.7.18)
結果
AC  
実行時間 100 ms / 1,500 ms
コード長 269 bytes
コンパイル時間 953 ms
コンパイル使用メモリ 6,572 KB
実行使用メモリ 6,504 KB
最終ジャッジ日時 2023-09-25 15:32:14
合計ジャッジ時間 8,620 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 99 ms
6,416 KB
testcase_01 AC 97 ms
6,392 KB
testcase_02 AC 100 ms
6,392 KB
testcase_03 AC 98 ms
6,268 KB
testcase_04 AC 56 ms
6,168 KB
testcase_05 AC 11 ms
6,236 KB
testcase_06 AC 17 ms
6,448 KB
testcase_07 AC 11 ms
6,392 KB
testcase_08 AC 17 ms
6,232 KB
testcase_09 AC 11 ms
6,200 KB
testcase_10 AC 98 ms
6,252 KB
testcase_11 AC 97 ms
6,432 KB
testcase_12 AC 97 ms
6,392 KB
testcase_13 AC 98 ms
6,252 KB
testcase_14 AC 99 ms
6,268 KB
testcase_15 AC 97 ms
6,428 KB
testcase_16 AC 97 ms
6,232 KB
testcase_17 AC 98 ms
6,340 KB
testcase_18 AC 97 ms
6,504 KB
testcase_19 AC 97 ms
6,436 KB
testcase_20 AC 99 ms
6,396 KB
testcase_21 AC 98 ms
6,260 KB
testcase_22 AC 97 ms
6,408 KB
testcase_23 AC 97 ms
6,236 KB
testcase_24 AC 96 ms
6,444 KB
testcase_25 AC 96 ms
6,412 KB
testcase_26 AC 97 ms
6,300 KB
testcase_27 AC 99 ms
6,296 KB
testcase_28 AC 97 ms
6,300 KB
testcase_29 AC 97 ms
6,368 KB
testcase_30 AC 99 ms
6,268 KB
testcase_31 AC 99 ms
6,264 KB
testcase_32 AC 97 ms
6,364 KB
testcase_33 AC 96 ms
6,456 KB
testcase_34 AC 97 ms
6,372 KB
testcase_35 AC 99 ms
6,296 KB
testcase_36 AC 97 ms
6,440 KB
testcase_37 AC 96 ms
6,428 KB
testcase_38 AC 97 ms
6,236 KB
testcase_39 AC 98 ms
6,296 KB
testcase_40 AC 97 ms
6,236 KB
testcase_41 AC 98 ms
6,368 KB
testcase_42 AC 97 ms
6,432 KB
testcase_43 AC 97 ms
6,252 KB
testcase_44 AC 96 ms
6,400 KB
testcase_45 AC 97 ms
6,292 KB
testcase_46 AC 96 ms
6,384 KB
testcase_47 AC 100 ms
6,296 KB
testcase_48 AC 98 ms
6,296 KB
testcase_49 AC 99 ms
6,368 KB
testcase_50 AC 96 ms
6,392 KB
testcase_51 AC 12 ms
6,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import log10

def solve():
    A, B = map(int, raw_input().split())
    x = B*log10(A)
    n = int(x)
    m = x-int(x)
    i = 10
    while log10(i/10.) <= m:
        i += 1
    i -= 1
    print str(i)[0], str(i)[1], n 

for _ in xrange(input()):
    solve()
0