题解列表

筛选

蛇行矩阵 (C语言代码)

摘要:解题思路:找数学规律,每行开头的第一个数字为行数(i)的(i*i-i)/2+1;注意事项:参考代码:#include <stdio.h>int main(void){ int n; scanf("%d……