#include using namespace std; using ll = long long; using pll = pair; #define drep(i, cc, n) for (ll i = (cc); i <= (n); ++i) #define rep(i, n) drep(i, 0, n - 1) #define all(a) (a).begin(), (a).end() #define pb push_back #define fi first #define se second const ll MOD = 1000000007; const ll MOD2 = 998244353; const ll INF = 1LL << 60; const ll N_MAX = 2e5; ll solve(){ double t, u, l; cin >> t >> u >> l; ll nt = (ll)((double)100*t); ll nu = (ll)((double)100*u); ll nl = (ll)((double)100*l); ll lo = 0; ll hi = 18360000; ll mid; while(hi - lo > 1){ mid = (lo + hi)/2; if(100*mid*mid+72*nu*nt*mid > 20*36*36*nu*nl) hi = mid; else lo = mid; } return lo; } int main(){ ll n; cin >> n; vector ans(n); rep(i, n) ans[i] = solve(); rep(i, n){ if(0 <= ans[i]%100 && ans[i]%100 <= 9){ printf("%d.0%d\n", ans[i]/100, ans[i]%100); }else{ printf("%d.%d\n", ans[i]/100, ans[i]%100); } } }