#include using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); int m; scanf("%d", &m); for (int i = 0; i < m; i++) { int a, b; double t; scanf("%d %d %lf", &a, &b, &t); double ok = 0.0, ng = 3e5; for (int j = 0; j < 50; j++) { double mid = (ok + ng) / 2; double tmp = log(mid); double time = 1.0; for (int i = 0; i < a; i++) time *= mid; for (int i = 0; i < b; i++) time *= tmp; if (time > t) ng = mid; else ok = mid; } printf("%.10lf\n", ok); } return 0; }