#include #include #define REP(i,s,n) for(int i=(int)(s);i<(int)(n);i++) using namespace std; const int N = 11; const int W = 100001; double memo[N][N][W]; double solve(int a, int b, double t) { int idx = floor(t * 10000 + 0.5); if (memo[a][b][idx] >= 0) { return memo[a][b][idx]; } double &ret = memo[a][b][idx]; if (b == 0) { return pow(t, 1.0 / a); } if (a == 0) { return exp(pow(t, 1.0 / b)); } double lo = 1.0, hi = 10; REP(loop_cnt, 0, 36) { double mid = (lo + hi) / 2; if (pow(mid, a) * pow(log(mid), b) <= t) { lo = mid; } else { hi = mid; } } return ret=lo; } int main(void){ int m; scanf("%d", &m); REP(i, 0, N) { REP(j, 0, N) { REP(k, 0, W) { memo[i][j][k] = -1; } } } REP(i, 0, m) { int a, b; double t; scanf("%d%d%lf", &a, &b, &t); printf("%.15f\n", solve(a, b, t)); } }