計蒜客-幻方矩陣

輸入樣例 2 2 1 2 3 4 2 0 1 2 1 1 2 輸出樣例 4 3 2 1 #include<bits/stdc++.h> using namespace std; int hang[100005];//記錄初始行交換後的新行 int lie[100005];//記錄初始列對應的新列 int a[100005]; int hd[100005];//記錄當前下標行對應的初始行 int
相關文章
相關標籤/搜索