永恒的蓝色梦想
发表于 2019-8-18 22:33:06
def sm(lis):
i=1
for j in lis:i*=j
return i
def func(num):
l=
i=13
while 1:
if sm(l)==num:return l
del l;l.append(i);i+=2
print(func(135135))#3
kinkon
发表于 2022-3-19 11:02:18
def fun146(n):
q = deque([])
A = 1
i = 1
while True:
q.append(i)
A *= i
if len(q) == 6:
if A == n:
return q
A //= q.popleft()
i += 2
print(fun146(135135))