矩阵 $\left(\begin{array}{lll}1 & 1 & 0 \\ 1 & 2 & 0 \\ 0 & 0 & 1\end{array}\right)$ 的逆矩阵为
A. $\left(\begin{array}{ccc}2 & -1 & 0 \\ -1 & 1 & 0 \\ 0 & 0 & 1\end{array}\right)$
B. $\left(\begin{array}{lll}2 & 1 & 0 \\ 1 & 1 & 0 \\ 0 & 0 & 1\end{array}\right)$
C. $\left(\begin{array}{ccc}1 & -1 & 0 \\ -1 & 2 & 0 \\ 0 & 0 & 1\end{array}\right)$
D. $\left(\begin{array}{lll}1 & 1 & 0 \\ 1 & 1 & 0 \\ 0 & 0 & 1\end{array}\right)$