\(2x^2+y^2+z^2-2xy-2x+1=0\)
\(\Rightarrow\left(x^2+y^2-2xy\right)+\left(x^2-2x+1\right)+z^2=0\)
\(\Rightarrow\left(x-y\right)^2+\left(x-1\right)^2+z^2=0\)
\(\Leftrightarrow x=y=1;=0\)
\(A=x^{2018}+y^{2019}+z^{2020}=1+1+0=2\)
2)
\(a+b+c=6\Leftrightarrow a^2+b^2+c^2+2\left(ab+bc+ac\right)=36\)
\(\Leftrightarrow12+2\left(ab+bc+ac\right)=36\Leftrightarrow ab+bc+ac=12\)
Kết hợp với \(a^2+b^2+c^2=12\Leftrightarrow a^2+b^2+c^2=ab+bc+ac\)
\(\Leftrightarrow\dfrac{1}{2}\left(a-b\right)^2+\dfrac{1}{2}\left(b-c\right)^2+\dfrac{1}{2}\left(c-a\right)^2=0\Leftrightarrow a=b=c\)
Kết hợp với \(a+b+c=6\Leftrightarrow a=b=c=2\)
\(P=\left(a-3\right)^{2019}+\left(b-3\right)^{2019}+\left(c-3\right)^{2019}=\left(-1\right)^{2019}+\left(-1\right)^{2019}+\left(-1\right)^{2019}=-3\)