@@ -0,0 +1,448 @@
+// https://community.topcoder.com/stat?c=problem_statement&pm=2297%0A%0Apublic class BettingMoney %7B%0A%09public static int moneyMade(int%5B%5D amounts, int%5B%5D centsPerDollar, int finalResult) %7B%0A%09%09int moneyMade = 0;%0A%09%09%0A%09%09for (int margin = 0; margin %3C amounts.length; ++margin) %7B%0A%09%09%09if (margin == finalResult) %7B%0A%09%09%09%09moneyMade -= amounts%5Bmargin%5D * centsPerDollar%5Bmargin%5D;%0A%09%09%09%7D%0A%09%09%09else %7B%0A%09%09%09%09moneyMade += amounts%5Bmargin%5D * 100;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%0A%09%09return moneyMade;%0A%09%7D%0A%7D%0A

Create BettingMoney.java