luogu_MeiFengqi @ 2022-09-12 18:58:59
#include<bits/stdc++.h>
using namespace std;
int a[110];
int main()
{
int n,ss=0,s=1;
scanf("%d",&n);
for(int i=1;i<=n;i++)
{
for(int j=1;j<=i;j++)
s*=j;
ss+=s;
s=1;
}
printf("%d",ss);
return 0;
}
求大佬相助
by Katz @ 2022-09-12 19:01:00
哥,高精度