提交时间:2024-01-27 16:45:22

运行 ID: 130112

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