3 条题解

  • 0
    @ 2023-3-9 17:23:50

    #include<bits/stdc++.h> using namespace std; double a,b,c=1,d,x,y; int main(){ cin>>a;

    for(int i=1;i<=a;i++){
    	d+=2*i; 
    	b+=1/d; 
    }
    cout<<fixed<<setprecision(2)<<b<<endl;
    return 0;
    

    }

    信息

    ID
    20
    时间
    1000ms
    内存
    256MiB
    难度
    3
    标签
    递交数
    110
    已通过
    60
    上传者