答案:B
$\begin{array}{rcl}
x^2 + ax +a & = & 1 \\
x^2 + ax + (a-1) & = & 0
\end{array}$
$\begin{array}{rcl}
x^2 + ax +a & = & 1 \\
x^2 + ax + (a-1) & = & 0
\end{array}$
由於上面方程有重根,可得
$\begin{array}{rcl}
\Delta & = & 0 \\
a^2 – 4(1)(a-1) & = & 0 \\
a^2 -4a + 4 & = & 0 \\
(a-2)^2 & = & 0 \\
a & = & 2
\end{array}$