编程介的小学生
2019-04-20 21:48大数定理在数据结构上的实践运用,怎么利用C语言的程序的实现的方式是怎么?
Problem 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 ≤ n ≤ 107 on each line.
Output
The output contains the number of digits in the factorial of the integers appearing in the input.
Sample Input
2
10
20
Sample Output
7
19
- 点赞
- 回答
- 收藏
- 复制链接分享
0条回答
为你推荐
- 如何在Go中有效处理大型数据数组(超过10MiB)?
- buffer
- 3个回答
- 在给定特定值的情况下将大数组拆分为较小的数组
- arrays
- php
- 2个回答
- C语言实现大数加法(正整数)
- c语言
- 2个回答
- 紧急提问,为什么我的Dev c++允许使用变量作为数组长度,这种现象正常么?新标准?
- c语言
- c++
- 2个回答
- 输入一个数组,求其中第K大的数字,K不一定是多少,怎么计算,用C语言
- c语言
- scala
- 开发语言
- erlang
- Golang
- 3个回答
换一换