solution of atoms in the lab
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
long long int n,k,m,t,s,p;
cin>>p;
while(p--)
{
cin>>n>>k>>m;
t=0;
if(m<n)
cout<<"0"<<endl;
else
{
while(1)
{
s=m/(n*pow(k,t));
if(s==0)
break;
else
t++;
}
cout<<t-1<<endl;
}
}
return 0;
}
Wow! This is the perfect blog I am looking this type of blog its awesome blog here , share great information about this topic. This informative blog helps many readers with their decision-making regarding the situation. Great articles and will look forward for more!
ReplyDeleteชิพคาสิโน