Олимпиадный тренинг

Задача 7124. The sum of the maximum and minimum


Input: The program receives as input the number N <= 15, which is the number of rows and columns in the array. Next, the input stream contains N lines of N numbers that are elements of the array.

Output: The program should print a single number - the sum of the maximum element of the main diagonal and the minimum element of the secondary diagonal

Examples
# Input Output
1
3
11 24 19 
8 21 10 
16 24 14
37