comefrom: <doocs>2226.Maximum Candies Allocated to K Children_1.py
code: def maximumCandies( candies: List[int], k: int) -> int:
      left, right = 0, max(candies)
      while left < right:
          mid = (left + right + 1) >> 1
          cnt = sum(v // mid for v in candies)
          if cnt >= k:
              left = mid
          else:
              right = mid - 1
      return left
masked: def sample_funcname ( var_0 : List [ int ] , var_1 : int ) -> int :
      var_2 , var_3 = 0 , max ( var_0 )
      while var_2 < var_3 :
          var_4 = ( var_2 + var_3 + 1 ) >> 1
          var_6 = sum ( var_5 // var_4 for var_5 in var_0 )
          if var_6 >= var_1 :
              var_2 = var_4
          else :
              var_3 = var_4 - 1
      return var_2
  