0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-26 08:31:59 +00:00
OI-codes/AcWing/804/804.cpp

20 lines
235 B
C++
Raw Normal View History

#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;
}