一号测试点和十号测试点过不去 c++代码:(看着没问题啊)
#include<bits/stdc++.h> using namespace std; double f(double x,int n){ if(n==0){ return sqrt(x); } else{ return sqrt(n+f(x,n-1)); } } int main(){ double a; int b; cin>>a>>b; printf("%.2lf",f(a,b)); return 0; }