6:6 3 2 1
10: 1 2 5
#
res=[]
a=78120
for i in range(1,a+1):
h=a//i#6//1 =6
if h*i==a:
res.append(h)
temp=list(set(res))#转换为集合去重在换为列表
print(len(temp))
蓝桥杯算法真题--正约数
猜你喜欢
转载自blog.csdn.net/m0_62491934/article/details/124033625
今日推荐
周排行