#include using namespace std; int main() { int m; scanf("%d", &m); while(m--) { int a, b; long double t, l, r; scanf("%d%d%Lf", &a, &b, &t); if (!b) { printf("%.12Lf\n", powl(t, 1.0l / a)); continue; } if (!a) { printf("%.12Lf\n", expl(powl(t, 1.0l / b))); continue; } if (expl(a) > t) { l = 1 + 1e-10; r = expl(1) - 1e-10; } else { l = expl(1) + 1e-10; r = powl(t, 1.0l / a) - 1e-10; } while (r - l > 1e-9) { long double n = (l + r) / 2; if (powl(n, a) * powl(logl(n), b) > t) { r = n; } else { l = n; } } printf("%.12Lf\n", (l + r) / 2); } return 0; }