Submit solution
Points:
5
Time limit:
1.0s
Memory limit:
16M
Problem types
Allowed languages
ALGOL 68, Assembly, Brain****, C, C++, COBOL, Forth, Fortran, Java, Lua, Text, Turing
Woburn Challenge 1995
The factorial of a whole number (written as ) is defined as follows:
For example, .
The "factorial length" of a number is defined as the number of digits in . Thus the factorial length of is .
Input Specification
On each of five lines is a positive integer in the range .
Output Specification
For each of the five inputs, output that number's factorial length in the format shown below.
Sample Input
1
2
5
10
52
Sample Output
The length of 1! is 1
The length of 2! is 1
The length of 5! is 3
The length of 10! is 7
The length of 52! is 68
Comments