comefrom: <doocs>0713.Subarray Product Less Than K_1.py
code: def numSubarrayProductLessThanK( nums: List[int], k: int) -> int:
      ans, s, j = 0, 1, 0
      for i, v in enumerate(nums):
          s *= v
          while j <= i and s >= k:
              s //= nums[j]
              j += 1
          ans += i - j + 1
      return ans
masked: def sample_funcname ( var_0 : List [ int ] , var_1 : int ) -> int :
      var_2 , var_3 , var_4 = 0 , 1 , 0
      for var_5 , var_6 in enumerate ( var_0 ) :
          var_3 *= var_6
          while var_4 <= var_5 and var_3 >= var_1 :
              var_3 //= var_0 [ var_4 ]
              var_4 += 1
          var_2 += var_5 - var_4 + 1
      return var_2
  