题解 | #尼科彻斯定理#
尼科彻斯定理
http://www.nowcoder.com/practice/dbace3a5b3c4480e86ee3277f3fe1e85
let m = null
while(m = parseInt(readline())) {
let str = '';
for(let i = m*(m-1)/2; i < m*(m+1)/2; i++) {
if(i != m*(m+1)/2 - 1) {
str += (2*i+1) + '+';
} else {
str += (2*i+1)
}
}
console.log(str)
}
while(m = parseInt(readline())) {
let str = '';
for(let i = m*(m-1)/2; i < m*(m+1)/2; i++) {
if(i != m*(m+1)/2 - 1) {
str += (2*i+1) + '+';
} else {
str += (2*i+1)
}
}
console.log(str)
}