Skip to content

多项式求导 ​

cpp
poly der(poly &f){
    int n=f.size();
    poly g(n-1);
    for(int i=1;i<n;i++)g[i-1]=f[i]*i%P;
    return g;
}