@@ -0,0 +1,1081 @@
+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 xA = sc.nextDouble();%0A            double yA = sc.nextDouble();%0A            double rA = sc.nextDouble();%0A%0A            double xB = sc.nextDouble();%0A            double yB = sc.nextDouble();%0A            double rB = sc.nextDouble();%0A%0A            double hypotenuse = Math.sqrt((xB - xA) * (xB - xA) + (yB - yA) * (yB - yA));%0A%0A            double radiusDiff = Math.abs(rA - rB);%0A%0A            double radiusSum = rA + rB;%0A%0A            if (hypotenuse %3C radiusDiff) %7B%0A%0A                if (rA %3C rB) %7B%0A                    System.out.println(-2);%0A                %7D else %7B%0A                    System.out.println(2);%0A                %7D%0A%0A            %7D else %7B%0A%0A                if (radiusSum %3C hypotenuse) %7B%0A                    System.out.println(0);%0A                %7D else %7B%0A                    System.out.println(1);%0A                %7D%0A%0A            %7D%0A%0A        %7D%0A%0A    %7D%0A%0A%7D%0A

Create : 0023