#include <iostream>
#include <stdio.h>
#include <cmath>
#include <cstring>
#include <vector>
#include <algorithm>
#include <set>
#include <stack>
#include <map>
#include <iomanip>
#include <string>
#define INPUT "input.txt"
#define OUTPUT "output.txt"
using namespace std;
int t;
const double pi = atan(1.0) * 4.0;
double r[3];
int main()
{
cin >> t;
while (t--)
{
cin >> r[0] >> r[1] >> r[2];
double R = (r[0] * r[1] * r[2]) / (r[0] * r[1] + r[1] * r[2] + r[0] * r[2] + 2.0 * sqrt(r[0] * r[1] * r[2] * (r[0] + r[1] + r[2])));
cout << fixed << setprecision(9) << R << '\n';
}
return 0;
}
//(c)gacongnghiep
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RkaW8uaD4KI2luY2x1ZGUgPGNtYXRoPgojaW5jbHVkZSA8Y3N0cmluZz4KI2luY2x1ZGUgPHZlY3Rvcj4KI2luY2x1ZGUgPGFsZ29yaXRobT4KI2luY2x1ZGUgPHNldD4KI2luY2x1ZGUgPHN0YWNrPgojaW5jbHVkZSA8bWFwPgojaW5jbHVkZSA8aW9tYW5pcD4KI2luY2x1ZGUgPHN0cmluZz4KI2RlZmluZSBJTlBVVCAgImlucHV0LnR4dCIKI2RlZmluZSBPVVRQVVQgIm91dHB1dC50eHQiCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgdDsKY29uc3QgZG91YmxlIHBpID0gYXRhbigxLjApICogNC4wOwpkb3VibGUgclszXTsKCmludCBtYWluKCkKewogICAgY2luID4+IHQ7CiAgICB3aGlsZSAodC0tKQogICAgewogICAgICAgIGNpbiA+PiByWzBdID4+IHJbMV0gPj4gclsyXTsKICAgICAgICBkb3VibGUgUiA9IChyWzBdICogclsxXSAqIHJbMl0pIC8gKHJbMF0gKiByWzFdICsgclsxXSAqIHJbMl0gKyByWzBdICogclsyXSArIDIuMCAqIHNxcnQoclswXSAqIHJbMV0gKiByWzJdICogKHJbMF0gKyByWzFdICsgclsyXSkpKTsKICAgICAgICBjb3V0IDw8IGZpeGVkIDw8IHNldHByZWNpc2lvbig5KSA8PCBSIDw8ICdcbic7IAogICAgfQogICAgcmV0dXJuIDA7Cn0KLy8oYylnYWNvbmduZ2hpZXA=