| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 147413 | 杰苏尔纳迪尔 | 复杂算式 | C++ | Accepted | 100 | 0 MS | 240 KB | 277 | 2024-05-18 15:07:00 |
#include<iostream> #include<cmath> #include<iomanip> using namespace std; double y(double x,int n){ if(n==1) return sqrt(x+n); else return sqrt(n+(y(x,n-1))); } int main(){ int n; double x; cin>>x>>n; cout<<fixed<<setprecision(2)<<y(x,n); return 0; }