| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158736 | 林睿 | 求解函数 | C++ | Accepted | 1 MS | 296 KB | 217 | 2026-08-22 16:55:28 |
#include<bits/stdc++.h> using namespace std; double f(double x,double n){ if(n==1) return x/(x+1); else return x/(n+f(x,n-1)); } int main() { int i,l; cin>>i>>l; printf("%.2lf",f(i,l)); return 0; }