結果

問題 No.897 compαctree
ユーザー kawacchukawacchu
提出日時 2019-10-10 23:30:48
言語 PyPy3
(7.3.13)
結果
TLE  
実行時間 -
コード長 159 bytes
コンパイル時間 301 ms
コンパイル使用メモリ 86,996 KB
実行使用メモリ 75,892 KB
最終ジャッジ日時 2023-08-14 08:18:27
合計ジャッジ時間 4,964 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
75,892 KB
testcase_01 AC 66 ms
71,244 KB
testcase_02 AC 67 ms
71,144 KB
testcase_03 AC 73 ms
71,232 KB
testcase_04 AC 65 ms
71,052 KB
testcase_05 AC 66 ms
71,356 KB
testcase_06 AC 64 ms
71,300 KB
testcase_07 AC 65 ms
71,072 KB
testcase_08 AC 68 ms
71,300 KB
testcase_09 AC 66 ms
71,080 KB
testcase_10 AC 66 ms
71,200 KB
testcase_11 TLE -
testcase_12 -- -
testcase_13 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
for i in range(N) :
    a,b = map(int,input().split())
    c = 0
    while a > 0 :
        
        a -= b ** c
        c += 1
    print(c-1)
0