题解 | #尼科彻斯定理#
尼科彻斯定理
https://www.nowcoder.com/practice/dbace3a5b3c4480e86ee3277f3fe1e85
import sys n= int(input()) def StructString(n): ''' 首项为 first=n*(n-1)+1 ''' first=n*(n-1)+1 L=[] L.append(first) next=first for i in range(n-1): next=next+2 L.append(next) L=list(map(lambda x: str(x),L)) return "+".join(L) print(StructString(n))