\(Q=\left|x-2018\right|+\left|x+2019\right|\)
\(Q=\left|2018-x\right|+\left|x+2019\right|\)
\(Q\ge\left|2018-x+x+2019\right|=\left|4037\right|=4037\)
Dấu "=" xảy ra \(\Leftrightarrow\hept{\begin{cases}2018-x\ge0\\x+2019\ge0\end{cases}\Leftrightarrow\hept{\begin{cases}x\le2018\\x\ge-2019\end{cases}\Leftrightarrow-2019\le}x\le2018}\)