Có: \(x^2+y^2+z^2=xy+yz+xz\)
\(\Leftrightarrow2x^2+2y^2+2z^2=2xy+2yz+2xz\)
\(\Leftrightarrow\left(x^2-2xy+y^2\right)+\left(y^2-2yz+z^2\right)+\left(x^2-2xz+z^2\right)=0\)
\(\Leftrightarrow\left(x-y\right)^2+\left(y-z\right)^2+\left(x-z\right)^2=0\)
\(\Leftrightarrow\begin{cases}x-y=0\\y-z=0\\x-z=0\end{cases}\)\(\Leftrightarrow x=y=z\)
Lại có: \(x^{2015}+y^{2015}+z^{2015}=3^{2016}\)
\(\Leftrightarrow x^{2015}+x^{2015}+x^{2015}=3^{2016}\)
\(\Leftrightarrow3x^{2015}=3^{2016}\)
\(\Leftrightarrow x=3\)
Vậy \(x=y=z=3\)