結果

問題 No.897 compαctree
ユーザー mlihua09
提出日時 2020-08-31 23:48:46
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 182 bytes
コンパイル時間 179 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 109,184 KB
最終ジャッジ日時 2024-11-17 02:57:40
合計ジャッジ時間 10,316 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 10 TLE * 3
権限があれば一括ダウンロードができます

ソースコード

diff #


for _ in range(int(input())):
    
    N, K = map(int, input().split())
    
    x = 1
    j = 0
    while N > x:
        x *= K
        x += 1
        j += 1
        
    print(j)
0