#P1035. 递归求阶乘

递归求阶乘

Background

递归求阶乘

Description

输入一个非负整数 n,用递归方法求 n 的阶乘。

n! = n * (n-1) * (n-2) * ... * 1,其中 0! = 1。

Format

Input

一个非负整数 n(0 <= n <= 20)。

Output

一个整数,表示 n 的阶乘。

Samples

5
120
0
1
3
6

Limitation

1s, 1024KiB for each test case.