Can someone explain me the 3rd test case of the sample?
I think the solution should be 24 with Mn = 6 as it’s possible to make a matrix 6-strange, es:
4 8 7
2 5 9
1 3 6
with Mn = 5 i get the result of the sample (48), maybe i have misunderstood the definition of Mn.
thanks for the help