python
尼科彻斯定理
http://www.nowcoder.com/questionTerminal/dbace3a5b3c4480e86ee3277f3fe1e85
题目本身比较简单,注意多组数据输入即可
encoding:utf-8
if name == 'main':
while True:
try:
s = input()
y = s*s
if s%2 == 0: z = s*s-s+1 #第一个数 else: z = s*s-s+1 i = 1 stri = '' + str(z) while i<s: z=z+2 i=i +1 stri = stri + '+' + str(z) print stri except: break