跳到正文

题解

B2146 题解

MatrixGroup约 1 分钟
原文
文章信息与版本

文章信息

收录
2025年12月12日
更新
2025年12月12日
篇幅
约 1 分钟
获赞
68
题目
B2146

版本

  1. v1当前

根据 cppreference.com,C++ 17 及以上在 cmath 库里提供了 std::hermite 函数求 Hermite 多项式的值。

使用该函数求值即可。

C++
#include<cstdio>
#include<cmath>
int n,x;
int main()
{
    scanf("%d%d",&n,&x);
    printf("%.0f\n",std::hermite(n,x));
    return 0;
}
原文