\(\left|x-1\right|+\left(y+2\right)^{20}=0\)
\(\Leftrightarrow\left\{{}\begin{matrix}x-1=0\\y+2=0\end{matrix}\right.\Leftrightarrow\left\{{}\begin{matrix}x=1\\y=-2\end{matrix}\right.\)
\(B=2\cdot1^5-5\cdot\left(-2\right)^3+2017=2+40+2017=2017+42=2059\)