Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
82583 sh25_wanghy 【基础题】求和(7) C++ 编译错误 0 MS 0 KB 255 2026-01-15 19:33:01

Tests(0/0):


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


测评信息: