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:
parent
9f8017f2a5
commit
f80b071fd4
14
problem/P5739/P5739.cpp
Normal file
14
problem/P5739/P5739.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user