题解 | #尼科彻斯定理#简单粗暴
尼科彻斯定理
http://www.nowcoder.com/practice/dbace3a5b3c4480e86ee3277f3fe1e85
while True:
try:
m = int(input())
print('+'.join([str(i) for i in range(m * m - m + 1, m * m + m, 2)]))
except:
break
尼科彻斯定理
http://www.nowcoder.com/practice/dbace3a5b3c4480e86ee3277f3fe1e85
while True:
try:
m = int(input())
print('+'.join([str(i) for i in range(m * m - m + 1, m * m + m, 2)]))
except:
break
相关推荐