版本比较
题解:AT_abc412_g [ABC412G] Degree Harmony
正文
增加 1 行删除 1 行
82 行未改动8384858687878889909127 行未改动82 行未改动xI_n & -I_n & \mathbf{0} & \cdots & \mathbf{0} \\\mathbf{0} & xI_n & -I_n & \cdots & \mathbf{0} \\\vdots & \vdots & \vdots & \ddots & \vdots \\\mathbf{0} & \mathbf{0} & \mathbf{0} & \cdots & -I_n \\\mathbf{0} & 0 & 0 & \cdots & x I_n - \sum_{i=0}^{k-1} A_i x^{-(k-i-1)} \mathbf{0} & 0 & 0 & \cdots & x I_n - \sum_{i=0}^{k-1} A_i x^{-(k-i-1)}\end{bmatrix}$
发现把对角线乘起来正好是 $P$,上三角矩阵的行列式等于对角线元素相乘,所以我们就证明了 $\det(P)=\det(xI_{nk}-adj(P))$。27 行未改动