#include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; int main() { int N; cin >> N; for (int i = 0; i < N; ++i) { double T, U, L; cin >> T >> U >> L; ll ok = 0; ll ng = 520000; ll t = T * 100; ll u = U * 100; ll l = L * 100; while (abs(ok - ng) >= 2) { ll v = (ok + ng) / 2; ll len = v * (25 * v + 18 * t * u); if (len <= l * 6480 * u) { ok = v; } else { ng = v; } } cout << fixed << setprecision(2) << floor(100 * ok) / 10000 << endl; } return 0; }