Pro.ID21316 TitleBig Number Title链接http://10.20.2.8/oj/exercise/problem?problem_id=21316 AC63 Submit180 Ratio35.00% 时间&空间限制描述In many applications very large integers numbers are required. Some of these applications are using keys for secure transmission of data, encryption, etc. In this problem you are given a number, you have to determine the number of digits in the factorial of the number. 输入Input consists of several lines of integer numbers. The first line contains an integer n, which is the number of cases to be tested, followed by n lines, one integer 1 ≤ m ≤ 107 on each line. 0 < n < 2000 输出Description In many applications very large integers numbers are required. Some of these applications are using keys for secure transmission of data, encryption, etc. In this problem you are given a number, you have to determine the number of digits in the factorial of the number. Input Input consists of several lines of integer numbers. The first line contains an integer n, which is the number of cases to be tested, followed by n lines, one integer 1 ≤ m ≤ 107 on each line. 0 < n < 2000 Output The output contains the number of digits in the factorial of the integers appearing in the input. Sample Input 2 Sample Output 7 Source 样例输入2 样例输出7 作者 |