hzx01 @ 2024-08-27 11:55:17
#include<bits/stdc++.h>
using namespace std;
int main(){
long long int n;
cin >> n;
long long int minu = 1, total = 0;
for(long long int i = 1; i <= n; i++){
minu = 1;
for(long long int j = 1; j <= i; j++){
minu *= j;
}
total += minu;
}
cout << total;
return 0;
}
by ___LuXun___ @ 2024-08-27 11:56:42
@hzx01 要用高精
by Vincent2015 @ 2024-08-27 11:57:15
@hzx01 没用高精度 (话说我也不会用高精度)
by Vincent2015 @ 2024-08-27 11:57:57
@hzx01 可以用py写