Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
3205 吴奕希 求解函数 C++ Accepted 0 MS 276 KB 217 2024-04-20 09:35:06

Tests(10/10):


Code:

# include<iostream> using namespace std; int a, b; float f(float x, float n){ if(n>1)return x/(n+f(x, n-1)); return x/(1+x); } int main(){ cin>>a>>b; printf("%.2f", f(a, b)); return 0; }