CodeChef April Long Challenge, solutions.