@@ -0,0 +1,494 @@
+// https://community.topcoder.com/stat?c=problem_statement&pm=12524%0A%0Aimport java.util.Arrays;%0A%0Apublic class PrimalUnlicensedCreatures %7B%0A%09public static int maxWins(int initialLevel, int%5B%5D grezPower) %7B%0A%09%09int winCount = 0;%0A%09%09%0A%09%09Arrays.sort(grezPower);%0A%09%09int grezPowerLevel = initialLevel;%0A%09%09%0A%09%09for (int i = 0; i %3C grezPower.length; ++i) %7B%0A%09%09%09if (grezPowerLevel %3E grezPower%5Bi%5D) %7B%0A%09%09%09%09grezPowerLevel += grezPower%5Bi%5D / 2;%0A%09%09%09%09winCount++;%0A%09%09%09%7D%0A%09%09%09else %7B%0A%09%09%09%09break;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%0A%09%09return winCount;%0A%09%7D%0A%7D%0A

Create PrimalUnlicensedCreatures.java