题解 | #等差数列#
等差数列
http://www.nowcoder.com/practice/f792cb014ed0474fb8f53389e7d9c07f
while True: try: s=int(input()) w=3*s+2 L=range(2,w,3) print(sum(L)) except: break
等差数列
http://www.nowcoder.com/practice/f792cb014ed0474fb8f53389e7d9c07f
while True: try: s=int(input()) w=3*s+2 L=range(2,w,3) print(sum(L)) except: break
相关推荐