#define _USE_MATH_DEFINES #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; int main() { int m; cin >> m; while(--m >= 0){ int a, b; double t; cin >> a >> b >> t; t = log(t); double left = 1.0; double right = 100000.0; for(int i=0; i<50; ++i){ double n = (left + right) / 2.0; double x = a * log(n) + b * log(log(n)); if(x < t) left = n; else right = n; } printf("%.10f\n", left); } return 0; }