atcoder#ABC273A. [ABC273A] A Recursive Function
[ABC273A] A Recursive Function
Score : points
Problem Statement
A function defined for non-negative integer satisfies the following conditions:
- ;
- for all positive integers .
Find .
Constraints
- is an integer such that .
Input
The input is given from Standard Input in the following format:
Output
Print the answer as an integer.
2
2
We have $f(2) = 2 \times f(1) = 2 \times 1 \times f(0) = 2 \times 1 \times 1 = 2$.
3
6
We have .
0
1
10
3628800