0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-24 03:31:59 +00:00

P5739 【深基7.例7】计算阶乘

R38740581
This commit is contained in:
Baoshuo Ren 2020-09-22 19:08:14 +08:00 committed by Baoshuo Ren
parent 9f8017f2a5
commit f80b071fd4
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

14
problem/P5739/P5739.cpp Normal file
View File

@ -0,0 +1,14 @@
// R38740581
#include<bits/stdc++.h>
using namespace std;
int ans[13] = {0, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800, 479001600};
int main() {
int n;
cin >> n;
cout << ans[n];
return 0;
}