comefrom: <doocs>1887.Reduction Operations to Make the Array Elements Equal_1.py
code: def reductionOperations( nums: List[int]) -> int:
      nums.sort()
      ans = cnt = 0
      for i, v in enumerate(nums[1:]):
          if v != nums[i]:
              cnt += 1
          ans += cnt
      return ans
masked: def sample_funcname ( var_0 : List [ int ] ) -> int :
      var_0.sort ( )
      var_2 = var_1 = 0
      for var_3 , var_4 in enumerate ( var_0 [ 1 : ] ) :
          if var_4 != var_0 [ var_3 ] :
              var_1 += 1
          var_2 += var_1
      return var_2
  