結果
問題 | No.897 compαctree |
ユーザー | motor_radial |
提出日時 | 2020-03-11 11:23:47 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 225 bytes |
コンパイル時間 | 90 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 16,128 KB |
最終ジャッジ日時 | 2024-04-27 19:10:19 |
合計ジャッジ時間 | 3,989 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 23 ms
16,128 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | TLE | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
ソースコード
Q=int(input()) ans=[] for i in range(Q): N,K=map(int,input().split()) seg=0 k_num=1 while(N>k_num): k_num+=K K=K**(seg+1) seg+=1 ans.append(seg) for a in range(Q): print(ans[a])