comefrom: <doocs>1029.Two City Scheduling_1.py
code: def twoCitySchedCost( costs: List[List[int]]) -> int:
      costs.sort(key=lambda x: x[0] - x[1])
      n = len(costs) >> 1
      return sum(costs[i][0] + costs[i + n][1] for i in range(n))
masked: def sample_funcname ( var_0 : List [ List [ int ] ] ) -> int :
      var_0.sort ( var_4 = lambda var_5 : var_5 [ 0 ] - var_5 [ 1 ] )
      var_9 = len ( var_0 ) >> 1
      return sum ( var_0 [ var_11 ] [ 0 ] + var_0 [ var_11 + var_9 ] [ 1 ] for var_11 in range ( var_9 ) )
  