#include #include using namespace std; using namespace atcoder; typedef int64_t lint; #define rep(i, n) for(int i=0; i; using vvi = vector>; template inline void vin(vector& v) { rep(i, v.size()) cin >> v.at(i); } template inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; } template inline void drop(T x) { cout << x << endl; exit(0); } template void vout(vector v) { rep(i, v.size()) { cout << v.at(i) << ' '; } cout << endl; } constexpr lint LINF = LLONG_MAX/2; int main() { lint T; cin >> T; rep(_, T) { string a, b, c; lint x, y, z; cin >> a >> b >> c; x = stoi(a.substr(0, a.size()-3))*100+stoi(a.substr(a.size()-2, 2)); y = stoi(b.substr(0, b.size()-3))*100+stoi(b.substr(b.size()-2, 2)); z = stoi(c.substr(0, c.size()-3))*100+stoi(c.substr(c.size()-2, 2)); lint ok = 0, mid, ng = 10010010; while (ng-ok > 1) { mid = (ok+ng)/2; if (mid*x*y*36 + mid*mid*5 <= z*10*y*360*36) ok = mid; else ng = mid; // list(mid) // list(mid*x*y*36 + mid*mid*5) // list(z*10*y*360*36) // list(ng) // show(ok) } string s = to_string(ok/10); if (s.size() == 1) s = '0'+s; if (s.size() == 2) s = '0'+s; std::cout << s.substr(0, s.size()-2) << '.' << s.substr(s.size()-2, 2) << '\n'; } }