Run ID:156257

提交时间:2026-06-27 15:16:12

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