Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
71442 sh25_ganzy 求阶乘的和 C++ 解答错误 0 MS 240 KB 204 2025-10-25 22:17:58

Tests(0/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++){ s+=p; p*=i; } cout<<s; return 0; }


测评信息: