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.
Input: The program should output
1) the word YES - if the sum of the elements located on the main diagonal is greater than the sum of the elements located on the secondary diagonal
2) word NO - if condition 1 is not met
Examples
# |
Input |
Output |
1 |
3
24 23 5
27 19 6
15 16 25
|
YES |
2 |
3
17 20 18
25 9 26
30 4 11
|
NO |