Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
7790 黄言岐 求解函数 C++ Wrong Answer 0 MS 264 KB 409 2025-05-18 19:08:11

Tests(0/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; double f(int x,int n){ if(n>0) return x/(x+f(x,n-1)); if(n=0) return 1; } int main(){ int x,n; cin>>x>>n; cout<<f(x,n)<<endl; return 0; }


Run Info:

------Input------
97 418
------Answer-----
0.23
------Your output-----
0.989898