from decimal import Decimal, getcontext
from math import sqrt
def getArea(a, b, c):
s = (a + b + c) / Decimal(2.0)
return (s * (s - a) * (s - b) * (s - c)).sqrt()
def main():
getcontext().prec = 50
tc = int(input())
for _ in range(tc):
r1, r2, r3 = map(Decimal, input().split())
total = getArea(r1 + r3, r3 + r2, r1 + r2)
lo = Decimal(0)
hi = Decimal(1e20)
for i in range(1, 251):
mid = (lo + hi) / Decimal(2.0)
tri1 = getArea(r1 + mid, r3 + mid, r1 + r3)
tri2 = getArea(r1 + mid, r2 + mid, r1 + r2)
tri3 = getArea(r2 + mid, r3 + mid, r2 + r3)
if (tri1 + tri2 + tri3) >= total:
hi = mid
else:
lo = mid
print("{:.50f}".format(hi))
if __name__ == "__main__":
main()
ZnJvbSBkZWNpbWFsIGltcG9ydCBEZWNpbWFsLCBnZXRjb250ZXh0CmZyb20gbWF0aCBpbXBvcnQgc3FydAoKZGVmIGdldEFyZWEoYSwgYiwgYyk6CiAgICBzID0gKGEgKyBiICsgYykgLyBEZWNpbWFsKDIuMCkKICAgIHJldHVybiAocyAqIChzIC0gYSkgKiAocyAtIGIpICogKHMgLSBjKSkuc3FydCgpCgpkZWYgbWFpbigpOgogICAgZ2V0Y29udGV4dCgpLnByZWMgPSA1MAogICAgdGMgPSBpbnQoaW5wdXQoKSkKICAgIGZvciBfIGluIHJhbmdlKHRjKToKICAgICAgICByMSwgcjIsIHIzID0gbWFwKERlY2ltYWwsIGlucHV0KCkuc3BsaXQoKSkKICAgICAgICB0b3RhbCA9IGdldEFyZWEocjEgKyByMywgcjMgKyByMiwgcjEgKyByMikKICAgICAgICBsbyA9IERlY2ltYWwoMCkKICAgICAgICBoaSA9IERlY2ltYWwoMWUyMCkKICAgICAgICBmb3IgaSBpbiByYW5nZSgxLCAyNTEpOgogICAgICAgICAgICBtaWQgPSAobG8gKyBoaSkgLyBEZWNpbWFsKDIuMCkKICAgICAgICAgICAgdHJpMSA9IGdldEFyZWEocjEgKyBtaWQsIHIzICsgbWlkLCByMSArIHIzKQogICAgICAgICAgICB0cmkyID0gZ2V0QXJlYShyMSArIG1pZCwgcjIgKyBtaWQsIHIxICsgcjIpCiAgICAgICAgICAgIHRyaTMgPSBnZXRBcmVhKHIyICsgbWlkLCByMyArIG1pZCwgcjIgKyByMykKICAgICAgICAgICAgaWYgKHRyaTEgKyB0cmkyICsgdHJpMykgPj0gdG90YWw6CiAgICAgICAgICAgICAgICBoaSA9IG1pZAogICAgICAgICAgICBlbHNlOgogICAgICAgICAgICAgICAgbG8gPSBtaWQKICAgICAgICBwcmludCgiezouNTBmfSIuZm9ybWF0KGhpKSkKCmlmIF9fbmFtZV9fID09ICJfX21haW5fXyI6CiAgICBtYWluKCk=