Susara @ 2022-10-06 11:31:57
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,s=1,sum=0;
cin>>n;
for(int i = 1;i<=n;i++){
s=1;
for(int j = 1;j<=i;j++){
s*=j;
}
sum+=s;
}
cout<<sum;
return 0;
}
by Susara @ 2022-10-06 11:33:04
过了两个,剩下两个······
by Katz @ 2022-10-06 11:35:18
高精度/oh
by Susara @ 2022-10-06 21:31:42
@PMAC 谢了