\(\Rightarrow x^2+2y+1+y^2+2z+1+z^2+2x+1=0+0+0\)
\(\left(x+1\right)^2+\left(y+1\right)^2+\left(z+1\right)^2=0\)
Mà \(\left(x+1\right)^2\ge0\)
\(\left(y+1\right)^2\ge0\)
\(\left(z+1\right)^2\ge0\)
\(\Rightarrow x+1=y+1=z+1=0\)
\(\Rightarrow x=y=z=-1\)
\(\Rightarrow P=1+1+1=3\)