#include<stdio.h>
int main()
{
double left,right,ans,y,num,jian;
int count;
scanf("%d",&count);
while(count--)
{
scanf("%lf",&y);
left=0;right=100;
int N=100;
while(N--)
{
jian=(left+right)/2;
num=42*jian*jian*jian*jian*jian*jian+48*jian*jian*jian*jian*jian+21*jian*jian+10*jian-y;
if(num>0) right=jian;
if(num<0) left=jian;
}
double ans=6*jian*jian*jian*jian*jian*jian*jian+8*jian*jian*jian*jian*jian*jian+7*jian*jian*jian+5*jian*jian-y*jian;
printf("%.4lf \n",ans);
}
return 0;
}
08-08
7496
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)