题解 | #尼科彻斯定理#
尼科彻斯定理
https://www.nowcoder.com/practice/dbace3a5b3c4480e86ee3277f3fe1e85
a = int(input()) x = a**3 y = [] for i in range(1,x+1,2): if (i+i+2*(a-1))/2*a==x: for q in range(a): y.append(str(i+2*q)) print("+".join(y))
尼科彻斯定理
https://www.nowcoder.com/practice/dbace3a5b3c4480e86ee3277f3fe1e85
a = int(input()) x = a**3 y = [] for i in range(1,x+1,2): if (i+i+2*(a-1))/2*a==x: for q in range(a): y.append(str(i+2*q)) print("+".join(y))
相关推荐