Submit | All submissions | Best solutions | Back to list |
CERI2018L - Number of divisors of factorial |
The goal of the problem is to compute the number of divisors of .
Input
The first line of the input consist of a single integer number which determines the number of tests.
In each of next lines there is two integer numbers and .
Constraints
- ;
- ;
- .
Output
For each test case, print the number of divisors of .
Example
Input: 3 2 1000 3 100 1234 1000000007 Output: 2 4 787315782
Explanation
For the first test case, , whose number of divisors is .
For the second test case, , whose number of divisors is .
Added by: | Francky |
Date: | 2018-05-08 |
Time limit: | 10s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All |
hide comments
2018-05-08 14:38:25 wisfaq
whom should be whose (whose is the genitive) =(Francky)=> Corrected ; thanks again. Last edit: 2018-05-08 14:55:34 |