shangjingbo's submission of Divide and conquer | CodeChef