题解 | #等差数列#笨办法
等差数列
https://www.nowcoder.com/practice/f792cb014ed0474fb8f53389e7d9c07f
n = int(input()) x=[] y=2 x.append(y) for a in range(1,n): y=y+3 x.append(y) print(sum(x))
等差数列
https://www.nowcoder.com/practice/f792cb014ed0474fb8f53389e7d9c07f
n = int(input()) x=[] y=2 x.append(y) for a in range(1,n): y=y+3 x.append(y) print(sum(x))
相关推荐