Max Grid Sum

A collection of 1 post

Max Grid Sum

Problem Numbers are written on the 5*5 grid as shown below. Given a grid of N*N, output the largest of the sum of each row, the sum of each column, and the sum of the two diagonals. input A natural number N is given in the first line (1<=N<=50). From the second line to the N lines, each line is…