結果
| 問題 | No.897 compαctree |
| コンテスト | |
| ユーザー |
toyuzuko
|
| 提出日時 | 2020-04-01 21:21:07 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 159 bytes |
| 記録 | |
| コンパイル時間 | 531 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 30,592 KB |
| 最終ジャッジ日時 | 2026-03-14 18:57:46 |
| 合計ジャッジ時間 | 11,594 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 10 TLE * 3 |
ソースコード
Q = int(input())
for _ in range(Q):
n, k = map(int,input().split())
x = 1
y = 1
while x < n:
x += k**y
y += 1
print(y - 1)
toyuzuko