結果

問題 No.897 compαctree
ユーザー lloyzlloyz
提出日時 2022-02-20 20:17:48
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 187 bytes
コンパイル時間 306 ms
コンパイル使用メモリ 87,208 KB
実行使用メモリ 75,768 KB
最終ジャッジ日時 2023-09-11 21:10:22
合計ジャッジ時間 5,029 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
75,768 KB
testcase_01 AC 73 ms
71,140 KB
testcase_02 AC 73 ms
71,296 KB
testcase_03 AC 75 ms
71,384 KB
testcase_04 AC 73 ms
71,128 KB
testcase_05 AC 75 ms
71,160 KB
testcase_06 AC 74 ms
71,312 KB
testcase_07 AC 74 ms
71,252 KB
testcase_08 AC 73 ms
71,036 KB
testcase_09 AC 77 ms
71,148 KB
testcase_10 AC 74 ms
71,176 KB
testcase_11 TLE -
testcase_12 -- -
testcase_13 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

q = int(input())
for _ in range(q):
    n, k = map(int, input().split())
    ans = 0
    v = 1
    ev = 1
    while v < n:
        ev *= k
        v += ev
        ans += 1
    print(ans)
0