@@ -0,0 +1,824 @@
+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            String correctAnswer = sc.next();%0A            String answer = sc.next();%0A%0A            if (correctAnswer.equals(%220%22) && answer.equals(%220%22)) %7B%0A                break;%0A            %7D%0A%0A            int hitCount = 0;%0A            int blowCount = 0;%0A%0A            for (int i = 0; i %3C 4; i++) %7B%0A%0A                if (correctAnswer.charAt(i) == answer.charAt(i)) %7B%0A                    hitCount++;%0A                    continue;%0A                %7D%0A%0A                if (0 %3C= correctAnswer.indexOf(answer.charAt(i))) %7B%0A                    blowCount++;%0A                %7D%0A%0A            %7D%0A%0A            System.out.println(hitCount + %22 %22 + blowCount);%0A%0A        %7D%0A%0A    %7D%0A%0A%7D%0A

Create : 0226