题解 | #尼科彻斯定理#
尼科彻斯定理
https://www.nowcoder.com/practice/dbace3a5b3c4480e86ee3277f3fe1e85
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main() { int m; scanf("%d", &m); for (int i = m * m - m + 1; i < m * m + m - 1;) { printf("%d+", i); i += 2; } printf("%d", m * m + m - 1); return 0; }
纯粹的数学找规律问题,题目看似难懂,找规律就很简单