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