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