0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-24 03:31:59 +00:00
Baoshuo Ren 2022-05-09 19:18:32 +08:00
parent 0f16821fad
commit 35ed69f23a
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

20
AcWing/819/819.cpp Normal file
View File

@ -0,0 +1,20 @@
#include <iostream>
using std::cin;
using std::cout;
const char endl = '\n';
int f(int x) {
return x == 1 ? 1 : x * f(x - 1);
}
int n;
int main() {
std::ios::sync_with_stdio(false);
cin >> n;
cout << f(n) << endl;
return 0;
}