下列矩阵中, 与矩阵 $\left(\begin{array}{rrr}1 & 0 & 0 \\ 0 & -1 & 1 \\ 0 & 0 & -1\end{array}\right)$ 相似的为
A. $\left(\begin{array}{rrr}1 & 0 & 1 \\ 0 & -1 & 0 \\ 0 & 0 & -1\end{array}\right)$.
B. $\left(\begin{array}{rrr}1 & 1 & 1 \\ 0 & -1 & 2 \\ 0 & 0 & -1\end{array}\right)$.
C. $\left(\begin{array}{rrr}1 & 2 & 1 \\ 0 & -1 & 0 \\ 0 & 0 & -1\end{array}\right)$.
D. $\left(\begin{array}{rrr}3 & 2 & -2 \\ 0 & -1 & 0 \\ 4 & 2 & -3\end{array}\right)$.