結果

問題 No.897 compαctree
ユーザー ForestedForested
提出日時 2020-08-29 12:35:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 193 bytes
コンパイル時間 1,192 ms
コンパイル使用メモリ 10,448 KB
実行使用メモリ 13,136 KB
最終ジャッジ日時 2023-08-09 00:21:06
合計ジャッジ時間 5,275 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
12,296 KB
testcase_01 AC 15 ms
7,852 KB
testcase_02 AC 15 ms
7,900 KB
testcase_03 AC 14 ms
7,888 KB
testcase_04 AC 15 ms
7,804 KB
testcase_05 AC 15 ms
7,852 KB
testcase_06 AC 15 ms
7,804 KB
testcase_07 AC 15 ms
7,916 KB
testcase_08 AC 15 ms
7,952 KB
testcase_09 AC 15 ms
7,772 KB
testcase_10 AC 15 ms
7,900 KB
testcase_11 TLE -
testcase_12 -- -
testcase_13 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

q = int(input())
for i in range(q):
    n, k = map(int, input().split())
    sum, now, deaph = 1, 1, 0
    while sum < n:
        now *= k
        sum += now
        deaph += 1
    print(deaph)
0