后两个没过
#include<bits/stdc++.h> using namespace std; int main() { int n,m=0,t=1; cin>>n; for(int i=1;i<=n;i++) { t*=i; m+=t; } cout<<m; return 0; }