comefrom: <doocs>1629.Slowest Key_1.py
code: def slowestKey( releaseTimes: List[int], keysPressed: str) -> str:
      ans = keysPressed[0]
      mx = releaseTimes[0]
      for i in range(1, len(keysPressed)):
          d = releaseTimes[i] - releaseTimes[i - 1]
          if d > mx or (d == mx and ord(keysPressed[i]) > ord(ans)):
              mx = d
              ans = keysPressed[i]
      return ans
masked: def sample_funcname ( var_0 : List [ int ] , var_1 : str ) -> str :
      var_2 = var_1 [ 0 ]
      var_3 = var_0 [ 0 ]
      for var_4 in range ( 1 , len ( var_1 ) ) :
          var_5 = var_0 [ var_4 ] - var_0 [ var_4 - 1 ]
          if var_5 > var_3 or ( var_5 == var_3 and ord ( var_1 [ var_4 ] ) > ord ( var_2 ) ) :
              var_3 = var_5
              var_2 = var_1 [ var_4 ]
      return var_2
  