[长期]积累一些经验

全都是杂项。

20200302 #1

$\sum_{t=0}^{\infty}p_ttx^t=x\frac{\mathrm d}{\mathrm dx}(\sum_{t=0}^{\infty}x^t)=xP'(x)$

$\sum_{t=0}^{\infty}p_tt^2x^t=x\frac{\mathrm d}{\mathrm dx}(\sum_{t=0}^{\infty}p_ttx^t)=x\frac{\mathrm d}{\mathrm dx}(xP'(x))$

20200302 #2

NTT记得检查外头枚举长度有没把 i*=2 打成 ++i

计算卷积 $f \gets f * g$ 的时候记得 $g$ 已经被破坏!

猜你喜欢

转载自www.cnblogs.com/nealchen/p/12399056.html
今日推荐