=(1+2-3-4)+(5+6-7-8)+...+(2017+2018-2019-2020)+2021
=(-4)+(-4)+...+(-4)+2021
=-4*505+2021
=1
\(B=1+2-3-4+5+6-7-8+9+10-...+2018-2019-2020+2021\)
\(B=\left(1+2-3-4\right)+...+\left(2017+2018-2019-2020\right)+2021\) \(B=\left(-4\right)+...+\left(-4\right)+2021+2020:4=505\)
\(B=\left(-4\right).505+2021\) \(B=\left(-2020\right)+2021\)
\(B=1\)