g0_Og @ 2024-01-06 21:58:32
#include<bits/stdc++.h>
using namespace std;
int jc(int n){
if(n==0) return 1;
return n*jc(n-1);
}
int main(){
int n,sum=0;
cin >>n;
for(int i=1;i<=n;i++) sum+=jc(i);
cout <<sum;
}
by rnf5114 @ 2024-01-06 22:02:10
@g0_Og 要高精度
by cj180202 @ 2024-01-06 22:18:45
@g0_Og 注意到
(而且题目不是都写着了吗)