题解列表
和楼上老哥思路一样不过做法不同
摘要:解题思路:就是把一个列表分成两个新列表出来比较计算结果注意事项:参考代码:while True: l1 = list(map(int, input().split())) l2 = l1[……
编写题解 1053: 二级C语言-平均值计算(简单易懂的解题方法python)
摘要:解题思路:通过列表的广泛性解题的思路会更加宽阔。注意事项:熟练列表的使用参考代码:a=list(map(int,input().split())) //通过列表同时输入多个值,此时为列表形式
co……
蓝桥杯2022年积木画(python AC)
摘要:解题思路:对于这种在每一输入都有固定答案并且当前结果受前结果影响的情况下,动态规划是很好的选择;对于这道题来看,假设输入的N为i,2*N 的画布中有多少组合其实是受到 i-1 或者输入数 i 前任意一……
这种题还需要看题解吗?
摘要:解题思路:就循环注意事项:参考代码:for i in range(10,1001):
if i%2==0 and i%3==0 and i%7==0:
print(i)……
1083——————Hello,World!
摘要:题目 1083: Hello, world!
**题目描述**
This is the first problem for test. Since all we know the ASCII ……
1071——————阶乘公式求职
摘要: n=int(input())
t=1
s=0
for i in range(1,n+1):
t=t*i
s=s+1.0/t
……