this is the answer
2025-04-03 16:30:38
发布于:浙江
1阅读
0回复
0点赞
this is the answer
#include<bits/stdc++.h>
using namespace std;
int main(){
long long x,sum=0;
cin>>x;
for(int i=1;i<x+1;i++){
long long sum1=1;
for(int j=1;j<i+1;j++){
sum1*=j;
}
sum+=sum1;
}
cout<<sum;
return 0;
}
The and
这里空空如也
有帮助,赞一个