Problem C
How Many Digits?
Often times it is sufficient to know the rough size of a
number, rather than its exact value. For example, a human can
reason about which store to visit to buy milk if one store is
roughly
For this problem, determine the ‘size’ of the factorial of
an integer. By size, we mean the number of digits required to
represent the answer in base-
Input
Input consists of up to
Output
For each integer
Sample Input 1 | Sample Output 1 |
---|---|
0 1 3 10 20 |
1 1 1 7 19 |