#define _CRT_SECURE_NO_WARNINGS #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define INF (1<<29) #define rep(i,n) for(int i=0;i<(int)(n);i++) #define all(v) v.begin(),v.end() #define uniq(v) v.erase(unique(all(v)),v.end()) int main() { ios::sync_with_stdio(0); cin.tie(0); int m; cin >> m; rep(i, m) { double a, b, t; cin >> a >> b >> t; if (a == 0) { printf("%.12f\n", exp(pow(t, 1 / b))); } else if (b == 0) { printf("%.12f\n", pow(t, 1 / a)); } else { double x = 10; rep(j, 20) { if (x < 1e-10)break; double s, t; s = pow(x, a); t = pow(log(x), b); x = x - (s*t - t) / (a*pow(x, a - 1) * t + s*b*pow(log(x), b - 1) / x); } printf("%.12f\n", x); } } return 0; }