| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 157525 | Kevin | 求解函数 | C++ | Accepted | 1 MS | 292 KB | 228 | 2026-07-27 10:22:36 |
#include<bits/stdc++.h> using namespace std; double f(double x,int n) { if(n==1) return x/(1+x); else return x/(n+f(x,n-1)); } int main() { double x; int n; cin>>x>>n; printf("%.2lf",f(x,n)); return 0; }