@@ -0,0 +1,532 @@
+// https://community.topcoder.com/stat?c=problem_statement&pm=11194%0A%0Apublic class TheBoredomDivTwo %7B%0A%09public static int find(int n, int m, int j, int b) %7B%0A%09%09boolean%5B%5D isBored = new boolean%5Bn+m%5D;%0A%09%09for (int i = 0; i %3C n; ++i) %7B%0A%09%09%09isBored%5Bi%5D = true;%0A%09%09%7D%0A%09%09%0A%09%09if (!isBored%5Bj-1%5D) %7B%0A%09%09%09isBored%5Bj-1%5D = true;%0A%09%09%7D%0A%09%09if (!isBored%5Bb-1%5D) %7B%0A%09%09%09isBored%5Bb-1%5D = true;%0A%09%09%7D%0A%09%09%0A%09%09int numberOfBoredPeople = 0;%0A%09%09for (int i = 0; i %3C isBored.length; ++i) %7B%0A%09%09%09if (isBored%5Bi%5D) %7B%0A%09%09%09%09numberOfBoredPeople++;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%0A%09%09return numberOfBoredPeople;%0A%09%7D%0A%7D%0A

Create TheBoredomDivTwo.java