Tomaz Hocevar's submission of Summing Slopes | CodeChef