階乗

整数 n の階乗は、1 から n までのすべての整数の積として定義されます。

与えられた整数 n の階乗 n! の結果を出力するプログラムを書いてください。

入力

出力

1

1

5

120

0

1

Constraints

Time limit: 2 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue