結果

問題 No.897 compαctree
ユーザー kawacchukawacchu
提出日時 2019-10-10 23:29:58
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 159 bytes
コンパイル時間 101 ms
コンパイル使用メモリ 10,640 KB
実行使用メモリ 12,532 KB
最終ジャッジ日時 2023-08-14 08:15:55
合計ジャッジ時間 4,067 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
12,188 KB
testcase_01 AC 15 ms
7,816 KB
testcase_02 AC 15 ms
7,720 KB
testcase_03 AC 16 ms
7,764 KB
testcase_04 AC 16 ms
7,780 KB
testcase_05 AC 17 ms
7,720 KB
testcase_06 AC 15 ms
7,892 KB
testcase_07 AC 15 ms
7,816 KB
testcase_08 AC 15 ms
7,800 KB
testcase_09 AC 15 ms
7,784 KB
testcase_10 AC 15 ms
7,888 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