标签:alc 卷积 检查 sum 长度 div get inf 经验
全都是杂项。
$\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))$
NTT记得检查外头枚举长度有没把 i*=2
打成 ++i
计算卷积 $f \gets f * g$ 的时候记得 $g$ 已经被破坏!
标签:alc 卷积 检查 sum 长度 div get inf 经验
原文地址:https://www.cnblogs.com/nealchen/p/12399056.html