蓝桥杯][2019年第十届真题]完全二叉树的权值 摘要:解题思路:注意事项:参考代码:N=int(input()) w=list(map(int,input().split())) n=0 Max=float('-inf') re=…… 题解列表 2021年04月16日 0 点赞 0 评论 397 浏览 评分:9.9
直接遍历(Python) 摘要:while 1: s=list(input()) if len(s)==0: break for i in range(len(s)): if s[i]=…… 题解列表 2021年04月16日 0 点赞 0 评论 419 浏览 评分:0.0
直接查找(Python) 摘要:a=[]num=0for i in range(100,201): t = 0 for j in range(2,i): if i % j == 0: …… 题解列表 2021年04月16日 0 点赞 0 评论 254 浏览 评分:0.0
修改数组题解 摘要:解题思路:暴力模拟到并查集注意事项:参考代码:暴力模拟 没有ACN = int(input()) ##inputList = [int(temp) for temp in input().strip…… 题解列表 2021年04月15日 0 点赞 0 评论 483 浏览 评分:9.9
简单的暴力求法(Python) 摘要:S1='AWF'S3='DPG'while 1: S=input() if S=='END': break for i …… 题解列表 2021年04月15日 0 点赞 0 评论 199 浏览 评分:8.0
不是很好的方法(Python) 摘要:YMD=[0,31,28,31,30,31,30,31,31,30,31,30,31]def runnian(Y1): if Y1%100==0: return 1 else…… 题解列表 2021年04月15日 0 点赞 0 评论 230 浏览 评分:0.0
1095: The 3n + 1 problem Python解法(25行简单易懂) 摘要:解题思路:注意事项: i,j的大小不确定的,要分类来做,我第一次就错了参考代码:while True: t = False m = [] a, b = map(int,i…… 题解列表 2021年04月15日 0 点赞 0 评论 753 浏览 评分:9.9
直接查找(Python) 摘要:S={}n=int(input())while n>0: t=int(input()) if t in S: S[t]=S[t]+1 else: S[t]…… 题解列表 2021年04月15日 0 点赞 0 评论 315 浏览 评分:0.0
蓝桥杯历届试题-蚂蚁感冒 摘要:```python num = int(input()) ls = list(map(int,input().split())) a = ls[0] sum = len(ls) co…… 题解列表 2021年04月15日 0 点赞 0 评论 439 浏览 评分:0.0
母牛的故事Python 9行解法 摘要:解题思路:注意事项:参考代码:list = [1,2,3]##第一年1只,第二年2只,第三年3只 for i in range(3,1000): list.append(list[i-1]…… 题解列表 2021年04月15日 0 点赞 0 评论 421 浏览 评分:5.3