@@ -0,0 +1,904 @@
+// https://community.topcoder.com/stat?c=problem_statement&pm=2341%0A%0Apublic class ScoringEfficiency %7B%0A%09public static double getPointsPerShot(String%5B%5D gameLog) %7B%0A%09%09int totalPoints = 0;%0A%09%09int fieldGoalsAttempted = 0;%0A%09%09int freeThrowsAttempted = 0;%0A%09%09%0A%09%09for (String log : gameLog) %7B%0A%09%09%09boolean madeShot = log.contains(%22Made%22);%0A%09%09%09boolean madeTwoPointer = log.contains(%222%22);%0A%09%09%09boolean madeThreePointer = log.contains(%223%22);%0A%09%09%09%0A%09%09%09if (madeShot) %7B%0A%09%09%09%09if (madeTwoPointer) %7B%0A%09%09%09%09%09totalPoints += 2;%0A%09%09%09%09%7D%0A%09%09%09%09else if (madeThreePointer) %7B%0A%09%09%09%09%09totalPoints += 3;%0A%09%09%09%09%7D%0A%09%09%09%09else %7B%0A%09%09%09%09%09totalPoints += 1;%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09boolean attemptedFreeThrow = log.contains(%22free throw%22);%0A%09%09%09if (attemptedFreeThrow) %7B%0A%09%09%09%09freeThrowsAttempted++;%0A%09%09%09%7D%0A%09%09%09else %7B%0A%09%09%09%09fieldGoalsAttempted++;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%0A%09%09double pointsPerShot = totalPoints / ( fieldGoalsAttempted + (0.5 * freeThrowsAttempted) );%0A%09%09%0A%09%09return pointsPerShot;%0A%09%7D%0A%7D%0A

Create ScoringEfficiency.java