3145779708nb @ 2022-10-24 16:34:23
int main()
{
int n,i;int result=0;
scanf("%d",&n) ;
int Fact(int i)
{if(i<0){return -1;}
if (i==1){ return 1;}
if (i>1){
return (i*Fact(i-1));}
}
for(i=1;i<=n;i++)
{
result=result+Fact(i) ;
}
printf("%d",result);
return 0;
}
by Sprague_Garundy @ 2022-10-24 18:03:22
@3145779708nb 要高精度。
by lixuhui20120805 @ 2022-10-26 12:53:14
eeee
by zhuozhiyuan @ 2022-10-27 17:48:30
@3145779708nb 需要高精度