| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 77430 | sh25_shenpy | 【基础题】求和(7) | C++ | 解答错误 | 0 MS | 240 KB | 257 | 2025-12-24 21:30:29 |
#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=0;i<=10;++i){ s+=jc(i); } cout<<fixed<<setprecision(5)<<s; return 0; }