数组的距离-Python 摘要:解题思路: 没有技巧,直接全部算出来取最小哈哈,说下代码思路 以a1 a2 a3 a4 a5 b1 b2 b3 b4 b5 为例(ai, bi, i=1,2,3,4,5) …… 题解列表 2022年08月14日 0 点赞 1 评论 357 浏览 评分:9.9
没什么特别的 摘要:解题思路:注意事项:参考代码:a,n=map(int,input().split()) s=0 b=str(a) for i in range(n): s+=int(b) a…… 题解列表 2022年08月13日 0 点赞 0 评论 363 浏览 评分:9.9
思路简单, 摘要:解题思路:注意事项:参考代码n=int(input()) c=0 a=1 for i in range(1,n+1): for j in range(1,i+1): …… 题解列表 2022年08月13日 0 点赞 0 评论 363 浏览 评分:9.9
两种方式表示列表最后一个元素 摘要:解题思路:注意事项:参考代码:方法一:a=list(map(int,input().split())) b=len(a) while a[b-1]!=-1: a.extend(list(…… 题解列表 2022年08月13日 0 点赞 0 评论 468 浏览 评分:9.9
混个经验值 摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split())) a=sorted(a,reverse=True) for i in a: print(i,…… 题解列表 2022年08月12日 0 点赞 0 评论 437 浏览 评分:9.9
混个经验值 摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split())) a=sorted(a,reverse=False) for i in a: print(i…… 题解列表 2022年08月12日 0 点赞 0 评论 496 浏览 评分: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 评论 471 浏览 评分:9.9
有注释,思路简单 摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split())) 输入的列表 b=[] 绝对值列表 &nb 题解列表 2022年08月11日 0 点赞 0 评论 432 浏览 评分:8.7
和楼上老哥思路一样不过做法不同 摘要:解题思路:就是把一个列表分成两个新列表出来比较计算结果注意事项:参考代码:while True: l1 = list(map(int, input().split())) l2 = l1[…… 题解列表 2022年08月11日 0 点赞 1 评论 358 浏览 评分:0.0
思路简单清晰的解法 摘要:解题思路:看过python列表操作的小伙伴应该都能看得懂注意事项:参考代码:while True: l1 = list(map(int, input().split())) l1.pop(…… 题解列表 2022年08月10日 0 点赞 0 评论 355 浏览 评分:0.0