Run ID:129482

提交时间:2025-08-26 15:55:40

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