Python 挑战史上最短代码 摘要:参考代码:n=int(input())for i in range(2,n+1): for j in range(2,i): if i%j==0: break…… 题解列表 2023年03月27日 0 点赞 0 评论 270 浏览 评分:0.0
分数统计python 摘要:解题思路:写个题解,这么多代码不能白敲了。。。。注意事项:参考代码:n = int(input())a = b = c = d = e = 0L1 = []L2 = []L3 = []L4 = []L…… 题解列表 2023年03月26日 0 点赞 0 评论 357 浏览 评分:0.0
蓝桥杯算法提高VIP-数组替换 摘要:解题思路:注意事项:要加L[a+b:]参考代码:m,n = map(int,input().split())L1 = list(map(int,input().split()))L2 = list(m…… 题解列表 2023年03月26日 0 点赞 0 评论 335 浏览 评分:0.0
水仙花数判断 摘要:for i in range(1,9): for j in range(0,9): for k in range(0,9): if i*100+j*10+k=…… 题解列表 2023年03月26日 0 点赞 0 评论 324 浏览 评分:0.0
python不同单词个数统计 摘要:解题思路:set去重注意事项:参考代码:L = list(map(str,input().split()))L = list(set(L))print(len(L))…… 题解列表 2023年03月26日 0 点赞 0 评论 327 浏览 评分:0.0
自定义函数 摘要:def fact(n): x=1 for i in range(1,n+1): x=x*i return x def mypow(x,n): …… 题解列表 2023年03月26日 0 点赞 0 评论 311 浏览 评分:0.0
py最多82分此题 摘要:解题思路:注意事项:参考代码:n,m,x=map(int,input().split())a=[0]+list(map(int,input().split()))dp=[0]*100010hash=[…… 题解列表 2023年03月26日 0 点赞 0 评论 474 浏览 评分:4.7
这题py的测试用例有点问题(已过蓝桥官网)AC 摘要:解题思路:前缀和、差分的综合使用比如求区间和,在某个区间都加上1,不建议求更新数组后的和使再次使用前缀和求区间和,因为会多几次循环会超时,建议直接元素相乘可以少几次循环即可AC 代码有详细注释注意事项…… 题解列表 2023年03月26日 0 点赞 0 评论 676 浏览 评分:9.9
IP判断——python 摘要:解题思路:注意事项:参考代码:while True: try: L = list(map(str,input().split('.'))) s = 0…… 题解列表 2023年03月26日 0 点赞 0 评论 294 浏览 评分:0.0
列出最简真分数序列* 摘要:解题思路:注意事项:求余2与求余5要分开来,我也不太清楚为什么不能用or,望有知道的人可以解答一下,谢谢参考代码:L = [i for i in range(1,40)]for i in L: …… 题解列表 2023年03月26日 0 点赞 0 评论 301 浏览 评分:0.0