#include #include int main() { int m; scanf("%d", &m); double a, b, t, ans; int i; for (i = 0; i < m; i++) { scanf("%lf %lf %lf", &a, &b, &t); if (a == 0) ans = exp(pow(t, 1.0 / b)); else if (b == 0) ans = pow(t, 1.0 / a); else { double n = 1.0; double tmp1 = pow(t, 1.0 / b); double tmp2 = a / b; while (1) { double tmp3 = n - exp(tmp1 / pow(n, tmp2)); if (fabs(tmp3) <= 10e-10) { ans = n; break; } else n -= tmp3 / 4.0; } } printf("%.10lf\n", ans); } return 0; }