Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
71443 sh25_ganzy 求阶乘的和 C++ 通过 0 MS 244 KB 204 2025-10-25 22:18:53

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int n,p=1; cin>>n; long long s=0; for(int i=1;i<=n;i++){ p*=i; s+=p; } cout<<s; return 0; }


测评信息: