题解 | #尼科彻斯定理#
尼科彻斯定理
http://www.nowcoder.com/practice/dbace3a5b3c4480e86ee3277f3fe1e85
while True:
try:
n = int(input())
res, nums = n ** 3, []
for i in range(1, res, 2):
nums.append(i)
for i in range(len(nums)-n):
if sum(nums[i:i+n]) == res:
print('+'.join(list(map(str, nums[i:i+n]))))
break
except:
break