'''
Write a function in Python according to the given specification:
----------------------------------------------------------------

Input parameters
  A:   Integer matrix (2D array with the same number of rows and columns)

Return value:
  Return value is True if and only if 
  all values on both diagonals are equal.
  
Examples:
  A = [  
      [ 2, 1, 0, 1, 2 ]
      [ 3, 2, 1, 2, 3 ]
      [ 2, 3, 2, 3, 2 ]
      [ 3, 2, 1, 2, 3 ]
      [ 2, 1, 0, 1, 2 ]
     ]
Return value:   True

  A = [ 
      [ 8, 7, 8, 7 ]
      [ 8, 8, 8, 8 ]
      [ 8, 8, 8, 8 ]
      [ 8, 7, 8, 8 ]
      ]
Return value:   False
'''


'''
Write a function in Python according to the given specification:
----------------------------------------------------------------

Input parameters
  A:   Integer matrix (2D array)

Return value:
  Return value is equal to the number of columns
  in the matrix which contain only 0's.

Examples:
  A = [
      [ 0, 1, 0, 0, 0 ]
      [ 0, 0, 0, 0, 0 ]
      [ 0, 0, 0, 3, 0 ]
      [ 0, 0, 0, 0, 0 ]
      [ 2, 1, 0, 0, 0 ]
     ]
Return value:   2

  A = [
      [ 0, 0, 0 ]
      [ 0, 0, 0 ]
      [ 0, 0, 0 ]
    ]
Return value:   3
'''


'''
Write a function in Python according to the given specification:
----------------------------------------------------------------

Input parameters
  A:   integer matrix (2D array)

Return value:
  Return value is True if and only if
  the maximum value in the matrix
  appears only once in the matrix.
  Otherwise, the return value is False.

Examples:
  A = [
      [ 1, 2, 3, 4, 5 ]
      [ 5, 4, 3, 2, 1 ]
      [ 6, 5, 4, 3, 2 ]
      [ 3, 4, 5, 6, 0 ]
      [ 1, 1, 2, 1, 1 ]
     ]
Return value:  False

  A = [
      [ 2, 3, 4, 5 ]
      [ 1, 0, 1, 0 ]
      [ 1, 9, 1, 1 ]
      [ 8, 1, 1, 0 ]
      ]
Return value:  True
'''

'''
Write a function in Python according to the given specification:
----------------------------------------------------------------

Input parameters
  A:   integer matrix (2D array)

Return value:
  Return value is True if and only if the values in each column
  appear in ascending order from top to bottom.
  Otherwise, the return value is False.

Examples:
  A = [
      [ 1, 2, 1, 0 ]
      [ 2, 4, 3, 2 ]
      [ 3, 6, 5, 7 ]
      [ 4, 8, 7, 9 ]
      ]
Return value:  True


  A = [
      [ 1, 1, 1, 5, 1 ]
      [ 2, 2, 2, 4, 2 ]
      [ 3, 3, 3, 3, 3 ]
      [ 4, 4, 4, 2, 4 ]
      [ 5, 5, 5, 1, 6 ]
     ]
Return value:  False
'''

