xinggancaixukun @ 2023-07-25 10:23:38
#include <bits/stdc++.h>
using namespace std;
int a[50];
int main(){
int n,sum;
cin>>n;
for(int i=1;i<=n;i++){
a[i]=a[i-1]*i;
}
for(int i=1;i<=n;i++){
sum+=a[i];
}
cout<<sum;
return 0;
}
by xinggancaixukun @ 2023-07-25 10:48:39
@LiJoQiao 好的,谢谢大佬%%%
我还是线学习一下高精度把