Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
73275 sh25_xuws 求阶乘的和 C++ Accepted 0 MS 248 KB 342 2025-11-08 17:27:56

Tests(1/1):


#include <bits/stdc++.h> using namespace std; int main() { int n, sum; sum = 0; cin >> n; int A[n]; int pro = 1; for (int i = 0; i < n; i++) { pro *= (i + 1); A[i] = pro; } for (int i = 0; i < n; i++) { sum += A[i]; } cout << sum; return 0; }


Judgement Protocol: