题解 | #牛牛的Hermite多项式#
牛牛的Hermite多项式
https://www.nowcoder.com/practice/0c58f8e5673a406cb0e2f5ccf2c671d4
#include <stdio.h>
int h(int n,int x)//直接根据题意写
{
if(n==0)
return 1;
if(n==1)
return 2*n;
else
return 2*(x*h(n-1,x)-(n-1)*h(n-2,x));
}
int main() {
int a, b;
scanf("%d%d",&a,&b);
printf("%d",h(a,b));
return 0;
}
#菜狗的解题#
查看8道真题和解析