351821lp @ 2023-10-04 17:35:11
#include<stdio.h>
int main()
{
int n,S=0;
int sum=1;
int y=0;
scanf("%d",&n);
for(int i=1;i<=n;i++){
for(int j=1;j<=i;j++){
sum=sum*j;
}
S+=sum;
sum=1;
}
printf("%d",S);
return 0;
}
by NO_OI_NO_LIFE @ 2023-10-04 17:37:43
应使用高精度,Ans会很大
by Seek_defeat_alone @ 2023-10-05 09:30:32
@2022zhangyuanhao 拒绝高精!!!
但我用高精做的
by NO_OI_NO_LIFE @ 2023-10-05 10:22:54
@Seek_defeat_alone 我也拒绝