AC代码: public static void main(String[] args) { Scanner input = new Scanner(System.in); int n = Integer.parseInt(input.nextLine()); for (int i = 0; i < n; i++) { if ((input.nextLine().length() & 1) == 1) { System.out.println("Cassidy"); } else { System.out.println("Eleanore"); } } }