long long mid;
long long ans;
while(r>=l)//二分经典模板
{
mid=(l+r)/2;
if(judge(mid)>=q)
{
ans=mid;
r=mid-1;
}
else
{
l=mid+1;
}
}