题解列表

筛选

有注释,思路简单

摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split()))    输入的列表 b=[]     绝对值列表                      &nb

和楼上老哥思路一样不过做法不同

摘要:解题思路:就是把一个列表分成两个新列表出来比较计算结果注意事项:参考代码:while True:    l1 = list(map(int, input().split()))    l2 = l1[……

思路简单清晰的解法

摘要:解题思路:看过python列表操作的小伙伴应该都能看得懂注意事项:参考代码:while True:    l1 = list(map(int, input().split()))    l1.pop(……

蓝桥杯2022年积木画(python AC)

摘要:解题思路:对于这种在每一输入都有固定答案并且当前结果受前结果影响的情况下,动态规划是很好的选择;对于这道题来看,假设输入的N为i,2*N 的画布中有多少组合其实是受到 i-1 或者输入数 i 前任意一……

不会简单的写法

摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split())) b=list(map(int,input().split())) c=0 d=0 e=0 fo……

这种题还需要看题解吗?

摘要:解题思路:就循环注意事项:参考代码:for i in range(10,1001):     if i%2==0 and i%3==0 and i%7==0:         print(i)……

耍个小聪明

摘要:# Python解决平方根问题 在python中,math库提供sqrt()函数来完成平方根操作。 那还有啥好说的?! ```python import math a = int(input……