AFS3 - Amazing Factor Sequence (hard)
Let be the sum of positive proper 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
6 1 2 3 10 100 1000000000000000000
Output
0 1 2 32 3249 322467033424113218863487627735401433
Information
There are 6 Input files.
- Input #1: , TL = 2s.
- Input #2: , TL = 10s.
- Input #3: , TL = 10s.
- Input #4: , TL = 10s.
- Input #5: , TL = 10s.
- Input #6: , TL = 10s.
My C++ solution runs in about 0.85 seconds for each Input #2 - #6.
Note
- Probably, solutions will not pass.
- Intended solutions have a running time of about .
- Time limits are somewhat strict.
- The answer can be .
- DIVCNT1 is a little easier than this.
hide comments
|
Min_25:
2019-03-21 13:40:31
@liouzhou_101
|
|
liouzhou_101:
2019-03-20 06:56:30
@Min_25
|
|
dacin21:
2017-12-12 10:02:16
@Min_25
|
|
Min_25:
2017-12-12 08:32:39
@dacin21
|
Added by: | Min_25 |
Date: | 2017-10-19 |
Time limit: | 2s-10s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All |
Resource: | AFS2 |