@@ -0,0 +1,529 @@
+// https://community.topcoder.com/stat?c=problem_statement&pm=10586%0A%0Apublic class Archery %7B%0A%09public static double expectedPoints(int N, int%5B%5D ringPoints) %7B%0A%09%09double expectedPointValue = 0;%0A%09%09int totalArea = (N+1) * (N+1); // the area of the square surrounding all the circles%0A%09%09%0A%09%09for (int i = 0; i %3C= N; ++i) %7B%0A%09%09%09int sectionArea = (2*i + 1);%0A%09%09%09double probabilityOfHittingSection = (double) sectionArea / totalArea;%0A%09%09%09expectedPointValue += ringPoints%5Bi%5D * probabilityOfHittingSection;%0A%09%09%7D%0A%09%09%0A%09%09return expectedPointValue;%0A%09%7D%0A%7D%0A

Create Archery.java