Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
144741 万骏博 阶乘的和 C++ Accepted 0 MS 268 KB 248 2026-01-24 16:45:43

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int o,p=1,l,q=0; void ys(int l ){ for(int i=1;i<=l;i++){ for(int j=1;j<=i;j++){ p*=j; } q+=p; p=1; } printf("%d\n",q); } int main(){ scanf("%d",&l); ys(l); return 0; }