0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-09-16 20:05:26 +00:00
Baoshuo Ren 2022-05-09 19:09:42 +08:00
parent af3cb117d4
commit 567421d1c5
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

19
AcWing/804/804.cpp Normal file
View File

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