| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 156255 | 王培臻 | 阶乘的和 | C++ | Time Limit Exceeded | 1000 MS | 272 KB | 244 | 2026-06-27 15:13:14 |
#include<bits/stdc++.h> using namespace std; int cs(int f){ int sc=1; for(int e=1;e<=e;e++){ sc*=e; } return sc; } int main() { long long a,s=0; cin>>a; for(int i=1;i<=a;i++){ s+=cs(i); } cout<<s; return 0; }