| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 85212 | sh25_chenyj | 高精度阶乘的和 | C++ | 解答错误 | 0 MS | 252 KB | 264 | 2026-03-06 20:30:30 |
#include<bits/stdc++.h> using namespace std; int fact(int x) { int tot = 1; for(int i = 1; i <= x; i++){ tot *= i; } return tot; } int main() { int n; cin>>n; int cnt = 0; for(int i = 1; i <= n; i++){ cnt += fact(i); } cout<<cnt; }