Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
144016 顾文博 求解函数 C++ Accepted 0 MS 296 KB 438 2026-01-18 15:17:17

Tests(10/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; double f(double x,double y){ if(y==1){ return x/(1+x); } return x/(y+f(x,y-1)); } int main(){ double m,n; cin>>m>>n; printf("%.2lf",f(m,n)); return 0; }