結果

問題 No.897 compαctree
ユーザー kawacchukawacchu
提出日時 2019-10-10 23:30:48
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 159 bytes
コンパイル時間 908 ms
コンパイル使用メモリ 82,308 KB
実行使用メモリ 62,720 KB
最終ジャッジ日時 2024-05-01 20:51:00
合計ジャッジ時間 4,475 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
57,344 KB
testcase_01 AC 33 ms
51,712 KB
testcase_02 AC 34 ms
51,712 KB
testcase_03 AC 34 ms
52,224 KB
testcase_04 AC 34 ms
51,968 KB
testcase_05 AC 35 ms
52,096 KB
testcase_06 AC 34 ms
51,584 KB
testcase_07 AC 35 ms
51,840 KB
testcase_08 AC 35 ms
51,840 KB
testcase_09 AC 35 ms
52,096 KB
testcase_10 AC 33 ms
51,876 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