結果

問題 No.897 compαctree
ユーザー mlihua09mlihua09
提出日時 2020-08-31 23:48:46
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 182 bytes
コンパイル時間 434 ms
コンパイル使用メモリ 86,784 KB
実行使用メモリ 79,416 KB
最終ジャッジ日時 2023-08-10 18:13:46
合計ジャッジ時間 4,990 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
75,196 KB
testcase_01 AC 63 ms
71,132 KB
testcase_02 AC 64 ms
71,076 KB
testcase_03 AC 64 ms
70,920 KB
testcase_04 AC 68 ms
71,060 KB
testcase_05 AC 68 ms
70,696 KB
testcase_06 AC 67 ms
71,092 KB
testcase_07 AC 64 ms
70,976 KB
testcase_08 AC 63 ms
70,964 KB
testcase_09 AC 63 ms
70,944 KB
testcase_10 AC 65 ms
70,824 KB
testcase_11 TLE -
testcase_12 -- -
testcase_13 -- -
権限があれば一括ダウンロードができます

ソースコード

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