Place one of the letters C, L, X, V or I into each of the 25 cells of a 5x5 grid so that each row and each column forms a 5-letter roman number under 300 (using the modern standard subtractive notation in which IV = 4, IX = 9, XL = 40, XLIX = 49, XC = 90, etc.). No roman number is used more than once, so there are ten different roman numbers. The rows are in descending order of value top-to-bottom and the columns are also in descending order left-to-right.
What is the sum of the values of the ten roman numbers?
The required total is 1072.