@@ -0,0 +1,703 @@
+import java.io.*;%0Aimport java.util.*;%0Aimport java.text.*;%0Aimport java.math.*;%0Aimport java.util.regex.*;%0A%0Apublic class Solution %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner in = new Scanner(System.in);%0A        int q = in.nextInt();%0A        for(int a0 = 0; a0 %3C q; a0++)%7B%0A            double x = in.nextInt();%0A            double y = in.nextInt();%0A            double z = in.nextInt();%0A            if(z==(x+y)/2 %7C%7C (y==x))%7B%0A                System.out.println(%22Mouse C%22);%0A            %7D%0A            else if(Math.abs(x-z)%3EMath.abs(y-z))%7B%0A                System.out.println(%22Cat B%22);%0A            %7D%0A            else%7B%0A                System.out.println(%22Cat A%22);%0A            %7D%0A        %7D%0A    %7D%0A%7D%0A

add CatsAndAMouse.java