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_1 = lambda var_2 : var_2 [ 0 ] - var_2 [ 1 ] )
      var_3 = len ( var_0 ) >> 1
      return sum ( var_0 [ var_4 ] [ 0 ] + var_0 [ var_4 + var_3 ] [ 1 ] for var_4 in range ( var_3 ) )
  