0
点赞
收藏
分享

微信扫一扫

蓝桥杯python组——第几个幸运数字

凯约 2022-04-04 阅读 33

蓝桥杯python组——第几个幸运数字

在这里插入图片描述

import os
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
谢谢大家的支持,您的一键三连是 罡罡同学前进的最大动力!

举报

相关推荐

0 条评论