使用条件: 当只使用 (i,j) ,i <= j #define F(i, j) (((i)+1)*(i)/2+(j)) int mat[Maxn*(Maxn+1)/2+Maxn]; 用F(row, col)来访问矩阵。 (0 based)