题解列表

筛选

[编程入门]阶乘求和

摘要:解题思路:注意事项:参考代码:n=int(input())sn=0for i in range(1,n+1):    b=1    for x in range(1,i+1):        b*=x……

python-平均值计算

摘要:解题思路:列表,列表长度,遍历,注意事项:+=的赋值,遍历范围参考代码:a=list(map(int,input().split()))b=len(a)c=list(a)sum=0for i in r……

python-最大比例

摘要:解题思路:我们知道等比数列的递推公式为an=a1*qn-1。ai/aj=qi-j。此处我们就假设最大公比为q,采访的金额数组为A,假设A中有三个不相同的金额,经排序后A中相邻两个数的比值放入数组B中。……

芯片测试,7行

摘要:```python n=int(input()) l=[] for i in range(n): l.append(list(map(int,input().split()))) l……

1164: 数组的距离

摘要:解题思路:注意事项:参考代码:m,n=map(int,input().split()) ls=list(map(int,input().split())) lt=list(map(int,inpu……

Minesweeper(Python)

摘要:解题思路注意事项:参考代码:con=1while True:    a, b = map(int, input().strip().split())    if a == 0 and b == 0: ……

1165: 明明的随机数

摘要:解题思路:注意事项:参考代码:n = int(input()) l=set(map(int,input().split())) l=list(l) l.sort() print(len(l))……