for i=1to read_int()do Scanf.scanf"%f %f %f %f %f %f
"(fun a b c d e f->let g=2.*.(c-.a)and h=2.*.(d-.b)and i=2.*.(e-.c)and j=2.*.(f-.d)and k=c*.c+.d*.d-.a*.a-.b*.b and l=e*.e+.f*.f-.c*.c-.d*.d in let m=g*.j-.h*.i in let x=j/.m*.k-.h/.m*.l and y=g/.m*.l-.i/.m*.k in Printf.printf"%.3f %.3f %.3f
"x y (sqrt((a-.x)**2.+.(b-.y)**2.)))done