两种方式表示列表最后一个元素 摘要:解题思路:注意事项:参考代码:方法一:a=list(map(int,input().split())) b=len(a) while a[b-1]!=-1: a.extend(list(…… 题解列表 2022年08月13日 0 点赞 0 评论 583 浏览 评分:9.9
混个经验值 摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split())) a=sorted(a,reverse=True) for i in a: print(i,…… 题解列表 2022年08月12日 0 点赞 0 评论 502 浏览 评分:9.9
混个经验值 摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split())) a=sorted(a,reverse=False) for i in a: print(i…… 题解列表 2022年08月12日 0 点赞 0 评论 571 浏览 评分:9.9
这个程度为啥是中等题? 摘要:解题思路:注意事项:参考代码:a,b=map(int,input().split()) c=0 for i in range(a,b+1): if i%3==1 and i%5==3: …… 题解列表 2022年08月12日 0 点赞 0 评论 570 浏览 评分:9.9
有注释,思路简单 摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split())) 输入的列表 b=[] 绝对值列表 &nb 题解列表 2022年08月11日 0 点赞 0 评论 567 浏览 评分:8.7
和楼上老哥思路一样不过做法不同 摘要:解题思路:就是把一个列表分成两个新列表出来比较计算结果注意事项:参考代码:while True: l1 = list(map(int, input().split())) l2 = l1[…… 题解列表 2022年08月11日 0 点赞 1 评论 427 浏览 评分:0.0
思路简单清晰的解法 摘要:解题思路:看过python列表操作的小伙伴应该都能看得懂注意事项:参考代码:while True: l1 = list(map(int, input().split())) l1.pop(…… 题解列表 2022年08月10日 0 点赞 0 评论 423 浏览 评分:0.0
编写题解 1053: 二级C语言-平均值计算(简单易懂的解题方法python) 摘要:解题思路:通过列表的广泛性解题的思路会更加宽阔。注意事项:熟练列表的使用参考代码:a=list(map(int,input().split())) //通过列表同时输入多个值,此时为列表形式 co…… 题解列表 2022年08月10日 0 点赞 0 评论 1018 浏览 评分:7.3
蓝桥杯2022年积木画(python AC) 摘要:解题思路:对于这种在每一输入都有固定答案并且当前结果受前结果影响的情况下,动态规划是很好的选择;对于这道题来看,假设输入的N为i,2*N 的画布中有多少组合其实是受到 i-1 或者输入数 i 前任意一…… 题解列表 2022年08月10日 0 点赞 0 评论 854 浏览 评分:9.9
不会简单的写法 摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split())) b=list(map(int,input().split())) c=0 d=0 e=0 fo…… 题解列表 2022年08月10日 0 点赞 0 评论 523 浏览 评分:9.9