結果

問題 No.897 compαctree
ユーザー cureskol
提出日時 2020-04-13 00:41:14
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
TLE  
実行時間 -
コード長 230 bytes
コンパイル時間 1,429 ms
コンパイル使用メモリ 165,572 KB
実行使用メモリ 17,088 KB
最終ジャッジ日時 2024-09-22 15:39:49
合計ジャッジ時間 7,823 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample TLE * 1
other -- * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
    int q;cin>>q;
    while(q--){
        int a,b;cin>>a>>b;
        int cnt=0,n=1;
        while(n<=a){
            n*=b;cnt++;
        }
        cout<<cnt<<endl;
    }
}
0