#D2148. Circumscribed Circle of a Triangle
Circumscribed Circle of a Triangle
Circumscribed Circle of a Triangle
Write a program which prints the central coordinate and the radius of a circumscribed circle of a triangle which is constructed by three points , and on the plane surface.
Constraints
Input
Input consists of several datasets. In the first line, the number of datasets is given. Each dataset consists of:
in a line. All the input are real numbers.
Output
For each dataset, print , and separated by a space in a line. Print the solution to three places of decimals. Round off the solution to three decimal places.
Example
Input
1 0.0 0.0 2.0 0.0 2.0 2.0
Output
1.000 1.000 1.414
inputFormat
Input
Input consists of several datasets. In the first line, the number of datasets is given. Each dataset consists of:
in a line. All the input are real numbers.
outputFormat
Output
For each dataset, print , and separated by a space in a line. Print the solution to three places of decimals. Round off the solution to three decimal places.
Example
Input
1 0.0 0.0 2.0 0.0 2.0 2.0
Output
1.000 1.000 1.414
样例
1
0.0 0.0 2.0 0.0 2.0 2.0
1.000 1.000 1.414