結果
| 問題 |
No.897 compαctree
|
| コンテスト | |
| ユーザー |
kbys
|
| 提出日時 | 2020-03-29 01:35:10 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 288 bytes |
| コンパイル時間 | 2,311 ms |
| コンパイル使用メモリ | 81,860 KB |
| 実行使用メモリ | 110,688 KB |
| 最終ジャッジ日時 | 2025-01-02 12:43:40 |
| 合計ジャッジ時間 | 10,975 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 10 TLE * 3 |
ソースコード
#897
import sys
input=sys.stdin.readline
def main():
Q = int(input())
for i in range(Q):
tmp = 1
i = 1
N,K = map(int,input().split())
while tmp < N:
tmp += K**i
i += 1
print(i-1)
if __name__ == '__main__':
main()
kbys