蓝桥杯Python组中,哪个幸运数字排名第几?
- 内容介绍
- 文章标签
- 相关推荐
本文共计147个文字,预计阅读时间需要1分钟。
蓝桥杯Python组——第几个幸运数字pythonimport osimport syscount=0for a in range(30): for b in range(30): for c in range(30): if 3 * a * 5 * b * 7 * c==59084709587505: count +=1print(count + 1)
蓝桥杯python组——第几个幸运数字
import sys
count=0
for a in range(30):
for b in range(30):
for c in range(30):
if 3**a*5**b*7**c<=59084709587505:
count+=1
print(count-1)
最终答案为1905
谢谢大家的支持,您的一键三连是 罡罡同学前进的最大动力!
本文共计147个文字,预计阅读时间需要1分钟。
蓝桥杯Python组——第几个幸运数字pythonimport osimport syscount=0for a in range(30): for b in range(30): for c in range(30): if 3 * a * 5 * b * 7 * c==59084709587505: count +=1print(count + 1)
蓝桥杯python组——第几个幸运数字
import sys
count=0
for a in range(30):
for b in range(30):
for c in range(30):
if 3**a*5**b*7**c<=59084709587505:
count+=1
print(count-1)
最终答案为1905
谢谢大家的支持,您的一键三连是 罡罡同学前进的最大动力!

