#include using namespace std; int A, B; double T; double F(double N) { return (pow(N, A) * pow(log(N), B) < T); } int main() { int M; scanf("%d", &M); while(M--) { scanf("%d %d %lf", &A, &B, &T); double low = 0, high = 1e5; for(int i = 0; i < 50; i++) { double mid = (low + high) * 0.5; if(F(mid)) low = mid; else high = mid; } printf("%.12lf\n", low); } }