#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 = 1e6; for (int j = 0; j < 30; j++) { double mid = (ok + ng) / 2; double time = pow(mid, a) * pow(log(mid), b); if (time > t) ng = mid; else ok = mid; } printf("%.10lf\n", ok); } return 0; }