Cộng vế với vế giả thiết:
\(a^2+4b+4+b^2+4c+4+c^2+4a+4=0\)
\(\Leftrightarrow\left(a^2+4a+4\right)+\left(b^2+4b+4\right)+\left(c^2+4c+4\right)=0\)
\(\Leftrightarrow\left(a+2\right)^2+\left(b+2\right)^2+\left(c+2\right)^2=0\)
\(\Leftrightarrow\left\{{}\begin{matrix}a+2=0\\b+2=0\\c+2=0\end{matrix}\right.\) \(\Leftrightarrow a=b=c=-2\)
\(\Rightarrow P=1+1+1=3\)