1784Big Number

1784   Big Number

题目描述

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 <= n <= 10^7 on each line.

输出格式:

The output contains the number of digits in the factorial of the integers appearing in the input.

输入样例 复制
2
10
20
输出样例 复制
7
19

说明

4
16
通过提交
时空限制10000ms/32mb
题目来源
评测方式在线评测
题目类型
难        度