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