comefrom: <doocs>0807.Max Increase to Keep City Skyline_1.py
code: def maxIncreaseKeepingSkyline( grid: List[List[int]]) -> int:
      rmx = [max(row) for row in grid]
      cmx = [max(col) for col in zip(*grid)]
      return sum(
          (min(rmx[i], cmx[j]) - grid[i][j])
          for i in range(len(grid))
          for j in range(len(grid[0]))
      )
masked: def sample_funcname ( var_0 : List [ List [ int ] ] ) -> int :
      var_5 = [ max ( var_4 ) for var_4 in var_0 ]
      var_8 = [ max ( var_6 ) for var_6 in zip ( * var_0 ) ]
      return sum ( ( min ( var_5 [ var_11 ] , var_8 [ var_12 ] ) - var_0 [ var_11 ] [ var_12 ] ) for var_11 in range ( len ( var_0 ) ) for var_12 in range ( len ( var_0 [ 0 ] ) ) )
  