提交时间:2026-04-10 15:00:26

运行 ID: 86990

#include<bits/stdc++.h> using namespace std; int jc(int n){ if(n==0) return 1; else return n*jc(n-1); } int main(){ double s=0; for(int i=1;i<=10;++i){ s+=1.0*1/jc(i); } cout<<fixed<<setprecision(5)<<s; return 0; }