@@ -0,0 +1,1033 @@
+// https://community.topcoder.com/stat?c=problem_statement&pm=3560%0A%0Apublic class InequalityChecker %7B%0A%09public static int%5B%5D getDifferences(int n) %7B%0A%09%09int s = 0;%0A%09%09%0A%09%09for (int i = 1; i %3C= (n-1); ++i) %7B%0A%09%09%09s += (int) Math.pow(i, 3);%0A%09%09%7D%0A%09%09%0A%09%09int S = s + ((int) Math.pow(n, 3));%0A%09%09%0A%09%09boolean sExpressionHasNoRemainder = ( (S+s) %25 2 == 0 );%0A%09%09boolean nExpressionHasNoRemainder = ( ((int) Math.pow(n, 4)) %25 4 == 0 );%0A%09%09%0A%09%09if (sExpressionHasNoRemainder && nExpressionHasNoRemainder) %7B%0A%09%09%09int sExpressionResult = (S+s) / 2;%0A%09%09%09int nExpressionResult = (int) Math.pow(n, 4) / 4;%0A%09%09%09int finalResult = sExpressionResult - nExpressionResult;%0A%0A%09%09%09return new int%5B%5D %7B finalResult, 1 %7D;%0A%09%09%7D%0A%09%09else if (!sExpressionHasNoRemainder && nExpressionHasNoRemainder)%7B%0A%09%09%09return new int%5B%5D %7B (S+s) - (((int) Math.pow(n, 4)) * 2), 2 %7D;%0A%09%09%7D%0A%09%09else if (sExpressionHasNoRemainder && !nExpressionHasNoRemainder) %7B%0A%09%09%09return new int%5B%5D %7B ((S+s) * 4) - ((int) Math.pow(n, 4)), 4 %7D;%0A%09%09%7D%0A%09%09else %7B%0A%09%09%09return new int%5B%5D %7B ((S+s) * 2) - ((int) Math.pow(n, 4)), 4 %7D;%0A%09%09%7D%0A%09%7D%0A%7D%0A

Create InequalityChecker.java