結果
問題 | No.897 compαctree |
ユーザー |
![]() |
提出日時 | 2019-10-09 15:36:42 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 237 bytes |
コンパイル時間 | 100 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-17 04:05:26 |
合計ジャッジ時間 | 1,225 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 1 |
other | RE * 13 |
ソースコード
A = input() l = [list(map(int, input().separate())) for i in range(A)] for i in range(1, len(l)): N = l[i][0] K = l[i][1] cnt = 0 j = 0 while N > 0: N -= K ** j cnt += 1 j += 1 print(cnt-1)