题解 | #尼科彻斯定理#
尼科彻斯定理
https://www.nowcoder.com/practice/dbace3a5b3c4480e86ee3277f3fe1e85
#include <stdio.h> int main() { int n = 0; int i = 0; scanf("%d",&n); int m = n; printf("%d", 1 + n * (n - 1)); for (i = 1; m>1;m-- ,i++) { printf("+%d", 1 + n * (n - 1)+2*i); } printf("\n"); return 0; }