@@ -0,0 +1,680 @@
+package java_problems.beginner;%0D%0A%0D%0Aimport java.util.Scanner;%0D%0A%0D%0Apublic class TheBlockGame %7B%0D%0A%0D%0A%09public static void main(String%5B%5D args) %7B%0D%0A%09%09%0D%0A%09%09Scanner sc = new Scanner(System.in);%0D%0A%09%09int numCases = Integer.parseInt(sc.nextLine());%0D%0A%09%09for (int i = 0; i %3C numCases; i++) %7B%0D%0A%09%09%09char%5B%5D numArray = sc.nextLine().toCharArray();%0D%0A%09%09%09boolean isPalindrome = true;%0D%0A%09%09%09for (int index = 0; index %3C numArray.length / 2; index++) %7B%0D%0A%09%09%09%09if (numArray%5Bindex%5D != numArray%5BnumArray.length - 1 - index%5D) %7B%0D%0A%09%09%09%09%09isPalindrome = false;%0D%0A%09%09%09%09%09break;%0D%0A%09%09%09%09%7D%0D%0A%09%09%09%7D%0D%0A%09%09%09if (isPalindrome) %7B%0D%0A%09%09%09%09System.out.println(%22wins%22);%0D%0A%09%09%09%7D else %7B%0D%0A%09%09%09%09System.out.println(%22losses%22);%0D%0A%09%09%09%7D%0D%0A%09%09%7D%0D%0A%09%09sc.close();%0D%0A%09%7D%0D%0A%7D

Add TheBlockGame