comefrom: <doocs>1014.Best Sightseeing Pair_1.py
code: def maxScoreSightseeingPair( values: List[int]) -> int:
      res, mx = 0, values[0]
      for i in range(1, len(values)):
          res = max(res, values[i] - i + mx)
          mx = max(mx, values[i] + i)
      return res
masked: def sample_funcname ( var_0 : List [ int ] ) -> int :
      var_4 , var_5 = 0 , var_0 [ 0 ]
      for var_9 in range ( 1 , len ( var_0 ) ) :
          var_4 = max ( var_4 , var_0 [ var_9 ] - var_9 + var_5 )
          var_5 = max ( var_5 , var_0 [ var_9 ] + var_9 )
      return var_4
  