mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-05-10 16:20:27 +08:00
34 lines
429 B
C++
34 lines
429 B
C++
#include <algorithm>
|
|
#include <iostream>
|
|
#include <iomanip>
|
|
#include <cstring>
|
|
#include <cstdio>
|
|
#include <stack>
|
|
#include <ctime>
|
|
#include <cmath>
|
|
#include <queue>
|
|
typedef long long l;
|
|
typedef double d;
|
|
typedef char c;
|
|
int n;
|
|
using namespace std;
|
|
long long wjh(int a){
|
|
if(a==n){
|
|
return n;
|
|
}
|
|
else{
|
|
return wjh(a+1)*a;
|
|
}
|
|
}
|
|
int main(){
|
|
cin >>n;
|
|
if(n==0){
|
|
cout <<1;
|
|
return 0;
|
|
}
|
|
else{
|
|
cout <<wjh(1);
|
|
}
|
|
return 0;
|
|
}
|