shangjingbo's submission of Summing Slopes | CodeChef