comefrom: <doocs>0506.Relative Ranks_1.py
code: def findRelativeRanks( score: List[int]) -> List[str]:
      n = len(score)
      idx = list(range(n))
      idx.sort(key=lambda x: -score[x])
      top3 = ['Gold Medal', 'Silver Medal', 'Bronze Medal']
      ans = [None] * n
      for i in range(n):
          ans[idx[i]] = top3[i] if i < 3 else str(i + 1)
      return ans
masked: def sample_funcname ( var_0 : List [ int ] ) -> List [ str ] :
      var_5 = len ( var_0 )
      var_8 = list ( range ( var_5 ) )
      var_8.sort ( var_10 = lambda var_11 : - var_0 [ var_11 ] )
      var_15 = [ 'Gold Medal' , 'Silver Medal' , 'Bronze Medal' ]
      var_17 = [ None ] * var_5
      for var_18 in range ( var_5 ) :
          var_17 [ var_8 [ var_18 ] ] = var_15 [ var_18 ] if var_18 < 3 else str ( var_18 + 1 )
      return var_17
  