double t,n;i;main(a,b){for(gets(&a);i=~scanf("%d%d%lf",&a,&b,&t);printf("%.10f\n",exp(n)))for(n=.1;++i<6;n-=(a*n+b*log(n)-log(t))/(a+b/n))n=!b?:n;}