結果

問題 No.897 compαctree
ユーザー matriematrie
提出日時 2020-12-16 09:17:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 106 bytes
コンパイル時間 178 ms
コンパイル使用メモリ 11,764 KB
実行使用メモリ 14,460 KB
最終ジャッジ日時 2023-10-20 08:59:41
合計ジャッジ時間 4,797 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
14,460 KB
testcase_01 AC 29 ms
10,088 KB
testcase_02 AC 27 ms
10,088 KB
testcase_03 AC 30 ms
10,088 KB
testcase_04 AC 28 ms
10,088 KB
testcase_05 AC 28 ms
10,088 KB
testcase_06 AC 28 ms
10,088 KB
testcase_07 AC 28 ms
10,088 KB
testcase_08 AC 28 ms
10,088 KB
testcase_09 AC 27 ms
10,088 KB
testcase_10 AC 28 ms
10,088 KB
testcase_11 TLE -
testcase_12 -- -
testcase_13 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

c=int(input())
for _ in [0]*c:
	t,m=-1,0
	n,k=map(int,input().split())
	while n>m: t+=1; m+=k**t
	print(t)
0