Given a matrix of size n×mntimes mn×m and an integer k{k}k, where Ai,j=lcm(i,j)A_{i,j} = lcmAi,j=lcm(i,j), the least common multiple of i{i}i and j{j}j. You should determine the sum of the maximums among all k×kktimes kk×k submatrices.
Given a matrix of size n×mntimes mn×m and an integer k{k}k, where Ai,j=lcm(i,j)A_{i,j} = lcm(i, j)Ai,j=lcm(i,j), the least common multiple of i{i}i and j{j}j. You should determine the sum of the maximums among all k×kktimes kk×k submatrices.
(图片来源网络,侵删)