input:[10,5,2,6],100 output:8
Violent solution, pay attention to the way of recording count, it may be missed
def count_min_c(nums,k): count = 0 for i in range(len(nums)): mul = 1 for j in range(len(nums)): mul *= nums[j] if mul>=k: break count +=1 return count