$x=\sum_{i=1}^{n}{i^2}$
这个式子怎么计算?
1.for循环:复杂度 $O(n)$
2.公式:$\frac{x(x+1)(2*x+1)}{6}$
平方和公式
原文:https://www.cnblogs.com/shzr/p/9107079.html