中途改了题意没看到瞎做半天hhh
#include <bits/stdc++.h>
#define ll long long
using namespace std;
double c = 2997924.58;
ll quickmul(ll a,ll b)
{
ll ret=1;
for(; b ; b >>=1 ,a =(ll) a * a )
if((b & 1))
ret=ret * a ;
return ret;
}
void solve(double x,double y)
{
double tp = (2*x+y);
if(y>=c){
printf("0\n");
return ;
}
int cnt = 1;
while(tp<c)
{
tp = 2*tp+y;
cnt++;
}
printf("%d\n",cnt);
}
int main()
{
double n,x,y;
scanf("%lf",&n);
while(n--){
scanf("%lf %lf",&x,&y);
solve(x,y);
}
return 0;
}