NC222457. [USACOJan2021S]SpacedOut
描述
输入描述
The first line contains N. The next N lines contain N integers each. The jth integer of the ith line from the top is the value of aij.
输出描述
Print one integer giving the maximum possible beauty of the resulting photo.
示例1
输入:
4 3 3 1 1 1 1 3 1 3 3 1 1 1 1 3 3
输出:
22
说明:
In this sample, the maximum beauty can be achieved with the following placement: