#include using namespace std; int main() { int m; scanf("%d", &m); double e = exp(1); double eps = 1e-10 * 2; while(m--) { int a, b; double t, l, r, n; scanf("%d%d%lf", &a, &b, &t); if (!b) { printf("%.12f\n", pow(t, 1.0 / a)); continue; } if (!a) { printf("%.12f\n", exp(pow(t, 1.0 / b))); if (exp(pow(t, 1.0 / b)) < 1){ printf("nyan"); } continue; } double tt = pow(t, 1.0 / b) * a / b; l = 1; r = 8; while (r - l > eps) { n = (l + r) / 2; double k = 1; for (int i = 0; i < a; ++i) { k *= n; } double ln = log(n); for (int i = 0; i < b; ++i) { k *= ln; } if (k > tt) r = n; else l = n; } printf("%.12f\n", (l + r) / 2); } return 0; }