题解 | #尼科彻斯定理#
尼科彻斯定理
http://www.nowcoder.com/practice/dbace3a5b3c4480e86ee3277f3fe1e85
import java.util.*;
public class Main{
public static void main(String [] args){
Scanner sc = new Scanner(System.in);
int m = sc.nextInt();
int n = (m-1)*m+1;
StringBuilder sb = new StringBuilder();
sb.append(n);
for(int i=1; i<m; i++){
sb.append("+").append(n+2*i);
}
System.out.println(sb);
}
}