2. Given $S=1^{2}-2^{2}+3^{2}-1^{2}+\cdots+99^{2}-$ $100^{2}+101^{2}$. Then the remainder when $S$ is divided by 103 is $\qquad$
2. 1 .
$$
\begin{aligned}
S= & 1+\left(3^{2}-2^{2}\right)+\left(5^{2}-4^{2}\right)+\cdots+\left(99^{2}-98^{2}\right) \\
& +\left(101^{2}-100^{2}\right) \\
= & 1+2+3+\cdots+100+101 \\
= & \frac{101 \times 102}{2}=5151=103 \times 50+1 .
\end{aligned}
$$

Therefore, the required remainder is 1.