@@ -0,0 +1,1041 @@
+import java.util.Scanner;%0A%0Apublic class Main %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A%0A        Scanner sc = new Scanner(System.in);%0A%0A        int n = sc.nextInt();%0A%0A        for (int i = 0; i %3C n; i++) %7B%0A%0A            double x1 = sc.nextDouble();%0A            double y1 = sc.nextDouble();%0A            double x2 = sc.nextDouble();%0A            double y2 = sc.nextDouble();%0A            double x3 = sc.nextDouble();%0A            double y3 = sc.nextDouble();%0A%0A            double a1 = 2 * (x2 - x1);%0A            double b1 = 2 * (y2 - y1);%0A            double c1 = x1 * x1 - x2 * x2 + y1 * y1 - y2 * y2;%0A%0A            double a2 = 2 * (x3 - x1);%0A            double b2 = 2 * (y3 - y1);%0A            double c2 = x1 * x1 - x3 * x3 + y1 * y1 - y3 * y3;%0A%0A            double px = (b1 * c2 - c1 * b2) / (b2 * a1 - b1 * a2);%0A            double py = (a2 * c1 - a1 * c2) / (b2 * a1 - a2 * b1);%0A%0A            double r = Math.sqrt((x1 - px) * (x1 - px) + (y1 - py) * (y1 - py));%0A%0A            System.out.printf(%22%25.3f %25.3f %25.3f%5Cn%22, px, py, r);%0A%0A        %7D%0A%0A    %7D%0A%0A%7D%0A

Create 0010