2 条题解

  • 0
    @ 2025-7-17 17:38:57

    #include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; double e,x=1,y=0; for(int i=1;i<=n;i++){ x*=i; y+=1.0/x; } e=y; cout<<fixed<<setprecision(10)<<e+1; return 0; }

    信息

    ID
    390
    时间
    1000ms
    内存
    128MiB
    难度
    10
    标签
    递交数
    5
    已通过
    4
    上传者