题解 | #尼科彻斯定理#笨办法
尼科彻斯定理
https://www.nowcoder.com/practice/dbace3a5b3c4480e86ee3277f3fe1e85
import sys a = int(input()) b = [] for i in range((a ** 3) // 2 + 3): if i % 2 == 1: b.append(i) for x in range(0, len(b)): if sum(b[x : x + a]) == a ** 3 and len(b[x:x+a])==a: print("+".join(map(str, b[x : x + a])))