結果
| 問題 |
No.897 compαctree
|
| コンテスト | |
| ユーザー |
Forested
|
| 提出日時 | 2020-08-29 12:35:26 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 193 bytes |
| コンパイル時間 | 160 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 21,248 KB |
| 最終ジャッジ日時 | 2024-11-14 05:35:58 |
| 合計ジャッジ時間 | 10,145 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 10 TLE * 3 |
ソースコード
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)
Forested