DIVCNT1 - Counting Divisors
Let be the number of positive divisors of .
For example, , and .
Let
Given , find .
Input
First line contains (), the number of test cases.
Each of the next lines contains a single integer . ()
Output
For each number , output a single line containing .
Example
Input
5
1
2
3
10
100
Output
1
3
5
27
482
Explanation for Input
-
Information
There are 6 input files.
- Input #1: , TL = 2s.
- Input #2: , TL = 15s.
- Input #3: , TL = 15s.
- Input #4: , TL = 15s.
- Input #5: , TL = 15s.
- Input #6: , TL = 15s.
My C++ solution runs in about 1.3 seconds for each input #2 - #6.
Note
- Probably, solutions will not pass.
- Intended solutions have a running time of about .
- The answer can be .
hide comments
|
userhacker_1:
2018-03-16 16:15:28
thanks good problem ;\ Last edit: 2018-03-16 19:04:23 |
|
Min_25:
2017-11-09 04:43:17
@Blue.Mary
|
|
[Rampage] Blue.Mary:
2017-11-08 02:31:15
Maybe this paper helps? https://arxiv.org/abs/1206.3369. |
|
Min_25:
2017-11-07 23:31:46
@dacin21:
|
|
dacin21:
2017-11-07 21:16:12
@Min_25 This is a really beautiful problem, thanks a lot for posting it.
|
Added by: | Min_25 |
Date: | 2015-12-30 |
Time limit: | 2s-15s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All except: ASM64 GOSU JS-MONKEY |