警示后人

P3768 简单的数学题

计算 $\sum_{i=1}^n=\dfrac{n(n+1)}{2}$ 时注意 $n\le 10^{10}$,直接乘上会超限,应将 $n$ 取模后计算该式。
by Aiopr_2378 @ 2024-02-28 21:43:12


@[Aiopr_2378](/user/166234) thx
by lg10 @ 2024-04-18 10:07:07


|