結果
| 問題 | No.897 compαctree |
| コンテスト | |
| ユーザー |
_____TAB_____
|
| 提出日時 | 2019-10-04 21:23:53 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 218 bytes |
| 記録 | |
| コンパイル時間 | 449 ms |
| コンパイル使用メモリ | 78,336 KB |
| 実行使用メモリ | 9,600 KB |
| 最終ジャッジ日時 | 2026-06-07 23:02:45 |
| 合計ジャッジ時間 | 4,654 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 10 TLE * 1 -- * 2 |
ソースコード
#include <iostream>
using namespace std;
int main(){
int Q;
cin >> Q;
while(Q--){
int N, K;
cin >> N >> K;
int t = 1, ans = -1;
while(N > 0) N -= t, t *= K, ++ans;
cout << ans << endl;
}
}
_____TAB_____