結果
| 問題 | No.897 compαctree |
| コンテスト | |
| ユーザー |
naoe123
|
| 提出日時 | 2020-01-27 20:13:00 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 197 bytes |
| 記録 | |
| コンパイル時間 | 578 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 21,504 KB |
| 最終ジャッジ日時 | 2026-04-04 12:44:04 |
| 合計ジャッジ時間 | 5,506 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 10 TLE * 1 -- * 2 |
ソースコード
Q=int(input())
for i in range(Q):
N,K=map(int,input().split())
summary=1
cnt=0
memo=1
while N>summary:
memo*=K
summary=summary+memo
cnt+=1
print(cnt)
naoe123