7 条题解

  • 1
    @ 2024-11-25 13:26:22

    #include<bits/stdc++.h> using namespace std; int main() { double n,a,b; cin>>n; for(int i=1;i<=n;i++) { a=1; for(int j=1;j<=i;j++) { a=a*j; } b=b+1.00000/a; a=1; } cout<<fixed<<setprecision(5)<<b; return 0; }

    信息

    ID
    67
    时间
    1000ms
    内存
    256MiB
    难度
    5
    标签
    递交数
    144
    已通过
    59
    上传者