#include <bits/stdc++.h>
using namespace std;
int main()
{
int n, c;
cin>>n;//输入最高项指数
if(n == 0)//如果只有常数项,输出0
{
cin>>c;
cout<<0;
return 0;
}
for(int j = n; j >= 0; j--)//j:x的指数
{
cin>>c;//输入系数
if(j != 0)//常数项求导后为0,不输出。其它项输出
cout<<c * j<<' ';
}
return 0;
}
openjudge 1.5.38 计算多项式的导函数
于 2022-09-14 01:31:17 首次发布