1530: 蓝桥杯算法提高VIP-数字黑洞 摘要:解题思路:注意事项:参考代码:n=input() s=0 while n!=6174: ls=[int(i) for i in str(n) if i.isdigit()] i…… 题解列表 2022年03月11日 0 点赞 0 评论 134 浏览 评分:0.0
1017: [编程入门]完数的判断 摘要:解题思路:解题思维难度不大,关键在于提高效率。注意事项:参考代码:正确版本n = eval(input()) for i in range(2, n+1): l = [1] a …… 题解列表 2022年03月11日 0 点赞 0 评论 417 浏览 评分:6.0
1507: 蓝桥杯算法提高VIP-去注释 摘要:解题思路:注意事项:参考代码:s=0 while True: try: st=input() if '/*' in st:   题解列表 2022年03月11日 0 点赞 0 评论 376 浏览 评分:8.0
1512: 蓝桥杯算法提高VIP-多项式输出 摘要:n=int(input()) a=list(map(int,input().split())) l=len(a) b=[] for i in range(len(a)): b.app…… 题解列表 2022年03月11日 0 点赞 0 评论 198 浏览 评分:0.0
1518: 蓝桥杯算法提高VIP-寻找三位数 摘要:解题思路:注意事项:参考代码:st=[str(i) for i in range(1,10)] ls=[] for i in st: z=st[:] z.remove(i) …… 题解列表 2022年03月11日 0 点赞 0 评论 192 浏览 评分:0.0
最大公约数与最小公倍数模板 超简单超短代码 摘要:解题思路:最小公约数欧几里得算法gcd(a,b)=gcd(b,a mod b)最小公倍数是a*b//最小公约数注意事项:参考代码:def gcd(a, b): if b == 0: …… 题解列表 2022年03月11日 0 点赞 1 评论 378 浏览 评分:9.9
编写题解 1018: [编程入门]有规律的数列求和python 摘要:解题思路:不用while,用for注意事项:参考代码:N=int(input())c,d=2,1sn=a=c/dfor i in range(1,N): c,d=c+d,c a=c/d …… 题解列表 2022年03月10日 0 点赞 0 评论 729 浏览 评分:9.9
做题记录2022.3.10(ac:100%) 摘要:解题思路:暴力,但不完全暴力注意事项:参考代码:string = input().strip() length = len(string) max_len = float("-inf") # 参…… 题解列表 2022年03月10日 0 点赞 0 评论 193 浏览 评分:0.0
做题记录2022.3.10(ac:100%) 摘要:解题思路:我也没有思路,写的题多了,也便有了套路按照代码注释的交换字符就能得到下一个字典序字符串注意事项:参考代码:temp = input().strip() string = list(temp…… 题解列表 2022年03月10日 0 点赞 0 评论 204 浏览 评分:9.9
1431: 蓝桥杯2014年第五届真题-分糖果 摘要:解题思路:注意事项:参考代码:n = eval(input()) l = list(map(int, input().split())) s = 0 while True: for i…… 题解列表 2022年03月10日 0 点赞 0 评论 233 浏览 评分:0.0