1554: 蓝桥杯算法提高VIP-素数求和 摘要:解题思路:注意事项:参考代码:n=int(input()) ls=[0 if i%2==0 else 1 for i in range(n+1)] ls[1],ls[2]=0,1 #print…… 题解列表 2022年04月21日 0 点赞 0 评论 360 浏览 评分:0.0
编写题解 1112: C语言考试练习题_一元二次方程(python) 摘要:运用一元二次求根公式即可,无需考虑无实数解的情况a,b,c = map(int, input().split()) x1 = (-b + pow(pow(b, 2) - 4 * a * c, 0.5…… 题解列表 2022年04月21日 0 点赞 0 评论 637 浏览 评分:9.9
一个用到列表的思路,可能麻烦点 摘要:解题思路:用list[-1]来解题注意事项:参考代码:a = int(input())list1 = [a,(a+1)/2]# print(list1[-1])if a == 0: print(…… 题解列表 2022年04月20日 0 点赞 0 评论 396 浏览 评分:0.0
1546: 蓝桥杯算法提高VIP-班级排名(python) 摘要:解题思路:注意事项:参考代码:n=int(input()) dic={} for i in range(n): dic[input()]=0 m=int(input()) for i…… 题解列表 2022年04月20日 0 点赞 0 评论 473 浏览 评分:0.0
1556: 蓝桥杯算法提高VIP-统计单词数 摘要:解题思路:注意事项:参考代码:ls=[',','.'] s=list(map(str,input().split())) for i in range(len(s)…… 题解列表 2022年04月20日 0 点赞 0 评论 458 浏览 评分:0.0
2518: 信息学奥赛一本通T1620-质因数分解 摘要:解题思路:注意事项:参考代码:def isprime(x): lt=[2,3,5,7] ls=['1','3','7','9…… 题解列表 2022年04月20日 0 点赞 0 评论 844 浏览 评分:9.9
1464: 蓝桥杯基础练习VIP-分解质因数 摘要:解题思路:注意事项:参考代码:def isprime(x): lt=[2,3,5,7] ls=['1','3','7','9…… 题解列表 2022年04月20日 0 点赞 0 评论 405 浏览 评分:9.9
1564: 蓝桥杯算法提高VIP-质因数2 摘要:解题思路:注意事项:参考代码:def isprime(x): lt=[2,3,5,7] ls=['1','3','7','9…… 题解列表 2022年04月20日 0 点赞 0 评论 514 浏览 评分:0.0
1563: 蓝桥杯算法提高VIP-质因数 摘要:解题思路:注意事项:参考代码:def isprime(x): lt=[2,3,5,7] ls=['1','3','7','9…… 题解列表 2022年04月20日 0 点赞 0 评论 445 浏览 评分:0.0
蓝桥杯2018年第九届真题-等腰三角形 摘要:解题思路:注意事项:参考代码:n=int(input())s=''for i in range(1,1000): s+=str(i)l=[['.'for j in…… 题解列表 2022年04月19日 0 点赞 0 评论 569 浏览 评分:9.9