题解
2025-05-11 13:29:13
发布于:浙江
1阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
long long a,b,c;
int main(){
cin>>a;
for(int i=1;i<=a;i++){
b=1;
for(int o=1;o<=i;o++){
b*=o;
}
c+=b;
}
cout<<c;
return 0;
}
这里空空如也
有帮助,赞一个