@@ -0,0 +1,880 @@
+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        while (true) %7B%0A%0A            int depth = sc.nextInt();%0A            int width = sc.nextInt();%0A            int height = sc.nextInt();%0A%0A            if (depth == 0 && width == 0 && height == 0) %7B%0A                return;%0A            %7D%0A%0A            double hypotenusMin = Math.sqrt(depth * depth + width * width);%0A            hypotenusMin = Math.min(hypotenusMin, Math.sqrt(width * width + height * height));%0A            hypotenusMin = Math.min(hypotenusMin, Math.sqrt(depth * depth + height * height));%0A%0A            int n = sc.nextInt();%0A%0A            for (int i = 0; i %3C n; i++) %7B%0A%0A                int radius = sc.nextInt();%0A%0A                System.out.println(hypotenusMin %3C 2 * radius ? %22OK%22 : %22NA%22);%0A%0A            %7D%0A%0A        %7D%0A%0A    %7D%0A%0A%7D%0A

Create : 0107