Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: cyblox_boi
Problemset: Sigma Croissant
Language: cpp
Time: 0.003 second
Submitted On: 2025-12-29 22:28:20
#include <bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n;
cin >> n;
long long result = 1;
long long total = 0;
for (int i = 1; i <= n; i++)
{
result *= i;
total += result;
}
cout << total << '\n';
return 0;
}