竞赛
考级
#include<bits/stdc++.h> using namespace std; double h(double n,double x){ if(n0) return 1; else if(n1) return x2; else return 2xh(n-1,x)-2(n-1)*h(n-2,x); } int main(){ double n,x; cin>>n>>x; cout<<fixed<<setprecision(2)<<h(n,x); return 0; }
~~ ~~
提交答案之后,这里将显示提交结果~