K多项式求导VJK多项式求导VJ

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n,k;
    cin>>n>>k;
    long long  re[110],a[110];
    a[0] = 0;
    for(int i=1; i<=n+1; i++)
    {
        cin>>a[i];
    }
    for(int i=1; i<=n+1; i++)
    {
        re[i]=n-i+1;
    }
    for(int j=1; j<=k; j++)
    {
        for(int i=n+1; i>=1; i--)
        {
            a[i]=(a[i-1]*re[i-1])%998244353;
        }
    }
    for(int i=1; i<=n+1; i++)
    {
        if(i==n+1)
        {
            cout<<a[i]<<endl;
        }
        else
        {
            cout<<a[i]<<" ";
        }
    }
    return 0;
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2022-02-04
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-07
  • 2022-01-21
  • 2022-01-06
  • 2022-12-23
  • 2021-07-08
  • 2022-12-23
相关资源
相似解决方案