题解 | #等差数列#
https://www.nowcoder.com/practice/f792cb014ed0474fb8f53389e7d9c07f
n = input() num = 2 sum = 0 for i in range(eval(n)): sum = sum + num num +=3 print(sum)
https://www.nowcoder.com/practice/f792cb014ed0474fb8f53389e7d9c07f
n = input() num = 2 sum = 0 for i in range(eval(n)): sum = sum + num num +=3 print(sum)
相关推荐