25 teams scored 1362 points on this task, for a maximum score of 100, an average score of 54.5 and a median score of 46.
Given a grid of integers A consisting of N rows and M columns, where each of its cells has a color and a number written on it. Find the maximum sum of numbers on the cells of a path that goes only right and down, such that its starting and ending cells have the same color.