6. Let $x_{1}, x_{2}, \cdots, x_{19}$ be integers, and satisfy $x_{1}+x_{2}+\cdots$ $+x_{19}=95$. Then the maximum value of $x_{1}^{2}+x_{2}^{2}+\cdots+x_{19}^{2}$ is $\qquad$.
6. Let's assume $x_{1} \leqslant x_{2} \leqslant x_{3} \leqslant \cdots \leqslant x_{19}$. Note that when $1<x_{i}$ $\leqslant x_{j}$, $x_{i}^{2}+x_{j}^{2}<x_{i}^{2}+1-2 x_{i}+2 x_{j}+1+x_{j}^{2}=\left(x_{i}-\right.$ $1)^{2}+(x,+1 \cdot 1)^{2}$. Therefore, when $x_{1}=x_{2}=\cdots=x_{18}=1, x_{10}=$ 77, $x^{2} \cdot x_{2}^{2}+\cdots+x_{19}^{2}$ reaches its maximum value, which is $18+77^{2}=$ 5947.