提交时间:2024-05-18 15:16:20

运行 ID: 147436

#include<bits/stdc++.h> using namespace std; double f(double x,double n){ if(n==1) return sqrt(x+1); else return sqrt(n+f(x,n-1)); } int main(){ double a,b; cin>>a>>b; printf("%.2f",f(a,b)); return 0; }