#include using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); int m; cin >> m; for (int i = 0; i < m; i++) { int a, b; double t; cin >> a >> b >> t; double ok = 0.0, ng = 1e20; for (int j = 0; j < 100; j++) { double mid = (ok + ng) / 2; double time = pow(mid, a) * pow(log(mid), b); if (time > t) ng = mid; else ok = mid; } cout << fixed << setprecision(10) << ok << endl; } return 0; }