Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
10260 | 谢若诚 | 求解函数 | C++ | Accepted | 4 MS | 796 KB | 224 | 2021-04-24 16:08:56 |
# include<iostream> using namespace std; float A(int x,int n){ if(n<1){ return 1; } return x/(n+A(x,n-1)); } int main(){ int x,n; cin>>x>>n; printf("%.2f",A(x,n)); return 0; }