我也没有 日立 · 发布于 12 小时前 · 浏览 9 回复 0 include<bits/stdc++.h> using namespace std; int main() { int n; double e=2,s=1; cin>>n; for(int i=2;i<=n;i++) { s*=i; e+=1.0/s; } printf("%.10lf",e); return 0; }