con_WHBK @ 2022-07-07 15:38:19
#include<iostream>
#include<cstdio>
using namespace std;
int main(){
int n;
cin>>n;
unsigned long long f[51]={1},tot[51]={0};
for(int i=1;i<=50;i++){
f[i]=f[i-1]*i;
tot[i]=tot[i-1]+f[i];
}
cout<<tot[n];
return 0;
}
by zenglu @ 2022-07-07 15:40:10
没看题吗?
题目说了要用高精度啊
by sudo_rmrf @ 2022-07-07 16:01:14
用高精
by con_WHBK @ 2022-07-07 16:15:16
哦,谢大佬