func_code_string: #include<bits/stdc++.h>      #define ll long long   #define MAX 1000006   #define gcd(a, b)           __gcd(a, b)   #define lcm(a, b)           ((a)*((b)/gcd(a,b)))   using namespace std;         //******************* my code starts here **********************************      int main()   {   int t;      cin>>t;   getchar();      while(t--)   {        //ll i,x1,n,k,m;                  vector<ll>v;            vector<int>v1;            vector<pair<int,int>>pir;               string s,s1;            ll a,b,coun=0,new_coun=0,ans=0;            cin>>a>>b;               if(a<b)            {                cout<< 1 <<endl;                continue;            }              ll sqr=sqrt(a),minn=INT_MAX;               for(int i=0;i<=sqr;i++)            {                if(i==0 and b==1)                {                    continue;                }                   int check=b+i;                 coun =i;                int temp=a;                   while(temp != 0)                {                    temp/=check;                    coun++;                }                   minn=min(minn,coun);            }               cout<<minn<<endl;                              }                     return 0;      }   