Lyg7936 @ 2022-05-28 19:24:08
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,s=0;
cin>>n;
for(int i=1;i<=n;i++){
int a=1;
for (int j=2;j<=i;j++){
a*=j;
}
s+=a;
}
cout<<s<<endl;
return 0;
}
by yzh_Error404 @ 2022-05-28 19:25:02
高精
by LYqwq @ 2022-05-28 19:25:31
注意
by OutsideR_ @ 2022-05-28 19:26:42
高精度,可以看我主页的模板库里面的模板
by SegTree @ 2022-05-28 19:28:10
显然,它需要高精度
by gmxqwq @ 2022-05-28 19:44:43
python
它不香吗
by rzh123 @ 2022-05-28 20:18:37
@Lyg7936 要用高精度,就是用程序模拟列竖式的过程,用数组存储