#P5071. [Ynoi Easy Round 2015] 此时此刻的光辉
[Ynoi Easy Round 2015] 此时此刻的光辉
Description
Chtholly gives you a sequence of length . There are queries. For each query, you need to compute the number of divisors of the product of a subarray, taken .
Input Format
The first line contains two integers .
The second line contains integers, representing the sequence .
Then follow lines, each containing two integers , representing the queried interval.
Output Format
Output lines. Each line contains one integer, the answer to the corresponding query.
5 5
64 2 18 9 100
1 5
2 4
2 3
1 4
3 4
165
15
9
45
10
Hint
Idea: will7101, Solution: nzhtl1477, Code: nzhtl1477, Data: nzhtl1477.
Constraints: , .
Translated by ChatGPT 5
京公网安备 11011102002149号