Andrey's submission of Pishty and Triangles | CodeChef