题解 | #字符串反转#
尼科彻斯定理
http://www.nowcoder.com/practice/dbace3a5b3c4480e86ee3277f3fe1e85
include <stdio.h>
int main()
{
int n;
while(scanf("%d",&n) != EOF)
{
int k=n*n-n+1;
printf("%d",k);
int i=2;
for(i;i<=n;i++)
{
k+=2;
printf("+%d",k);
}
printf("\n");
}
return 0;
}