結果

問題 No.897 compαctree
ユーザー matrie
提出日時 2020-12-16 09:17:49
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 106 bytes
コンパイル時間 82 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 17,564 KB
最終ジャッジ日時 2024-09-20 04:29:09
合計ジャッジ時間 4,038 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 10 TLE * 1 -- * 2
権限があれば一括ダウンロードができます

ソースコード

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