JIUZHOU1 @ 2023-11-12 13:08:51
#include <stdio.h>
int main(){
int n;
double sum=1,sum1=0,t=1;
scanf("%d",&n);
for(int i=1;i<=n;i++){
sum=t;
for(int j=1;j<=i;j++){
sum*=j;
}
sum1+=sum;
}
printf("%.0f",sum1);
}
by szh_AK_all @ 2023-11-12 13:29:14
这题要用高精度
by danlao @ 2023-11-12 13:37:30
你看看本题的标签,然后算一下50!的值,你就知道为啥了
by lfygt @ 2023-11-12 20:03:42
要用可爱的高精度