1060:同因查找(python) 摘要:解题思路:注意事项:参考代码:for i in range(10,1001): if(i%2==0 and i%3==0 and i%7==0): print(i) …… 题解列表 2023年12月09日 0 点赞 0 评论 470 浏览 评分:0.0
同因查找(还行) 摘要:解题思路:注意事项:参考代码:for i in range(10,1000): if i%2==0 and i%3==0 and i%7==0: print(i) …… 题解列表 2022年12月01日 0 点赞 0 评论 504 浏览 评分:0.0
二级C语言-同因查找--朴素方法[python] 摘要:解题思路:循环体里加入筛选条件注意事项:参考代码:for k in range(10,1001): if k%2==0 and k%3==0 and k%7==0: print(k…… 题解列表 2022年09月09日 0 点赞 0 评论 796 浏览 评分:0.0
这种题还需要看题解吗? 摘要:解题思路:就循环注意事项:参考代码:for i in range(10,1001): if i%2==0 and i%3==0 and i%7==0: print(i)…… 题解列表 2022年08月10日 0 点赞 0 评论 786 浏览 评分:9.9
[编程入门]同因查找---for循环---(Python) ```pythonforiinrange(10,1001):ifi%2==0andi%3==0andi%7==0:print(i)```通过for循环遍历10-1000,判断是否能被2,3,7整除能就输出 题解列表 2021年11月03日 0 点赞 1 评论 1242 浏览 评分:9.9
编写题解 1060: 二级C语言-同因查找(python语言) 摘要:解题思路:使用循环解题注意事项:参考代码:a = 10while a<1000: if a%2==0 and a%3==0 and a%7==0: print(a) …… 题解列表 2021年07月07日 0 点赞 0 评论 534 浏览 评分:0.0
二级C语言-同因查找-题解(Python代码)------直接输出42的倍数,比遍历更简洁 直接输出42的倍数,时间复杂度更低直接输出42的倍数,时间复杂度更低```pythonforiinrange(1,int(1000/42)+1):print(i*42)``` 题解列表 2020年01月17日 0 点赞 0 评论 1812 浏览 评分:9.9
二级C语言-同因查找-题解(Python代码)python ```pythonforiinrange(10,1000):#1到999ifi%2==0andi%3==0andi%7==0:#能同时被2、3、7整除的数print(i)#输出并且换行``` 题解列表 2019年11月24日 0 点赞 0 评论 1648 浏览 评分:6.0