蛇形矩陣

描述 在n*n方陳裏填入1,2,…,n*n,要求填成蛇形。例如n=4時方陳爲: 10 11 12 1 9 16 13 2 8 15 14 3 7 6 5 4 輸入 直接輸入方陳的維數,即n的值。(n<=100) 輸出 輸出結果是蛇形方陳。 樣例輸入 3 樣例輸出 7 8 1 6 9 2 5 4 3web #include <stdio.h> #include <string.h> #include
相關文章
相關標籤/搜索