| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 133106 | 左锶焜 | 13分数求和 | C++ | Wrong Answer | 1 MS | 276 KB | 482 | 2025-10-14 19:31:14 |
#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; int main(){ int n; double z=2,m=1,z0=2,m0=1,s=0; cin>>n; for(int i=1;i<=n;i++){ z0+=m+z; m0+=z; s+=z/m; z0+=z; m0+=m; } printf("%.4lf",3.5); return 0; }
------Input------
8
------Answer-----
13.2437
------Your output-----
3.5000